Hi:
I'm creating an own testing p2 repo but I'm having a problem with ProductPublisher reading the product description file.
This is how I call ProductPublisher:
eclipse \
-application org.eclipse.equinox.p2.publisher.ProductPublisher \
-metadataRepository file:/home/olea/epf-p2/ \
-artifactRepository file:/home/olea/epf-p2/ \
-productFile file:/home/olea/git/epf-repos/org.eclipse.epf.composer/1.5/plugins/org.eclipse.epf.rcp.ui/composer.product \
-executables file:/home/olea/bin/epf-composer-1.5.2-linux/epf \
-flavor tooling \
-configs ANY \
-compress \
-nosplash \
-append
This is the the content of composer.product:
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>
<product name="Eclipse Process Framework Composer" uid="org.eclipse.epf" id="org.eclipse.epf.rcp.ui.composer" application="org.eclipse.epf.rcp.ui.MainApplication" version="1.5.1" useFeatures="true" includeLaunchers="true">
<aboutInfo>
<image path="icons/about.gif"/>
<text>
%aboutText
</text>
</aboutInfo>
<configIni use="default">
<win32>/org.eclipse.epf.rcp.ui/config/rcp_packaging/config.ini</win32>
</configIni>
<launcherArgs>
<programArgs>-data @user.home/EPF/workspace.151</programArgs>
<vmArgs>-Xms64m -Xmx512m</vmArgs>
</launcherArgs>
<windowImages i16="/org.eclipse.epf.rcp.ui/icons/full/obj16/product.gif" i32="/org.eclipse.epf.rcp.ui/icons/full/obj32/product32.gif"/>
<splash
startupProgressRect="0,280,455,15"
startupMessageRect="7,220,441,20"
startupForegroundColor="C8D5EA" />
<launcher name="epf">
<solaris/>
<win useIco="false">
<bmp/>
</win>
</launcher>
<vm>
</vm>
<plugins>
</plugins>
<features>
<feature id="org.eclipse.epf.product.feature" version="1.5.0.qualifier"/>
</features>
</product>
And this is the output:
Generating metadata for ..
An error has occurred while loading product file file:/home/olea/git/epf-repos/org.eclipse.epf.composer/1.5/plugins/org.eclipse.epf.rcp.ui/composer.product. Exception details: java.io.FileNotFoundException: file:/home/olea/git/epf-repos/org.eclipse.epf.composer/1.5/plugins/org.eclipse.epf.rcp.ui/composer.product (No such file or directory).
And yes, I double checked the file exists:
$ ls -l /home/olea/git/epf-repos/org.eclipse.epf.composer/1.5/plugins/org.eclipse.epf.rcp.ui/composer.product
-rw-rw-r-- 1 olea olea 1229 jun 12 10:43 /home/olea/git/epf-repos/org.eclipse.epf.composer/1.5/plugins/org.eclipse.epf.rcp.ui/composer.product
I'm misusing the -productFile parameter? Is it some kind a namespace issue? Maybe I'm using a wrong product file syntax?
Thanks in advance.
[Updated on: Tue, 06 August 2019 08:59]
Report message to a moderator