ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: output of exex-file
Date Fri, 08 Aug 2003 05:28:03 GMT
Sorry, works for me:


print.pl
-----------------------------------------
print "Hello World\n";
print "My args are:\n";
foreach $arg (@ARGV) {
    print "- $arg\n";
}
print "\nBye!\n";



build.xml
-----------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="test" basedir="." default="main">
    <target name="main">
        <exec executable="perl" output="out.txt">
            <arg value="print.pl"/>
            <arg line="one two three"/>
        </exec>
    </target>
</project>



out.txt
-----------------------------------------
Hello World
My args are:
- one
- two
- three

Bye!



ant -diagnostics
-----------------------------------------
------- Ant diagnostics report -------
Apache Ant version 1.6alpha compiled on July 11 2003

-------------------------------------------
 Implementation Version (JDK1.2+ only)
-------------------------------------------
core tasks     : 1.6
optional tasks : 1.6
-------------------------------------------
 System properties
-------------------------------------------
java.vm.version : 1.4.2-b28



Works with Ant 1.5.3-1 also.


ant -diagnostics
-----------------------------------------
------- Ant diagnostics report -------
Apache Ant version 1.5.3 compiled on April 16 2003

-------------------------------------------
 Implementation Version (JDK1.2+ only)
-------------------------------------------
core tasks     : 1.5.3
optional tasks : 1.5.3



Jan


> Hi,
> 
> I am executing a perl script with a <exec>-task. These scripts are
> generating output with the "print"-function. This output 
> would be very intersting for
> me during the build. How can i force ant to show me these 
> "print" output. 
> 
> When using the "output"-attribute, in the output-file, 
> nothing is written to
> it.
> 
> Any ideas?
> 
> Matthias

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