Re: example of correctly consuming an Ant project programmatically

2012-05-31 Thread Mitch Gitman
Nicolas, thanks. I think this is what I'm looking for. Here's the relevant passage from Launcher: URL[] jars = getJarArray( libURLs, userURLs, systemURLs, Locator.getToolsJar()); … URLClassLoader loader = new URLClassLoader(jars); Thread.currentThread().setConte

Re: example of correctly consuming an Ant project programmatically

2012-05-31 Thread Nicolas Lalevée
Le 31 mai 2012 à 18:33, Mitch Gitman a écrit : > Can someone point me to a good, reference example of consuming an Ant > project programmatically? The code needs to have access to the > org.apache.tools.ant.Project object. > > I have been able to do this, but with just one catch. Below are the >

Re: run XSLT on filelist

2012-05-31 Thread Mark Giffin
Thanks Andy (and Harold in another post), I will check these out. I use Saxon because I'm doing XSLT 2.0 and the ant default processor is XSLT 1.0. I know Saxon can be substituted, but I already had my setup running when I found that out. You're right Andy, I use document() to access the XML f

example of correctly consuming an Ant project programmatically

2012-05-31 Thread Mitch Gitman
Can someone point me to a good, reference example of consuming an Ant project programmatically? The code needs to have access to the org.apache.tools.ant.Project object. I have been able to do this, but with just one catch. Below are the relevant lines of Java code: Project project = new Project()

Re: run XSLT on filelist

2012-05-31 Thread Andy Stevens
Hi Mark, On 29/05/12 23:37, Mark Giffin wrote: I'm making a single PDF out of a group of XML documentation files. It's an API reference document and the items will be alphabetized so input order doesn't matter. I want to use a fileset of XML files as input to an XSLT script, something like t