Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Prdocut Build fails because of missing requirement
Prdocut Build fails because of missing requirement [message #500973] Mon, 30 November 2009 14:41 Go to next message
TW  is currently offline TW Friend
Messages: 62
Registered: November 2009
Member
Hi,

I´ve extended my product Build to run four different jobs, which build a *.product file.

Unfortunately there is something which leads to a fail product build, and i neither can control it nor know how to fix it.

I build my product my calling a action from my buckminster.cspex file in hudson. The log says:
Gestartet durch Benutzer anonymous
*** Get list of all files for C:\hudson\jobs\daiDev\workspace
*** Looking for versioned files in buckminster
*** Looking for versioned files in com.example.mail
*** Looking for versioned files in src
*** Looking for versioned files in com
*** Looking for versioned files in example
*** Looking for versioned files in mail
*** Looking for versioned files in icons
*** Looking for versioned files in META-INF
*** Looking for versioned files in .settings
*** Looking for versioned files in com.example.mail.site
*** Looking for versioned files in com.example.connection.twt.prod
*** Looking for versioned files in META-INF
*** Looking for versioned files in com.example.connection.twt.dev
*** Looking for versioned files in META-INF
*** Looking for versioned files in com.example.connection.dai.prod
*** Looking for versioned files in META-INF
*** Looking for versioned files in com.example.connection.dai.dev
*** Looking for versioned files in META-INF
*** Looking for versioned files in com.example.configuration.twt.prod
*** Looking for versioned files in com.example.configuration.twt.dev
*** Looking for versioned files in com.example.configuration.dai.prod
*** Looking for versioned files in com.example.configuration.dai.dev
*** Looking for versioned files in com.example.mail.product
*** Looking for versioned files in build
*** done
*** Performing checkout
*** done
Commandline: 
java -Dbuckminster.output.root=/C:/hudson/jobs/daiDev/workspace//buckminster.output -Dbuckminster.temp.root=/C:/hudson/jobs/daiDev/workspace//buckminster.temp -jar plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -application org.eclipse.buckminster.cmdline.headless -data /C:/hudson/jobs/daiDev/workspace/ --loglevel info -S C:\hudson\jobs\daiDev\builds\2009-11-30_14-47-41/commands.txt INFO:  setpref 'targetPlatformPath=/C:/targetPlatform'
targetPlatformPath set to the value '/C:/targetPlatform'
INFO:  import '/C:/hudson/jobs/daiDev/workspace//com.example.mail.site/site.cquery'
INFO:  Import complete.
INFO:  perform 'com.example.mail.product#create.product.dai.dev.zip'
INFO:  [start com.example.connection.dai.dev:osgi.bundle$1.4.3#eclipse.build]
INFO:  [end com.example.connection.dai.dev:osgi.bundle$1.4.3#eclipse.build]
INFO:  [start com.example.connection.dai.prod:osgi.bundle$1.4.3#eclipse.build]
INFO:  [end com.example.connection.dai.prod:osgi.bundle$1.4.3#eclipse.build]
INFO:  [start com.example.connection.twt.dev:osgi.bundle$1.4.3#eclipse.build]
INFO:  [end com.example.connection.twt.dev:osgi.bundle$1.4.3#eclipse.build]
INFO:  [start com.example.connection.twt.prod:osgi.bundle$1.4.3#eclipse.build]
INFO:  [end com.example.connection.twt.prod:osgi.bundle$1.4.3#eclipse.build]
INFO:  [start com.example.mail:osgi.bundle$1.4.3#eclipse.build]
INFO:  [end com.example.mail:osgi.bundle$1.4.3#eclipse.build]
INFO:  [start com.example.mail:osgi.bundle$1.4.3#source.bundle.jar]
INFO:  [end com.example.mail:osgi.bundle$1.4.3#source.bundle.jar]
INFO:  [start com.example.mail.product:eclipse.feature$1.0.0.qualifier#site.p2]
INFO:  [end com.example.mail.product:eclipse.feature$1.0.0.qualifier#site.p2]
INFO:  [start com.example.mail.product:eclipse.feature$1.0.0.qualifier#create.product.dai.dev]
[ant] C:\Buckminsterheadless\plugins\org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
[ant] file:/C:/hudson/jobs/daiDev/workspace/buckminster.output/com.example.mail.product_1.0.0-eclipse.feature/site.p2/
[ant] C:\hudson\jobs\daiDev\workspace\buckminster.output\com.example.mail.product_1.0.0-eclipse.feature\daiDev
[ant] Cannot complete the install because one or more required items could not be found.
[ant]  Software being installed: MAIL 1.0.0 (MAIL.DAI.DEV 1.0.0)
[ant]  Missing requirement: MAIL 1.0.0 (MAIL.DAI.DEV 1.0.0) requires 'com.example.mail.product.feature.group [1.0.0.qualifier]' but it could not be found
[ant] Application failed, log file location: C:\Buckminsterheadless\configuration\1259588885781.log
ERROR: org.eclipse.core.runtime.CoreException: C:\hudson\jobs\daiDev\workspace\com.example.mail.product\build\product.ant:22: Java returned: 13
org.eclipse.core.runtime.CoreException: C:\hudson\jobs\daiDev\workspace\com.example.mail.product\build\product.ant:22: Java returned: 13
	at org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:189)
	at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:352)
	at org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:281)
	at org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:201)
	at org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:151)
	at org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:507)
	at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:335)
	at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:350)
	at org.eclipse.buckminster.core.commands.Perform.internalRun(Perform.java:118)
	at org.eclipse.buckminster.core.commands.WorkspaceCommand.run(WorkspaceCommand.java:191)
	at org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:155)
	at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:341)
	at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:135)
	at org.eclipse.buckminster.cmdline.Headless.start(Headless.java:189)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: C:\hudson\jobs\daiDev\workspace\com.example.mail.product\build\product.ant:22: Java returned: 13
	at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:622)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:455)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:344)
	... 25 more
C:\hudson\jobs\daiDev\workspace\com.example.mail.product\build\product.ant:22: Java returned: 13
Caused by: 
Finished: FAILURE


The weird thing is, that 3 of 4 of my configured jobs work and this error appeared after changing the code in one of the 4 products.

So I tried to analyze this error and created a copy of a hudson job which was building successfully. The weird thing was that the copy of the job did fail while the original job worked. Both jobs had the exact same configuration so analyzed the workspace folder of the job.

After a while I recognized, that my original job which built successful contained more files in the buckminster.output folder.

The main point which caused the build to fail was, that in the original job there were two jar files in the site/features/ folder (com.example.product & com.example.product.source .. jar).

If I copied these files manually to the copied job, where they were missing, the job did end successful.

So how can I achieve that these jar files are always copied / generated ...?
Re: Prdocut Build fails because of missing requirement [message #500994 is a reply to message #500973] Mon, 30 November 2009 15:53 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
Without knowledge of how your features/products look like and what
you're trying to build it's hard to tell why two specific bundles are
not build.
In general I would advise you to start every buckminster based hudson
job with a shell build step that deletes buckminster.output and
buckminster.temp in your workspace to avoid side effects like that.


Best regards,
Johannes
Re: Prdocut Build fails because of missing requirement [message #501115 is a reply to message #500994] Tue, 01 December 2009 06:57 Go to previous messageGo to next message
TW  is currently offline TW Friend
Messages: 62
Registered: November 2009
Member
Hi Johannes,

I think its a good idea to delete the buckminster.output at the beginning of each build. I will try to implement this and do a bit more testing with it. If I cannot fix the error on my own I'm going to write some more detailed information about my problem.

Thanks

[Updated on: Tue, 01 December 2009 07:04]

Report message to a moderator

Re: Prdocut Build fails because of missing requirement [message #501120 is a reply to message #501115] Tue, 01 December 2009 08:00 Go to previous messageGo to next message
TW  is currently offline TW Friend
Messages: 62
Registered: November 2009
Member
Hi,

I think I cannot fix the problem on my own, even the command for deleting my buckminster.output and buckminster.temp doesn´t work for me (maybe stupid windows again?!?).

I will divide my problems in two sections:

1. Cannot delete buckminster.output & buckminster.temp:

You advised me to delete my output and temp folder If a new build starts. I followed your tutorial. Here you add a execute Shell before building the product.

I added a execute shell and entered "rm -Rf $WORKSPACE" to delete the whole workspace (maybe this could be optimized by adding the shell commands rm -Rf $WORKSPACE/buckminster.output and rm -Rf $WORKSPACE/buckminster.temp).

If I try to run it, the build process fails with the log:
Gestartet durch Benutzer anonymous
*** Get list of all files for C:\hudson\jobs\daiDev\workspace
*** Looking for versioned files in buckminster
*** Looking for versioned files in com.example.mail.product
*** Looking for versioned files in build
*** Looking for versioned files in com.example.mail
*** Looking for versioned files in src
*** Looking for versioned files in com
*** Looking for versioned files in example
*** Looking for versioned files in mail
*** Looking for versioned files in icons
*** Looking for versioned files in META-INF
*** Looking for versioned files in .settings
*** Looking for versioned files in com.example.mail.site
*** Looking for versioned files in com.example.connection.twt.prod
*** Looking for versioned files in META-INF
*** Looking for versioned files in com.example.connection.twt.dev
*** Looking for versioned files in META-INF
*** Looking for versioned files in com.example.connection.dai.prod
*** Looking for versioned files in META-INF
*** Looking for versioned files in com.example.connection.dai.dev
*** Looking for versioned files in META-INF
*** Looking for versioned files in com.example.configuration.twt.prod
*** Looking for versioned files in com.example.configuration.twt.dev
*** Looking for versioned files in com.example.configuration.dai.prod
*** Looking for versioned files in com.example.configuration.dai.dev
*** done
*** Performing checkout
*** done
[workspace] $ sh -xe C:\DOKUME~1\wagnert\LOKALE~1\Temp\hudson42247.sh
The system cannot find the file specified
FATAL: Befehlsausführung fehlgeschlagen
java.io.IOException: CreateProcess: sh -xe C:\DOKUME~1\wagnert\LOKALE~1\Temp\hudson42247.sh error=2
	at java.lang.ProcessImpl.create(Native Method)
	at java.lang.ProcessImpl.<init>(Unknown Source)
	at java.lang.ProcessImpl.start(Unknown Source)
	at java.lang.ProcessBuilder.start(Unknown Source)
	at hudson.Proc$LocalProc.<init>(Proc.java:148)
	at hudson.Proc$LocalProc.<init>(Proc.java:120)
	at hudson.Launcher$LocalLauncher.launch(Launcher.java:633)
	at hudson.Launcher$ProcStarter.start(Launcher.java:268)
	at hudson.Launcher$ProcStarter.join(Launcher.java:275)
	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:83)
	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:541)
	at hudson.model.Build$RunnerImpl.build(Build.java:165)
	at hudson.model.Build$RunnerImpl.doRun(Build.java:133)
	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:384)
	at hudson.model.Run.run(Run.java:1176)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:123)
Finished: FAILURE


So wrong path to workspace as far as I can see this. The Job wants to use the Path C:\DOKUME~1\wagnert\LOKALE~1\Temp\hudson42247.sh and does not resolve the right path to my workspace which would be C:\hudson\jobs\daiDev\workspace.

This is my first problem.

2. Missing requirements:

First I want to describe my project structure to you. Here is my eclipse folder hierarchy:
http://img217.imageshack.us/img217/8575/structurei.jpg

My com.example.mail.site is the top level feature and has a dependency to the "com.example.mail.product" feature. The "com.example.mail.product" feature is linked with the "com.example.mail" plugin and includes the "org.eclipse.rcp" feature. Each of the four products configurations has a dependency to the "com.example.mail.product" feature and one to the specified configuration feature. MAIL.DAI.DEV.product has a dependency to "com.example.configuration.dai.dev" ... Each configuration feature has a connection to one "com.example.connection ..." plugin.

That are my dependencies.
My buckminster.cspex has two actions for each product (create a normal product, create a zipped product). For example here are the actions for the MAIL.DAI.DEV Product:
<?xml version="1.0" encoding="UTF-8"?>
<cspecExtension
	xmlns:com="http://www.eclipse.org/buckminster/Common-1.0"
	xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">

	<actions>
		<public name="create.product.dai.dev" actor="ant">
            <actorProperties>
                <property key="buildFile" value="build/product.ant"/>
                <property key="targets" value="create.product"/>
            </actorProperties>
            <properties>
                <property key="profile" value="MailProfile"/>
                <property key="iu" value="MAIL.DAI.DEV"/>
            </properties>
			<prerequisites alias="repository">
				<attribute name="site.p2"/>
			</prerequisites>
            <products alias="destination" base="${buckminster.output}">
            	<path path="daiDev/"/>
            </products>
		</public>
		<public name="create.product.dai.dev.zip" actor="ant">
            <actorProperties>
                <property key="buildFileId" value="buckminster.pdetasks"/>
                <property key="targets" value="create.zip"/>
            </actorProperties>
			<prerequisites alias="action.requirements">
				<attribute name="create.product.dai.dev"/>
			</prerequisites>
            <products alias="action.output" base="${buckminster.output}">
            	<path path="daiDev.zip"/>
            </products>
		</public> 
...


I configured a Free Style Job in Hudson (without adding a shell to delete buckminster.output and temp because this doesnt work). I deleted the output and temp folder manually and started my build which does execute the following commands:

setpref targetPlatformPath="/C:/targetPlatform"
resolve ${WORKSPACE}/com.example.mail.site/site.cquery
perform com.example.mail.product#create.product.dai.dev.zip

(By the way whats the difference between resolve ... and import... )?

-> The product Build fails with the following log:
Gestartet durch Benutzer anonymous
*** Get list of all files for C:\hudson\jobs\daiDev\workspace
*** Looking for versioned files in buckminster
*** Looking for versioned files in com.example.mail.product
*** Looking for versioned files in build
*** Looking for versioned files in com.example.mail
*** Looking for versioned files in src
*** Looking for versioned files in com
*** Looking for versioned files in example
*** Looking for versioned files in mail
*** Looking for versioned files in icons
*** Looking for versioned files in META-INF
*** Looking for versioned files in .settings
*** Looking for versioned files in com.example.mail.site
*** Looking for versioned files in com.example.connection.twt.prod
*** Looking for versioned files in META-INF
*** Looking for versioned files in com.example.connection.twt.dev
*** Looking for versioned files in META-INF
*** Looking for versioned files in com.example.connection.dai.prod
*** Looking for versioned files in META-INF
*** Looking for versioned files in com.example.connection.dai.dev
*** Looking for versioned files in META-INF
*** Looking for versioned files in com.example.configuration.twt.prod
*** Looking for versioned files in com.example.configuration.twt.dev
*** Looking for versioned files in com.example.configuration.dai.prod
*** Looking for versioned files in com.example.configuration.dai.dev
*** done
*** Performing checkout
*** done
Commandline: 
java -Dbuckminster.output.root=/C:/hudson/jobs/daiDev/workspace//buckminster.output -Dbuckminster.temp.root=/C:/hudson/jobs/daiDev/workspace//buckminster.temp -jar plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -application org.eclipse.buckminster.cmdline.headless -data /C:/hudson/jobs/daiDev/workspace/ --loglevel info -S C:\hudson\jobs\daiDev\builds\2009-12-01_08-57-45/commands.txt INFO:  setpref 'targetPlatformPath=/C:/targetPlatform'
targetPlatformPath set to the value '/C:/targetPlatform'
INFO:  resolve '/C:/hudson/jobs/daiDev/workspace//com.example.mail.site/site.cquery'
INFO:  Import complete.
INFO:  perform 'com.example.mail.product#create.product.dai.dev.zip'
INFO:  [start org.eclipse.swt:osgi.bundle$3.5.1.v3555a#target.fragments]
INFO:  [end org.eclipse.swt:osgi.bundle$3.5.1.v3555a#target.fragments]
INFO:  [start org.eclipse.equinox.launcher:osgi.bundle$1.0.201.R35x_v20090715#target.fragments]
INFO:  [start org.eclipse.equinox.launcher.win32.win32.x86:osgi.bundle$1.0.200.v20090519#bundle.jar]
INFO:  [end org.eclipse.equinox.launcher.win32.win32.x86:osgi.bundle$1.0.200.v20090519#bundle.jar]
INFO:  [end org.eclipse.equinox.launcher:osgi.bundle$1.0.201.R35x_v20090715#target.fragments]
INFO:  [start org.eclipse.rcp:eclipse.feature$3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6#manifest]
INFO:  [end org.eclipse.rcp:eclipse.feature$3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6#manifest]
INFO:  [start org.eclipse.rcp:eclipse.feature$3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6#feature.jar]
INFO:  [end org.eclipse.rcp:eclipse.feature$3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6#feature.jar]
INFO:  [start com.example.connection.dai.dev:osgi.bundle$1.4.3#eclipse.build]
INFO:  [end com.example.connection.dai.dev:osgi.bundle$1.4.3#eclipse.build]
INFO:  [start com.example.connection.dai.dev:osgi.bundle$1.4.3#bundle.jar]
INFO:  [end com.example.connection.dai.dev:osgi.bundle$1.4.3#bundle.jar]
INFO:  [start com.example.configuration.dai.dev:eclipse.feature$1.4.3#manifest]
INFO:  [end com.example.configuration.dai.dev:eclipse.feature$1.4.3#manifest]
INFO:  [start com.example.configuration.dai.dev:eclipse.feature$1.4.3#feature.jar]
INFO:  [end com.example.configuration.dai.dev:eclipse.feature$1.4.3#feature.jar]
INFO:  [start com.example.connection.dai.prod:osgi.bundle$1.4.3#eclipse.build]
INFO:  [end com.example.connection.dai.prod:osgi.bundle$1.4.3#eclipse.build]
INFO:  [start com.example.connection.dai.prod:osgi.bundle$1.4.3#bundle.jar]
INFO:  [end com.example.connection.dai.prod:osgi.bundle$1.4.3#bundle.jar]
INFO:  [start com.example.configuration.dai.prod:eclipse.feature$1.4.3#manifest]
INFO:  [end com.example.configuration.dai.prod:eclipse.feature$1.4.3#manifest]
INFO:  [start com.example.configuration.dai.prod:eclipse.feature$1.4.3#feature.jar]
INFO:  [end com.example.configuration.dai.prod:eclipse.feature$1.4.3#feature.jar]
INFO:  [start com.example.connection.twt.dev:osgi.bundle$1.4.3#eclipse.build]
INFO:  [end com.example.connection.twt.dev:osgi.bundle$1.4.3#eclipse.build]
INFO:  [start com.example.connection.twt.dev:osgi.bundle$1.4.3#bundle.jar]
INFO:  [end com.example.connection.twt.dev:osgi.bundle$1.4.3#bundle.jar]
INFO:  [start com.example.configuration.twt.dev:eclipse.feature$1.4.3#manifest]
INFO:  [end com.example.configuration.twt.dev:eclipse.feature$1.4.3#manifest]
INFO:  [start com.example.configuration.twt.dev:eclipse.feature$1.4.3#feature.jar]
INFO:  [end com.example.configuration.twt.dev:eclipse.feature$1.4.3#feature.jar]
INFO:  [start com.example.connection.twt.prod:osgi.bundle$1.4.3#eclipse.build]
INFO:  [end com.example.connection.twt.prod:osgi.bundle$1.4.3#eclipse.build]
INFO:  [start com.example.connection.twt.prod:osgi.bundle$1.4.3#bundle.jar]
INFO:  [end com.example.connection.twt.prod:osgi.bundle$1.4.3#bundle.jar]
INFO:  [start com.example.configuration.twt.prod:eclipse.feature$1.4.3#manifest]
INFO:  [end com.example.configuration.twt.prod:eclipse.feature$1.4.3#manifest]
INFO:  [start com.example.configuration.twt.prod:eclipse.feature$1.4.3#feature.jar]
INFO:  [end com.example.configuration.twt.prod:eclipse.feature$1.4.3#feature.jar]
INFO:  [start org.eclipse.rcp:eclipse.feature$3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6#source.manifest]
INFO:  [end org.eclipse.rcp:eclipse.feature$3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6#source.manifest]
INFO:  [start org.eclipse.rcp:eclipse.feature$3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6#source.feature.jar]
INFO:  [end org.eclipse.rcp:eclipse.feature$3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6#source.feature.jar]
INFO:  [start com.example.configuration.dai.dev:eclipse.feature$1.4.3#source.manifest]
INFO:  [end com.example.configuration.dai.dev:eclipse.feature$1.4.3#source.manifest]
INFO:  [start com.example.configuration.dai.dev:eclipse.feature$1.4.3#source.feature.jar]
INFO:  [end com.example.configuration.dai.dev:eclipse.feature$1.4.3#source.feature.jar]
INFO:  [start com.example.configuration.dai.prod:eclipse.feature$1.4.3#source.manifest]
INFO:  [end com.example.configuration.dai.prod:eclipse.feature$1.4.3#source.manifest]
INFO:  [start com.example.configuration.dai.prod:eclipse.feature$1.4.3#source.feature.jar]
INFO:  [end com.example.configuration.dai.prod:eclipse.feature$1.4.3#source.feature.jar]
INFO:  [start com.example.configuration.twt.dev:eclipse.feature$1.4.3#source.manifest]
INFO:  [end com.example.configuration.twt.dev:eclipse.feature$1.4.3#source.manifest]
INFO:  [start com.example.configuration.twt.dev:eclipse.feature$1.4.3#source.feature.jar]
INFO:  [end com.example.configuration.twt.dev:eclipse.feature$1.4.3#source.feature.jar]
INFO:  [start com.example.configuration.twt.prod:eclipse.feature$1.4.3#source.manifest]
INFO:  [end com.example.configuration.twt.prod:eclipse.feature$1.4.3#source.manifest]
INFO:  [start com.example.configuration.twt.prod:eclipse.feature$1.4.3#source.feature.jar]
INFO:  [end com.example.configuration.twt.prod:eclipse.feature$1.4.3#source.feature.jar]
INFO:  [start com.example.mail.product:eclipse.feature$1.0.0#copy.subfeatures]
INFO:  [end com.example.mail.product:eclipse.feature$1.0.0#copy.subfeatures]
INFO:  [start com.example.mail:osgi.bundle$1.4.3#eclipse.build]
INFO:  [end com.example.mail:osgi.bundle$1.4.3#eclipse.build]
INFO:  [start com.example.mail:osgi.bundle$1.4.3#bundle.jar]
INFO:  [end com.example.mail:osgi.bundle$1.4.3#bundle.jar]
INFO:  [start com.example.mail:osgi.bundle$1.4.3#source.manifest]
INFO:  [end com.example.mail:osgi.bundle$1.4.3#source.manifest]
INFO:  [start com.example.mail:osgi.bundle$1.4.3#source.bundle.jar]
INFO:  [end com.example.mail:osgi.bundle$1.4.3#source.bundle.jar]
INFO:  [start com.example.mail.product:eclipse.feature$1.0.0#copy.plugins]
INFO:  [end com.example.mail.product:eclipse.feature$1.0.0#copy.plugins]
INFO:  [start com.example.mail.product:eclipse.feature$1.0.0#manifest]
INFO:  [end com.example.mail.product:eclipse.feature$1.0.0#manifest]
INFO:  [start com.example.mail.product:eclipse.feature$1.0.0#site.p2]
INFO:  [end com.example.mail.product:eclipse.feature$1.0.0#site.p2]
INFO:  [start com.example.mail.product:eclipse.feature$1.0.0#create.product.dai.dev]
[ant] C:\Buckminsterheadless\plugins\org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
[ant] file:/C:/hudson/jobs/daiDev/workspace/buckminster.output/com.example.mail.product_1.0.0-eclipse.feature/site.p2/
[ant] C:\hudson\jobs\daiDev\workspace\buckminster.output\com.example.mail.product_1.0.0-eclipse.feature\daiDev
[ant] Cannot complete the install because one or more required items could not be found.
[ant]  Software being installed: MAIL 1.0.0 (MAIL.DAI.DEV 1.0.0)
[ant]  Missing requirement: MAIL 1.0.0 (MAIL.DAI.DEV 1.0.0) requires 'com.example.mail.product.feature.group [1.0.0]' but it could not be found
[ant] Application failed, log file location: C:\Buckminsterheadless\configuration\1259654299859.log
ERROR: org.eclipse.core.runtime.CoreException: C:\hudson\jobs\daiDev\workspace\com.example.mail.product\build\product.ant:22: Java returned: 13
org.eclipse.core.runtime.CoreException: C:\hudson\jobs\daiDev\workspace\com.example.mail.product\build\product.ant:22: Java returned: 13
	at org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:189)
	at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:352)
	at org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:281)
	at org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:201)
	at org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:151)
	at org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:507)
	at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:335)
	at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:350)
	at org.eclipse.buckminster.core.commands.Perform.internalRun(Perform.java:118)
	at org.eclipse.buckminster.core.commands.WorkspaceCommand.run(WorkspaceCommand.java:191)
	at org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:155)
	at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:341)
	at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:135)
	at org.eclipse.buckminster.cmdline.Headless.start(Headless.java:189)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: C:\hudson\jobs\daiDev\workspace\com.example.mail.product\build\product.ant:22: Java returned: 13
	at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:622)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:455)
	at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:344)
	... 25 more
C:\hudson\jobs\daiDev\workspace\com.example.mail.product\build\product.ant:22: Java returned: 13
Caused by: 
Finished: FAILURE


If there is any more Information needed just say what you want to know.

Thanks for the support.
-TW
Re: Prdocut Build fails because of missing requirement [message #501129 is a reply to message #501120] Tue, 01 December 2009 08:34 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
Hi,

please see comments inline

TW schrieb:
> Hi,
>
> I think I cannot fix the problem on my own, even the command for
> deleting my buckminster.output and buckminster.temp doesn´t work for me
> (maybe stupid windows again?!?).
>
> I will divide my problems in two sections:
>
> 1. Cannot delete buckminster.output & buckminster.temp:
>
> Finished: FAILURE
>
> So wrong path to workspace as far as I can see this. The Job wants to
> use the Path C:\DOKUME~1\wagnert\LOKALE~1\Temp\hudson42247.sh and does
> not resolve the right path to my workspace which would be
> C:\hudson\jobs\daiDev\workspace.
>

Hudson has some build in magic to enable unix commands (like rm) on
windows machines. I don't think it's looking for your workspace at that
time of the build but for a temp file that has probably something to do
with that magic. I can't help you with that, you might want to ask in
the hudson mailinglist or just use windows commands in the shell
invocation instead of relying on broken hudson magic :)


>
> 2. Missing requirements:
>
> First I want to describe my project structure to you. Here is my eclipse
> folder hierarchy:
>
>
> My com.example.mail.site is the top level feature and has a dependency
> to the "com.example.mail.product" feature. The
> "com.example.mail.product" feature is linked with the "com.example.mail"
> plugin and includes the "org.eclipse.rcp" feature. Each of the four
> products configurations has a dependency to the
> "com.example.mail.product" feature and one to the specified
> configuration feature. MAIL.DAI.DEV.product has a dependency to
> "com.example.configuration.dai.dev" ... Each configuration feature has a
> connection to one "com.example.connection ..." plugin.
>

The feature that you call site.p2 on will not be part of the site
itself, it has just grouping functionality.
You probably want the prerequisites of your action to be
com.example.mail.site since this feature is not used itself but only to
group the contents of the site as far I can see.

Example:

<prerequisites alias="repository">
<attribute name="site.p2" component="com.example.mail.site"/>
</prerequisites>

Best regards,
Johannes
Re: Prdocut Build fails because of missing requirement [message #501136 is a reply to message #501129] Tue, 01 December 2009 09:06 Go to previous messageGo to next message
TW  is currently offline TW Friend
Messages: 62
Registered: November 2009
Member
Hi,

I did it like Ralf Ebert in his tutorial. Maybe he also made an error but I wonder why he did not get the same error.

http:// github.com/ralfebert/com.example.mail.buckminster/blob/maste r/com.example.mail.feature/buckminster.cspex

So If I add tchange my buckminster.cspex file from

<prerequisites alias="repository">
<attribute name="site.p2" "/>
</prerequisites>

to <prerequisites alias="repository">
<attribute name="site.p2" component="com.example.mail.site"/>
</prerequisites>

I think I have to add a dependency from com.example.mail.product to com.example.mail.site?
Am I right with that?
Re: Prdocut Build fails because of missing requirement [message #501141 is a reply to message #501136] Tue, 01 December 2009 09:16 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
TW schrieb:

> I think I have to add a dependency from com.example.mail.product to
> com.example.mail.site?
> Am I right with that?
>

Yes, but in the cspecx, not feature-wise.
Re: Prdocut Build fails because of missing requirement [message #501175 is a reply to message #501141] Tue, 01 December 2009 12:26 Go to previous messageGo to next message
TW  is currently offline TW Friend
Messages: 62
Registered: November 2009
Member
My .cspex file now looks like:
<?xml version="1.0" encoding="UTF-8"?>
<cspecExtension
	xmlns:com="http://www.eclipse.org/buckminster/Common-1.0"
	xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
	<dependencies>
      <dependency name="com.example.mail.site"/>
    </dependencies>
	<actions>
		<public name="create.product.dai.dev" actor="ant">
            <actorProperties>
                <property key="buildFile" value="build/product.ant"/>
                <property key="targets" value="create.product"/>
            </actorProperties>
            <properties>
                <property key="profile" value="MAIL"/>
                <property key="iu" value="MAIL.DAI.DEV"/>
            </properties>
			<prerequisites alias="repository">
				<attribute name="site.p2" component="com.example.mail.site"/>
			</prerequisites>
            <products alias="destination" base="${buckminster.output}">
            	<path path="daiDev/"/>
            </products>
		</public>
		<public name="create.product.dai.dev.zip" actor="ant">
            <actorProperties>
                <property key="buildFileId" value="buckminster.pdetasks"/>
                <property key="targets" value="create.zip"/>
            </actorProperties>
			<prerequisites alias="action.requirements">
				<attribute name="create.product.dai.dev"/>
			</prerequisites>
            <products alias="action.output" base="${buckminster.output}">
            	<path path="daiDev.zip"/>
            </products>
		</public> 
		
	</actions>
</cspecExtension>


So I added a dependency in the cpsec file.

If I run the product build, it fails:
Gestartet durch Benutzer anonymous
*** Get list of all files for C:\hudson\jobs\daiDev\workspace
*** Looking for versioned files in buckminster
*** Looking for versioned files in com.example.mail
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.mail
*** Looking for versioned files in src
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.mail\src
*** Looking for versioned files in com
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com
*** Looking for versioned files in example
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example
*** Looking for versioned files in mail
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example\mail
*** Looking for versioned files in icons
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.mail\icons
*** Looking for versioned files in META-INF
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.mail\META-INF
*** Looking for versioned files in .settings
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.mail\.settings
*** Looking for versioned files in com.example.mail.site
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.mail.site
*** Looking for versioned files in com.example.connection.twt.prod
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.connection.twt.prod
*** Looking for versioned files in META-INF
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.connection.twt.prod\META-INF
*** Looking for versioned files in com.example.connection.twt.dev
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.connection.twt.dev
*** Looking for versioned files in META-INF
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.connection.twt.dev\META-INF
*** Looking for versioned files in com.example.connection.dai.prod
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.connection.dai.prod
*** Looking for versioned files in META-INF
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.connection.dai.prod\META-INF
*** Looking for versioned files in com.example.connection.dai.dev
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.connection.dai.dev
*** Looking for versioned files in META-INF
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.connection.dai.dev\META-INF
*** Looking for versioned files in com.example.configuration.twt.prod
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.configuration.twt.prod
*** Looking for versioned files in com.example.configuration.twt.dev
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.configuration.twt.dev
*** Looking for versioned files in com.example.configuration.dai.prod
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.configuration.dai.prod
*** Looking for versioned files in com.example.configuration.dai.dev
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.configuration.dai.dev
*** Looking for versioned files in com.example.mail.product
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.mail.product
*** Looking for versioned files in build
*** Creating working directory: C:\hudson\jobs\daiDev\workspace\com.example.mail.product\build
*** done
*** Performing checkout
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\META-INF\MANIFEST.MF... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example\mail\ApplicationWorkbenchWindowAdvisor.java... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.product\.project... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.site\site.cquery... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\.classpath... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.product\MAIL.TWT.DEV.product... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example\mail\MessagePopupAction.java... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\icons\sample.icns... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.product\MAIL.TWT.PROD.product... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example\mail\ICommandIds.java... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.product\MAIL.DAI.DEV.product... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.connection.dai.dev\META-INF\MANIFEST.MF... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\icons\sample2.gif... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\plugin.xml... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example\mail\Activator.java... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.connection.twt.prod\build.properties... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.product\build\product.ant... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\.settings\org.eclipse.jdt.core.prefs... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.connection.dai.prod\.project... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.site\resources.rmap... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.connection.dai.dev\.project... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.configuration.twt.dev\.project... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.product\build.properties... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.connection.twt.prod\META-INF\MANIFEST.MF... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.configuration.dai.prod\feature.xml... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\icons\mail.ico... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.configuration.twt.dev\feature.xml... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.configuration.twt.dev\build.properties... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.connection.twt.dev\build.properties... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.connection.twt.prod\.project... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.connection.dai.dev\build.properties... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example\mail\NavigationView.java... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example\mail\ApplicationWorkbenchAdvisor.java... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.configuration.dai.dev\.project... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.connection.dai.prod\build.properties... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example\mail\ApplicationActionBarAdvisor.java... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.configuration.dai.prod\build.properties... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\splash.bmp... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example\mail\View.java... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.configuration.twt.prod\build.properties... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.connection.twt.dev\META-INF\MANIFEST.MF... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.configuration.dai.dev\build.properties... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.configuration.dai.prod\.project... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.configuration.twt.prod\feature.xml... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.site\feature.xml... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.connection.twt.dev\.project... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.product\buckminster.cspex... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.configuration.dai.dev\feature.xml... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example\mail\OpenViewAction.java... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\.project... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.connection.dai.prod\META-INF\MANIFEST.MF... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.product\MAIL.DAI.PROD.product... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.configuration.twt.prod\.project... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\build.properties... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example\mail\Perspective.java... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.site\build.properties... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.product\feature.xml... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\src\com\example\mail\Application.java... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\icons\sample3.gif... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail.site\.project... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\product_lg.gif... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\icons\sample.gif... ok
*** done
Commandline: 
java -Dbuckminster.output.root=/C:/hudson/jobs/daiDev/workspace//buckminster.output -Dbuckminster.temp.root=/C:/hudson/jobs/daiDev/workspace//buckminster.temp -jar plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -application org.eclipse.buckminster.cmdline.headless -data /C:/hudson/jobs/daiDev/workspace/ --loglevel info -S C:\hudson\jobs\daiDev\builds\2009-12-01_13-15-23/commands.txt INFO:  setpref 'targetPlatformPath=C:/targetPlatform'
targetPlatformPath set to the value 'C:/targetPlatform'
INFO:  resolve '/C:/hudson/jobs/daiDev/workspace//com.example.mail.site/site.cquery'
ERROR   [0000] : No suitable provider for component com.example.mail.site was found in resourceMap file:/C:/hudson/jobs/daiDev/workspace/com.example.mail.site/resources.rmap
  ERROR   [0000] : No suitable provider for component com.example.mail.site was found in searchPath resources
    ERROR   [0000] : Resolution attempt ended with exception: Provider local(file:///C:/hudson/jobs/daiDev/workspace/com.example.mail.site/): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider local(file:///C:/hudson/jobs/daiDev/workspace/com.example.mail.site/): Missing CSpec source required by component type osgi.bundle
Finished: FAILURE


When I had these error in an other thread, I was not using starteam (now I am) or hudson did not get the target plaform (now it does).

But I don´t know whats the problem now.

-> If I add more information to my .cspex file to describe the dependency more detailed

...
<dependencies> 
      <dependency name="com.example.mail.site" componentType="eclipse.feature" versionDesignator="1.0.0" versionType="OSGi"/>
    </dependencies>
...


The build fails with
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\product_lg.gif... ok
[co] C:\hudson\jobs\daiDev\workspace\com.example.mail\icons\sample.gif... ok
*** done
Commandline: 
java -Dbuckminster.output.root=/C:/hudson/jobs/daiDev/workspace//buckminster.output -Dbuckminster.temp.root=/C:/hudson/jobs/daiDev/workspace//buckminster.temp -jar plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -application org.eclipse.buckminster.cmdline.headless -data /C:/hudson/jobs/daiDev/workspace/ --loglevel info -S C:\hudson\jobs\daiDev\builds\2009-12-01_13-42-02/commands.txt INFO:  setpref 'targetPlatformPath=C:/targetPlatform'
targetPlatformPath set to the value 'C:/targetPlatform'
INFO:  import '/C:/hudson/jobs/daiDev/workspace//com.example.mail.site/site.cquery'
Circular component dependency detected. Chain is com.example.mail.site -> com.example.mail.product -> com.example.mail.site
Finished: FAILURE


But in my i have to add a feature wise dependency from com.example.mail.site -> com.example.mail.product

[Updated on: Tue, 01 December 2009 12:48]

Report message to a moderator

Re: Prdocut Build fails because of missing requirement [message #501183 is a reply to message #501175] Tue, 01 December 2009 13:10 Go to previous messageGo to next message
TW  is currently offline TW Friend
Messages: 62
Registered: November 2009
Member
It´s me ... again ^^

So I´ve found now a solution, but am not sure If this solution is good.

I wrote in my last post, that there was a dependency chain, when I tried to add a dependency from com.example.mail.product to com.example.mail.site.

Johannes told me to set my prerequisites to the component="com.example.mail.site".

This didn´t work because of the chain of dependencies.

So I cut the build folder (with the ant skript) and the buckminster.cspex to my com.example.mail.site feature, removed the component="com.example.mail.site" (because now the buckminster.cspex is located in com.example.mail.site).

In Hudson I call:
perform com.example.mail.site#create.product.dai.dev

instead of
perform com.example.mail.product#create.product.dai.dev

and the build worked Very Happy.

Now I´m not sure if this is kind of a hack or something? Maybe someone can tell me if there is another solution or if what i did was right?

Thanks
Re: Prdocut Build fails because of missing requirement [message #501185 is a reply to message #501175] Tue, 01 December 2009 13:01 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
What's the pysical location of the project that contains the
com.example.mail.site feature?
Re: Prdocut Build fails because of missing requirement [message #501189 is a reply to message #501185] Tue, 01 December 2009 13:28 Go to previous messageGo to next message
TW  is currently offline TW Friend
Messages: 62
Registered: November 2009
Member
Physical location ?

On my hard drive its located in a hudson job:
C:\hudson\jobs\daiDev\workspace\com.example.mail.site

Did you mean that?
Re: Prdocut Build fails because of missing requirement [message #501198 is a reply to message #501183] Tue, 01 December 2009 14:02 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
>
> Now I´m not sure if this is kind of a hack or something? Maybe someone
> can tell me if there is another solution or if what i did was right?
>

That's fine. It's really all about defining a configuration where all
product requirements are fullfilled by the repository created with
site.p2. Since site.p2 ommits the feature it's been invoked on, you can
not include this feature into the product, so I'd say your approach is fine.


Best regards,
Johannes
Re: Prdocut Build fails because of missing requirement [message #501199 is a reply to message #501198] Tue, 01 December 2009 14:13 Go to previous message
TW  is currently offline TW Friend
Messages: 62
Registered: November 2009
Member
Hi,

ok everything works now.
Thanks again.

I looked at your tutorial in eclipsepedia and saw, that you did it the way you described it to me.

I think Ralf Ebert made an error here.
He did it like I did, if you look at his structure:
http://www.ralfebert.de/blog/eclipsercp/rcp_builds/mail_files.png

Im not sure why this works for him, maybe his buckminster.output was not cleaned like mine and he also had luck with some builds.

I think its better to locate the .cspex file in the *.site feature, because I also called the p2.site action from here. So why shouldn't i call my create.product action from this feature.

Thanks again for the great help. I hope I am finished with buckminster, hudson now and do not have to stalk you with questions;)
Previous Topic:Shipping a configured eclipse IDE to my colleagues
Next Topic:Ant relative path issue in a buckminster.prebind
Goto Forum:
  


Current Time: Wed Apr 24 16:13:22 GMT 2024

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

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

Back to the top