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/

1) Open the 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

If I try to do the same thing using p2 (just going by the docs on the wiki/help:

#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`/  \
    -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 \
   -profile FooProfile \
   -profileProperties org.eclipse.update.install.features=false \
   -destination foo \
   -bundlepool foo \
   -p2.os linux \ gtk \
   -p2.arch x86_64 \

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

There's no native 'foo' executable. 

Does anyone know what I'm doing wrong?


Back to the top