ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Corcoran <boar...@gmail.com>
Subject Re: Strip directory from fileset includesfile jar location
Date Tue, 20 May 2008 16:22:04 GMT

Thanks a lot Peter. We were putting it in the top level as log4j needs to
find it on the class path. is there another way of setting log4j up?


Peter Reilly-2 wrote:
> 
> 1) placing log4j.properties in the top level of a jar file is a crime
>     against good practice
> 
> 2) do it by:
>   <jar destfile="${jar.dir}/${jar.name}.jar">
>       <fileset dir="${classes.dir}"/>
>      <fileset dir="."  includes="**/properties/*.groovy" />
>      <fileset dir="properties" includes="log4j.properties"/>
> </jar>
> 
> 
> Peter
> 
> 
> On Mon, May 19, 2008 at 5:29 PM, Tom Corcoran <boardtc@gmail.com> wrote:
>>
>> Doing the following creates a sub directory properties in my jar with my
>> groovy property files, as desired:
>>
>> <jar destfile="${jar.dir}/${jar.name}.jar" update="no"
>> basedir="${classes.dir}">
>> <fileset dir="."><include name="**/properties/*.groovy" /></fileset>
>> </jar>
>>
>> However, I have a log4j.properties file which is also located in this the
>> properties directory on my _file system_ but I want it in the root level
>> of
>> the jar (so it can be found in the path) and not in the properties
>> directory. how can I do that?
>> --
>> View this message in context:
>> http://www.nabble.com/Strip-directory-from-fileset-includesfile-jar-location-tp17322626p17322626.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
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Strip-directory-from-fileset-includesfile-jar-location-tp17322626p17344510.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