Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How can I programmatically export a build.xml?
How can I programmatically export a build.xml? [message #310006] Wed, 15 November 2006 07:10 Go to next message
Eclipse UserFriend
Originally posted by: cristina.marin.imag.fr

Hi,

I'm looking for any possible suggestion one may have for my problem

In my code I create a java project where I am importing sources from a jar
file. I add the necessary classpath entries and then I want to compile
using AntRunner
because I want to reuse the existing build file (that is contained in the
jar file). If the jar file was made within another eclipse, the references
to external jars are wrong (they are defined relative to the ancient
project from the other machine).

So, I need to programmatically (automatically) export the classpath
entries from my java project to the build.xml...

Any idea?

thanks for your help

Cristina
Re: How can I programmatically export a build.xml? [message #310015 is a reply to message #310006] Wed, 15 November 2006 11:46 Go to previous messageGo to next message
Eclipse UserFriend
Christina,
PDE.Build will generate those build.xml files.
Consider for example, how PDE.UI does the export: It uses an
org.eclipse.pde.internal.build.BuildScriptGenerator to generate scripts,
and then it runs them.
See
org.eclipse.pde.core/org.eclipse.pde.internal.core.exports.F eatureExportOperation.doExport.

Regenerating the entire build.xml will be easier than try to just
replace the classpath. But if you are interested, the classpath entries
are computed in
org.eclipse.pde.build/org.eclipse.pde.internal.build.builder .ClasspathComputer3_0

-Andrew
Cristina Marin wrote:
> Hi,
>
> I'm looking for any possible suggestion one may have for my problem
>
> In my code I create a java project where I am importing sources from a
> jar file. I add the necessary classpath entries and then I want to
> compile using AntRunner
> because I want to reuse the existing build file (that is contained in
> the jar file). If the jar file was made within another eclipse, the
> references to external jars are wrong (they are defined relative to the
> ancient project from the other machine).
> So, I need to programmatically (automatically) export the classpath
> entries from my java project to the build.xml...
>
> Any idea?
>
> thanks for your help
>
> Cristina
>
>
>
>
>
Re: How can I programmatically export a build.xml? [message #310024 is a reply to message #310015] Thu, 16 November 2006 02:33 Go to previous message
Eclipse UserFriend
Originally posted by: cristina.marin.imag.fr

Thank you

cheers
Cristina
Previous Topic:Upgd 3.1 to 3.2/Problems restoring workbench/error activating Editor
Next Topic:Is there a virtual selection for virtual trees
Goto Forum:
  


Current Time: Fri Jun 20 22:47:50 EDT 2025

Powered by FUDForum. Page generated in 0.11003 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top