Hello,

Description:

I'll be building new Java classes for everything else I need to implement. I've already build one class and was able to reference it through ANT. However, there are several Perl scripts I need to launch. I have been unable to get this simple example to work. Is there some trick to getting the CLI options to the perl script you are executing?

Code:

<?xml version="1.0"?> <project name="projectfoo" default="targetfoo" basedir="."> <description> Ant+Perl test </description> <target name="targetfoo" description="launch perl script"> <exec executable="perl"> <arg value="c:\mydir\foo.pl"/> <arg value="-f c:\xyz\filename.txt"/> </exec> </target> </project>
I get the following error:

Output:

Build sequence for target `projectfoo' is targetfoo Complete build sequence is targetfoo

test2:
     exec Current OS is Windows 2000
     exec Executing 'perl' with arguments:
     exec 'foo.pl'
     exec The ' characters around the executable and arguments are
     exec not part of the command.

Thank you :)
-P0w3rK!d


In reply to Re: Re: Ant and Perl by P0w3rK!d
in thread Ant and Perl by P0w3rK!d

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.