ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <>
Subject Re: Requiring multiple properties to be set
Date Mon, 19 Nov 2001 08:26:02 GMT
----- Original Message ----- 
From: "Laurie Harper" <>
To: <>
Cc: "'Ant Users List'" <>
Sent: Monday, November 19, 2001 7:51 AM
Subject: RE: Requiring multiple properties to be set

> No, unfortunately; I have a single task that requires all three
> properties to be set.  It can't be broken into three seperate tasks
> because the properties supply command line arguments to an external
> script.

And what about 

<target name="test1" unless="p1">
  <fail message="Property p1 must be defined"/>
<target name="test2" unless="p2"/>
  <fail message="Property p2 must be defined"/>
<target name="test3" unless="p3"/>
  <fail message="Property p3 must be defined"/>
<target name="mainTarget" depends="test1, test2, test3"/>


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message