Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Create p2 site: ProductPublisher can't find the product file [SOLVED]
Create p2 site: ProductPublisher can't find the product file [SOLVED] [message #1810172] Fri, 02 August 2019 08:48 Go to next message
Ismael Olea is currently offline Ismael OleaFriend
Messages: 38
Registered: April 2015
Location: Spain
Member

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

Re: Create p2 site: ProductPublisher can't find the product file [message #1810260 is a reply to message #1810172] Tue, 06 August 2019 08:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33224
Registered: July 2009
Senior Member
Yes, I believe these should be file system paths and not URIs. Any FileNotFoundException you see where the path isn't properly a file sytem path will indicate that you should have passed a file system path and not a URI....

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Create p2 site: ProductPublisher can't find the product file [message #1810262 is a reply to message #1810260] Tue, 06 August 2019 08:59 Go to previous message
Ismael Olea is currently offline Ismael OleaFriend
Messages: 38
Registered: April 2015
Location: Spain
Member

Thanks Ed, you were right.

Seems weird to me that all the other path parameters required by ProductPublisher, FeaturesAndBundlesPublisher and CategoryPublisher are URIs but... who knows!

:)
Previous Topic:Add "DynamicImport-Package" at runtime / by API?
Next Topic:Problem mirroring a p2 repository
Goto Forum:
  


Current Time: Sun Oct 06 20:14:19 GMT 2024

Powered by FUDForum. Page generated in 0.04538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top