ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: problem while creating jar file using ant task
Date Wed, 07 Oct 2009 07:46:00 GMT
On 2009-10-07, Edumudi Viswanath <edumudi.viswanath@oracle.com> wrote:

> <jar destfile="${build.dir}/XYZ.jar"
>        basedir="${build}/classes"
>        includes="${build}/classes/a/b/c/d/e/**"
>   />

the includes pattern should be relative to your basedir.

        includes="a/b/c/d/e/**"

BTW, the recommended approach is not to use basedir at all but rather a
nested fileset.

<jar destfile="${build.dir}/XYZ.jar">
  <fileset dir="${build}/classes">
    <include name="a/b/c/d/e/**"/>
  </fileset>
</jar>

Stefan

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


Mime
View raw message