bodewig 00/10/16 00:34:48
Modified: docs index.html
Log:
Changed examples to use copy and delete instead of copydir and deltree.
Submitted by: Lee Breisacher <[EMAIL PROTECTED]>
Revision Changes Path
1.131 +17 -10 jakarta-ant/docs/index.html
Index: index.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/index.html,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -r1.130 -r1.131
--- index.html 2000/10/13 09:14:25 1.130
+++ index.html 2000/10/16 07:34:48 1.131
@@ -407,8 +407,8 @@
<target name="clean">
<!-- Delete the ${build} and ${dist} directory trees -->
- <deltree dir="${build}" />
- <deltree dir="${dist}" />
+ <delete dir="${build}" />
+ <delete dir="${dist}" />
</target>
</project>
</pre>
@@ -690,19 +690,24 @@
<p>When these patterns are used in inclusion and exclusion, you have a
powerful
way to select just the files you want.</p>
<h3>Examples</h3>
-<pre> <copydir src="${src}"
- dest="${dist}"
- includes="**/images/*"
- excludes="**/*.gif" /></pre>
+<pre>
+<copy todir="${dist}" >
+ <fileset dir="${src}"
+ includes="**/images/*"
+ excludes="**/*.gif"
+ />
+</copy></pre>
<p>This copies all files in directories called "images", that are
located in the directory tree "${src}" to the destination
"${dist}",
but excludes all "*.gif" files from the copy.</p>
<p> This example can also be expressed using nested elements as
-<pre> <copydir src="${src}"
- dest="${dist}">
+<pre>
+<copy todir="${dist}" >
+ <fileset dir="${src}" />
<include name="**/images/*"/>
<exclude name="**/*.gif" />
- </copydir>
+ </fileset>
+</copy>
</pre>
<h3>Default Excludes</h3>
@@ -1898,7 +1903,9 @@
</table>
<h3>Examples</h3>
<pre> <filter token="year" value="2000" />
- <copydir src="${src.dir}"
dest="${dest.dir}"/></pre>
+ <copy todir="${dest.dir}">
+ <fileset dir="${src.dir}" />
+ </copy></pre>
<p>will copy recursively all the files from the <i>src.dir</i> directory into
the <i>dest.dir</i> directory replacing all the occurencies of the string
<i>@year@</i>
with <i>2000.</i></p>