Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » p2 director issue - "binary" and "ini" are missing
p2 director issue - "binary" and "ini" are missing [message #37578] Sat, 13 December 2008 08:32 Go to next message
Eclipse UserFriend
Originally posted by: michael.zend.com

Hi All,

I think that I've created a good repository using p2 generator:

1. I've extracted non-p2 application using the following layout (I've looked
how PDE builder does this):

/tmp/App_source/
plugins/
features/
App/
App <-- executable
App.ini
configuration
....

2. My product file is looks like this:

<product name="%productName" id="com.my.app"
application="org.eclipse.ui.ide.workbench" version="1.0.0"
useFeatures="true">
<configIni use="default">
</configIni>
.... branding skipped ...
<features>
.... all features my product includes
</features>
</product>


3. Then I've run the following two commands:

~/devenv.michael/build/eclipse/eclipse -vm
/opt/jdk1.5.0_12/bin/java -application
org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -nosplash -debug
-consoleLog --launcher.suppressErrors \
-source /tmp/App_source -p2.os linux -p2.ws gtk -p2.arch
x86_64 -metadataRepository file:/tmp/repo -metadataRepositoryName "My
Repository" -artifactRepository file:/tmp/repo \
-artifactRepositoryName "My
Repository" -noDefaultIUs -append -compress -publishArtifacts -publishArtifactRepository
-vmargs -Xmx256m

~/devenv.michael/build/eclipse/eclipse -vm
/opt/jdk1.5.0_12/bin/java -application
org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -nosplash -debug
-consoleLog --launcher.suppressErrors \
-config /tmp/App_source/App -exe /tmp/App_source/App/App -productFile
~/devenv.michael/build/plugins/com.my.app/App.product -launcherConfig
linux_gtk_x86_64 \
-p2.os linux -p2.ws gtk -p2.arch x86_64 -metadataRepository
file:/tmp/repo -metadataRepositoryName "My Repository" -artifactRepository
file:/tmp/repo \
-artifactRepositoryName "My
Repository" -append -compress -publishArtifacts -publishArtifactRepository -vmargs
-Xmx256m

4. The repository was created successfully (no errors reported), as follows:

/tmp/repo
plugins/ <--- all my plugins including dependencies
features/ <--- all my features including dependencies
binary/
com.my.app.launcher.gtk.linux.x86_64_6.1.0 <--- Zip containing my App
executable, ini file, configuration, etc...
content.jar
artifacts.jar


Now, I'm running p2 director in order to extract my application from the
repository:

1. Run the following command:

~/devenv.michael/build/eclipse/eclipse -vm
/opt/jdk1.5.0_12/bin/java -application
org.eclipse.equinox.p2.director.app.application -nosplash --launcher.suppressErrors
-consoleLog -debug \
-metadataRepository file:/tmp/repo -artifactRepository
file:/tmp/repo -installIU com.my.app -version 1.0.0 -roaming -profile
AppProfile -profileProperties org.eclipse.update.install.features=true \
-destination /tmp/App -bundlepool /tmp/App -p2.os linux -p2.ws
gtk -p2.arch x86_64 -vmargs -Declipse.p2.data.area=/tmp/App/p2 -Xmx256m

2. The output from the command was:

Installing com.my.app 1.0.0.
Operation completed in 76519 ms.

3. When looking at the destination directory /tmp/App, I find the following:

/tmp/App/
artifacts.xml
configuration
dropins
eclipse.ini
features
p2
plugins

First of all, there's no App executable and icons. Furthermore eclipse.ini
is not named like "App.ini"

Do you see any issues in the procedure presented above?

Thanks in advance!

--
Best regards,
Michael
Re: p2 director issue - "binary" and "ini" are missing [message #38021 is a reply to message #37578] Wed, 17 December 2008 02:43 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Michael,

Did you get a response to this ?

As a workaround we're copying the executable from the eclipse delta pack
and renaming it to what we need it to be.

-- Ketan

On 13/12/08 14:02, Michael Spector wrote:
> Hi All,
>
> I think that I've created a good repository using p2 generator:
>
> 1. I've extracted non-p2 application using the following layout (I've looked
> how PDE builder does this):
>
> /tmp/App_source/
> plugins/
> features/
> App/
> App<-- executable
> App.ini
> configuration
> ....
>
> 2. My product file is looks like this:
>
> <product name="%productName" id="com.my.app"
> application="org.eclipse.ui.ide.workbench" version="1.0.0"
> useFeatures="true">
> <configIni use="default">
> </configIni>
> .... branding skipped ...
> <features>
> .... all features my product includes
> </features>
> </product>
>
>
> 3. Then I've run the following two commands:
>
> ~/devenv.michael/build/eclipse/eclipse -vm
> /opt/jdk1.5.0_12/bin/java -application
> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -nosplash -debug
> -consoleLog --launcher.suppressErrors \
> -source /tmp/App_source -p2.os linux -p2.ws gtk -p2.arch
> x86_64 -metadataRepository file:/tmp/repo -metadataRepositoryName "My
> Repository" -artifactRepository file:/tmp/repo \
> -artifactRepositoryName "My
> Repository" -noDefaultIUs -append -compress -publishArtifacts -publishArtifactRepository
> -vmargs -Xmx256m
>
> ~/devenv.michael/build/eclipse/eclipse -vm
> /opt/jdk1.5.0_12/bin/java -application
> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -nosplash -debug
> -consoleLog --launcher.suppressErrors \
> -config /tmp/App_source/App -exe /tmp/App_source/App/App -productFile
> ~/devenv.michael/build/plugins/com.my.app/App.product -launcherConfig
> linux_gtk_x86_64 \
> -p2.os linux -p2.ws gtk -p2.arch x86_64 -metadataRepository
> file:/tmp/repo -metadataRepositoryName "My Repository" -artifactRepository
> file:/tmp/repo \
> -artifactRepositoryName "My
> Repository" -append -compress -publishArtifacts -publishArtifactRepository -vmargs
> -Xmx256m
>
> 4. The repository was created successfully (no errors reported), as follows:
>
> /tmp/repo
> plugins/<--- all my plugins including dependencies
> features/<--- all my features including dependencies
> binary/
> com.my.app.launcher.gtk.linux.x86_64_6.1.0<--- Zip containing my App
> executable, ini file, configuration, etc...
> content.jar
> artifacts.jar
>
>
> Now, I'm running p2 director in order to extract my application from the
> repository:
>
> 1. Run the following command:
>
> ~/devenv.michael/build/eclipse/eclipse -vm
> /opt/jdk1.5.0_12/bin/java -application
> org.eclipse.equinox.p2.director.app.application -nosplash --launcher.suppressErrors
> -consoleLog -debug \
> -metadataRepository file:/tmp/repo -artifactRepository
> file:/tmp/repo -installIU com.my.app -version 1.0.0 -roaming -profile
> AppProfile -profileProperties org.eclipse.update.install.features=true \
> -destination /tmp/App -bundlepool /tmp/App -p2.os linux -p2.ws
> gtk -p2.arch x86_64 -vmargs -Declipse.p2.data.area=/tmp/App/p2 -Xmx256m
>
> 2. The output from the command was:
>
> Installing com.my.app 1.0.0.
> Operation completed in 76519 ms.
>
> 3. When looking at the destination directory /tmp/App, I find the following:
>
> /tmp/App/
> artifacts.xml
> configuration
> dropins
> eclipse.ini
> features
> p2
> plugins
>
> First of all, there's no App executable and icons. Furthermore eclipse.ini
> is not named like "App.ini"
>
> Do you see any issues in the procedure presented above?
>
> Thanks in advance!
>
> --
> Best regards,
> Michael
>
>
Re: p2 director issue - "binary" and "ini" are missing [message #38049 is a reply to message #38021] Wed, 17 December 2008 05:54 Go to previous message
Eclipse UserFriend
Originally posted by: michael.zend.com

Hi,

No I didn't get any response. Thank you for your suggestion, but I don't
think it's an option :)
I've opened a bug about this issue: 259055

"Ketan Padegaonkar" <ketanpadegaonkar@gmail.com> wrote in message
news:gi9p16$fm7$1@build.eclipse.org...
> Michael,
>
> Did you get a response to this ?
>
> As a workaround we're copying the executable from the eclipse delta pack
> and renaming it to what we need it to be.
>
> -- Ketan
>
> On 13/12/08 14:02, Michael Spector wrote:
>> Hi All,
>>
>> I think that I've created a good repository using p2 generator:
>>
>> 1. I've extracted non-p2 application using the following layout (I've
>> looked
>> how PDE builder does this):
>>
>> /tmp/App_source/
>> plugins/
>> features/
>> App/
>> App<-- executable
>> App.ini
>> configuration
>> ....
>>
>> 2. My product file is looks like this:
>>
>> <product name="%productName" id="com.my.app"
>> application="org.eclipse.ui.ide.workbench" version="1.0.0"
>> useFeatures="true">
>> <configIni use="default">
>> </configIni>
>> .... branding skipped ...
>> <features>
>> .... all features my product includes
>> </features>
>> </product>
>>
>>
>> 3. Then I've run the following two commands:
>>
>> ~/devenv.michael/build/eclipse/eclipse -vm
>> /opt/jdk1.5.0_12/bin/java -application
>> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -nosplash -debug
>> -consoleLog --launcher.suppressErrors \
>> -source /tmp/App_source -p2.os linux -p2.ws gtk -p2.arch
>> x86_64 -metadataRepository file:/tmp/repo -metadataRepositoryName "My
>> Repository" -artifactRepository file:/tmp/repo \
>> -artifactRepositoryName "My
>> Repository" -noDefaultIUs -append -compress -publishArtifacts -publishArtifactRepository
>> -vmargs -Xmx256m
>>
>> ~/devenv.michael/build/eclipse/eclipse -vm
>> /opt/jdk1.5.0_12/bin/java -application
>> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -nosplash -debug
>> -consoleLog --launcher.suppressErrors \
>> -config /tmp/App_source/App -exe /tmp/App_source/App/App -productFile
>> ~/devenv.michael/build/plugins/com.my.app/App.product -launcherConfig
>> linux_gtk_x86_64 \
>> -p2.os linux -p2.ws gtk -p2.arch x86_64 -metadataRepository
>> file:/tmp/repo -metadataRepositoryName "My
>> Repository" -artifactRepository
>> file:/tmp/repo \
>> -artifactRepositoryName "My
>> Repository" -append -compress -publishArtifacts -publishArtifactRepository
>> -vmargs
>> -Xmx256m
>>
>> 4. The repository was created successfully (no errors reported), as
>> follows:
>>
>> /tmp/repo
>> plugins/<--- all my plugins including dependencies
>> features/<--- all my features including dependencies
>> binary/
>> com.my.app.launcher.gtk.linux.x86_64_6.1.0<--- Zip containing my
>> App
>> executable, ini file, configuration, etc...
>> content.jar
>> artifacts.jar
>>
>>
>> Now, I'm running p2 director in order to extract my application from the
>> repository:
>>
>> 1. Run the following command:
>>
>> ~/devenv.michael/build/eclipse/eclipse -vm
>> /opt/jdk1.5.0_12/bin/java -application
>> org.eclipse.equinox.p2.director.app.application -nosplash --launcher.suppressErrors
>> -consoleLog -debug \
>> -metadataRepository file:/tmp/repo -artifactRepository
>> file:/tmp/repo -installIU com.my.app -version 1.0.0 -roaming -profile
>> AppProfile -profileProperties org.eclipse.update.install.features=true \
>> -destination /tmp/App -bundlepool /tmp/App -p2.os linux -p2.ws
>> gtk -p2.arch x86_64 -vmargs -Declipse.p2.data.area=/tmp/App/p2 -Xmx256m
>>
>> 2. The output from the command was:
>>
>> Installing com.my.app 1.0.0.
>> Operation completed in 76519 ms.
>>
>> 3. When looking at the destination directory /tmp/App, I find the
>> following:
>>
>> /tmp/App/
>> artifacts.xml
>> configuration
>> dropins
>> eclipse.ini
>> features
>> p2
>> plugins
>>
>> First of all, there's no App executable and icons. Furthermore
>> eclipse.ini
>> is not named like "App.ini"
>>
>> Do you see any issues in the procedure presented above?
>>
>> Thanks in advance!
>>
>> --
>> Best regards,
>> Michael
>>
>>
>
Re: p2 director issue - "binary" and "ini" are missing [message #587296 is a reply to message #37578] Wed, 17 December 2008 02:43 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Michael,

Did you get a response to this ?

As a workaround we're copying the executable from the eclipse delta pack
and renaming it to what we need it to be.

-- Ketan

On 13/12/08 14:02, Michael Spector wrote:
> Hi All,
>
> I think that I've created a good repository using p2 generator:
>
> 1. I've extracted non-p2 application using the following layout (I've looked
> how PDE builder does this):
>
> /tmp/App_source/
> plugins/
> features/
> App/
> App<-- executable
> App.ini
> configuration
> ....
>
> 2. My product file is looks like this:
>
> <product name="%productName" id="com.my.app"
> application="org.eclipse.ui.ide.workbench" version="1.0.0"
> useFeatures="true">
> <configIni use="default">
> </configIni>
> .... branding skipped ...
> <features>
> .... all features my product includes
> </features>
> </product>
>
>
> 3. Then I've run the following two commands:
>
> ~/devenv.michael/build/eclipse/eclipse -vm
> /opt/jdk1.5.0_12/bin/java -application
> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -nosplash -debug
> -consoleLog --launcher.suppressErrors \
> -source /tmp/App_source -p2.os linux -p2.ws gtk -p2.arch
> x86_64 -metadataRepository file:/tmp/repo -metadataRepositoryName "My
> Repository" -artifactRepository file:/tmp/repo \
> -artifactRepositoryName "My
> Repository" -noDefaultIUs -append -compress -publishArtifacts -publishArtifactRepository
> -vmargs -Xmx256m
>
> ~/devenv.michael/build/eclipse/eclipse -vm
> /opt/jdk1.5.0_12/bin/java -application
> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -nosplash -debug
> -consoleLog --launcher.suppressErrors \
> -config /tmp/App_source/App -exe /tmp/App_source/App/App -productFile
> ~/devenv.michael/build/plugins/com.my.app/App.product -launcherConfig
> linux_gtk_x86_64 \
> -p2.os linux -p2.ws gtk -p2.arch x86_64 -metadataRepository
> file:/tmp/repo -metadataRepositoryName "My Repository" -artifactRepository
> file:/tmp/repo \
> -artifactRepositoryName "My
> Repository" -append -compress -publishArtifacts -publishArtifactRepository -vmargs
> -Xmx256m
>
> 4. The repository was created successfully (no errors reported), as follows:
>
> /tmp/repo
> plugins/<--- all my plugins including dependencies
> features/<--- all my features including dependencies
> binary/
> com.my.app.launcher.gtk.linux.x86_64_6.1.0<--- Zip containing my App
> executable, ini file, configuration, etc...
> content.jar
> artifacts.jar
>
>
> Now, I'm running p2 director in order to extract my application from the
> repository:
>
> 1. Run the following command:
>
> ~/devenv.michael/build/eclipse/eclipse -vm
> /opt/jdk1.5.0_12/bin/java -application
> org.eclipse.equinox.p2.director.app.application -nosplash --launcher.suppressErrors
> -consoleLog -debug \
> -metadataRepository file:/tmp/repo -artifactRepository
> file:/tmp/repo -installIU com.my.app -version 1.0.0 -roaming -profile
> AppProfile -profileProperties org.eclipse.update.install.features=true \
> -destination /tmp/App -bundlepool /tmp/App -p2.os linux -p2.ws
> gtk -p2.arch x86_64 -vmargs -Declipse.p2.data.area=/tmp/App/p2 -Xmx256m
>
> 2. The output from the command was:
>
> Installing com.my.app 1.0.0.
> Operation completed in 76519 ms.
>
> 3. When looking at the destination directory /tmp/App, I find the following:
>
> /tmp/App/
> artifacts.xml
> configuration
> dropins
> eclipse.ini
> features
> p2
> plugins
>
> First of all, there's no App executable and icons. Furthermore eclipse.ini
> is not named like "App.ini"
>
> Do you see any issues in the procedure presented above?
>
> Thanks in advance!
>
> --
> Best regards,
> Michael
>
>
Re: p2 director issue - "binary" and "ini" are missing [message #587318 is a reply to message #38021] Wed, 17 December 2008 05:54 Go to previous message
Michael Spector is currently offline Michael SpectorFriend
Messages: 110
Registered: July 2009
Senior Member

Hi,

No I didn't get any response. Thank you for your suggestion, but I don't
think it's an option :)
I've opened a bug about this issue: 259055

"Ketan Padegaonkar" <ketanpadegaonkar@gmail.com> wrote in message
news:gi9p16$fm7$1@build.eclipse.org...
> Michael,
>
> Did you get a response to this ?
>
> As a workaround we're copying the executable from the eclipse delta pack
> and renaming it to what we need it to be.
>
> -- Ketan
>
> On 13/12/08 14:02, Michael Spector wrote:
>> Hi All,
>>
>> I think that I've created a good repository using p2 generator:
>>
>> 1. I've extracted non-p2 application using the following layout (I've
>> looked
>> how PDE builder does this):
>>
>> /tmp/App_source/
>> plugins/
>> features/
>> App/
>> App<-- executable
>> App.ini
>> configuration
>> ....
>>
>> 2. My product file is looks like this:
>>
>> <product name="%productName" id="com.my.app"
>> application="org.eclipse.ui.ide.workbench" version="1.0.0"
>> useFeatures="true">
>> <configIni use="default">
>> </configIni>
>> .... branding skipped ...
>> <features>
>> .... all features my product includes
>> </features>
>> </product>
>>
>>
>> 3. Then I've run the following two commands:
>>
>> ~/devenv.michael/build/eclipse/eclipse -vm
>> /opt/jdk1.5.0_12/bin/java -application
>> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -nosplash -debug
>> -consoleLog --launcher.suppressErrors \
>> -source /tmp/App_source -p2.os linux -p2.ws gtk -p2.arch
>> x86_64 -metadataRepository file:/tmp/repo -metadataRepositoryName "My
>> Repository" -artifactRepository file:/tmp/repo \
>> -artifactRepositoryName "My
>> Repository" -noDefaultIUs -append -compress -publishArtifacts -publishArtifactRepository
>> -vmargs -Xmx256m
>>
>> ~/devenv.michael/build/eclipse/eclipse -vm
>> /opt/jdk1.5.0_12/bin/java -application
>> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -nosplash -debug
>> -consoleLog --launcher.suppressErrors \
>> -config /tmp/App_source/App -exe /tmp/App_source/App/App -productFile
>> ~/devenv.michael/build/plugins/com.my.app/App.product -launcherConfig
>> linux_gtk_x86_64 \
>> -p2.os linux -p2.ws gtk -p2.arch x86_64 -metadataRepository
>> file:/tmp/repo -metadataRepositoryName "My
>> Repository" -artifactRepository
>> file:/tmp/repo \
>> -artifactRepositoryName "My
>> Repository" -append -compress -publishArtifacts -publishArtifactRepository
>> -vmargs
>> -Xmx256m
>>
>> 4. The repository was created successfully (no errors reported), as
>> follows:
>>
>> /tmp/repo
>> plugins/<--- all my plugins including dependencies
>> features/<--- all my features including dependencies
>> binary/
>> com.my.app.launcher.gtk.linux.x86_64_6.1.0<--- Zip containing my
>> App
>> executable, ini file, configuration, etc...
>> content.jar
>> artifacts.jar
>>
>>
>> Now, I'm running p2 director in order to extract my application from the
>> repository:
>>
>> 1. Run the following command:
>>
>> ~/devenv.michael/build/eclipse/eclipse -vm
>> /opt/jdk1.5.0_12/bin/java -application
>> org.eclipse.equinox.p2.director.app.application -nosplash --launcher.suppressErrors
>> -consoleLog -debug \
>> -metadataRepository file:/tmp/repo -artifactRepository
>> file:/tmp/repo -installIU com.my.app -version 1.0.0 -roaming -profile
>> AppProfile -profileProperties org.eclipse.update.install.features=true \
>> -destination /tmp/App -bundlepool /tmp/App -p2.os linux -p2.ws
>> gtk -p2.arch x86_64 -vmargs -Declipse.p2.data.area=/tmp/App/p2 -Xmx256m
>>
>> 2. The output from the command was:
>>
>> Installing com.my.app 1.0.0.
>> Operation completed in 76519 ms.
>>
>> 3. When looking at the destination directory /tmp/App, I find the
>> following:
>>
>> /tmp/App/
>> artifacts.xml
>> configuration
>> dropins
>> eclipse.ini
>> features
>> p2
>> plugins
>>
>> First of all, there's no App executable and icons. Furthermore
>> eclipse.ini
>> is not named like "App.ini"
>>
>> Do you see any issues in the procedure presented above?
>>
>> Thanks in advance!
>>
>> --
>> Best regards,
>> Michael
>>
>>
>
Previous Topic:Absolute URLs in the config.ini generated by p2
Next Topic:Problem building plugin on ganymede with bundle-nativecode
Goto Forum:
  


Current Time: Fri Apr 19 13:27:18 GMT 2024

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

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

Back to the top