Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Generate source using PDE
Generate source using PDE [message #54604] Mon, 13 April 2009 11:11 Go to next message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
I have a feature and a plugin and I am able to build this feature using
PDE headless mode. So I want to create a feature source, so I add
generated.feature to the build.properties of my feature. Here is what my
feature.xml looks like:


bin.includes = feature.xml
generate.feature@com.test.feature.source = com.test.feature


I expect PDE Build to generate 2 features:
com.test.feature
com.test.feature.source

But I don't see the com.test.feature.source gets generated. Any ideas?
Re: Generate source using PDE [message #54630 is a reply to message #54604] Mon, 13 April 2009 13:34 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
hung wrote:
> I have a feature and a plugin and I am able to build this feature using
> PDE headless mode. So I want to create a feature source, so I add
> generated.feature to the build.properties of my feature. Here is what my
> feature.xml looks like:
>
>
> bin.includes = feature.xml
> generate.feature@com.test.feature.source = com.test.feature
>
>
> I expect PDE Build to generate 2 features:
> com.test.feature
> com.test.feature.source
>
> But I don't see the com.test.feature.source gets generated. Any ideas?

Which version of Eclipse are you using?

http://wiki.eclipse.org/PDEBuild/Individual_Source_Bundles

I would make sure you have this property:
individualSourceBundles=true

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Generate source using PDE [message #54657 is a reply to message #54630] Mon, 13 April 2009 15:32 Go to previous messageGo to next message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
Hi Chris,
Thanks for your suggestion. I added it to the build.properties but
still didn't work.

Here is the new build.properties looks like:

bin.includes = feature.xml
generate.feature@com.test.feature.source = com.test.feature
generate.plugin@com.test.source = com.test
individualSourceBundles=true

I am not sure if I setup my feature/plugin correctly. Do I need a new
SDK feature as suggested in the Eclipse InfoCenter?

Here is what the pdebuild.log looks like:

Buildfile:
c:/IBM/SDPShared/plugins/org.eclipse.pde.build_3.4.1.R34x_v2 0080805/scripts/build.xml

main:

preBuild:

preSetup:

checkLocalMaps:

getMapFiles:
[concat] No existing resources and no nested text, doing nothing

postSetup:

checkLocalBase:

getBaseComponents:

fetch:

generate:

preGenerate:
[echo] create jazzsrc.zip

buildSrcZip:
[mkdir] Created dir: c:\temp\team.build\working.dir\build.artifacts
[zip] Building zip:
c:\temp\team.build\working.dir\build.artifacts\jazzsrc-xxx.z ip

allElements:

init:

generateScript:

postGenerate:

process:

preProcess:

allElements:

init:

processElement:

init:

build.jars:

init:

all.features:

all.plugins:

properties:

init:

build.jars:

properties:

init:

@dot:
[mkdir] Created dir:
c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ @dot.bin
[javac] Compiling 2 source files to
c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ @dot.bin
[copy] Copying 2 files to
c:\temp\team.build\working.dir\plugins\com.test\@dot
[delete] Deleting directory
c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ @dot.bin

update.feature:

all.children:

postProcess:

assemble:

preAssemble:

allElements:

init:

assembleElement:

main:

assemble.com.test.feature:

main:
[mkdir] Created dir: c:\temp\team.build\working.dir\tmp

properties:

init:

gather.bin.parts:
[mkdir] Created dir:
c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0
[copy] Copying 2 files to
c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0
[copy] Copying 3 files to
c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0

customAssembly:

init:

gather.bin.parts:
[mkdir] Created dir:
c:\temp\team.build\working.dir\tmp\eclipse\features\com.test .feature_1.0.0

children:
[copy] Copying 1 file to
c:\temp\team.build\working.dir\tmp\eclipse\features\com.test .feature_1.0.0

rootFiles:

rootFiles*_*_*:

customAssembly:

customAssembly:

jarUp:

jarIng:
[jar] Building jar:
c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0.jar
[delete] Deleting directory
c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0

customAssembly:

generate.p2.metadata:

customAssembly:
[zip] Building zip:
c:\temp\team.build\working.dir\build.artifacts\com.test.feat ure-xxx.zip
[zip] Updating zip:
c:\temp\team.build\working.dir\build.artifacts\com.test.feat ure-xxx.zip
[delete] Deleting directory c:\temp\team.build\working.dir\tmp

generate.p2.metadata:

postAssemble:

package:

prePackage:

allElements:

init:

packageElement:

main:

assemble.com.test.feature:

main:
[mkdir] Created dir: c:\temp\team.build\working.dir\tmp

customAssembly:

customAssembly:

customAssembly:
[delete] Deleting directory c:\temp\team.build\working.dir\tmp

generate.p2.metadata:

postPackage:

postBuild:

postBuild:

gatherLogs:
[mkdir] Created dir:
c:\temp\team.build\working.dir\build.artifacts\compilelogs

allElements:

init:

gatherLogs:

init:

zip.logs:
[mkdir] Created dir: c:\temp\team.build\working.dir\compile.logs.temp

init:

all.features:

all.plugins:

properties:

init:

gather.logs:
[mkdir] Created dir:
c:\temp\team.build\working.dir\compile.logs.temp\plugins\com .test_1.0.0
[copy] Copying 1 file to
c:\temp\team.build\working.dir\compile.logs.temp\plugins\com .test_1.0.0

update.feature:

all.children:
[zip] Building zip:
c:\temp\team.build\working.dir\features\com.test.feature\com .test.feature_1.0.0.log.zip
[delete] Deleting directory
c:\temp\team.build\working.dir\compile.logs.temp
[unzip] Expanding:
c:\temp\team.build\working.dir\features\com.test.feature\com .test.feature_1.0.0.log.zip
into c:\temp\team.build\working.dir\build.artifacts\compilelogs

allElements:

init:

gatherSources:

init:

build.sources:

init:

all.features:

all.plugins:

properties:

init:

build.sources:

properties:

init:

src.zip:

zip.src.zip:
[zip] Building zip:
c:\temp\team.build\working.dir\plugins\com.test\src.zip

update.feature:

all.children:

init:

zip.sources:
[mkdir] Created dir:
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder

init:

all.features:

all.plugins:

properties:

init:

gather.sources:
[mkdir] Created dir:
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\plugins\null\src\com.test_1.0.0
[copy] Copying 1 file to
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\plugins\null\src\com.test_1.0.0

properties:

init:

copy.src.includes:

update.feature:

all.children:
[zip] Building zip:
c:\temp\team.build\working.dir\features\com.test.feature\com .test.feature_1.0.0.src.zip
[delete] Deleting directory
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
[mkdir] Created dir: c:\temp\team.build\working.dir\coverage-src
[unzip] Expanding:
c:\temp\team.build\working.dir\plugins\com.test\src.zip into
c:\temp\team.build\working.dir\coverage-src

generateUpdateSite:
[mkdir] Created dir: c:\temp\team.build\working.dir\updateSiteStaging
[mkdir] Created dir:
c:\temp\team.build\working.dir\updateSiteStaging\features
[mkdir] Created dir:
c:\temp\team.build\working.dir\updateSiteStaging\plugins

allElements:

updateSiteExport:

init:

build.update.jar:

init:

all.features:

all.plugins:

properties:

init:

build.update.jar:
[delete] Deleting directory
c:\temp\team.build\working.dir\plugins\com.test\temp.folder
[mkdir] Created dir:
c:\temp\team.build\working.dir\plugins\com.test\temp.folder

properties:

init:

build.jars:

properties:

init:

@dot:

properties:

init:

gather.bin.parts:
[mkdir] Created dir:
c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ com.test_1.0.0
[copy] Copying 2 files to
c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ com.test_1.0.0
[copy] Copying 3 files to
c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ com.test_1.0.0
[jar] Building jar:
c:\temp\team.build\working.dir\updateSiteStaging\plugins\com .test_1.0.0.jar
[jar] Building jar:
c:\temp\team.build\working.dir\updateSiteStaging\plugins\com .test_1.0.0.jar
[delete] Deleting directory
c:\temp\team.build\working.dir\plugins\com.test\temp.folder

update.feature:

all.children:
[mkdir] Created dir:
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
[mkdir] Created dir:
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\features\com.test.feature_1.0.0

init:

gather.bin.parts:

children:
[copy] Copying 1 file to
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\features\com.test.feature_1.0.0

rootFiles:
[jar] Building jar:
c:\temp\team.build\working.dir\updateSiteStaging\features\co m.test.feature_1.0.0.jar
[delete] Deleting directory
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
BUILD SUCCESSFUL

BUILD SUCCESSFUL
Total time: 6 seconds








Chris Aniszczyk wrote:
> hung wrote:
>> I have a feature and a plugin and I am able to build this feature
>> using PDE headless mode. So I want to create a feature source, so I
>> add generated.feature to the build.properties of my feature. Here is
>> what my feature.xml looks like:
>>
>>
>> bin.includes = feature.xml
>> generate.feature@com.test.feature.source = com.test.feature
>>
>>
>> I expect PDE Build to generate 2 features:
>> com.test.feature
>> com.test.feature.source
>>
>> But I don't see the com.test.feature.source gets generated. Any ideas?
>
> Which version of Eclipse are you using?
>
> http://wiki.eclipse.org/PDEBuild/Individual_Source_Bundles
>
> I would make sure you have this property:
> individualSourceBundles=true
>
> Cheers,
>
> Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
> http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Generate source using PDE [message #54683 is a reply to message #54657] Mon, 13 April 2009 17:21 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
You need to include "com.test.feature.source" before it will be
generated. The generate.feature property goes with the feature that
will include the generated source feature.

The normal layout is to do something like this :

com.test.sdk.feature
-(generate.feature@com.test.feature.source=com.test.feature)
- includes com.test.feature
- includes com.test.feature.source

Essentially build goes through the feature hierarchy, and if it hits an
inclusion that doesn't exist (com.test.feature.source) then it consults
the generate properties to see if it can be generated.

You generally don't need both generate.feature and generate.plugin. The
generate.feature will automatically generate source plugins for
everything included in the feature you are basing the source on.
You would use the generate.plugin if you didn't want a source feature
and just wanted source plugins. (And similar to generating the feature,
someone would need to include the source plugin before it got generated.)

-Andrew
hung wrote:
> Hi Chris,
> Thanks for your suggestion. I added it to the build.properties but
> still didn't work.
>
> Here is the new build.properties looks like:
>
> bin.includes = feature.xml
> generate.feature@com.test.feature.source = com.test.feature
> generate.plugin@com.test.source = com.test
> individualSourceBundles=true
>
> I am not sure if I setup my feature/plugin correctly. Do I need a new
> SDK feature as suggested in the Eclipse InfoCenter?
>
> Here is what the pdebuild.log looks like:
>
> Buildfile:
> c:/IBM/SDPShared/plugins/org.eclipse.pde.build_3.4.1.R34x_v2 0080805/scripts/build.xml
>
>
> main:
>
> preBuild:
>
> preSetup:
>
> checkLocalMaps:
>
> getMapFiles:
> [concat] No existing resources and no nested text, doing nothing
>
> postSetup:
>
> checkLocalBase:
>
> getBaseComponents:
>
> fetch:
>
> generate:
>
> preGenerate:
> [echo] create jazzsrc.zip
>
> buildSrcZip:
> [mkdir] Created dir: c:\temp\team.build\working.dir\build.artifacts
> [zip] Building zip:
> c:\temp\team.build\working.dir\build.artifacts\jazzsrc-xxx.z ip
>
> allElements:
>
> init:
>
> generateScript:
>
> postGenerate:
>
> process:
>
> preProcess:
>
> allElements:
>
> init:
>
> processElement:
>
> init:
>
> build.jars:
>
> init:
>
> all.features:
>
> all.plugins:
>
> properties:
>
> init:
>
> build.jars:
>
> properties:
>
> init:
>
> @dot:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ @dot.bin
> [javac] Compiling 2 source files to
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ @dot.bin
> [copy] Copying 2 files to
> c:\temp\team.build\working.dir\plugins\com.test\@dot
> [delete] Deleting directory
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ @dot.bin
>
> update.feature:
>
> all.children:
>
> postProcess:
>
> assemble:
>
> preAssemble:
>
> allElements:
>
> init:
>
> assembleElement:
>
> main:
>
> assemble.com.test.feature:
>
> main:
> [mkdir] Created dir: c:\temp\team.build\working.dir\tmp
>
> properties:
>
> init:
>
> gather.bin.parts:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0
> [copy] Copying 2 files to
> c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0
> [copy] Copying 3 files to
> c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0
>
> customAssembly:
>
> init:
>
> gather.bin.parts:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\tmp\eclipse\features\com.test .feature_1.0.0
>
> children:
> [copy] Copying 1 file to
> c:\temp\team.build\working.dir\tmp\eclipse\features\com.test .feature_1.0.0
>
> rootFiles:
>
> rootFiles*_*_*:
>
> customAssembly:
>
> customAssembly:
>
> jarUp:
>
> jarIng:
> [jar] Building jar:
> c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0.jar
> [delete] Deleting directory
> c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0
>
> customAssembly:
>
> generate.p2.metadata:
>
> customAssembly:
> [zip] Building zip:
> c:\temp\team.build\working.dir\build.artifacts\com.test.feat ure-xxx.zip
> [zip] Updating zip:
> c:\temp\team.build\working.dir\build.artifacts\com.test.feat ure-xxx.zip
> [delete] Deleting directory c:\temp\team.build\working.dir\tmp
>
> generate.p2.metadata:
>
> postAssemble:
>
> package:
>
> prePackage:
>
> allElements:
>
> init:
>
> packageElement:
>
> main:
>
> assemble.com.test.feature:
>
> main:
> [mkdir] Created dir: c:\temp\team.build\working.dir\tmp
>
> customAssembly:
>
> customAssembly:
>
> customAssembly:
> [delete] Deleting directory c:\temp\team.build\working.dir\tmp
>
> generate.p2.metadata:
>
> postPackage:
>
> postBuild:
>
> postBuild:
>
> gatherLogs:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\build.artifacts\compilelogs
>
> allElements:
>
> init:
>
> gatherLogs:
>
> init:
>
> zip.logs:
> [mkdir] Created dir: c:\temp\team.build\working.dir\compile.logs.temp
>
> init:
>
> all.features:
>
> all.plugins:
>
> properties:
>
> init:
>
> gather.logs:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\compile.logs.temp\plugins\com .test_1.0.0
> [copy] Copying 1 file to
> c:\temp\team.build\working.dir\compile.logs.temp\plugins\com .test_1.0.0
>
> update.feature:
>
> all.children:
> [zip] Building zip:
> c:\temp\team.build\working.dir\features\com.test.feature\com .test.feature_1.0.0.log.zip
>
> [delete] Deleting directory
> c:\temp\team.build\working.dir\compile.logs.temp
> [unzip] Expanding:
> c:\temp\team.build\working.dir\features\com.test.feature\com .test.feature_1.0.0.log.zip
> into c:\temp\team.build\working.dir\build.artifacts\compilelogs
>
> allElements:
>
> init:
>
> gatherSources:
>
> init:
>
> build.sources:
>
> init:
>
> all.features:
>
> all.plugins:
>
> properties:
>
> init:
>
> build.sources:
>
> properties:
>
> init:
>
> src.zip:
>
> zip.src.zip:
> [zip] Building zip:
> c:\temp\team.build\working.dir\plugins\com.test\src.zip
>
> update.feature:
>
> all.children:
>
> init:
>
> zip.sources:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
>
>
> init:
>
> all.features:
>
> all.plugins:
>
> properties:
>
> init:
>
> gather.sources:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\plugins\null\src\com.test_1.0.0
>
> [copy] Copying 1 file to
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\plugins\null\src\com.test_1.0.0
>
>
> properties:
>
> init:
>
> copy.src.includes:
>
> update.feature:
>
> all.children:
> [zip] Building zip:
> c:\temp\team.build\working.dir\features\com.test.feature\com .test.feature_1.0.0.src.zip
>
> [delete] Deleting directory
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
>
> [mkdir] Created dir: c:\temp\team.build\working.dir\coverage-src
> [unzip] Expanding:
> c:\temp\team.build\working.dir\plugins\com.test\src.zip into
> c:\temp\team.build\working.dir\coverage-src
>
> generateUpdateSite:
> [mkdir] Created dir: c:\temp\team.build\working.dir\updateSiteStaging
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\updateSiteStaging\features
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\updateSiteStaging\plugins
>
> allElements:
>
> updateSiteExport:
>
> init:
>
> build.update.jar:
>
> init:
>
> all.features:
>
> all.plugins:
>
> properties:
>
> init:
>
> build.update.jar:
> [delete] Deleting directory
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder
>
> properties:
>
> init:
>
> build.jars:
>
> properties:
>
> init:
>
> @dot:
>
> properties:
>
> init:
>
> gather.bin.parts:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ com.test_1.0.0
> [copy] Copying 2 files to
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ com.test_1.0.0
> [copy] Copying 3 files to
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ com.test_1.0.0
> [jar] Building jar:
> c:\temp\team.build\working.dir\updateSiteStaging\plugins\com .test_1.0.0.jar
> [jar] Building jar:
> c:\temp\team.build\working.dir\updateSiteStaging\plugins\com .test_1.0.0.jar
> [delete] Deleting directory
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder
>
> update.feature:
>
> all.children:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
>
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\features\com.test.feature_1.0.0
>
>
> init:
>
> gather.bin.parts:
>
> children:
> [copy] Copying 1 file to
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\features\com.test.feature_1.0.0
>
>
> rootFiles:
> [jar] Building jar:
> c:\temp\team.build\working.dir\updateSiteStaging\features\co m.test.feature_1.0.0.jar
>
> [delete] Deleting directory
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
>
> BUILD SUCCESSFUL
>
> BUILD SUCCESSFUL
> Total time: 6 seconds
>
>
>
>
>
>
>
>
> Chris Aniszczyk wrote:
>> hung wrote:
>>> I have a feature and a plugin and I am able to build this feature
>>> using PDE headless mode. So I want to create a feature source, so I
>>> add generated.feature to the build.properties of my feature. Here is
>>> what my feature.xml looks like:
>>>
>>>
>>> bin.includes = feature.xml
>>> generate.feature@com.test.feature.source = com.test.feature
>>>
>>>
>>> I expect PDE Build to generate 2 features:
>>> com.test.feature
>>> com.test.feature.source
>>>
>>> But I don't see the com.test.feature.source gets generated. Any ideas?
>>
>> Which version of Eclipse are you using?
>>
>> http://wiki.eclipse.org/PDEBuild/Individual_Source_Bundles
>>
>> I would make sure you have this property:
>> individualSourceBundles=true
>>
>> Cheers,
>>
>> Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
>> http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Generate source using PDE [message #594978 is a reply to message #54604] Mon, 13 April 2009 13:34 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
hung wrote:
> I have a feature and a plugin and I am able to build this feature using
> PDE headless mode. So I want to create a feature source, so I add
> generated.feature to the build.properties of my feature. Here is what my
> feature.xml looks like:
>
>
> bin.includes = feature.xml
> generate.feature@com.test.feature.source = com.test.feature
>
>
> I expect PDE Build to generate 2 features:
> com.test.feature
> com.test.feature.source
>
> But I don't see the com.test.feature.source gets generated. Any ideas?

Which version of Eclipse are you using?

http://wiki.eclipse.org/PDEBuild/Individual_Source_Bundles

I would make sure you have this property:
individualSourceBundles=true

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Generate source using PDE [message #594988 is a reply to message #54630] Mon, 13 April 2009 15:32 Go to previous message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
Hi Chris,
Thanks for your suggestion. I added it to the build.properties but
still didn't work.

Here is the new build.properties looks like:

bin.includes = feature.xml
generate.feature@com.test.feature.source = com.test.feature
generate.plugin@com.test.source = com.test
individualSourceBundles=true

I am not sure if I setup my feature/plugin correctly. Do I need a new
SDK feature as suggested in the Eclipse InfoCenter?

Here is what the pdebuild.log looks like:

Buildfile:
c:/IBM/SDPShared/plugins/org.eclipse.pde.build_3.4.1.R34x_v2 0080805/scripts/build.xml

main:

preBuild:

preSetup:

checkLocalMaps:

getMapFiles:
[concat] No existing resources and no nested text, doing nothing

postSetup:

checkLocalBase:

getBaseComponents:

fetch:

generate:

preGenerate:
[echo] create jazzsrc.zip

buildSrcZip:
[mkdir] Created dir: c:\temp\team.build\working.dir\build.artifacts
[zip] Building zip:
c:\temp\team.build\working.dir\build.artifacts\jazzsrc-xxx.z ip

allElements:

init:

generateScript:

postGenerate:

process:

preProcess:

allElements:

init:

processElement:

init:

build.jars:

init:

all.features:

all.plugins:

properties:

init:

build.jars:

properties:

init:

@dot:
[mkdir] Created dir:
c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ @dot.bin
[javac] Compiling 2 source files to
c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ @dot.bin
[copy] Copying 2 files to
c:\temp\team.build\working.dir\plugins\com.test\@dot
[delete] Deleting directory
c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ @dot.bin

update.feature:

all.children:

postProcess:

assemble:

preAssemble:

allElements:

init:

assembleElement:

main:

assemble.com.test.feature:

main:
[mkdir] Created dir: c:\temp\team.build\working.dir\tmp

properties:

init:

gather.bin.parts:
[mkdir] Created dir:
c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0
[copy] Copying 2 files to
c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0
[copy] Copying 3 files to
c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0

customAssembly:

init:

gather.bin.parts:
[mkdir] Created dir:
c:\temp\team.build\working.dir\tmp\eclipse\features\com.test .feature_1.0.0

children:
[copy] Copying 1 file to
c:\temp\team.build\working.dir\tmp\eclipse\features\com.test .feature_1.0.0

rootFiles:

rootFiles*_*_*:

customAssembly:

customAssembly:

jarUp:

jarIng:
[jar] Building jar:
c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0.jar
[delete] Deleting directory
c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0

customAssembly:

generate.p2.metadata:

customAssembly:
[zip] Building zip:
c:\temp\team.build\working.dir\build.artifacts\com.test.feat ure-xxx.zip
[zip] Updating zip:
c:\temp\team.build\working.dir\build.artifacts\com.test.feat ure-xxx.zip
[delete] Deleting directory c:\temp\team.build\working.dir\tmp

generate.p2.metadata:

postAssemble:

package:

prePackage:

allElements:

init:

packageElement:

main:

assemble.com.test.feature:

main:
[mkdir] Created dir: c:\temp\team.build\working.dir\tmp

customAssembly:

customAssembly:

customAssembly:
[delete] Deleting directory c:\temp\team.build\working.dir\tmp

generate.p2.metadata:

postPackage:

postBuild:

postBuild:

gatherLogs:
[mkdir] Created dir:
c:\temp\team.build\working.dir\build.artifacts\compilelogs

allElements:

init:

gatherLogs:

init:

zip.logs:
[mkdir] Created dir: c:\temp\team.build\working.dir\compile.logs.temp

init:

all.features:

all.plugins:

properties:

init:

gather.logs:
[mkdir] Created dir:
c:\temp\team.build\working.dir\compile.logs.temp\plugins\com .test_1.0.0
[copy] Copying 1 file to
c:\temp\team.build\working.dir\compile.logs.temp\plugins\com .test_1.0.0

update.feature:

all.children:
[zip] Building zip:
c:\temp\team.build\working.dir\features\com.test.feature\com .test.feature_1.0.0.log.zip
[delete] Deleting directory
c:\temp\team.build\working.dir\compile.logs.temp
[unzip] Expanding:
c:\temp\team.build\working.dir\features\com.test.feature\com .test.feature_1.0.0.log.zip
into c:\temp\team.build\working.dir\build.artifacts\compilelogs

allElements:

init:

gatherSources:

init:

build.sources:

init:

all.features:

all.plugins:

properties:

init:

build.sources:

properties:

init:

src.zip:

zip.src.zip:
[zip] Building zip:
c:\temp\team.build\working.dir\plugins\com.test\src.zip

update.feature:

all.children:

init:

zip.sources:
[mkdir] Created dir:
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder

init:

all.features:

all.plugins:

properties:

init:

gather.sources:
[mkdir] Created dir:
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\plugins\null\src\com.test_1.0.0
[copy] Copying 1 file to
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\plugins\null\src\com.test_1.0.0

properties:

init:

copy.src.includes:

update.feature:

all.children:
[zip] Building zip:
c:\temp\team.build\working.dir\features\com.test.feature\com .test.feature_1.0.0.src.zip
[delete] Deleting directory
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
[mkdir] Created dir: c:\temp\team.build\working.dir\coverage-src
[unzip] Expanding:
c:\temp\team.build\working.dir\plugins\com.test\src.zip into
c:\temp\team.build\working.dir\coverage-src

generateUpdateSite:
[mkdir] Created dir: c:\temp\team.build\working.dir\updateSiteStaging
[mkdir] Created dir:
c:\temp\team.build\working.dir\updateSiteStaging\features
[mkdir] Created dir:
c:\temp\team.build\working.dir\updateSiteStaging\plugins

allElements:

updateSiteExport:

init:

build.update.jar:

init:

all.features:

all.plugins:

properties:

init:

build.update.jar:
[delete] Deleting directory
c:\temp\team.build\working.dir\plugins\com.test\temp.folder
[mkdir] Created dir:
c:\temp\team.build\working.dir\plugins\com.test\temp.folder

properties:

init:

build.jars:

properties:

init:

@dot:

properties:

init:

gather.bin.parts:
[mkdir] Created dir:
c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ com.test_1.0.0
[copy] Copying 2 files to
c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ com.test_1.0.0
[copy] Copying 3 files to
c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ com.test_1.0.0
[jar] Building jar:
c:\temp\team.build\working.dir\updateSiteStaging\plugins\com .test_1.0.0.jar
[jar] Building jar:
c:\temp\team.build\working.dir\updateSiteStaging\plugins\com .test_1.0.0.jar
[delete] Deleting directory
c:\temp\team.build\working.dir\plugins\com.test\temp.folder

update.feature:

all.children:
[mkdir] Created dir:
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
[mkdir] Created dir:
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\features\com.test.feature_1.0.0

init:

gather.bin.parts:

children:
[copy] Copying 1 file to
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\features\com.test.feature_1.0.0

rootFiles:
[jar] Building jar:
c:\temp\team.build\working.dir\updateSiteStaging\features\co m.test.feature_1.0.0.jar
[delete] Deleting directory
c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
BUILD SUCCESSFUL

BUILD SUCCESSFUL
Total time: 6 seconds








Chris Aniszczyk wrote:
> hung wrote:
>> I have a feature and a plugin and I am able to build this feature
>> using PDE headless mode. So I want to create a feature source, so I
>> add generated.feature to the build.properties of my feature. Here is
>> what my feature.xml looks like:
>>
>>
>> bin.includes = feature.xml
>> generate.feature@com.test.feature.source = com.test.feature
>>
>>
>> I expect PDE Build to generate 2 features:
>> com.test.feature
>> com.test.feature.source
>>
>> But I don't see the com.test.feature.source gets generated. Any ideas?
>
> Which version of Eclipse are you using?
>
> http://wiki.eclipse.org/PDEBuild/Individual_Source_Bundles
>
> I would make sure you have this property:
> individualSourceBundles=true
>
> Cheers,
>
> Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
> http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Generate source using PDE [message #594994 is a reply to message #54657] Mon, 13 April 2009 17:21 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
You need to include "com.test.feature.source" before it will be
generated. The generate.feature property goes with the feature that
will include the generated source feature.

The normal layout is to do something like this :

com.test.sdk.feature
-(generate.feature@com.test.feature.source=com.test.feature)
- includes com.test.feature
- includes com.test.feature.source

Essentially build goes through the feature hierarchy, and if it hits an
inclusion that doesn't exist (com.test.feature.source) then it consults
the generate properties to see if it can be generated.

You generally don't need both generate.feature and generate.plugin. The
generate.feature will automatically generate source plugins for
everything included in the feature you are basing the source on.
You would use the generate.plugin if you didn't want a source feature
and just wanted source plugins. (And similar to generating the feature,
someone would need to include the source plugin before it got generated.)

-Andrew
hung wrote:
> Hi Chris,
> Thanks for your suggestion. I added it to the build.properties but
> still didn't work.
>
> Here is the new build.properties looks like:
>
> bin.includes = feature.xml
> generate.feature@com.test.feature.source = com.test.feature
> generate.plugin@com.test.source = com.test
> individualSourceBundles=true
>
> I am not sure if I setup my feature/plugin correctly. Do I need a new
> SDK feature as suggested in the Eclipse InfoCenter?
>
> Here is what the pdebuild.log looks like:
>
> Buildfile:
> c:/IBM/SDPShared/plugins/org.eclipse.pde.build_3.4.1.R34x_v2 0080805/scripts/build.xml
>
>
> main:
>
> preBuild:
>
> preSetup:
>
> checkLocalMaps:
>
> getMapFiles:
> [concat] No existing resources and no nested text, doing nothing
>
> postSetup:
>
> checkLocalBase:
>
> getBaseComponents:
>
> fetch:
>
> generate:
>
> preGenerate:
> [echo] create jazzsrc.zip
>
> buildSrcZip:
> [mkdir] Created dir: c:\temp\team.build\working.dir\build.artifacts
> [zip] Building zip:
> c:\temp\team.build\working.dir\build.artifacts\jazzsrc-xxx.z ip
>
> allElements:
>
> init:
>
> generateScript:
>
> postGenerate:
>
> process:
>
> preProcess:
>
> allElements:
>
> init:
>
> processElement:
>
> init:
>
> build.jars:
>
> init:
>
> all.features:
>
> all.plugins:
>
> properties:
>
> init:
>
> build.jars:
>
> properties:
>
> init:
>
> @dot:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ @dot.bin
> [javac] Compiling 2 source files to
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ @dot.bin
> [copy] Copying 2 files to
> c:\temp\team.build\working.dir\plugins\com.test\@dot
> [delete] Deleting directory
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ @dot.bin
>
> update.feature:
>
> all.children:
>
> postProcess:
>
> assemble:
>
> preAssemble:
>
> allElements:
>
> init:
>
> assembleElement:
>
> main:
>
> assemble.com.test.feature:
>
> main:
> [mkdir] Created dir: c:\temp\team.build\working.dir\tmp
>
> properties:
>
> init:
>
> gather.bin.parts:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0
> [copy] Copying 2 files to
> c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0
> [copy] Copying 3 files to
> c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0
>
> customAssembly:
>
> init:
>
> gather.bin.parts:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\tmp\eclipse\features\com.test .feature_1.0.0
>
> children:
> [copy] Copying 1 file to
> c:\temp\team.build\working.dir\tmp\eclipse\features\com.test .feature_1.0.0
>
> rootFiles:
>
> rootFiles*_*_*:
>
> customAssembly:
>
> customAssembly:
>
> jarUp:
>
> jarIng:
> [jar] Building jar:
> c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0.jar
> [delete] Deleting directory
> c:\temp\team.build\working.dir\tmp\eclipse\plugins\com.test_ 1.0.0
>
> customAssembly:
>
> generate.p2.metadata:
>
> customAssembly:
> [zip] Building zip:
> c:\temp\team.build\working.dir\build.artifacts\com.test.feat ure-xxx.zip
> [zip] Updating zip:
> c:\temp\team.build\working.dir\build.artifacts\com.test.feat ure-xxx.zip
> [delete] Deleting directory c:\temp\team.build\working.dir\tmp
>
> generate.p2.metadata:
>
> postAssemble:
>
> package:
>
> prePackage:
>
> allElements:
>
> init:
>
> packageElement:
>
> main:
>
> assemble.com.test.feature:
>
> main:
> [mkdir] Created dir: c:\temp\team.build\working.dir\tmp
>
> customAssembly:
>
> customAssembly:
>
> customAssembly:
> [delete] Deleting directory c:\temp\team.build\working.dir\tmp
>
> generate.p2.metadata:
>
> postPackage:
>
> postBuild:
>
> postBuild:
>
> gatherLogs:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\build.artifacts\compilelogs
>
> allElements:
>
> init:
>
> gatherLogs:
>
> init:
>
> zip.logs:
> [mkdir] Created dir: c:\temp\team.build\working.dir\compile.logs.temp
>
> init:
>
> all.features:
>
> all.plugins:
>
> properties:
>
> init:
>
> gather.logs:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\compile.logs.temp\plugins\com .test_1.0.0
> [copy] Copying 1 file to
> c:\temp\team.build\working.dir\compile.logs.temp\plugins\com .test_1.0.0
>
> update.feature:
>
> all.children:
> [zip] Building zip:
> c:\temp\team.build\working.dir\features\com.test.feature\com .test.feature_1.0.0.log.zip
>
> [delete] Deleting directory
> c:\temp\team.build\working.dir\compile.logs.temp
> [unzip] Expanding:
> c:\temp\team.build\working.dir\features\com.test.feature\com .test.feature_1.0.0.log.zip
> into c:\temp\team.build\working.dir\build.artifacts\compilelogs
>
> allElements:
>
> init:
>
> gatherSources:
>
> init:
>
> build.sources:
>
> init:
>
> all.features:
>
> all.plugins:
>
> properties:
>
> init:
>
> build.sources:
>
> properties:
>
> init:
>
> src.zip:
>
> zip.src.zip:
> [zip] Building zip:
> c:\temp\team.build\working.dir\plugins\com.test\src.zip
>
> update.feature:
>
> all.children:
>
> init:
>
> zip.sources:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
>
>
> init:
>
> all.features:
>
> all.plugins:
>
> properties:
>
> init:
>
> gather.sources:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\plugins\null\src\com.test_1.0.0
>
> [copy] Copying 1 file to
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\plugins\null\src\com.test_1.0.0
>
>
> properties:
>
> init:
>
> copy.src.includes:
>
> update.feature:
>
> all.children:
> [zip] Building zip:
> c:\temp\team.build\working.dir\features\com.test.feature\com .test.feature_1.0.0.src.zip
>
> [delete] Deleting directory
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
>
> [mkdir] Created dir: c:\temp\team.build\working.dir\coverage-src
> [unzip] Expanding:
> c:\temp\team.build\working.dir\plugins\com.test\src.zip into
> c:\temp\team.build\working.dir\coverage-src
>
> generateUpdateSite:
> [mkdir] Created dir: c:\temp\team.build\working.dir\updateSiteStaging
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\updateSiteStaging\features
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\updateSiteStaging\plugins
>
> allElements:
>
> updateSiteExport:
>
> init:
>
> build.update.jar:
>
> init:
>
> all.features:
>
> all.plugins:
>
> properties:
>
> init:
>
> build.update.jar:
> [delete] Deleting directory
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder
>
> properties:
>
> init:
>
> build.jars:
>
> properties:
>
> init:
>
> @dot:
>
> properties:
>
> init:
>
> gather.bin.parts:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ com.test_1.0.0
> [copy] Copying 2 files to
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ com.test_1.0.0
> [copy] Copying 3 files to
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder\ com.test_1.0.0
> [jar] Building jar:
> c:\temp\team.build\working.dir\updateSiteStaging\plugins\com .test_1.0.0.jar
> [jar] Building jar:
> c:\temp\team.build\working.dir\updateSiteStaging\plugins\com .test_1.0.0.jar
> [delete] Deleting directory
> c:\temp\team.build\working.dir\plugins\com.test\temp.folder
>
> update.feature:
>
> all.children:
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
>
> [mkdir] Created dir:
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\features\com.test.feature_1.0.0
>
>
> init:
>
> gather.bin.parts:
>
> children:
> [copy] Copying 1 file to
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder\features\com.test.feature_1.0.0
>
>
> rootFiles:
> [jar] Building jar:
> c:\temp\team.build\working.dir\updateSiteStaging\features\co m.test.feature_1.0.0.jar
>
> [delete] Deleting directory
> c:\temp\team.build\working.dir\features\com.test.feature\fea ture.temp.folder
>
> BUILD SUCCESSFUL
>
> BUILD SUCCESSFUL
> Total time: 6 seconds
>
>
>
>
>
>
>
>
> Chris Aniszczyk wrote:
>> hung wrote:
>>> I have a feature and a plugin and I am able to build this feature
>>> using PDE headless mode. So I want to create a feature source, so I
>>> add generated.feature to the build.properties of my feature. Here is
>>> what my feature.xml looks like:
>>>
>>>
>>> bin.includes = feature.xml
>>> generate.feature@com.test.feature.source = com.test.feature
>>>
>>>
>>> I expect PDE Build to generate 2 features:
>>> com.test.feature
>>> com.test.feature.source
>>>
>>> But I don't see the com.test.feature.source gets generated. Any ideas?
>>
>> Which version of Eclipse are you using?
>>
>> http://wiki.eclipse.org/PDEBuild/Individual_Source_Bundles
>>
>> I would make sure you have this property:
>> individualSourceBundles=true
>>
>> Cheers,
>>
>> Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
>> http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Previous Topic:Generate source using PDE
Next Topic:Build Error: ${launcherName}.app\Contents\MacOS not found
Goto Forum:
  


Current Time: Fri Mar 29 12:30:54 GMT 2024

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

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

Back to the top