Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Specifying clean target to headless PDE build
Specifying clean target to headless PDE build [message #323452] Thu, 20 December 2007 18:09 Go to next message
Eclipse UserFriend
Originally posted by: vgrishchenko.serena.com

Howdy,

Is this legal to pass -Dtarget=clean to a headless PDE build invoked via
antRunner?

java -jar " path_to_org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.ja r "
-application org.eclipse.ant.core.antRunner
-buildfile
" path_to_org.eclipse.pde.build_3.3.2.R331_v20071019\scripts\b uild.xml "
-Dtarget=clean -Dbuilder="build_config_folder"

I'm getting this error message:


D:\Temp\build_test\allElements.xml:12: The following error occurred while
executing this line:
Target "clean" does not exist in the project "Generic Build Targets".


Looking at the build files the clean target in build.xml attempts to set
property named "target" to value "cleanElements" which is the target to be
invoked in generic targets, this fails as "target" is already set from the
command line to "clean" and thus get the above error.

Thanks for any input,
V.
Re: Specifying clean target to headless PDE build [message #323499 is a reply to message #323452] Sat, 22 December 2007 17:48 Go to previous messageGo to next message
Eclipse UserFriend
Try the following :

....\build.xml" clean,main -Dbuilder="build_config_folder"

Snjeza

Vladimir G. wrote:
> Howdy,
>
> Is this legal to pass -Dtarget=clean to a headless PDE build invoked via
> antRunner?
>
> java -jar " path_to_org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.ja r "
> -application org.eclipse.ant.core.antRunner
> -buildfile
> " path_to_org.eclipse.pde.build_3.3.2.R331_v20071019\scripts\b uild.xml "
> -Dtarget=clean -Dbuilder="build_config_folder"
>
> I'm getting this error message:
>
>
> D:\Temp\build_test\allElements.xml:12: The following error occurred
> while executing this line:
> Target "clean" does not exist in the project "Generic Build Targets".
>
>
> Looking at the build files the clean target in build.xml attempts to set
> property named "target" to value "cleanElements" which is the target to
> be invoked in generic targets, this fails as "target" is already set
> from the command line to "clean" and thus get the above error.
>
> Thanks for any input,
> V.
>
Re: Specifying clean target to headless PDE build [message #323761 is a reply to message #323452] Mon, 07 January 2008 15:57 Go to previous message
Eclipse UserFriend
The main build.xml for pdeBuild calls targets in the genericTargets.xml through
the allElements.xml. The target parameter is used to specify the target to run,
and the value needs to be a target that is present in genericTargets.xml script.

Vladimir G. wrote:
> Howdy,
>
> Is this legal to pass -Dtarget=clean to a headless PDE build invoked via
> antRunner?
>
> java -jar " path_to_org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.ja r "
> -application org.eclipse.ant.core.antRunner
> -buildfile
> " path_to_org.eclipse.pde.build_3.3.2.R331_v20071019\scripts\b uild.xml "
> -Dtarget=clean -Dbuilder="build_config_folder"
>
> I'm getting this error message:
>
>
> D:\Temp\build_test\allElements.xml:12: The following error occurred
> while executing this line:
> Target "clean" does not exist in the project "Generic Build Targets".
>
>
> Looking at the build files the clean target in build.xml attempts to set
> property named "target" to value "cleanElements" which is the target to
> be invoked in generic targets, this fails as "target" is already set
> from the command line to "clean" and thus get the above error.
>
> Thanks for any input,
> V.
>
Previous Topic:Include multiple features in build output
Next Topic:Invalid project description error message returned when importing projects.
Goto Forum:
  


Current Time: Thu May 08 01:54:11 EDT 2025

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

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

Back to the top