Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » PDE launch of org.eclipse.ant.core.antRunner removes specified targets
PDE launch of org.eclipse.ant.core.antRunner removes specified targets [message #331037] Thu, 21 August 2008 18:59
Henrich Kraemer is currently offline Henrich KraemerFriend
Messages: 59
Registered: July 2009
Member
I am lauching an ant task in PDE and trying to specify -buildfile <file>
target

However the target does not make it into the ant invocation and it
executes the default target instead.
This looks like a bug, or not?
Is it a known issue?
Is there a known workaround?

Here are more details:

My dev environment is Team Concert 1.0 and my target is Eclipse SDK 3.3.

Excerpts from the launch configuration:

<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
...
<stringAttribute key="application" value="org.eclipse.ant.core.antRunner"/>
...
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl
${target.nl} -buildfile
C:\AD\Capilano\runtime-author-ui.product\AntGeneral\build.xm l
export_nonresponsive"/>

I debugged the issue by setting a BP at
org.eclipse.ant.internal.core.ant.InternalAntRunner.processC ommandLine(java.util.List)
line: 961
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(java .util.List)
line: 503
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(java .lang.Object)
line: 495
sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.refle ct.Method,
java.lang.Object, java.lang.Object[]) line: not available [native
method]
sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object ,
java.lang.Object[]) line: 64
sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Ob ject,
java.lang.Object[]) line: 43
java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object...)
line: 615
org.eclipse.ant.core.AntRunner.run(java.lang.Object) line: 512
org.eclipse.ant.core.AntRunner.start(org.eclipse.equinox.app .IApplicationContext)
line: 599
org.eclipse.equinox.internal.app.EclipseAppHandle.run(java.l ang.Object)
line: 153
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(java.lang.Object)
line: 106
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(java.lang.Object)
line: 76
org.eclipse.core.runtime.adaptor.EclipseStarter.run(java.lan g.Object)
line: 363
org.eclipse.core.runtime.adaptor.EclipseStarter.run(java.lan g.String[],
java.lang.Runnable) line: 176
sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.refle ct.Method,
java.lang.Object, java.lang.Object[]) line: not available [native
method]
sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object ,
java.lang.Object[]) line: 64
sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Ob ject,
java.lang.Object[]) line: 43
java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object...)
line: 615
org.eclipse.equinox.launcher.Main.invokeFramework(java.lang. String[],
java.net.URL[]) line: 504
org.eclipse.equinox.launcher.Main.basicRun(java.lang.String[ ]) line: 443
org.eclipse.equinox.launcher.Main.run(java.lang.String[]) line: 1169
org.eclipse.equinox.launcher.Main.main(java.lang.String[]) line: 1144


The commands variable contains [-pdelaunch, -buildfile,
C:\AD\Capilano\runtime-author-ui.product\AntGeneral\build.xm l,
export_nonresponsive] when entering processCommandLine(commands)

When processUnrecognizedCommands(commands) is called commands contains
[-pdelaunch, export_nonresponsive] both of which are removed.
The comment in the code says "we remove everything up to the last
argument that begins with a '-'".
It should only remove -pdelaunch, I think
Previous Topic:CommonNavigator refresh issues on changing file content type
Next Topic:Removing A Page From A Wizard
Goto Forum:
  


Current Time: Wed Jul 17 19:33:11 GMT 2024

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

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

Back to the top