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
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

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




Eclipse JET Guide
Previous Page Home Next Page


Standard JET2 Workspace Tags


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
An absolute or relative URL identifying the file to copy. If a relative URL, the 'srcContext' attribute controls resolution of the URL.
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
Indicates whether the copy is binary or text base. Possible values: 'true' or 'false'. Default: 'false'.
Indicates if any existing version of the file should be replaced. Possible values: 'true' or 'false'. Default: 'true'.
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.
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.
Determines the context of relative URL in the 'src' attribute. Default value is 'transform'. Possible values: 'transform', 'workspace'.

<%-- 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