You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Gerd Wütherich <ge...@gerd-wuetherich.de> on 2006/01/13 20:35:13 UTC
How to access an inner jar file that resides in a outer jar?
Hi,
is there any possibility to access an inner jar file that resides in a
outer jar while using an ant path structure?
Short example:
<javac srcdir="${basedir}/source" destdir="${basedir}/classes">
<classpath>
<pathelement path="${basedir}/lib/outer.jar!inner.jar" />
</classpath>
</javac>
I did not find any information about it, so i would love to get further
information if this is possible and how it may works!
Thanks,
Gerd
Re: How to access an inner jar file that resides in a outer jar?
Posted by "Alexey N. Solofnenko" <a....@mdl.com>.
Java itself has this limitation. I will have to unjar it first.
- Alexey.
Gerd Wütherich wrote:
> Hi,
>
> is there any possibility to access an inner jar file that resides in a
> outer jar while using an ant path structure?
>
> Short example:
>
> <javac srcdir="${basedir}/source" destdir="${basedir}/classes">
> <classpath>
> <pathelement path="${basedir}/lib/outer.jar!inner.jar" />
> </classpath>
> </javac>
>
> I did not find any information about it, so i would love to get further
> information if this is possible and how it may works!
>
> Thanks,
> Gerd
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: How to access an inner jar file that resides in a outer jar?
Posted by Clifton Craig <cc...@gbg.com>.
On Friday 13 January 2006 2:35 pm, Gerd Wütherich wrote:
> Hi,
>
> is there any possibility to access an inner jar file that resides in a
> outer jar while using an ant path structure?
>
> Short example:
>
> <javac srcdir="${basedir}/source" destdir="${basedir}/classes">
> <classpath>
> <pathelement path="${basedir}/lib/outer.jar!inner.jar" />
> </classpath>
> </javac>
>
> I did not find any information about it, so i would love to get further
> information if this is possible and how it may works!
>
> Thanks,
> Gerd
Yes, unjar it especially for reference on a compiler classpath. It is a build
step anyway so unjarring should not be impractical. If you wanted to
reference nested jars on the classpath at runtime there is a Onejar project
capable of handling the task.
--
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org