[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] p2 publication queries

We are most interested in the p2.publish.featuresAndBundles task. Later we may also need a way to resolve dependencies from p2, but that is lower priority.

Glyn
On 11 Jun 2010, at 02:49, Pascal Rapicault wrote:

>> In addition, we are wanting to use the p2 ant tasks and we can't get them going (most nested stack trace from v3.5.2 below, v3.6RC4 fails and gives the impression an OSGi environment needs to be set up in advance). Is it necessary to set up some kind of OSGi environment prior to using these ant tasks? Are there examples of the use of these ant tasks, preferably in live Eclipse projects?
> 	The Eclipse SDK itself uses some / most of these tasks. They are unfortunately bound to Ant and OSGi because p2 is written using OSGi and we never really had a request / need to decouple them from OSGi.  I'm not quite sure how tight is our coupling with OSGi but I think it is not too bad especially since we stopped using OSGi services everywhere.
> 	Which tasks are you interested in?
> 
>> 
>> Many thanks,
>> Glyn
>> 
>> [1] http://www.eclipse.org/forums/index.php?t=msg&th=169631&start=0
>> [2] http://eclipse.org/virgo/
>> [3] http://wiki.eclipse.org/Virgo/Source
>> [4] https://bugs.eclipse.org/bugs/show_bug.cgi?id=311697#c1
>> 
>> java.lang.NullPointerException
>>       at org.eclipse.equinox.p2.publisher.Publisher.loadArtifactRepository(Publisher.java:142)
>>       at org.eclipse.equinox.p2.publisher.Publisher.createArtifactRepository(Publisher.java:104)
>>       at org.eclipse.equinox.internal.p2.publisher.ant.AbstractPublishTask.initializeRepositories(AbstractPublishTask.java:93)
>>       at org.eclipse.equinox.internal.p2.publisher.ant.FeaturesAndBundlesPublisherTask.execute(FeaturesAndBundlesPublisherTask.java:29)
>>       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>>       at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>       at java.lang.reflect.Method.invoke(Method.java:597)
>>       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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
>>       at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>>       at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
>>       at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:289)
>>       at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:208)
>>       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>>       at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>       at java.lang.reflect.Method.invoke(Method.java:597)
>>       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.taskdefs.Sequential.execute(Sequential.java:62)
>>       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>>       at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>       at java.lang.reflect.Method.invoke(Method.java:597)
>>       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.taskdefs.MacroInstance.execute(MacroInstance.java:394)
>>       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>>       at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>       at java.lang.reflect.Method.invoke(Method.java:597)
>>       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.apache.tools.ant.Project.executeTargets(Project.java:1189)
>>       at org.apache.tools.ant.Main.runBuild(Main.java:758)
>>       at org.apache.tools.ant.Main.startAnt(Main.java:217)
>>       at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>>       at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>> _______________________________________________
>> p2-dev mailing list
>> p2-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/p2-dev
> 
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev