Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse JET Guide
Previous Page Home Next Page

<ws:copyFile>

Standard JET2 Workspace Tags

copyFile

Copy the file refered to by 'url' to the location refered to by 'path'.


Tag Summary
required <ws:copyFile src="value" target="value"/>
full tag <ws:copyFile src="value" target="value" binary="value" replace="value" srcEncoding="value" targetEncoding="value" srcContext="value"/>

Required Attributes
src
An absolute or relative URL identifying the file to copy. If a relative URL, the 'srcContext' attribute controls resolution of the URL.
target
The destination path of the resource. If relative, this is relative to any containing 'folder' or 'project' tag, otherwise, the first path element is treated as a project name.

Optional Attributes
binary
Indicates whether the copy is binary or text base. Possible values: 'true' or 'false'. Default: 'false'.
replace
Indicates if any existing version of the file should be replaced. Possible values: 'true' or 'false'. Default: 'true'.
srcEncoding
Defines the default text encoding of the source file. This is only meaningful if the 'binary' attribute is not 'false'. Default is the platform default text encoding.
targetEncoding
Identifies the text encoding to use when writing the target file. This is only meaningful if the 'binary' attribute is not 'true'. The default text encoding is determined by the platform.
srcContext
Determines the context of relative URL in the 'src' attribute. Default value is 'transform'. Possible values: 'transform', 'workspace'.

Example
<%-- copy a transformation supplied file to the project myProject --%>
<ws:copyFile src="logo.gif" target="myproject/logo.gif" binary="true"/>

<%-- this is equivalent to --%gt;
<ws:copyFile src="logo.gif" srcContext="transform" target="myproject/logo.gif" binary="true"/>

<%-- copy a workspace file from yourProject to myProject --%gt;
<ws:copyFile src="yourProject/plugin.xml" srcContext="workspace" target="myproject/plugin.xml" />


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire