ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lobesquare <lobequad...@googlemail.com>
Subject Re: Copy arbitrary files into jar (generation)
Date Sat, 15 Aug 2009 08:07:35 GMT

Hi Mike,


Mike Baranczak-3 wrote:
> 
> 
>>            <fileset dir="/dv/ws/javasources">
>>        	<include name="**/*.java"/>
>>             </fileset>
> 
> I see two problems here.
> 
> 1. A path that begins with a "/" is an absolute path. I can't tell if  
> this is what you want, but I suspect you actually want a path relative  
> to the project directory.
> 
> 2. What this fileset specifies is "all Java files in directory /dv/ws/ 
> javasources/". It doesn't say anything about creating a "javasources"  
> directory in the jar.
> 
> You probably want something like this:
> 
> <fileset dir="${basedir}/dv/ws">
>     <include name="javasources"/>
> </fileset>
> 
> -MB
> 
> 

1. was/is correct but 2. did the trick ... thanks! :)

Greetings,
   
   lobesquare
-- 
View this message in context: http://www.nabble.com/Copy-arbitrary-files-into-jar-%28generation%29-tp24976733p24982398.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message