ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
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, <> 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"/>


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

or directly use the <java> task instead.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message