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 03:32  |
Eclipse User |
|
|
|
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] |
Tue, 16 December 2008 21:43   |
Eclipse User |
|
|
|
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 00:54  |
Eclipse User |
|
|
|
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] |
Tue, 16 December 2008 21:43  |
Eclipse User |
|
|
|
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 00:54  |
Eclipse User |
|
|
|
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
>>
>>
>
|
|
|
Goto Forum:
Current Time: Fri May 23 17:48:19 EDT 2025
Powered by FUDForum. Page generated in 0.03573 seconds
|