ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guruprasad R <guruprasa...@gmail.com>
Subject Re: command execution
Date Thu, 19 Jan 2006 07:31:00 GMT
hi all,
finally i am using the java task to do it.

<target name="exectask">
  <java dir="${src}/classes" classpathref="class.path" classname="
weblogic.ejbc" args="npacejb.jar"/>
</target>

here, i am getting
exectask:
     [java] The args attribute is deprecated. Please use nested arg
elements.
     [java] Working directory ignored when same JVM is used.
     [java] ERROR: source file: npacejb.jar could not be found.

It seems like the ANT is not executing the command as mentioned in *dir*.
Please help.



On 1/19/06, Stefan Bodewig <bodewig@apache.org> wrote:
>
> On Wed, 18 Jan 2006, Guruprasad R. <guruprasad81@gmail.com> wrote:
>
> > i am getting a message as "Please use the executable attribute and
> > nested arg elements." how do i do this? Please help.
>
> Take your command attribute's value and add it to <arg line=""/> prior
> to the other <arg> you have, remove the command attribute completely.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message