Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Buckminster qualifier replacement last revision SVN
Buckminster qualifier replacement last revision SVN [message #893766] Thu, 05 July 2012 13:33 Go to next message
Fabian Ruckwied is currently offline Fabian RuckwiedFriend
Messages: 10
Registered: July 2012
Location: Stuttgart, Germany
Junior Member
Hi there,

I setup a Jenkins CI-Server to build a signed site for Java Web Start.
After checkout from SVN Buckminster builds jars and signs it. After that an ANT-task generates a JNLP, another includes all stuff in WAR-file and puts it on the application server. Installing via Web Start works fine, Application is running....

Everything is nearly done, but i cant manage the qualifier.replacement for last revision. Other replacemts like build timestamp work.
Buckminster options:

importtargetdefinition -A '${WORKSPACE}/com.project.example.site/target_platform/dpsLinux.target'
import '${WORKSPACE}/com.project.example.site/site.cquery'

build

perform -D qualifier.replacement.*=generator:lastrevision -D generator.lastrevision.format=r{0,number,00000} -D target.os=win32 -D target.ws=win32 -D target.arch=x86 com.project.example.site#site.signed


What to do to make Buckminster get the last revision number and replace the qualifier ?


Thanks for your help.
Regards, Fabian



UPDATE:

Is Buckminster missing a plugin ?

Jenkins Consolelog:

INFO: perform '-D' 'qualifier.replacement.*=generator:lastrevision' '-D' 'generator.lastrevision.format=r{0,number,00000}' '-D' 'target.os=win32' '-D' 'target.ws=win32' '-D' 'target.arch=x86' 'com.project.example.site#site.p2'

INFO: [start org.eclipse.update.ui.nl:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [end org.eclipse.update.ui.nl:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [start org.eclipse.update.ui.nl:osgi.bundle$1.0.0.qualifier#bundle.jar]

INFO: [end org.eclipse.update.ui.nl:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start org.eclipse.core.contenttype.nl:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [end org.eclipse.core.contenttype.nl:osgi.bundle$1.0.0.qualifier#eclipse.build]
INFO: [start org.eclipse.core.contenttype.nl:osgi.bundle$1.0.0.qualifier#bundle.jar]
...
...
...
...
...
...
INFO: [start org.eclipse.ui.nl:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [end org.eclipse.ui.nl:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start com.project.example.main:osgi.bundle$1.0.0.qualifier#bundle.jar]

INFO: [end com.project.example.main:osgi.bundle$1.0.0.qualifier#bundle.jar]
INFO: [start com.project.example.feature:eclipse.feature$1.0.0.qualifier#manifest]

[ant] ERROR: Unable to qualify version
[ant] org.eclipse.core.runtime.CoreException: Missing qualifier generator for id lastrevision
[ant] at org.eclipse.buckminster.runtime.BuckminsterException.fromMessage(BuckminsterException.java:57)
[ant] at org.eclipse.buckminster.runtime.BuckminsterException.fromMessage(BuckminsterException.java:53)
[ant] at org.eclipse.buckminster.core.CorePlugin.getQualifierGenerator(CorePlugin.java:434)
[ant] at org.eclipse.buckminster.ant.tasks.VersionQualifierTask.replaceQualifier(VersionQualifierTask.java:117)
[ant] at org.eclipse.buckminster.pde.tasks.FeatureConsolidator.consolidateFeatureVersion(FeatureConsolidator.java:109)
[ant] at org.eclipse.buckminster.pde.tasks.FeatureConsolidator.run(FeatureConsolidator.java:88)
[ant] at org.eclipse.buckminster.pde.ant.FeatureConsolidatorTask.execute(FeatureConsolidatorTask.java:92)
[ant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[ant] at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
[ant] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ant] at java.lang.reflect.Method.invoke(Method.java:597)
[ant] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[ant] at org.apache.tools.ant.Task.perform(Task.java:348)
[ant] at org.apache.tools.ant.Target.execute(Target.java:390)
[ant] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[ant] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[ant] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[ant] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[ant] at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[ant] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[ant] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:665)
[ant] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)
[ant] at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
[ant] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ant] at java.lang.reflect.Method.invoke(Method.java:597)
[ant] at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318)
[ant] at org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:254)
[ant] at org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:195)
[ant] at org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:143)
[ant] at org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:454)
[ant] at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:293)
[ant] at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:305)
[ant] at org.eclipse.buckminster.core.commands.Perform.internalRun(Perform.java:108)
[ant] at org.eclipse.buckminster.core.commands.WorkspaceCommand.run(WorkspaceCommand.java:91)
[ant] at org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:200)
[ant] at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:350)
[ant] at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:145)
[ant] at org.eclipse.buckminster.cmdline.Headless.start(Headless.java:165)
[ant] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
[ant] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
[ant] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
[ant] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
[ant] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
[ant] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ant] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ant] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ant] at java.lang.reflect.Method.invoke(Method.java:597)
[ant] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
[ant] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
[ant] at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
[ant] at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
INFO: [end com.project.example.feature:eclipse.feature$1.0.0.qualifier#manifest]
INFO: [start com.project.example.feature:eclipse.feature$1.0.0.qualifier#feature.jar]

INFO: [end com.project.example.feature:eclipse.feature$1.0.0.qualifier#feature.jar]
INFO: [start com.project.example.site:eclipse.feature$1.0.0.qualifier#copy.subfeatures]
INFO: [end com.project.example.site:eclipse.feature$1.0.0.qualifier#copy.subfeatures]
INFO: [start com.project.example.site:eclipse.feature$1.0.0.qualifier#copy.plugins]

INFO: [end com.project.example.site:eclipse.feature$1.0.0.qualifier#copy.plugins]
INFO: [start com.project.example.site:eclipse.feature$1.0.0.qualifier#manifest]



Does anybody know about this issue ?

[Updated on: Tue, 10 July 2012 09:24]

Report message to a moderator

Re: Buckminster qualifier replacement last revision SVN [message #894717 is a reply to message #893766] Tue, 10 July 2012 09:14 Go to previous messageGo to next message
Fabian Ruckwied is currently offline Fabian RuckwiedFriend
Messages: 10
Registered: July 2012
Location: Stuttgart, Germany
Junior Member
No Message Body

[Updated on: Tue, 10 July 2012 09:24]

Report message to a moderator

Re: Buckminster qualifier replacement last revision SVN [message #897546 is a reply to message #894717] Tue, 24 July 2012 13:16 Go to previous message
Fabian Ruckwied is currently offline Fabian RuckwiedFriend
Messages: 10
Registered: July 2012
Location: Stuttgart, Germany
Junior Member
RESOLVED

Get revision number directly from Jenkins:

perform -D qualifier.replacement.*=${SVN_REVISION} com.project.example.site#site.signed
Previous Topic:No resolve against targetplatform
Next Topic:Missing qualifier generator for id lastrevision
Goto Forum:
  


Current Time: Fri Apr 26 01:15:38 GMT 2024

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

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

Back to the top