Bug 24594 - Targets specified as arguments not recognized
Summary: Targets specified as arguments not recognized
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P1 normal (vote)
Target Milestone: 2.1 M2   Edit
Assignee: Luc Bourlier CLA
QA Contact:
URL:
Whiteboard:
Keywords: core
Depends on:
Blocks:
 
Reported: 2002-10-09 15:44 EDT by Darin Swanson CLA
Modified: 2002-10-16 12:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Swanson CLA 2002-10-09 15:44:14 EDT
ant [options] [target [target2 [target3]...]]
should be accepted.
We currently do not recognize the designation of targets.
Comment 1 Darin Swanson CLA 2002-10-10 09:52:16 EDT
Please verify the changes to InternalAntRunner.
Comment 2 Darin Swanson CLA 2002-10-11 10:01:51 EDT
Reopening for verification for M2
Comment 3 Darin Swanson CLA 2002-10-11 10:02:24 EDT
Please verify Luc
Comment 4 Luc Bourlier CLA 2002-10-11 16:14:32 EDT
Verified.
Please update the build notes (darins)
Comment 5 Sonia Dimitrov CLA 2002-10-15 16:34:17 EDT
This problem seems to to be manifesting in build I20021015

1.  create Ant script in root of eclipse install containing:

<project name="foo" default="run" basedir=".">
	<target name="run">
		<echo message="in the run target" />
		<mkdir dir="${basedir}/run" />
	</target>
	
	<target name="run2">
		<echo message="in the run2 target" />
		<mkdir dir="${basedir}/run2" />
	</target>
</project>

2.  from cmd window, run:
java -cp startup.jar org.eclipse.core.launcher.Main -noupdate -ws win32 -os 
win32 -arch x86 -application org.eclipse.ant.core.antRunner -file foo.xml run2

Observe:

-no console output
-no directory for either default or specified target


Comment 6 Darin Swanson CLA 2002-10-15 18:17:55 EDT
Fixed in InternalAntRunner.

Note: If you wish to see console output when running eclipse headless you will 
need to specify "-logger org.apache.tools.ant.DefaultLogger". Otherwise the 
output will only go to the LogConsoleView which you cannot see ;-)
Comment 7 Darin Swanson CLA 2002-10-15 18:18:07 EDT
Please verify (Luc)
Comment 8 Darin Swanson CLA 2002-10-16 08:28:21 EDT
My previous comment about specifying a logger is wrong...if you are headless 
there is no log console view. Logged bug 24824.
Comment 9 Luc Bourlier CLA 2002-10-16 12:33:03 EDT
Verified.
Please update the build notes (darinS)