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. Jan >-----Ursprüngliche Nachricht----- >Von: Michael MacFadden [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 23. Februar 2006 17:38 >An: user@ant.apache.org >Betreff: Read Build File Fom a Jar > >Hello, > >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? > >Regards, >Mike MacFadden > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] For >additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]