Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem: Perl script - ant

Status
Not open for further replies.

MrFraggel

Programmer
Sep 2, 2005
1
DE
Hi,
I have a problem.
I start a Perlscript cc_mk_label.pl in ant with the task:
<ant:exec dir="." executable="cmd" outputproperty="resultValue" resultproperty="returnValue"
<arg line="/c ${maven.build.common.basedir}/scripts/cc_mk_label.pl"/>

The Perlscript exit with an exitcode:
exit(100);

Now I want to bind the exit code in the outputproperty or the resultproperty but it doesn't work.

The exit code 100 is definitely set from the Perl script but ant doesn't take this code in hin property.
Why not ?

I would be very pleased to be helped.

thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top