|
@@ -407,8 +407,8 @@ This is resolved as "build/classes".</p> |
|
|
|
|
|
|
|
|
<target name="clean"> |
|
|
<target name="clean"> |
|
|
<!-- Delete the ${build} and ${dist} directory trees --> |
|
|
<!-- Delete the ${build} and ${dist} directory trees --> |
|
|
<deltree dir="${build}" /> |
|
|
|
|
|
<deltree dir="${dist}" /> |
|
|
|
|
|
|
|
|
<delete dir="${build}" /> |
|
|
|
|
|
<delete dir="${dist}" /> |
|
|
</target> |
|
|
</target> |
|
|
</project> |
|
|
</project> |
|
|
</pre> |
|
|
</pre> |
|
@@ -690,19 +690,24 @@ is appended. E.g. "mypackage/test/" is interpreted as were it "my |
|
|
<p>When these patterns are used in inclusion and exclusion, you have a powerful |
|
|
<p>When these patterns are used in inclusion and exclusion, you have a powerful |
|
|
way to select just the files you want.</p> |
|
|
way to select just the files you want.</p> |
|
|
<h3>Examples</h3> |
|
|
<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 |
|
|
<p>This copies all files in directories called "images", that are |
|
|
located in the directory tree "${src}" to the destination "${dist}", |
|
|
located in the directory tree "${src}" to the destination "${dist}", |
|
|
but excludes all "*.gif" files from the copy.</p> |
|
|
but excludes all "*.gif" files from the copy.</p> |
|
|
<p> This example can also be expressed using nested elements as |
|
|
<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/*"/> |
|
|
<include name="**/images/*"/> |
|
|
<exclude name="**/*.gif" /> |
|
|
<exclude name="**/*.gif" /> |
|
|
</copydir> |
|
|
|
|
|
|
|
|
</fileset> |
|
|
|
|
|
</copy> |
|
|
</pre> |
|
|
</pre> |
|
|
|
|
|
|
|
|
<h3>Default Excludes</h3> |
|
|
<h3>Default Excludes</h3> |
|
@@ -1898,7 +1903,9 @@ that perform file copying operations through the Project commodity methods.</p> |
|
|
</table> |
|
|
</table> |
|
|
<h3>Examples</h3> |
|
|
<h3>Examples</h3> |
|
|
<pre> <filter token="year" value="2000" /> |
|
|
<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 |
|
|
<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> |
|
|
the <i>dest.dir</i> directory replacing all the occurencies of the string <i>@year@</i> |
|
|
with <i>2000.</i></p> |
|
|
with <i>2000.</i></p> |
|
|