ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@apache.org>
Subject Re: Requiring multiple properties to be set
Date Mon, 19 Nov 2001 08:26:02 GMT
----- Original Message ----- 
From: "Laurie Harper" <zodiac@holoweb.net>
To: <zulq@alam.demon.co.uk>
Cc: "'Ant Users List'" <ant-user@jakarta.apache.org>
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>
<target name="test2" unless="p2"/>
  <fail message="Property p2 must be defined"/>
</target>
<target name="test3" unless="p3"/>
  <fail message="Property p3 must be defined"/>
</target>
<target name="mainTarget" depends="test1, test2, test3"/>

Nico



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


Mime
View raw message