Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » PDE build problems.
PDE build problems. [message #31237] Thu, 27 September 2007 20:02 Go to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig818E0A3162A705FE369CD75D
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

I've been trying to get PDE build to work to build a mylyn connector for
mingle (http://mingle.thoughtworks.com)

I'm using eclipse 3.4M2 and mylyn checked out from head.

I'm using the following ant target to build my feature containing the
plugins:

<target name=3D"pde-build">
<java classname=3D"org.eclipse.equinox.launcher.Main" fork=3D"true"
failonerror=3D"true" dir=3D"${buildDirectory}"
classpath=3D" ${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${eq =
uinoxLauncherPluginVersion}.jar">
<arg value=3D"-application" />
<arg value=3D"org.eclipse.ant.core.antRunner" />
<arg value=3D"-buildfile" />
<arg
value=3D" ${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildP lugi=
nVersion}/scripts/build.xml"
/>
<arg value=3D"-Dbuilder=3D${basedir}/configuration" />
<arg value=3D"-Dbasedir=3D${basedir}" />
<arg value=3D"-Dbuild_directory=3D${buildDirectory}" />
<arg value=3D"-Dtimestamp=3D${timestamp}" />
</java>
</target>

This is the error message that I end up getting. Is there something that
I'm doing wrong ?

I've got the following structure in the buildDirectory:

buildDirectory:
+ plugins/
+ com.thoughtworks.someplugins
+ org.eclipse.mylyn.someplugins
+ features/
+ com.thoughtworks.feature
+ org.eclipse.mylyn.somefeatures
These files seem to be getting copied by the pdebuild
+ package.org.eclipse.pde.build.container*.xml
+ assemble.org.eclipse.pde.build.container*.xml

--=20
Ketan Padegaonkar
I blog... therefore I am... http://ketan.padegaonkar.name/

The farther you go, the less you know.
-- Lao Tsu, "Tao Te Ching"


[ketan@ketan:
/opt/workspaces/mingle/com.thoughtworks.mingle.mylyn.build]$ ant
exec "/etc/java-config-2/current-system-vm/jre/bin/java" -classpath
"/opt/java/apache-ant-1.7.0/lib/ant-launcher.jar"
-Dant.home=3D"/opt/java/apache-ant-1.7.0"
-Dant.library.dir=3D"/opt/java/apache-ant-1.7.0/lib"
org.apache.tools.ant.launch.Launcher -cp "" "-logger"
"org.apache.tools.ant.listener.AnsiColorLogger"
Buildfile: build.xml

init:
[sync] Removed 31 dangling directories from
/opt/workspaces/mingle/com.thoughtworks.mingle.mylyn.build/e clipse-target=

[sync] Removed 27 dangling files from
/opt/workspaces/mingle/com.thoughtworks.mingle.mylyn.build/e clipse-target=


pde-build:
[java] Buildfile:
/opt/workspaces/mingle/com.thoughtworks.mingle.mylyn.build/e clipse-target=
/plugins/org.eclipse.pde.build_3.3.100.v20070914/scripts/bui ld.xml
[java]
[java] main:
[java]
[java] preBuild:
[java]
[java] preSetup:
[java]
[java] checkLocalMaps:
[java]
[java] getMapFiles:
[java] [concat] No existing resources and no nested text, doing
nothing
[java]
[java] postSetup:
[java]
[java] checkLocalBase:
[java]
[java] getBaseComponents:
[java]
[java] fetch:
[java]
[java] generate:
[java]
[java] preGenerate:
[java]
[java] allElements:
[java]
[java] allElementsDelegator:
[java]
[java] init:
[java]
[java] generateScript:
[java]
[java] BUILD FAILED
[java]
/opt/workspaces/mingle/com.thoughtworks.mingle.mylyn.build/e clipse-target=
/plugins/org.eclipse.pde.build_3.3.100.v20070914/scripts/bui ld.xml:24:
The following error occurred while executing this line:
[java]
/opt/workspaces/mingle/com.thoughtworks.mingle.mylyn.build/e clipse-target=
/plugins/org.eclipse.pde.build_3.3.100.v20070914/scripts/bui ld.xml:64:
The following error occurred while executing this line:
[java]
/opt/workspaces/mingle/com.thoughtworks.mingle.mylyn.build/c onfiguration/=
customTargets.xml:10:
The following error occurred while executing this line:
[java]
/opt/workspaces/mingle/com.thoughtworks.mingle.mylyn.build/c onfiguration/=
allElements.xml:9:
The following error occurred while executing this line:
[java]
/opt/workspaces/mingle/com.thoughtworks.mingle.mylyn.build/e clipse-target=
/plugins/org.eclipse.pde.build_3.3.100.v20070914/scripts/gen ericTargets.x=
ml:85:
Unable to find feature: org.eclipse.pde.build.container.feature.
[java]
[java] Total time: 0 seconds

BUILD FAILED
/opt/workspaces/mingle/com.thoughtworks.mingle.mylyn.build/b uild.xml:71:
Java returned: 13

Total time: 11 seconds





--------------enig818E0A3162A705FE369CD75D
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFG/Aw/50uB2zvyE8MRArLNAKCitVsQwboSZwVzLISM5Z0MpqhRwACg tYjW
UsSEeAwZNnL8b8S6FK/X+5M=
=VI/f
-----END PGP SIGNATURE-----

--------------enig818E0A3162A705FE369CD75D--
Re: PDE build problems. [message #31400 is a reply to message #31237] Fri, 28 September 2007 15:00 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Ketan,
The problem is your ${builder}/allElements.xml file.

The error implies that you are using the allElements.xml from
org.eclipse.pde.build/scripts/productBuild/allElements.xml.
This copy is designed to be used together with the productBuild/productBuild.xml
script. This is for builds based on a .product file and to use it you use
productBuild.xml as your -buildfile.

If you are basing your build on a .product file, then changing your -buildfile
should fix things.

If you are basing your build on a feature you already have, you need to modify
the allElements file to refer to your feature. Basically take the file you have
and replace all instances of "org.eclipse.pde.build.container.feature" with your
feature-id.

-Andrew

Ketan Padegaonkar wrote:
> Hi,
>
> I've been trying to get PDE build to work to build a mylyn connector for
> mingle (http://mingle.thoughtworks.com)
>
> I'm using eclipse 3.4M2 and mylyn checked out from head.
>
> I'm using the following ant target to build my feature containing the
> plugins:
>
> <target name="pde-build">
> <java classname="org.eclipse.equinox.launcher.Main" fork="true"
> failonerror="true" dir="${buildDirectory}"
> classpath=" ${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${eq uinoxLauncherPluginVersion}.jar ">
> <arg value="-application" />
> <arg value="org.eclipse.ant.core.antRunner" />
> <arg value="-buildfile" />
> <arg
> value=" ${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildP luginVersion}/scripts/build.xml "
> />
> <arg value="-Dbuilder=${basedir}/configuration" />
> <arg value="-Dbasedir=${basedir}" />
> <arg value="-Dbuild_directory=${buildDirectory}" />
> <arg value="-Dtimestamp=${timestamp}" />
> </java>
> </target>
>
> This is the error message that I end up getting. Is there something that
> I'm doing wrong ?
>
> I've got the following structure in the buildDirectory:
>
> buildDirectory:
> + plugins/
> + com.thoughtworks.someplugins
> + org.eclipse.mylyn.someplugins
> + features/
> + com.thoughtworks.feature
> + org.eclipse.mylyn.somefeatures
> These files seem to be getting copied by the pdebuild
> + package.org.eclipse.pde.build.container*.xml
> + assemble.org.eclipse.pde.build.container*.xml
>
Re: PDE build problems. [message #31544 is a reply to message #31400] Fri, 28 September 2007 18:20 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig9189D6EE0191E90A032E0340
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Andrew Niefer wrote:
> Ketan,
> The problem is your ${builder}/allElements.xml file.
>=20
> The error implies that you are using the allElements.xml from
> org.eclipse.pde.build/scripts/productBuild/allElements.xml.
> This copy is designed to be used together with the
> productBuild/productBuild.xml script. This is for builds based on a
> .product file and to use it you use productBuild.xml as your -buildfile=
=2E
>=20
> If you are basing your build on a .product file, then changing your
> -buildfile should fix things.
>=20
> If you are basing your build on a feature you already have, you need to=

> modify the allElements file to refer to your feature. Basically take
> the file you have and replace all instances of
> "org.eclipse.pde.build.container.feature" with your feature-id.
>=20
> -Andrew

Thanks Andrew. It took quite a lot of "monkey see, monkey do" to get
things right. The build now works just fine.

I'll make a blog post about "some things to watch out for" when making a
pde build.

Thanks once again,
Ketan Padegaonkar
I blog... therefore I am... http://ketan.padegaonkar.name/

The farther you go, the less you know.
-- Lao Tsu, "Tao Te Ching"


--------------enig9189D6EE0191E90A032E0340
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFG/UX750uB2zvyE8MRAuSFAJ4lt+p+GcqN6AX0rEn4Jy0RXhVtjQCf VPTJ
pqJpWvM6oLttDrroDRX1iF4=
=rtWd
-----END PGP SIGNATURE-----

--------------enig9189D6EE0191E90A032E0340--
Re: PDE build problems. [message #582608 is a reply to message #31237] Fri, 28 September 2007 15:00 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Ketan,
The problem is your ${builder}/allElements.xml file.

The error implies that you are using the allElements.xml from
org.eclipse.pde.build/scripts/productBuild/allElements.xml.
This copy is designed to be used together with the productBuild/productBuild.xml
script. This is for builds based on a .product file and to use it you use
productBuild.xml as your -buildfile.

If you are basing your build on a .product file, then changing your -buildfile
should fix things.

If you are basing your build on a feature you already have, you need to modify
the allElements file to refer to your feature. Basically take the file you have
and replace all instances of "org.eclipse.pde.build.container.feature" with your
feature-id.

-Andrew

Ketan Padegaonkar wrote:
> Hi,
>
> I've been trying to get PDE build to work to build a mylyn connector for
> mingle (http://mingle.thoughtworks.com)
>
> I'm using eclipse 3.4M2 and mylyn checked out from head.
>
> I'm using the following ant target to build my feature containing the
> plugins:
>
> <target name="pde-build">
> <java classname="org.eclipse.equinox.launcher.Main" fork="true"
> failonerror="true" dir="${buildDirectory}"
> classpath=" ${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${eq uinoxLauncherPluginVersion}.jar ">
> <arg value="-application" />
> <arg value="org.eclipse.ant.core.antRunner" />
> <arg value="-buildfile" />
> <arg
> value=" ${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildP luginVersion}/scripts/build.xml "
> />
> <arg value="-Dbuilder=${basedir}/configuration" />
> <arg value="-Dbasedir=${basedir}" />
> <arg value="-Dbuild_directory=${buildDirectory}" />
> <arg value="-Dtimestamp=${timestamp}" />
> </java>
> </target>
>
> This is the error message that I end up getting. Is there something that
> I'm doing wrong ?
>
> I've got the following structure in the buildDirectory:
>
> buildDirectory:
> + plugins/
> + com.thoughtworks.someplugins
> + org.eclipse.mylyn.someplugins
> + features/
> + com.thoughtworks.feature
> + org.eclipse.mylyn.somefeatures
> These files seem to be getting copied by the pdebuild
> + package.org.eclipse.pde.build.container*.xml
> + assemble.org.eclipse.pde.build.container*.xml
>
Re: PDE build problems. [message #582686 is a reply to message #31400] Fri, 28 September 2007 18:20 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig9189D6EE0191E90A032E0340
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Andrew Niefer wrote:
> Ketan,
> The problem is your ${builder}/allElements.xml file.
>=20
> The error implies that you are using the allElements.xml from
> org.eclipse.pde.build/scripts/productBuild/allElements.xml.
> This copy is designed to be used together with the
> productBuild/productBuild.xml script. This is for builds based on a
> .product file and to use it you use productBuild.xml as your -buildfile=
=2E
>=20
> If you are basing your build on a .product file, then changing your
> -buildfile should fix things.
>=20
> If you are basing your build on a feature you already have, you need to=

> modify the allElements file to refer to your feature. Basically take
> the file you have and replace all instances of
> "org.eclipse.pde.build.container.feature" with your feature-id.
>=20
> -Andrew

Thanks Andrew. It took quite a lot of "monkey see, monkey do" to get
things right. The build now works just fine.

I'll make a blog post about "some things to watch out for" when making a
pde build.

Thanks once again,
Ketan Padegaonkar
I blog... therefore I am... http://ketan.padegaonkar.name/

The farther you go, the less you know.
-- Lao Tsu, "Tao Te Ching"


--------------enig9189D6EE0191E90A032E0340
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFG/UX750uB2zvyE8MRAuSFAJ4lt+p+GcqN6AX0rEn4Jy0RXhVtjQCf VPTJ
pqJpWvM6oLttDrroDRX1iF4=
=rtWd
-----END PGP SIGNATURE-----

--------------enig9189D6EE0191E90A032E0340--
Previous Topic:Easiest way to share Mylyn tasks across the team
Next Topic:Update site for e3.3 does not contain complete set of artifacts?
Goto Forum:
  


Current Time: Thu Apr 25 20:59:16 GMT 2024

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

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

Back to the top