Concerning Jan.Materne wrote: > because the project needs a base directory with real "file access"
If in projectA the build.xml from projectB is called through the ant target, the basedir of projectA could be used to create directories, resolve relative paths etc.. Is this correct ? Would something similar with "jar:file:///some/location/projectB.jar!/build.xml" work ? Regards, Stefan. Jan.Materne wrote: > >>I would like to package a build.xml file into a JAR so that it can be >>referenced by other projects (using the ant antfile target). I >>was thinking >>about using "classpath:..." in the antfile attribute, but that does not >>work. How can this functionality be achieved ? > > You cant load the buildfile from an URL, because the project needs a > base directory with real "file access" so it can create directories, > resolve relative paths etc. > > You could unzip the build.xml to a specified location and invoke that. > > > Jan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/How-to-load-build.xml-from-a-JAR---tp21681760p21683679.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
