Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] Issue getting the p2 productPublisher / Director to correctly install a RCP app

Hi All,

I've read the wikis, the online help, etc. but I'm still struggling to get p2 to provision + install a RCP product.  All the p2 commands execute without error, just the native application launcher isn't installed using p2, where it is using the PDE.

I created a very simple helloworld IApplication which demonstrates the issue:

Using 3.7.0:

git clone git@xxxxxxxxxx:jamesblackburn/com.foo.git

1) Open the com.foo project in eclipse.  
2) Right click on foo.product > Export > Eclipse Product > Root Directory: foo_rel
3) Finish

> ls foo_rel/
configuration  foo  foo.ini  p2  plugins
> ./foo_rel/foo
HelloWorld!

If I try to do the same thing using p2 (just going by the docs on the wiki/help:
http://wiki.eclipse.org/Equinox/p2/Publisher
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_p2_builds.htm)


#Create metadata and artifact p2 repo from the release:
./builder/eclipse -nosplash -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher \
    -artifactRepository file://`pwd`/foo_repo/ -metadataRepository file://`pwd`/foo_repo/ \
    -source ./foo_rel \
    -append -publishArtifacts

# Publish the product
./builder/eclipse  -nosplash -application org.eclipse.equinox.p2.publisher.ProductPublisher     \
    -artifactRepository file://`pwd`/foo_repo/ -metadataRepository file://`pwd`/foo_repo/   \
    -productFile `pwd`/com.foo/foo.product  \
    -executable delta-pack/features/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart/ \
    -flavor tooling   -append -publishArtifacts -configs ANY
  
#Install the application
./builder/eclipse \
   -nosplash \
   -application org.eclipse.equinox.p2.director \
   -repository file://`pwd`/foo_repo/ \
   -installIU com.foo.product \
   -profile FooProfile \
   -profileProperties org.eclipse.update.install.features=false \
   -destination foo \
   -bundlepool foo \
   -p2.os linux \
   -p2.ws gtk \
   -p2.arch x86_64 \
   -roaming 

> ls foo
artifacts.xml  configuration  eclipse.ini  p2  plugins

There's no native 'foo' executable. 

Does anyone know what I'm doing wrong?

Cheers,
James

Back to the top