cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject Re: How to get Ant to require two libraries
Date Wed, 10 Jan 2001 15:59:47 GMT
Klaasen Tom wrote:

> About the same question was asked only a while ago on the ant-dev
> mailinglist:
> hth,

Thanks -- I got it working with a creative solution.  You can
see what I did with the latest cvs.

Basically it uses two tasks each one executes if the property
exists that is needed--on the last dependancy, I set a property.
I exclude the file from javac unless the property exists:

<task name="prepare-jndi" depends="prepare-datasource" if="jndi.present"/>

<task name="prepare-datasource" depends="prepare-main-source" if="datasource.present">
   <property name="j2ee.present" value="true"/>


<javac ....>
     <exclude file="**/" unless="j2ee.present"/>

View raw message