ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias P. <groups.mpat...@gmx.de>
Subject RE: output of exex-file
Date Fri, 08 Aug 2003 10:33:47 GMT
Hi,

i am seeing the difference:

I am calling the perl script with cmd \c ...

Have to try this. 

Thanks, it was a help!

Matthias

> 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
> 

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualit├Ątssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message