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 10:37:57 GMT
that works, too

        <exec executable="cmd.exe" output="out.txt">
            <arg line="/c print.pl"/>
            <arg line="one two three"/>
        </exec>


But if you really use "\c" you have the wrong format for cmd.exe´s
options.


Jan


> -----Original Message-----
> From: Matthias P. [mailto:groups.mpatzak@gmx.de]
> Sent: Friday, August 08, 2003 12:34 PM
> To: Ant Users List
> Subject: RE: output of exex-file
> 
> 
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message