Hi All,
Can this type of thing work for searching a dir tree?
I cant get it to work?
I'm trying to search for a file anywhere in a dir tree and set a
property
if that is there.
Like the available task, but I can't see how to get it to search a
complete tree.

I've tried:
<available resource="my.file.txt" type="file" property="found">
  <classpath>
    <fileset dir="${search.root}">
      <include name="**"/>
      <exclude name="**/*.*"/>
    </fileset>
  </classpath>
</available>

And also with filesets, but I'm stuck. Any ideas?
Alan.

-----Original Message-----
From: Alan Pearlman Spencer 
Sent: 08 November 2001 18:10
To: Ant Users List
Subject: RE: Is there a way to copy only a directory structure?


Thanks,
I got it to work by using, but it copies files with no extension...

    <copy todir="${foobar}"
          includeEmptyDirs="yes">
      <fileset dir="${foo}"
               excludes="**/*.*">
      </fileset>
    </copy>
I tried:** **.* **/* but they don't copy anything...
Thanks,
Alan.


-----Original Message-----
From: Matt Lyon [mailto:[EMAIL PROTECTED]]
Sent: 08 November 2001 17:29
To: Ant Users List
Subject: RE: Is there a way to copy only a directory structure?


Hi,

Just a guess (don't have time to test it for you right now), but try:

    <copy todir="${foobar}"
          includeEmptyDirs="yes">
      <fileset dir="${foo}"
               excludes="**.*">
      </fileset>
    </copy>

Cheers,

Matt
-----Original Message-----
From: Alan Pearlman Spencer
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 08, 2001 12:37 PM
To: Ant Users List
Subject: Is there a way to copy only a directory structure?


I am interested in copying a whole directory tree from A to B but
not the files, only the structure.
Any ideas?

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to