ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Vernum <>
Subject RE: Ant and Conditional Expressions1
Date Fri, 04 May 2001 04:24:50 GMT

> I notice that targets can have an 'if' argument, but 
> unfortunately this is
> only concerned with the existence of a parameter whereas I am also
> interested in the value of a parameter

Some time ago I send an <equal> task to ant-dev, that would allow
you to set a property if two values were equal.

      <target name="copy-orbix" depend="check-orbix" if="">

	<target name="check-orbix">
		<equal property="" left="${orb}" right="orbix"/>

I can try and dig the code out if you want, but it's pretty easy to write
it yourself.

Note to others:
	Is anyone hosting a collection of weird ant tasks?
	There has been reluctance to add a contrib/ modules to the ant-cvs,
	  and I'm quickly collecting a bunch of these sort of tasks.

View raw message