Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-build-dev] Automating the export of an Eclipse product


Joel,

What you are trying to do should be possible. The productBuild.xml will generate a feature containing the plugins listed in your .product file.  In your build, look for it at:
C:\E32M6\eclipse\workspace\lis-session-recorder.editor\build\features\org.eclipse.pde.build.container.feature.

Check the feature.xml for this generated feature to see if it references your plugins.  I suspect it doesn't since your build log doesn't reference any plugins at all.  The generateFeature task would have thrown an exception during its verify phase if it was unable to find your plugins, so, most likely the generateFeature task was unable to find your .product file. Make sure that your plugins are copied to ${buildDirectory}\plugins since that is where they are expected to be in a basic setup.

Some general points:
1.  You don't need your own copy of productBuild.xml, it can be run directly from the pde.build/scripts/productBuild directory
2.  The property eclipse.pdebuild.scripts (as well as eclipse.pdebuild.templates) should be automatically set by the antRunner, you don't need to set it unless you want to use a different location
3.  You don't need your own copy of customTargets.xml unless you need to implement some of those custom steps, the build will automatically use the one from ${eclipse.pdebuild.templates} if you don't have one.
4.  Your plugins should be copied to ${buildDirectory}/plugins  (or they should exist in ${baseLocation}\plugins, similarily for features).  (See bug 130929 about setting other directories to look for plugins/features in)
5.  Make sure your baseLocation includes the org.eclipse.platform.launchers feature if you want the exe included in your product. (Get it by downloading the delta-pack).

All of the above refers to M5 or later, we should have better docs and hopefully better error reporting by the end of 3.2

-Andrew

pde-build-dev-bounces@xxxxxxxxxxx wrote on 03/15/2006 12:19:52 PM:

> Hello all,

>  
> I’m trying to successfully export a product via antRunner (complete
> with the branded .exe, etc.).  My product does not have any
> features, only plug-ins.  My first question would be: Is this
> possible with the “I20060314-1200” build?

>  
> From what I can tell in these recently resolved bugs, the answer
> would be “yes”:

>  
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=107272
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=127576
>  
> If that’s the case, then I appear to be experiencing what Martin and
> Doug have recently experienced on these boards… my build declares
> itself a resounding success but strangely does not generate any
> distribution.  

>  
> My build command is as follows:
> C:\E32M6\eclipse\workspace\lis-session-recorder.editor>
> java -jar C:\E32M6\eclipse\startup.jar -application org.eclipse.ant.
> core.antRunner -buildfile C:\E32M6\eclipse\workspace\lis-session-
> recorder.editor\build\productBuild.xml -d -Dbuilder=C:
> \E32M6\eclipse\workspace\lis-session-recorder.editor\build -
> Declipse.pdebuild.scripts=C:\E32M6\eclipse\plugins\org.eclipse.pde.
> build_3.2.0.v20060313\scripts

>  
> The (admittedly overly-verbose) result from the execution of my
> script is attached.  Any advice (including “what you’re trying is
> not possible”) would be greatly appreciated!

>  
> Cheers!
>  
> Joel[attachment "build_results.txt" deleted by Andrew Niefer/Ottawa/IBM]
> _______________________________________________
> pde-build-dev mailing list
> pde-build-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/pde-build-dev

Back to the top