Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » headless compilation: equinox launcher version
headless compilation: equinox launcher version [message #45567] Fri, 06 February 2009 10:11 Go to next message
Alessandro Caproni is currently offline Alessandro CaproniFriend
Messages: 21
Registered: July 2009
Junior Member
Hi,
I am experimenting the headless compilation following the Vogel tutorial.

Yesterday the build completed successfully but without the executable.
I suddenly realized that the I forgot to install the delta pack but now the build fails with another error.

The following (beautified) lines seem to be the relevant part of the output:


[java] BUILD FAILED
[java] .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/scripts/productBuild/productBuild.xml:28:
The following error occurred while executing this line:
[java] .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/scripts/build.xml:64:
The following error occurred while executing this line:
[java] .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/templates/headless-build/customTargets.xml:12:
The following error occurred while executing this line:
[java] .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/scripts/productBuild/allElements.xml:10:
The following error occurred while executing this line:
[java] .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/scripts/genericTargets.xml:88:
Unable to find plug-in: org.eclipse.equinox.launcher_1.0.100.v20080509-1800.


The plugin in the last line of the output is not in my eclipse installation where
org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar is present.

In the build.xml I have the following entry:
<property name="equinoxLauncherPluginVersion" value="1.0.101.R34x_v20080819" />

It seems that the entry in build.xml is ignored during the build and a wrong launcher version is used instead.

Where is the error? And why did it happen only after installing the delta pack?


Alessandro Caproni
European Southern Observatory (http://www.eso.org)
Re: headless compilation: equinox launcher version [message #45595 is a reply to message #45567] Fri, 06 February 2009 22:38 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The deltapack contains the feature org.eclipse.equinox.executable. This
feature includes org.eclipse.equinox.launcher using a specific version.
Generally speaking, this is the version that pde.build will be looking
for, and could lead to this problem if that version doesn't exist in
your target.

I believe that tutorial has some extra scripting around the regular
pde.build, I don't know what he is using equinoxLauncherPluginVersion for.

-Andrew

Alessandro Caproni wrote:
> Hi,
> I am experimenting the headless compilation following the Vogel tutorial.
>
> Yesterday the build completed successfully but without the executable.
> I suddenly realized that the I forgot to install the delta pack but now
> the build fails with another error.
>
> The following (beautified) lines seem to be the relevant part of the
> output:
>
>
> [java] BUILD FAILED
> [java]
> .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/scripts/productBuild/productBuild.xml:28:
>
> The following error occurred while executing this line:
> [java]
> .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/scripts/build.xml:64:
>
> The following error occurred while executing this line:
> [java]
> .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/templates/headless-build/customTargets.xml:12:
>
> The following error occurred while executing this line:
> [java]
> .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/scripts/productBuild/allElements.xml:10:
>
> The following error occurred while executing this line:
> [java]
> .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/scripts/genericTargets.xml:88:
>
> Unable to find plug-in:
> org.eclipse.equinox.launcher_1.0.100.v20080509-1800.
>
>
> The plugin in the last line of the output is not in my eclipse
> installation where
> org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar is present.
>
> In the build.xml I have the following entry:
> <property name="equinoxLauncherPluginVersion"
> value="1.0.101.R34x_v20080819" />
>
> It seems that the entry in build.xml is ignored during the build and a
> wrong launcher version is used instead.
>
> Where is the error? And why did it happen only after installing the
> delta pack?
Re: headless compilation: equinox launcher version [message #45656 is a reply to message #45595] Mon, 09 February 2009 10:36 Go to previous messageGo to next message
Alessandro Caproni is currently offline Alessandro CaproniFriend
Messages: 21
Registered: July 2009
Junior Member
Hi Andrew,
I was thinking to some configuration problem too...

In my installation I have 2 org.eclipse.equinox.executable features:
* org.eclipse.equinox.executable_3.3.100.v20080606-7H-ELQEDdVv 0SVkW65GwAA
* org.eclipse.equinox.executable_3.3.101.R34x_v20080805-7H-ELe E8hXnkE15Wh9Rz0yu

My build.xml calls the last one, whose features.xml looks like the following:
<feature
id="org.eclipse.equinox.executable"
label="%featureName"
version="3.3.101.R34x_v20080805-7H-ELeE8hXnkE15Wh9Rz0yu">

<description>
%description
</description>

<license url="%licenseURL">
%license
</license>

<plugin
id="org.eclipse.equinox.launcher"
download-size="0"
install-size="0"
version="1.0.101.R34x_v20080819"
unpack="false"/>
.....
<plugin
id="org.eclipse.equinox.launcher.gtk.linux.x86"
os="linux"
ws="gtk"
arch="x86"
download-size="0"
install-size="0"
version="1.0.101.R34x_v20080805"
fragment="true"/>
....
</feature>

The launcher version is exactly what I wrote in the build. And my eclipse/plugins folder contains (among the others):
* org.eclipse.pde.build_3.4.1.R34x_v20080805
* org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
* org.eclipse.equinox.launcher.gtk.linux.x86_1.0.101.R34x_v200 80805/

The following part of build.xml (sorry for this long post) is what ant does:
<project name="alma.acs.rcp.test" default="build">
<!--sets the path of the properties file-->
<property file="build.properties" />
<property name="pdeBuildPluginVersion" value="3.4.1.R34x_v20080805" />
<property name="equinoxLauncherPluginVersion" value="1.0.101.R34x_v20080819" />
<property name="eclipseLocation" value="/diska/home/almadev/eclipse" />
.....
<target name="pde-build">
<java classname="org.eclipse.equinox.launcher.Main" fork="true" failonerror="true">
<arg value="-application" />
<arg value="org.eclipse.ant.core.antRunner" />
<arg value="-buildfile" />
<arg value=" ${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildP luginVersion}/scripts/productBuild/productBuild.xml " />
<arg value="-Dtimestamp=${timestamp}" />
<classpath>
<pathelement location=" ${baseLocation}/plugins/org.eclipse.equinox.launcher_${equin oxLauncherPluginVersion}.jar " />
</classpath>
</java>
</target>
<target name="build" depends="clean, init, pde-build" />
</project>

Thank you for your help and sorry again for this long email.
Ale

Andrew Niefer wrote:
> The deltapack contains the feature org.eclipse.equinox.executable. This
> feature includes org.eclipse.equinox.launcher using a specific version.
> Generally speaking, this is the version that pde.build will be looking
> for, and could lead to this problem if that version doesn't exist in
> your target.
>
> I believe that tutorial has some extra scripting around the regular
> pde.build, I don't know what he is using equinoxLauncherPluginVersion for.
>
> -Andrew
>


Alessandro Caproni
European Southern Observatory (http://www.eso.org)
Re: headless compilation: equinox launcher version [message #45905 is a reply to message #45656] Mon, 09 February 2009 15:33 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
I think the build must be picking up the old executable_3.3.100, you can
try deleting it to be sure the new one is used.

Starting in 3.5 build will prefer higher feature version, but I think in
3.4.x and earlier, it might just chose the first one it found. You can
try upgrading your builder to 3.5 and still target 3.4.1 for your product.

-Andrew

Alessandro Caproni wrote:
> Hi Andrew,
> I was thinking to some configuration problem too...
>
> In my installation I have 2 org.eclipse.equinox.executable features:
> *
> org.eclipse.equinox.executable_3.3.100.v20080606-7H-ELQEDdVv 0SVkW65GwAA
> *
> org.eclipse.equinox.executable_3.3.101.R34x_v20080805-7H-ELe E8hXnkE15Wh9Rz0yu
>
>
> My build.xml calls the last one, whose features.xml looks like the
> following:
> <feature
> id="org.eclipse.equinox.executable"
> label="%featureName"
> version="3.3.101.R34x_v20080805-7H-ELeE8hXnkE15Wh9Rz0yu">
>
> <description>
> %description
> </description>
>
> <license url="%licenseURL">
> %license
> </license>
>
> <plugin
> id="org.eclipse.equinox.launcher"
> download-size="0"
> install-size="0"
> version="1.0.101.R34x_v20080819"
> unpack="false"/>
> ....
> <plugin
> id="org.eclipse.equinox.launcher.gtk.linux.x86"
> os="linux"
> ws="gtk"
> arch="x86"
> download-size="0"
> install-size="0"
> version="1.0.101.R34x_v20080805"
> fragment="true"/>
> ...
> </feature>
>
> The launcher version is exactly what I wrote in the build. And my
> eclipse/plugins folder contains (among the others):
> * org.eclipse.pde.build_3.4.1.R34x_v20080805
> * org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
> * org.eclipse.equinox.launcher.gtk.linux.x86_1.0.101.R34x_v200 80805/
>
> The following part of build.xml (sorry for this long post) is what ant
> does:
> <project name="alma.acs.rcp.test" default="build">
> <!--sets the path of the properties file-->
> <property file="build.properties" />
> <property name="pdeBuildPluginVersion" value="3.4.1.R34x_v20080805" />
> <property name="equinoxLauncherPluginVersion"
> value="1.0.101.R34x_v20080819" />
> <property name="eclipseLocation" value="/diska/home/almadev/eclipse" />
> ....
> <target name="pde-build">
> <java classname="org.eclipse.equinox.launcher.Main" fork="true"
> failonerror="true">
> <arg value="-application" />
> <arg value="org.eclipse.ant.core.antRunner" />
> <arg value="-buildfile" />
> <arg
> value=" ${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildP luginVersion}/scripts/productBuild/productBuild.xml "
> />
> <arg value="-Dtimestamp=${timestamp}" />
> <classpath>
> <pathelement
> location=" ${baseLocation}/plugins/org.eclipse.equinox.launcher_${equin oxLauncherPluginVersion}.jar "
> />
> </classpath>
> </java>
> </target>
> <target name="build" depends="clean, init, pde-build" />
> </project>
>
> Thank you for your help and sorry again for this long email.
> Ale
>
> Andrew Niefer wrote:
>> The deltapack contains the feature org.eclipse.equinox.executable.
>> This feature includes org.eclipse.equinox.launcher using a specific
>> version. Generally speaking, this is the version that pde.build will
>> be looking for, and could lead to this problem if that version doesn't
>> exist in your target.
>>
>> I believe that tutorial has some extra scripting around the regular
>> pde.build, I don't know what he is using equinoxLauncherPluginVersion
>> for.
>>
>> -Andrew
>>
Re: headless compilation: equinox launcher version [message #45931 is a reply to message #45905] Mon, 09 February 2009 15:48 Go to previous message
Alessandro Caproni is currently offline Alessandro CaproniFriend
Messages: 21
Registered: July 2009
Junior Member
I have found a solution by installing a fresh new eclipse target from the following zip:
* eclipse-3.4.1-delta-pack.zip
* eclipse-rcp-ganymede-SR1-linux-gtk.tar.gz

Before I was building against the same eclipse installation used as IDE:
* eclipse-3.4.1-delta-pack.zip
* eclipse-SDK-3.4.1-linux-gtk.tar.gz

I wander if there was an incompatibility between the SDK and the delta that I didn't figure out by reading the documentation.

FYI: I have tried deleting the old plugin but it didn't work either.

Thank you again for your help.
Ale

Andrew Niefer wrote:
> I think the build must be picking up the old executable_3.3.100, you can
> try deleting it to be sure the new one is used.
>
> Starting in 3.5 build will prefer higher feature version, but I think in
> 3.4.x and earlier, it might just chose the first one it found. You can
> try upgrading your builder to 3.5 and still target 3.4.1 for your product.
>
> -Andrew
>
> Alessandro Caproni wrote:
>> Hi Andrew,
>> I was thinking to some configuration problem too...
>>...


Alessandro Caproni
European Southern Observatory (http://www.eso.org)
Re: headless compilation: equinox launcher version [message #591565 is a reply to message #45567] Fri, 06 February 2009 22:38 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The deltapack contains the feature org.eclipse.equinox.executable. This
feature includes org.eclipse.equinox.launcher using a specific version.
Generally speaking, this is the version that pde.build will be looking
for, and could lead to this problem if that version doesn't exist in
your target.

I believe that tutorial has some extra scripting around the regular
pde.build, I don't know what he is using equinoxLauncherPluginVersion for.

-Andrew

Alessandro Caproni wrote:
> Hi,
> I am experimenting the headless compilation following the Vogel tutorial.
>
> Yesterday the build completed successfully but without the executable.
> I suddenly realized that the I forgot to install the delta pack but now
> the build fails with another error.
>
> The following (beautified) lines seem to be the relevant part of the
> output:
>
>
> [java] BUILD FAILED
> [java]
> .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/scripts/productBuild/productBuild.xml:28:
>
> The following error occurred while executing this line:
> [java]
> .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/scripts/build.xml:64:
>
> The following error occurred while executing this line:
> [java]
> .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/templates/headless-build/customTargets.xml:12:
>
> The following error occurred while executing this line:
> [java]
> .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/scripts/productBuild/allElements.xml:10:
>
> The following error occurred while executing this line:
> [java]
> .../eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v200808 05/scripts/genericTargets.xml:88:
>
> Unable to find plug-in:
> org.eclipse.equinox.launcher_1.0.100.v20080509-1800.
>
>
> The plugin in the last line of the output is not in my eclipse
> installation where
> org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar is present.
>
> In the build.xml I have the following entry:
> <property name="equinoxLauncherPluginVersion"
> value="1.0.101.R34x_v20080819" />
>
> It seems that the entry in build.xml is ignored during the build and a
> wrong launcher version is used instead.
>
> Where is the error? And why did it happen only after installing the
> delta pack?
Re: headless compilation: equinox launcher version [message #591586 is a reply to message #45595] Mon, 09 February 2009 10:36 Go to previous message
Alessandro Caproni is currently offline Alessandro CaproniFriend
Messages: 21
Registered: July 2009
Junior Member
Hi Andrew,
I was thinking to some configuration problem too...

In my installation I have 2 org.eclipse.equinox.executable features:
* org.eclipse.equinox.executable_3.3.100.v20080606-7H-ELQEDdVv 0SVkW65GwAA
* org.eclipse.equinox.executable_3.3.101.R34x_v20080805-7H-ELe E8hXnkE15Wh9Rz0yu

My build.xml calls the last one, whose features.xml looks like the following:
<feature
id="org.eclipse.equinox.executable"
label="%featureName"
version="3.3.101.R34x_v20080805-7H-ELeE8hXnkE15Wh9Rz0yu">

<description>
%description
</description>

<license url="%licenseURL">
%license
</license>

<plugin
id="org.eclipse.equinox.launcher"
download-size="0"
install-size="0"
version="1.0.101.R34x_v20080819"
unpack="false"/>
.....
<plugin
id="org.eclipse.equinox.launcher.gtk.linux.x86"
os="linux"
ws="gtk"
arch="x86"
download-size="0"
install-size="0"
version="1.0.101.R34x_v20080805"
fragment="true"/>
....
</feature>

The launcher version is exactly what I wrote in the build. And my eclipse/plugins folder contains (among the others):
* org.eclipse.pde.build_3.4.1.R34x_v20080805
* org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
* org.eclipse.equinox.launcher.gtk.linux.x86_1.0.101.R34x_v200 80805/

The following part of build.xml (sorry for this long post) is what ant does:
<project name="alma.acs.rcp.test" default="build">
<!--sets the path of the properties file-->
<property file="build.properties" />
<property name="pdeBuildPluginVersion" value="3.4.1.R34x_v20080805" />
<property name="equinoxLauncherPluginVersion" value="1.0.101.R34x_v20080819" />
<property name="eclipseLocation" value="/diska/home/almadev/eclipse" />
.....
<target name="pde-build">
<java classname="org.eclipse.equinox.launcher.Main" fork="true" failonerror="true">
<arg value="-application" />
<arg value="org.eclipse.ant.core.antRunner" />
<arg value="-buildfile" />
<arg value=" ${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildP luginVersion}/scripts/productBuild/productBuild.xml " />
<arg value="-Dtimestamp=${timestamp}" />
<classpath>
<pathelement location=" ${baseLocation}/plugins/org.eclipse.equinox.launcher_${equin oxLauncherPluginVersion}.jar " />
</classpath>
</java>
</target>
<target name="build" depends="clean, init, pde-build" />
</project>

Thank you for your help and sorry again for this long email.
Ale

Andrew Niefer wrote:
> The deltapack contains the feature org.eclipse.equinox.executable. This
> feature includes org.eclipse.equinox.launcher using a specific version.
> Generally speaking, this is the version that pde.build will be looking
> for, and could lead to this problem if that version doesn't exist in
> your target.
>
> I believe that tutorial has some extra scripting around the regular
> pde.build, I don't know what he is using equinoxLauncherPluginVersion for.
>
> -Andrew
>


Alessandro Caproni
European Southern Observatory (http://www.eso.org)
Re: headless compilation: equinox launcher version [message #591653 is a reply to message #45656] Mon, 09 February 2009 15:33 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
I think the build must be picking up the old executable_3.3.100, you can
try deleting it to be sure the new one is used.

Starting in 3.5 build will prefer higher feature version, but I think in
3.4.x and earlier, it might just chose the first one it found. You can
try upgrading your builder to 3.5 and still target 3.4.1 for your product.

-Andrew

Alessandro Caproni wrote:
> Hi Andrew,
> I was thinking to some configuration problem too...
>
> In my installation I have 2 org.eclipse.equinox.executable features:
> *
> org.eclipse.equinox.executable_3.3.100.v20080606-7H-ELQEDdVv 0SVkW65GwAA
> *
> org.eclipse.equinox.executable_3.3.101.R34x_v20080805-7H-ELe E8hXnkE15Wh9Rz0yu
>
>
> My build.xml calls the last one, whose features.xml looks like the
> following:
> <feature
> id="org.eclipse.equinox.executable"
> label="%featureName"
> version="3.3.101.R34x_v20080805-7H-ELeE8hXnkE15Wh9Rz0yu">
>
> <description>
> %description
> </description>
>
> <license url="%licenseURL">
> %license
> </license>
>
> <plugin
> id="org.eclipse.equinox.launcher"
> download-size="0"
> install-size="0"
> version="1.0.101.R34x_v20080819"
> unpack="false"/>
> ....
> <plugin
> id="org.eclipse.equinox.launcher.gtk.linux.x86"
> os="linux"
> ws="gtk"
> arch="x86"
> download-size="0"
> install-size="0"
> version="1.0.101.R34x_v20080805"
> fragment="true"/>
> ...
> </feature>
>
> The launcher version is exactly what I wrote in the build. And my
> eclipse/plugins folder contains (among the others):
> * org.eclipse.pde.build_3.4.1.R34x_v20080805
> * org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
> * org.eclipse.equinox.launcher.gtk.linux.x86_1.0.101.R34x_v200 80805/
>
> The following part of build.xml (sorry for this long post) is what ant
> does:
> <project name="alma.acs.rcp.test" default="build">
> <!--sets the path of the properties file-->
> <property file="build.properties" />
> <property name="pdeBuildPluginVersion" value="3.4.1.R34x_v20080805" />
> <property name="equinoxLauncherPluginVersion"
> value="1.0.101.R34x_v20080819" />
> <property name="eclipseLocation" value="/diska/home/almadev/eclipse" />
> ....
> <target name="pde-build">
> <java classname="org.eclipse.equinox.launcher.Main" fork="true"
> failonerror="true">
> <arg value="-application" />
> <arg value="org.eclipse.ant.core.antRunner" />
> <arg value="-buildfile" />
> <arg
> value=" ${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildP luginVersion}/scripts/productBuild/productBuild.xml "
> />
> <arg value="-Dtimestamp=${timestamp}" />
> <classpath>
> <pathelement
> location=" ${baseLocation}/plugins/org.eclipse.equinox.launcher_${equin oxLauncherPluginVersion}.jar "
> />
> </classpath>
> </java>
> </target>
> <target name="build" depends="clean, init, pde-build" />
> </project>
>
> Thank you for your help and sorry again for this long email.
> Ale
>
> Andrew Niefer wrote:
>> The deltapack contains the feature org.eclipse.equinox.executable.
>> This feature includes org.eclipse.equinox.launcher using a specific
>> version. Generally speaking, this is the version that pde.build will
>> be looking for, and could lead to this problem if that version doesn't
>> exist in your target.
>>
>> I believe that tutorial has some extra scripting around the regular
>> pde.build, I don't know what he is using equinoxLauncherPluginVersion
>> for.
>>
>> -Andrew
>>
Re: headless compilation: equinox launcher version [message #591659 is a reply to message #45905] Mon, 09 February 2009 15:48 Go to previous message
Alessandro Caproni is currently offline Alessandro CaproniFriend
Messages: 21
Registered: July 2009
Junior Member
I have found a solution by installing a fresh new eclipse target from the following zip:
* eclipse-3.4.1-delta-pack.zip
* eclipse-rcp-ganymede-SR1-linux-gtk.tar.gz

Before I was building against the same eclipse installation used as IDE:
* eclipse-3.4.1-delta-pack.zip
* eclipse-SDK-3.4.1-linux-gtk.tar.gz

I wander if there was an incompatibility between the SDK and the delta that I didn't figure out by reading the documentation.

FYI: I have tried deleting the old plugin but it didn't work either.

Thank you again for your help.
Ale

Andrew Niefer wrote:
> I think the build must be picking up the old executable_3.3.100, you can
> try deleting it to be sure the new one is used.
>
> Starting in 3.5 build will prefer higher feature version, but I think in
> 3.4.x and earlier, it might just chose the first one it found. You can
> try upgrading your builder to 3.5 and still target 3.4.1 for your product.
>
> -Andrew
>
> Alessandro Caproni wrote:
>> Hi Andrew,
>> I was thinking to some configuration problem too...
>>...


Alessandro Caproni
European Southern Observatory (http://www.eso.org)
Previous Topic:Why the Unpack the plug-in archive after the installation doesn't work?
Next Topic:Incremental builders and source dependencies
Goto Forum:
  


Current Time: Fri Mar 29 09:20:33 GMT 2024

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

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

Back to the top