Ant build scripts Help

Something is wrong with my build script it duplicates files in different locations:

I need:
www/.netrc
www/tmp/
www/bin/file1
www/bin/file2
www/bin/filen

I get
www/.netrc
www/file1
www/file2
www/filen
www/tmp/
www/bin/file1
www/bin/file2
www/bin/filen
******************************************************
code =

]]>
<property name="workdir" location="$/.workdir"/> <copy todir="$/bin"> <fileset dir="$/conf">
]]>

<copy todir="$"> <fileset dir="$/conf" includes="**/.netrc"/> </copy> <tar destfile="$/lib/ftpscripts.tar" > <tarfileset dir="$/bin" mode="544" username="www" group="www">
]]>

<tarfileset dir="$" mode="600" username="www" group="www">
<!--include name="**/.netrc"/ -->
</tarfileset>
</tar>
</target>



**********************************************************
HELP!!!!!

1 comment
Comment actions Permalink

Anjali,

When you copy files make sure "flatten=yes" is not specified. If "flatten" is turned on the files are copied to the destination directory without any source directory context.

Try turning "verbose" on with your ant script. The console output will let you know whats going on.

ant -verbose ]]>

0

Please sign in to leave a comment.