ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: Strip directory from fileset includesfile jar location
Date Tue, 20 May 2008 10:03:08 GMT
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


Mime
View raw message