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:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 14. Mai 2008 12:41
An: user@ant.apache.org
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: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to