ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Read Build File Fom a Jar
Date Fri, 24 Feb 2006 06:33:57 GMT
Cant find the thread, but we had a discussion about that on the dev list.
Background is that most of Ant will support <resource>s as a more abstract type than
<fileset> or <path>. Many tasks do that already in HEAD.

While thinking about that, what about the buildfile itself? E.g. <resource> could be
an UrlResource, FileResource, inside JAR, ...
The problem (the one I remember ;-) is that relative paths are resolved against basedir which
is derived from the buildfile. AFAIK we havent thought deeper about that.

So short answer: I dont see a possibility for a jar-intern buildfile.


>-----Urspr√ľngliche Nachricht-----
>Von: Michael MacFadden [] 
>Gesendet: Donnerstag, 23. Februar 2006 17:38
>Betreff: Read Build File Fom a Jar
>I have a situation where a I would like to package a build 
>file in a jar file and then run ANT using this build file.  Is 
>there any way I can do this without extracting the build file 
>from the jar file first?
>Basically I am working in an arbitrary environment that uses a 
>plugin architecture.  My plugin exists as a jar file.  I would 
>like to include a build file with my plugin, and have ant run 
>it.  The and classes are accessible to my plugin, so the only 
>real trick is getting ant to run the build file from the jar.  
>I would like to avoid extracting the build file to a temp 
>location if possible.  Any thoughts?
>Mike MacFadden
>To unsubscribe, e-mail: For 
>additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message