Home » Archived » Buckminster » Buckminster calling product.ant (from example)(Error while creating the plugin)
Buckminster calling product.ant (from example) [message #988919] |
Mon, 03 December 2012 17:26 |
Andrea Richiardi Messages: 64 Registered: August 2012 |
Member |
|
|
Hello Buckyers,
I am trying, as you can see from other posts, to headlessly materialize one plugin in a p2 website, given a custom Target Platform.
I had to go trough a lot of different problems, partly because I am a Buckminster newbie, but I am probably close to the solution.
Now, the command that fails now is:
buckminster -L DEBUG perform com.myproduct.customization#create.product
The command is basically a replica of the Buckminster Releng example, where the build/ folder contains the product.ant file (unchanged).
The error I get is the following:
[ant] C:\buckminster\plugins\org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
[ant] file:/C:/Users/ARICHI~1/AppData/Local/Temp/buckminster/build/com.myproduct.customization_1.3.0-eclipse.feature/site.p2/
[ant] C:\Users\ARICHI~1\AppData\Local\Temp\buckminster\build\com.myproduct.customization_1.3.0-eclipse.feature\custom
ERROR: org.eclipse.core.runtime.CoreException: C:\Users\arichiardi\workspace\features\com.myproduct.customization\build\product.ant:22: Java returned: 13
org.eclipse.core.runtime.CoreException: C:\Users\arichiardi\workspace\features\com.myproduct.customization\build\product.ant:22: Java returned: 13
at org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:167)
at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322)
at org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:254)
at org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:195)
at org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:143)
at org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:454)
at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:293)
at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:305)
at org.eclipse.buckminster.core.commands.Perform.internalRun(Perform.java:108)
at org.eclipse.buckminster.core.commands.WorkspaceCommand.run(WorkspaceCommand.java:91)
at org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:200)
at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:350)
at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:145)
at org.eclipse.buckminster.cmdline.Headless.start(Headless.java:165)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: C:\Users\arichiardi\workspace\features\com.myproduct.customization\build\product.ant:22: Java returned: 13
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor7.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:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
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:1251)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)
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:318)
... 25 more
Doing full workspace refresh
Waiting for jobs to end
C:\Users\arichiardi\workspace\features\com.myproduct.customization\build\product.ant:22: Java returned: 13
Caused by:
The last "Caused by:" is empty, but you can see that it fails at line 22 of the ant script, which is:
<java jar="${equinox.launcher.jar}" fork="true" failonerror="true" >
Again, I am headless here...why is it failing on that line?
Thank you very much!
Andrea.
[Updated on: Mon, 03 December 2012 17:28] Report message to a moderator
|
|
|
Re: Buckminster calling product.ant (from example) [message #988980 is a reply to message #988919] |
Tue, 04 December 2012 07:12 |
|
Hi Andrea,
Not sure what's going on here. Can you please turn ant-debugging on an
try again?
buckminster -L ant=DEBUG,console=DEBUG perform
com.myproduct.customization#create.product
- thomas
On 2012-12-03 18:26, Andrea Richiardi wrote:
> Hello Buckyers,
>
> I am trying, as you can see from other posts, to headlessly materialize
> one plugin in a p2 website, given a custom Target Platform.
>
> I had to go trough a lot of different problems, partly because I am a
> Buckminster newbie, but I am probably close to the solution.
>
> Now, the command that fails now is:
> buckminster -L DEBUG perform com.myproduct.customization#create.product
>
> The command is basically a replica of the Buckminster Releng example,
> where the build/ folder contains the product.ant file (unchanged).
>
> The error I get is the following:
> [ant]
> C:\buckminster\plugins\org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
>
> [ant]
> file:/C:/Users/ARICHI~1/AppData/Local/Temp/buckminster/build/com.biomet.rac.customization_8000.3.0-eclipse.feature/site.p2/
>
> [ant]
> C:\Users\ARICHI~1\AppData\Local\Temp\buckminster\build\com.biomet.rac.customization_8000.3.0-eclipse.feature\custom
>
> ERROR: org.eclipse.core.runtime.CoreException:
> C:\Users\arichiardi\workspace\features\com.biomet.rac.customization\build\product.ant:22:
> Java returned: 13
> org.eclipse.core.runtime.CoreException:
> C:\Users\arichiardi\workspace\features\com.biomet.rac.customization\build\product.ant:22:
> Java returned: 13
> at
> org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:167)
>
> at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322)
> at
> org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:254)
>
> at
> org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:195)
>
> at
> org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:143)
>
> at
> org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:454)
>
> at
> org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:293)
>
> at
> org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:305)
>
> at
> org.eclipse.buckminster.core.commands.Perform.internalRun(Perform.java:108)
> at
> org.eclipse.buckminster.core.commands.WorkspaceCommand.run(WorkspaceCommand.java:91)
>
> at
> org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:200)
>
> at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:350)
> at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:145)
> at
> org.eclipse.buckminster.cmdline.Headless.start(Headless.java:165)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>
> 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:353)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
>
> 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:629)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
> Caused by:
> C:\Users\arichiardi\workspace\features\com.biomet.rac.customization\build\product.ant:22:
> Java returned: 13
> at org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor7.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:392)
> at org.apache.tools.ant.Target.performTasks(Target.java:413)
> at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
> 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:1251)
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672)
>
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)
>
> 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:318)
> ... 25 more
> Doing full workspace refresh
> Waiting for jobs to end
> C:\Users\arichiardi\workspace\features\com.biomet.rac.customization\build\product.ant:22:
> Java returned: 13
> Caused by:
>
> The last "Caused by:" is empty, but you can see that it fails at line 22
> of the ant script, which is:
> <java jar="${equinox.launcher.jar}" fork="true" failonerror="true" >
>
> Again, I am headless here...why is it failing on that line?
>
> Thank you very much! :) Andrea.
|
|
|
Re: Buckminster calling product.ant (from example) [message #989016 is a reply to message #988919] |
Tue, 04 December 2012 10:31 |
|
Usually, when you get Java error 13 during creating a product it's
because, during p2 installation of your product, some bundles are
missing in the created p2 site (the one created by p2.site action and
that is used by p2 director to build your product)... if you enable
further debugging info as Thomas suggested you should get more
information, and then searching for 'requires' should show you what
requires what...
hope this helps
Lorenzo
On 12/03/2012 06:26 PM, Andrea Richiardi wrote:
> Hello Buckyers,
>
> I am trying, as you can see from other posts, to headlessly materialize
> one plugin in a p2 website, given a custom Target Platform.
>
> I had to go trough a lot of different problems, partly because I am a
> Buckminster newbie, but I am probably close to the solution.
>
> Now, the command that fails now is:
> buckminster -L DEBUG perform com.myproduct.customization#create.product
>
> The command is basically a replica of the Buckminster Releng example,
> where the build/ folder contains the product.ant file (unchanged).
>
> The error I get is the following:
> [ant]
> C:\buckminster\plugins\org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
>
> [ant]
> file:/C:/Users/ARICHI~1/AppData/Local/Temp/buckminster/build/com.biomet.rac.customization_8000.3.0-eclipse.feature/site.p2/
>
> [ant]
> C:\Users\ARICHI~1\AppData\Local\Temp\buckminster\build\com.biomet.rac.customization_8000.3.0-eclipse.feature\custom
>
> ERROR: org.eclipse.core.runtime.CoreException:
> C:\Users\arichiardi\workspace\features\com.biomet.rac.customization\build\product.ant:22:
> Java returned: 13
> org.eclipse.core.runtime.CoreException:
> C:\Users\arichiardi\workspace\features\com.biomet.rac.customization\build\product.ant:22:
> Java returned: 13
> at
> org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:167)
>
> at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322)
> at
> org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:254)
>
> at
> org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:195)
>
> at
> org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:143)
>
> at
> org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:454)
>
> at
> org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:293)
>
> at
> org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:305)
>
> at
> org.eclipse.buckminster.core.commands.Perform.internalRun(Perform.java:108)
> at
> org.eclipse.buckminster.core.commands.WorkspaceCommand.run(WorkspaceCommand.java:91)
>
> at
> org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:200)
>
> at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:350)
> at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:145)
> at org.eclipse.buckminster.cmdline.Headless.start(Headless.java:165)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>
> 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:353)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
>
> 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:629)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
> Caused by:
> C:\Users\arichiardi\workspace\features\com.biomet.rac.customization\build\product.ant:22:
> Java returned: 13
> at org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor7.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:392)
> at org.apache.tools.ant.Target.performTasks(Target.java:413)
> at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
> 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:1251)
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672)
>
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)
>
> 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:318)
> ... 25 more
> Doing full workspace refresh
> Waiting for jobs to end
> C:\Users\arichiardi\workspace\features\com.biomet.rac.customization\build\product.ant:22:
> Java returned: 13
> Caused by:
>
> The last "Caused by:" is empty, but you can see that it fails at line 22
> of the ant script, which is:
> <java jar="${equinox.launcher.jar}" fork="true" failonerror="true" >
>
> Again, I am headless here...why is it failing on that line?
>
> Thank you very much! :) Andrea.
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
| |
Re: Buckminster calling product.ant (from example) [message #989425 is a reply to message #989330] |
Thu, 06 December 2012 08:03 |
|
On 2012-12-05 17:30, Andrea Richiardi wrote:
> Thomas Hallgren wrote on Tue, 04 December 2012 02:12
>> Hi Andrea,
>>
>> Not sure what's going on here. Can you please turn ant-debugging on an
>> try again?
>>
>> buckminster -L ant=DEBUG,console=DEBUG perform
>> com.myproduct.customization#create.product
>>
>> - thomas
>>
>>
>> On 2012-12-03 18:26, Andrea Richiardi wrote:
>> > Hello Buckyers,
>> [...]
>> > Thank you very much! :) Andrea.
>
>
> I receive:
> org.eclipse.buckminster.cmdline.parser.InvalidOptionValueException: The
> value for option 'L' is invalid:ant
>
If you are on Windows (where the command line interpreter splits
arguments on both white space and '=') you'll need to quote the argument
passed to the -L option:
buckminster -L "ant=DEBUG,console=DEBUG" perform
> A problem in my buckminster version?
No, this functionality has been present for some time now.
- thomas
|
|
| |
Goto Forum:
Current Time: Mon Dec 09 08:33:34 GMT 2024
Powered by FUDForum. Page generated in 0.03789 seconds
|