aspose file tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant Output Redirection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Ant Output Redirection" Watch "Ant Output Redirection" New topic
Author

Ant Output Redirection

Rashmi Banthia
Ranch Hand

Joined: Dec 22, 2003
Posts: 79
My idea is to do the following using ANT:

C:\WTK22\BIN\emulator.exe -Xdescriptor:mmstest.jad > test.log


The above command places all the output produced using the emulator.exe is placed on test.log.
But if I do the following in ANT my test.log is always empty:

[CODE]
<exec dir = "." executable = "${j2me.home}\bin\emulator.exe" output = "test.log">
<arg line="-Xdescriptor:mmstest.jad" />
</exec>
[\CODE]

I also tried the following (it didn't even execute, just comes back to the prompt):
[CODE]
<exec dir = "." executable = "${j2me.home}\bin\emulator.exe" output = "test.log">
<arg line="-Xdescriptor:mmstest.jad > test.log" />
</exec>
[\CODE]

Any help appreciated.

Thanks
Rashmi

[ June 29, 2004: Message edited by: Rashmi Banthia ]
[ June 29, 2004: Message edited by: Rashmi Banthia ]
 
 
subject: Ant Output Redirection
 
Threads others viewed
Running a shell script from ANT
Execute failed: java.io.IOException - error 2
Trouble launching ant exec task
How to go to a partical directory
Doing a pg_dump in Postgres using Ant - password poblem
MyEclipse, The Clear Choice