ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <mil...@gmx.de>
Subject Re: Output of perl exec behaving oddly
Date Mon, 24 Jan 2011 03:12:10 GMT
Laurence Mills-Gahl schrieb am 23.01.2011 um 21:27 (-0500):
> I have an ant exec task that is behaving inconsistently.
> 
> I have a list of centerid's and a "foreach" loop

Red flag goes up …

> that calls the following target:
> 
>     <target name="compile_alert_report" description="compile  detail
> report for alerts">
>         <echo>patient detail for patients NOT on alert for center
> ${centerid}</echo>

Alert: Properties aren't variable. They're immutable. Their value does
not change once set.

>         <exec dir="${center.bin}" executable="${perl}" failonerror="true">
>             <arg line=" reportAlertDetail.pl -e ${report.enddate} -c
> ${centerid}  -A x -a x  -o ${report.xml}/${BUILDTIME}" />
>         </exec>

More properties here. It's the same Perl script invocation each time
around. That's probably not what you intend to do.

There are a couple simple things you can do to find out what's going on.

ant -h              # help
ant -v              # verbose, some info
ant -d              # debug, including properties getting set
ant -diagnostics    # also useful to know what info is available here

Take a look at the <listproperties> task, also occasionally useful to
produce diagnostic output.

-- 
Michael Ludwig

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


Mime
View raw message