You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Luca Ferrari <fl...@infinito.it> on 2008/03/27 18:15:16 UTC

exclude test and examples from a jar

Hi,
is it correct the following file set to be included in a jar task for 
excluding examples and test files?

<zipfileset dir="${build.dir}">
	<exclude name="**/*example*"  />		<!-- exclude example files -->
	<exclude name="**/*Test*"     />		<!-- exclude test files    -->
</zipfileset>

I still got the classes under the example package and the Test classes into my 
jar.....


Thanks,
Luca

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


Re: exclude test and examples from a jar

Posted by Vijay Aravamudhan <av...@gmail.com>.
i think what you want is:

<zipfileset dir="${build.dir}">
	<exclude name="**/*example*/**"  />		<!-- exclude example files -->
	<exclude name="**/*Test*/**"     />		<!-- exclude test files    -->
</zipfileset>

hth,
Vijay

Luca Ferrari wrote:
> Hi,
> is it correct the following file set to be included in a jar task for 
> excluding examples and test files?
>
> <zipfileset dir="${build.dir}">
> 	<exclude name="**/*example*"  />		<!-- exclude example files -->
> 	<exclude name="**/*Test*"     />		<!-- exclude test files    -->
> </zipfileset>
>
> I still got the classes under the example package and the Test classes into my 
> jar.....
>
>
> Thanks,
> Luca
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>   

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