|
|
@@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
* Copyright 2003-2004 The Apache Software Foundation |
|
|
|
* Copyright 2003-2004,2006 The Apache Software Foundation |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
@@ -21,6 +21,7 @@ import org.apache.tools.ant.Task; |
|
|
|
import org.apache.tools.ant.Project; |
|
|
|
import org.apache.tools.ant.BuildException; |
|
|
|
import org.apache.tools.ant.DirectoryScanner; |
|
|
|
import org.apache.tools.ant.util.StringUtils; |
|
|
|
|
|
|
|
/** |
|
|
|
* Alters the default excludes for the <strong>entire</strong> build.. |
|
|
@@ -60,10 +61,13 @@ public class DefaultExcludes extends Task { |
|
|
|
} |
|
|
|
if (echo) { |
|
|
|
StringBuffer message |
|
|
|
= new StringBuffer("Current Default Excludes:\n"); |
|
|
|
= new StringBuffer("Current Default Excludes:"); |
|
|
|
message.append(StringUtils.LINE_SEP); |
|
|
|
String[] excludes = DirectoryScanner.getDefaultExcludes(); |
|
|
|
for (int i = 0; i < excludes.length; i++) { |
|
|
|
message.append(" " + excludes[i] + "\n"); |
|
|
|
message.append(" "); |
|
|
|
message.append(excludes[i]); |
|
|
|
message.append(StringUtils.LINE_SEP); |
|
|
|
} |
|
|
|
log(message.toString(), logLevel); |
|
|
|
} |
|
|
|