Fetch pre-built/source plugins using map file [message #1005504] |
Fri, 25 January 2013 17:53 |
Stewart Francis Messages: 3 Registered: January 2013 |
Junior Member |
|
|
Hi, I'm working on an eclipse plugin/RCP project which has a PDE Build based headless build.
Some of our plugins are generated from non-java source (notably documentation) which runs as a distinct build. The product of this build step is uploaded to a webserver, were we pull it down as part of the main build.
I'd like to convert our build to using the built-in PDE Build fetch mechanism to retrieve the files when we build the containing feature. I've added an ant GET style entry to a map file, which is copied to the ${buildDirectory}/maps by customising the fetchMaps stage of the feature build.
However, the stage of the build where the fetch script is generated fails due to not finding an entry in the map file for the feature. I've had a look at FetchScriptGenerator, which seems to confirm this behaviour, although none of the documentation I've found online seems to indicate that it's only possible to fetch plugins when you're already fetching a feature.
Am I correct in my deduction that what I'm trying to achieve isn't possible, or do I have some misunderstanding as to how the fetch mechanism in PDE Build works? I'd also like to use this in other areas of our product build to fetch feature dependencies from a p2 update site, though I can't see how I can work around having to fetch the feature I want to build. It seems confusing that this should be the case, given that the examples I've found of map files specify plugins predominantly.
Thanks in advance,
Stew Francis
|
|
|
Re: Fetch pre-built/source plugins using map file [message #1005778 is a reply to message #1005504] |
Mon, 28 January 2013 17:09 |
Martin Skorsky Messages: 112 Registered: July 2009 |
Senior Member |
|
|
Use a line similar to with unpack=false
plugin@my bundle id,my version=GET,http://my jar.jar, unpack=false
(replace 'my bundle id', 'my version', 'my jar')
Alternative with prebuilt=true:
bundle@my bundle id=CVS,tag=my branch,cvsRoot=my root,path=my path,prebuilt=true
(replace 'my bundle id', 'my branch', 'my root', 'my path')
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02718 seconds