ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject Re: command execution
Date Wed, 18 Jan 2006 12:59:12 GMT
You don't need <exec> - use <java> instead.

-- 
Jeffrey E. Care (carej@us.ibm.com)
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)


Guruprasad R <guruprasad81@gmail.com> wrote on 01/18/2006 07:40:44 AM:

> I am using ant on my Windows 2000 OS. I want to execute a command "java
> weblogic.ejbc npacejb.jar" from a particular directory in the command 
prompt
> using ANT. i have written the script as below. I am not sure whether i 
have
> written the script properly.
> 
>  <target name="exectask" depends="makejar">
>   <exec executable="cmd" os="Windows 2000" command="/c java 
weblogic.ejbc
> npacejb.jar">
>    <arg line="${src}/classes"/>
>   </exec>
> 
> i am getting a message as "Please use the executable attribute and 
nested
> arg elements." how do i do this? Please help.

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