ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbenn...@ca.ibm.com
Subject exec on AIX
Date Wed, 30 May 2001 18:08:41 GMT
Hello,

I'm trying to append the contents of file to another file by using the exec
task on AIX. I'm using Ant1.3 on AIX 4.3.

When I enter this command on the command line, everything works fine:

cat twsurl.htm >> cat_test.txt           (the contents of twsurl.htm are
appended to "cat_test.txt")

but when I use <exec>, I get the following output. It looks like the ">>"
is being read as a file.

Logfile:

     [exec] Myos = AIX
     [exec] cat twsurl.htm >> /build/temp/wsa/1.0/cat_test.txt
Execute:CommandLauncher: /usr/local/ant1.3/bin/antRun
/build/temp/XXX/1.0/010530/w2w-out/flat cat twsurl.htm >> cat_test.txt
     [exec] cat: 0652-050 Cannot open >>.
     [exec] Result: 2

buildfile:

<exec dir="/build/temp/XXX/1.0/010530/w2w-out/flat" executable="cat" os
="AIX" >
  <arg line="cat ${catfile} >> cat_test.txt"/>
</exec>

Any help is appreciated.

TIA,
David



Mime
View raw message