You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Siamack Farshi <sf...@724.com> on 2002/04/25 23:00:46 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: simple question

Posted by Diane Holt <ho...@yahoo.com>.
--- Siamack Farshi <sf...@724.com> wrote:
> 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.

Your 'excludes' should specify a path relative to your specified
'basedir'. Try:
        excludes="com/svn24/mcf/www/**"

Diane


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>