You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Thomas Mitchell <th...@cs.com> on 2004/05/10 15:10:52 UTC

ANT ignoring command line argument

I've just recently started working with ANT. About a week after using 
ANT, I'm finding that ANT is ignoring the command line argument for the 
target of the build.xml file. I have tried calling ANT specific 
arguments using different build.xml files that are known to be good.  
However, the default target in the project tag is always used. The 
argument was read by ANT the first week I was using it. The only way 
I've found to call a specific target is to change the default value in 
the project tag. Anyone know that cause or solution?

-- 
Thomas Mitchell







---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ANT ignoring command line argument

Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 10 May 2004, Thomas Mitchell <th...@cs.com> wrote:

> Anyone know that cause or solution?

How are you invoking Ant?

Almost always when we've seen reports like this, the user did not use
the wrapper script provided by Ant but a script of his/her own (or the
system administrator or the guy who packaged Ant ...) and the problem
was within that script.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ANT ignoring command line argument

Posted by Ivan Ivanov <ra...@yahoo.com>.
Hello Thomas,
can you provide more details about your problem: what
version of ant you are using, how do you call ant,
what is your default target, what are the other
targets.

Regards Ivan

--- Thomas Mitchell <th...@cs.com> wrote:
> I've just recently started working with ANT. About a
> week after using 
> ANT, I'm finding that ANT is ignoring the command
> line argument for the 
> target of the build.xml file. I have tried calling
> ANT specific 
> arguments using different build.xml files that are
> known to be good.  
> However, the default target in the project tag is
> always used. The 
> argument was read by ANT the first week I was using
> it. The only way 
> I've found to call a specific target is to change
> the default value in 
> the project tag. Anyone know that cause or solution?
> 
> -- 
> Thomas Mitchell
> 
> 
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 



	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org