Skip to main content
summaryrefslogtreecommitdiffstats
blob: 624bef71ff9cc8c3cff7552ebadefa76310a9cb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM Software Development Platform">
<TITLE>&lt;ws:copyFile&gt; - Standard JET2 Workspace Tags</TITLE>
</HEAD>
<BODY>
<TABLE border="0" cellpadding="0" cellspacing="1" width="100%">
	<TBODY>
		<TR>
			<TH align="left">
			<P>&lt;ws:copyFile&gt;</P></TH>
			<TH align="right"><A href="overview.html">Standard JET2 Workspace Tags</A></TH>
		</TR>
	</TBODY>
</TABLE>
<HR>
<P><B>copyFile</B></P>
<P><P>               Copy the file refered to by 'url' to the location refered to by 'path'.<P>            </P>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Tag Summary</TH></TR>
		<TR>
			<TD width="10%">required</TD>
			<TD><SPAN style="font-family: monospace">
			&lt;ws:copyFile src=&quot;<I>value</I>&quot; target=&quot;<I>value</I>&quot;/&gt;<br>
			</SPAN></TD>
		</TR>
		<TR>
			<TD width="10%">full tag</TD>
			<TD><SPAN style="font-family: monospace">
			&lt;ws:copyFile src=&quot;<I>value</I>&quot; target=&quot;<I>value</I>&quot; binary=&quot;<I>value</I>&quot; replace=&quot;<I>value</I>&quot; srcEncoding=&quot;<I>value</I>&quot; targetEncoding=&quot;<I>value</I>&quot; srcContext=&quot;<I>value</I>&quot;/&gt;<br>
			</SPAN></TD>
		</TR>
	</TBODY>
</TABLE>
<exists node="tag/attribute use='required'">
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Required Attributes</TH></TR>
		<TR>
			<TD width="10%">src</TD>
			<TD><BR>                  An absolute or relative URL identifying the file to copy. If a relative URL, the 'srcContext' attribute controls resolution of the URL.<BR>               </TD>
		</TR>
		<TR>
			<TD width="10%">target</TD>
			<TD><BR>                  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.<BR>               </TD>
		</TR>
	</TBODY>
</TABLE>
</exists>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Optional Attributes</TH></TR>
		<TR>
		<TR>
			<TD width="10%">binary</TD>
			<TD><BR>                  Indicates whether the copy is binary or text base. Possible values: 'true' or 'false'. Default: 'false'.<BR>               </TD>
		</TR>
		<TR>
			<TD width="10%">replace</TD>
			<TD><BR>                  Indicates if any existing version of the file should be replaced. Possible values: 'true' or 'false'. Default: 'true'.<BR>               </TD>
		</TR>
		<TR>
			<TD width="10%">srcEncoding</TD>
			<TD><BR>                  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.<BR>               </TD>
		</TR>
		<TR>
			<TD width="10%">targetEncoding</TD>
			<TD><BR>                  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.<BR>               </TD>
		</TR>
		<TR>
			<TD width="10%">srcContext</TD>
			<TD><BR>                  Determines the context of relative URL in the 'src' attribute. Default value is 'transform'. Possible values: 'transform', 'workspace'.<BR>               </TD>
		</TR>
	</TBODY>
</TABLE>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Example</TH></TR>
		<TR>
			<TD width="10%"></TD>
			<TD><SPAN style="font-family: monospace">
<!-- Begin copyFile example -->

			&lt;ws:copyFile src=&quot;<I>value</I>&quot; target=&quot;<I>value</I>&quot;/&gt;<br>
<!-- End copyFile example -->
</SPAN></TD>
		</TR>
	</TBODY>
</TABLE>
<P></P></BODY>
</HTML>

Back to the top