You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "drs. Mark C. Prins" <ma...@caris.com> on 2002/01/02 21:20:40 UTC

using includes listing file with JAR command and inner classes

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
Anyone know how to build a jar file with inner classes included,
using a file for include?

I have a file with the following listing:

applet\awt\zoom-3.gif
applet\awt\zoom1.gif
applet\awt\zoom2.gif
applet\awt\zoom3.gif
com\caris\fusion\awt\button\JDMC_OverViewPanelButton$1.class
com\caris\fusion\awt\button\JDMC_OverViewPanelButton$OverViewFrame.cla
ss
com\caris\fusion\awt\button\JDMC_OverViewPanelButton.class
com\caris\fusion\awt\canvas\JDMC_AWTOverviewCanvas$1.class
com\caris\fusion\awt\canvas\JDMC_AWTOverviewCanvas$2.class
com\caris\fusion\awt\canvas\JDMC_AWTOverviewCanvas$3.class
com\caris\fusion\awt\canvas\JDMC_AWTOverviewCanvas$4.class
com\caris\fusion\awt\canvas\JDMC_AWTOverviewCanvas$CoordinateTransform
.class
com\caris\fusion\awt\canvas\JDMC_AWTOverviewCanvas.class

and I use the jar command as follows:

  <jar jarfile="${applet}/overviewapplet.jar" basedir="${build}"
update="no"
       includesfile="project_files/overviewlist.txt">
  </jar>

I end up with a jar file that contains all but the innerclasses
(those with the "$") which is not what I want..

thanx, Mark


-----BEGIN PGP SIGNATURE-----
Version: PGP 7.1
Comment: Authenticated by Mark Prins

iQA/AwUBPDNrmA+nhaE7SmS7EQJlDACg8kgWQ+230yt+KL1SdK3BQ1Oj6SMAoO7f
rqCpx6Vw2Y87X76wcqmmQ9dI
=7R13
-----END PGP SIGNATURE-----


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: using includes listing file with JAR command and inner classes

Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
"$" is special to almost all Ant scenarios (prefix to property references).
If you double them ("$$") then it should work.

It seems odd that an includes file interpretation would take the property
resolution into account though, but thats just the way it is.

    Erik


----- Original Message -----
From: "drs. Mark C. Prins" <ma...@caris.com>
To: <an...@jakarta.apache.org>
Sent: Wednesday, January 02, 2002 3:20 PM
Subject: using includes listing file with JAR command and inner classes


>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
> Anyone know how to build a jar file with inner classes included,
> using a file for include?
>
> I have a file with the following listing:
>
> applet\awt\zoom-3.gif
> applet\awt\zoom1.gif
> applet\awt\zoom2.gif
> applet\awt\zoom3.gif
> com\caris\fusion\awt\button\JDMC_OverViewPanelButton$1.class
> com\caris\fusion\awt\button\JDMC_OverViewPanelButton$OverViewFrame.cla
> ss
> com\caris\fusion\awt\button\JDMC_OverViewPanelButton.class
> com\caris\fusion\awt\canvas\JDMC_AWTOverviewCanvas$1.class
> com\caris\fusion\awt\canvas\JDMC_AWTOverviewCanvas$2.class
> com\caris\fusion\awt\canvas\JDMC_AWTOverviewCanvas$3.class
> com\caris\fusion\awt\canvas\JDMC_AWTOverviewCanvas$4.class
> com\caris\fusion\awt\canvas\JDMC_AWTOverviewCanvas$CoordinateTransform
> .class
> com\caris\fusion\awt\canvas\JDMC_AWTOverviewCanvas.class
>
> and I use the jar command as follows:
>
>   <jar jarfile="${applet}/overviewapplet.jar" basedir="${build}"
> update="no"
>        includesfile="project_files/overviewlist.txt">
>   </jar>
>
> I end up with a jar file that contains all but the innerclasses
> (those with the "$") which is not what I want..
>
> thanx, Mark
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 7.1
> Comment: Authenticated by Mark Prins
>
> iQA/AwUBPDNrmA+nhaE7SmS7EQJlDACg8kgWQ+230yt+KL1SdK3BQ1Oj6SMAoO7f
> rqCpx6Vw2Y87X76wcqmmQ9dI
> =7R13
> -----END PGP SIGNATURE-----
>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>