Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Re: AW: Running the <exec ant command in Eclipse?

Craig Riley

2008-05-14

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

Thanks for that, it now works. I simply needed to add..  <arg line="/c"
/> before my wget command.

Cheers

Craig


Quoting "Knuplesch, Juergen" <Juergen.Knuplesch@(protected)>:

> What system you us? Linux, Windows???
>
> Is wgwt a batchfile or a executable file?
>
> The Ant manual says:
> Note that .bat files cannot in general by executed directly. One  
> normally needs to execute the command shell executable cmd using the
> /c switch.
>
> <target name="help">
>  <exec executable="cmd">
>   <arg value="/c"/>
>   <arg value="ant.bat"/>
>   <arg value="-p"/>
>  </exec>
> </target>
>
>
>
>
>
>
> I discourage the use of arg line, because I had trouble with it.
> Use <arg value> instead:
> <arg value="/c"/>
> <arg value="ant.bat"/>
> <arg value="-p"/>
>
>
> Greetings
> --
> Jürgen
> -----Ursprüngliche Nachricht-----
> Von: Craig Riley [mailto:craig@(protected)]
> Gesendet: Mittwoch, 14. Mai 2008 12:41
> An: user@(protected)
> Betreff: Running the <exec ant command in Eclipse?
>
> I'm new to the list so first let me say Hi!
>
> I've only recently started using Ant but I think it's amazing!
>
> I have been running my build script from within Eclipse and I've  
> come across my first problem. I've searched online but I couldn't  
> find an answer to this problem.
>
> My build script creates a coldfusion file which I need to run as  
> part of setup. My build script uses the following command command:
>
> <exec executable="cmd">
>      <arg line="c:\wget\wget -O -  
> http://localhost/ant/build/index.cfml" /> </exec>
>
> Ant doesn't error when I run it which isn't helpful. If I go to the  
> file path in a browser it runs ok and does everything it should, and
> if I run the command from a command line (c:\wget\wget -O -
> http://localhost/ant/build/index.cfml) it also works fine.
>
> I suspect this maybe something to do with the ant/eclipse setup or a
> missing library on my machine but I'm really not sure?
>
> Please help! :)
>
>
> Cheers
>
> Craig
>
>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)  
> additional commands, e-mail: user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.