Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsp2 director issue - "binary" and "ini" are missing
https://www.eclipse.org/forums/index.php/mv/msg/12056/37578/#msg_37578
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):
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:
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]]>2008-12-13T08:32:38-00:00Re: p2 director issue - "binary" and "ini" are missing
https://www.eclipse.org/forums/index.php/mv/msg/12056/587296/#msg_587296
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
>
>]]>Ketan Padegaonkar2008-12-17T02:43:46-00:00Re: p2 director issue - "binary" and "ini" are missing
https://www.eclipse.org/forums/index.php/mv/msg/12056/38021/#msg_38021
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
>
>]]>Ketan Padegaonkar2008-12-17T02:43:46-00:00Re: p2 director issue - "binary" and "ini" are missing
https://www.eclipse.org/forums/index.php/mv/msg/12056/587318/#msg_587318
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
>>
>>
>]]>Michael Spector2008-12-17T05:54:06-00:00Re: p2 director issue - "binary" and "ini" are missing
https://www.eclipse.org/forums/index.php/mv/msg/12056/38049/#msg_38049
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
>>
>>
>]]>2008-12-17T05:54:06-00:00