ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: ant is giving me a spurious "Unknown argument" error
Date Mon, 31 Oct 2005 07:02:35 GMT
Hi Deron,

-cp will add entries to the classpath - as "java" does.
It´s implemented in the Launcher [1] (why it´s not documented via "ant -h"?) in September
last year [2], so it must be introduced with Ant 1.6.3 [3].

Maybe the wrapper script (which uses -cp) is from 1.6.3+ and the implementation is older.

* see what´s in $ant.home
* try a
  java -cp $ant.home/lib/ant-launcher org.apache.tools.ant.launch.Launcher -version
  (use the unix-correct syntax for $ant.home !)


Jan


[1] http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java
[2] http://svn.apache.org/viewcvs.cgi/ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java?rev=276820&r1=276773&r2=276820&diff_format=h
[3] http://ant.apache.org/faq.html#history



>-----Ursprüngliche Nachricht-----
>Von: Deron Johnson [mailto:Deron.Johnson@Sun.COM] 
>Gesendet: Freitag, 28. Oktober 2005 21:33
>An: user@ant.apache.org
>Betreff: ant is giving me a spurious "Unknown argument" error
>
>
>When I type:
>
>./ant -version
>
>I get the following error message:
>
>Unknown argument: -cp
>ant [options] [target [target2 [target3] ...]]
>Options:
>  -help, -h              print this message
>  -projecthelp, -p       print project help information
>...
>
>I'm not even giving it a '-cp' argument.
>
>Any ideas what is causing this?
>
>(I'm running on SUSE 9.3-Pro).
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message