J
James Westby
Hi,
I realise this isn't a Java language problem, but I can't find an ant
ng, and I assume that some people here use ant, so could anyone help me
with this problem. I have the following task, (slightly edited)
<target name="srcdist" description="Packages all the source files together
so they can be distributed">
<delete dir="${distribution.directory}/${package}"/>
<mkdir dir="${distribution.directory}/${package}"/>
<copy todir="${distribution.directory}/${package}">
<fileset dir="." defaultexcludes="false">
<include name="**"/>
<exclude name="bin/**"/>
<exclude name="${build.directory}/**"/>
<exclude name="${distribution.directory}/**"/>
<exclude name="${results.directory}/*.*"/>
<exclude name="**/.project"/>
<exclude name="**/.classpath"/>
<exclude name="**/.cvsignore"/>
<exclude name="**/.checkstyle"/>
<exclude name="**/.svn/**"/>
<exclude name=".externalToolBuilders/**"/>
</fileset>
</copy>
</target>
which copies all source type files to a new directory tree within the
project so they can be put in a zip file (zip task removed).
It behaves as I would like for most of it, e.g. removing all .svn dirs
from the tree, but there is one problem.
I have a directory that the output of several tasks goes in to, the
${results.directory}, these all have the form q1.xml q1.txt q1.eps or
output.log. As these are all generated files I don't want them included,
however the fileset copies them over every time. I have tried playing
with things a little, and using echo to display various properties to
confirm that they are how i expect.
I am using ant 1.6.5.
Any help would be greatly appreciated.
James
I realise this isn't a Java language problem, but I can't find an ant
ng, and I assume that some people here use ant, so could anyone help me
with this problem. I have the following task, (slightly edited)
<target name="srcdist" description="Packages all the source files together
so they can be distributed">
<delete dir="${distribution.directory}/${package}"/>
<mkdir dir="${distribution.directory}/${package}"/>
<copy todir="${distribution.directory}/${package}">
<fileset dir="." defaultexcludes="false">
<include name="**"/>
<exclude name="bin/**"/>
<exclude name="${build.directory}/**"/>
<exclude name="${distribution.directory}/**"/>
<exclude name="${results.directory}/*.*"/>
<exclude name="**/.project"/>
<exclude name="**/.classpath"/>
<exclude name="**/.cvsignore"/>
<exclude name="**/.checkstyle"/>
<exclude name="**/.svn/**"/>
<exclude name=".externalToolBuilders/**"/>
</fileset>
</copy>
</target>
which copies all source type files to a new directory tree within the
project so they can be put in a zip file (zip task removed).
It behaves as I would like for most of it, e.g. removing all .svn dirs
from the tree, but there is one problem.
I have a directory that the output of several tasks goes in to, the
${results.directory}, these all have the form q1.xml q1.txt q1.eps or
output.log. As these are all generated files I don't want them included,
however the fileset copies them over every time. I have tried playing
with things a little, and using echo to display various properties to
confirm that they are how i expect.
I am using ant 1.6.5.
Any help would be greatly appreciated.
James