ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: <exec> task: Unrecognized option: -jar bin/exist/start.jar?
Date Fri, 23 Apr 2004 09:59:54 GMT
On Fri, 23 Apr 2004, <jakob@jfix.com> wrote:

> I am getting an "Unrecognized option" error while trying
> to use the <exec> task.

[...]

>   <arg value="-jar ${exist.home}/start.jar"/>

passes "-jar ${exist.home}/start.jar" as a single argument and Java
doesn't understand it that way.  You either want

  <arg line="-jar ${exist.home}/start.jar"/>

or

  <arg value="-jar"/>
  <arg value="${exist.home}/start.jar"/>

or directly use the <java> task instead.

Stefan

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


Mime
View raw message