test*- all beginning with 'test'
Jan
-Ursprüngliche Nachricht-
Von: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 2. Juni 2006 01:25
An: Ant Users List
Betreff: Re: Cannot delete directories using wildcards
It should be:
delete failonerror=false
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
This results in AbstractFileSet.getDirectoryScanner(Project) [2]:
...
if (dir == null) {
throw new BuildException(No directory specified for +
getDataTypeName() + .);
}
if (!dir.exists())
/home/tomm/anttest/test2
I just didn't realize ant wasn't expanding the wildcard.
-Tom
[EMAIL PROTECTED]
06/01/2006 11:20 PM
Please respond to
Ant Users List user@ant.apache.org
To
user@ant.apache.org
cc
Subject
AW: Cannot delete directories using wildcards
Just for information
I'm probably missing something obvious, but I've been unable to figure out
how to delete directories using a wildcard.
So instead of this (test1/2/3 are directories):
delete failonerror=false includeEmptyDirs=true
fileset dir=${basedir}/test1/
fileset
It should be:
delete failonerror=false includeEmptyDirs=true
fileset dir=${basedir} includes=test*//
/delete
- Alexey.
[EMAIL PROTECTED] wrote:
I'm probably missing something obvious, but I've been unable to figure
out
how to delete directories using a wildcard.
So instead of this