ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: simple question
Date Thu, 25 Apr 2002 21:03:50 GMT
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:sfarshi@724.com] 
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message