----- Original Message -----
From: "Dan Lohman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 22, 2001 8:28 PM
Subject: <path/> depends attribute workaround available?
> The <path/> element does not support depends attribute is there a
> workaround?
> use case:
> I would like to execute init and prepare targets prior to <path/>
execution.
>
Why do you want to do this? Do you want your path depend on a property? If
nothing happened to this in the meantime (I don't think so) you can't do
this. You can do this using a <script> like this:
<script language="javascript"> <![CDATA[
dir = myProject.getProperty('base.path') + '/' +
myProject.getProperty('subDir');
file = new java.io.File(dir);
path = myProject.createDataType('path');
fileset = myProject.createDataType('fileset');
fileset.setDir(file);
fileset.setIncludes('*.xml');
path.addFileset(fileset);
myProject.addReference('xml-files', path);
]]></script>
Nico