Just take out the ${outputPath}/ prefix for the excludes. Patternset set are
relative to the dir or basedir (depending where they are used / defined). So
try:
<target name="jarmcf" depends="init">
<jar jarfile="${outputPath}/../mcf.jar"
basedir="${outputPath}"
excludes="com/svn24/mcf/www/**" />
</target>
--DD
-----Original Message-----
From: Siamack Farshi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 4:01 PM
To: 'Ant Users List'
Subject: simple question
Hello everyone:
I am new in ant and I have come a simple problem. Though
I have read the documentation, I have not been able to solve it.
I was hoping if anyone can help me.
All my projects appear under the
${outputPath}
|
com
|
svn724
|
mcf
|_xxx
|_yyy
|_www
|_zzz
I would like to jar everything except "the directory www and all of its
subdirectories
and files". I have been using the following target:
<target name="jarmcf" depends="init">
<jar jarfile="${outputPath}/../mcf.jar"
basedir="${outputPath}"
excludes="${outputPath}/com/svn24/mcf/www/**/*"
/>
</target>
However, www appears in my jar file. Any idea on how to eliminate www.
I have also tried other variations of excludes such as
excludes="${outputPath}/com/svn24/mcf/www/**/ but no luck yet.
Thanks for all your replies in advance,
regards,
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>