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:[EMAIL PROTECTED] 
>Gesendet: Freitag, 28. Oktober 2005 21:33
>An: [email protected]
>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: [EMAIL PROTECTED] For 
>additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to