git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274768 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -54,19 +54,12 @@ | |||||
| package org.apache.tools.ant; | package org.apache.tools.ant; | ||||
| import org.apache.tools.ant.util.LazyHashtable; | |||||
| import org.apache.tools.ant.util.WeakishReference; | import org.apache.tools.ant.util.WeakishReference; | ||||
| import java.util.Enumeration; | import java.util.Enumeration; | ||||
| import java.util.Hashtable; | import java.util.Hashtable; | ||||
| import java.util.HashSet; | |||||
| import java.util.Iterator; | import java.util.Iterator; | ||||
| import java.util.Properties; | import java.util.Properties; | ||||
| import java.util.Set; | |||||
| import java.util.Map; | |||||
| import java.util.HashMap; | |||||
| import java.util.List; | |||||
| import java.util.ArrayList; | |||||
| import java.util.Vector; | import java.util.Vector; | ||||
| import java.io.InputStream; | import java.io.InputStream; | ||||
| @@ -104,7 +97,7 @@ public class ComponentHelper { | |||||
| private Hashtable typeClassDefinitions = new Hashtable(); | private Hashtable typeClassDefinitions = new Hashtable(); | ||||
| /** flag to rebuild typeClassDefinitions */ | /** flag to rebuild typeClassDefinitions */ | ||||
| private boolean rebuildTypeClassDefinitions = true; | private boolean rebuildTypeClassDefinitions = true; | ||||
| /** | /** | ||||
| * Map from task names to vectors of created tasks | * Map from task names to vectors of created tasks | ||||
| * (String to Vector of Task). This is used to invalidate tasks if | * (String to Vector of Task). This is used to invalidate tasks if | ||||
| @@ -157,17 +150,17 @@ public class ComponentHelper { | |||||
| antTypeTable.put(def.getName(), def); | antTypeTable.put(def.getName(), def); | ||||
| } | } | ||||
| } | } | ||||
| /** Factory method to create the components. | /** Factory method to create the components. | ||||
| * | |||||
| * | |||||
| * This should be called by UnknownElement. | * This should be called by UnknownElement. | ||||
| * | |||||
| * | |||||
| * @param ue The component helper has access via ue to the entire XML tree. | * @param ue The component helper has access via ue to the entire XML tree. | ||||
| * @param ns Namespace. Also available as ue.getNamespace() | * @param ns Namespace. Also available as ue.getNamespace() | ||||
| * @param taskName The element name. Also available as ue.getTag() | * @param taskName The element name. Also available as ue.getTag() | ||||
| * @return | * @return | ||||
| * @throws BuildException | * @throws BuildException | ||||
| */ | |||||
| */ | |||||
| public Object createComponent( UnknownElement ue, | public Object createComponent( UnknownElement ue, | ||||
| String ns, | String ns, | ||||
| String taskName ) | String taskName ) | ||||
| @@ -187,7 +180,7 @@ public class ComponentHelper { | |||||
| return component; | return component; | ||||
| } | } | ||||
| /** | /** | ||||
| * Create an object for a component. | * Create an object for a component. | ||||
| * | * | ||||
| @@ -220,13 +213,13 @@ public class ComponentHelper { | |||||
| public AntTypeDefinition getDefinition(String componentName) { | public AntTypeDefinition getDefinition(String componentName) { | ||||
| return antTypeTable.getDefinition(componentName); | return antTypeTable.getDefinition(componentName); | ||||
| } | } | ||||
| /** Initialization code - implementing the original ant component | /** Initialization code - implementing the original ant component | ||||
| * loading from /org/apache/tools/ant/taskdefs/default.properties | |||||
| * loading from /org/apache/tools/ant/taskdefs/default.properties | |||||
| * and .../types/default.properties | * and .../types/default.properties | ||||
| * | |||||
| * | |||||
| * @throws BuildException | * @throws BuildException | ||||
| */ | |||||
| */ | |||||
| public void initDefaultDefinitions() throws BuildException { | public void initDefaultDefinitions() throws BuildException { | ||||
| initTasks(); | initTasks(); | ||||
| initTypes(); | initTypes(); | ||||
| @@ -334,7 +327,7 @@ public class ComponentHelper { | |||||
| } | } | ||||
| return taskClassDefinitions; | return taskClassDefinitions; | ||||
| } | } | ||||
| /** | /** | ||||
| * Returns the current type definition hashtable. The returned hashtable is | * Returns the current type definition hashtable. The returned hashtable is | ||||
| @@ -368,7 +361,7 @@ public class ComponentHelper { | |||||
| } | } | ||||
| return typeClassDefinitions; | return typeClassDefinitions; | ||||
| } | } | ||||
| /** | /** | ||||
| * Adds a new datatype definition. | * Adds a new datatype definition. | ||||
| * Attempting to override an existing definition with an | * Attempting to override an existing definition with an | ||||
| @@ -400,7 +393,7 @@ public class ComponentHelper { | |||||
| public void addDataTypeDefinition(AntTypeDefinition def) { | public void addDataTypeDefinition(AntTypeDefinition def) { | ||||
| updateDataTypeDefinition(def); | updateDataTypeDefinition(def); | ||||
| } | } | ||||
| /** | /** | ||||
| * Returns the current datatype definition hashtable. The returned | * Returns the current datatype definition hashtable. The returned | ||||
| * hashtable is "live" and so should not be modified. | * hashtable is "live" and so should not be modified. | ||||
| @@ -438,7 +431,7 @@ public class ComponentHelper { | |||||
| org.apache.tools.ant.taskdefs.Property.class); | org.apache.tools.ant.taskdefs.Property.class); | ||||
| task = createNewTask(taskType); | task = createNewTask(taskType); | ||||
| } | } | ||||
| if (task != null) { | if (task != null) { | ||||
| addCreatedTask(taskType, task); | addCreatedTask(taskType, task); | ||||
| } | } | ||||
| @@ -463,7 +456,7 @@ public class ComponentHelper { | |||||
| if (c == null) { | if (c == null) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| if (! Task.class.isAssignableFrom(c)) { | if (! Task.class.isAssignableFrom(c)) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| @@ -565,12 +558,12 @@ public class ComponentHelper { | |||||
| for (Iterator i = antTypeTable.values().iterator(); i.hasNext();) { | for (Iterator i = antTypeTable.values().iterator(); i.hasNext();) { | ||||
| AntTypeDefinition def = (AntTypeDefinition) i.next(); | AntTypeDefinition def = (AntTypeDefinition) i.next(); | ||||
| if (elementClass == def.getExposedClass(project)) { | if (elementClass == def.getExposedClass(project)) { | ||||
| return "The <" + def.getName() + "> type"; | |||||
| return "The <" + def.getName() + "> type"; | |||||
| } | } | ||||
| } | } | ||||
| return "Class " + elementClass.getName(); | return "Class " + elementClass.getName(); | ||||
| } | } | ||||
| /** return true if the two definitions are the same */ | /** return true if the two definitions are the same */ | ||||
| private boolean sameDefinition( | private boolean sameDefinition( | ||||
| @@ -703,7 +696,7 @@ public class ComponentHelper { | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * map that contains the component definitions | * map that contains the component definitions | ||||
| */ | */ | ||||
| @@ -718,7 +711,7 @@ public class ComponentHelper { | |||||
| AntTypeDefinition ret = (AntTypeDefinition) super.get(key); | AntTypeDefinition ret = (AntTypeDefinition) super.get(key); | ||||
| return ret; | return ret; | ||||
| } | } | ||||
| /** Equivalent to getTypeType */ | /** Equivalent to getTypeType */ | ||||
| public Object get(Object key) { | public Object get(Object key) { | ||||
| return getTypeClass((String) key); | return getTypeClass((String) key); | ||||
| @@ -731,7 +724,7 @@ public class ComponentHelper { | |||||
| } | } | ||||
| return def.create(project); | return def.create(project); | ||||
| } | } | ||||
| public Class getTypeClass(String name) { | public Class getTypeClass(String name) { | ||||
| AntTypeDefinition def = getDefinition(name); | AntTypeDefinition def = getDefinition(name); | ||||
| if (def == null) { | if (def == null) { | ||||
| @@ -73,8 +73,6 @@ import org.apache.tools.ant.types.Description; | |||||
| import org.apache.tools.ant.types.Path; | import org.apache.tools.ant.types.Path; | ||||
| import org.apache.tools.ant.util.FileUtils; | import org.apache.tools.ant.util.FileUtils; | ||||
| import org.apache.tools.ant.util.JavaEnvUtils; | import org.apache.tools.ant.util.JavaEnvUtils; | ||||
| import org.apache.tools.ant.util.WeakishReference; | |||||
| import org.apache.tools.ant.util.LazyHashtable; | |||||
| /** | /** | ||||
| * Central representation of an Ant project. This class defines an | * Central representation of an Ant project. This class defines an | ||||
| @@ -287,7 +285,7 @@ public class Project { | |||||
| setJavaVersionProperty(); | setJavaVersionProperty(); | ||||
| ComponentHelper.getComponentHelper(this).initDefaultDefinitions(); | ComponentHelper.getComponentHelper(this).initDefaultDefinitions(); | ||||
| setSystemProperties(); | setSystemProperties(); | ||||
| } | } | ||||
| @@ -1839,8 +1837,8 @@ public class Project { | |||||
| + (priority == MSG_ERR ? "System.err" : "System.out") | + (priority == MSG_ERR ? "System.err" : "System.out") | ||||
| + " - infinite loop terminated"); | + " - infinite loop terminated"); | ||||
| } | } | ||||
| loggingMessage = true; | |||||
| int size = listeners.size(); | |||||
| loggingMessage = true; | |||||
| int size = listeners.size(); | |||||
| for (int i = 0; i < size; i++) { | for (int i = 0; i < size; i++) { | ||||
| BuildListener listener = (BuildListener) listeners.elementAt(i); | BuildListener listener = (BuildListener) listeners.elementAt(i); | ||||
| listener.messageLogged(event); | listener.messageLogged(event); | ||||
| @@ -64,7 +64,7 @@ package org.apache.tools.ant; | |||||
| * @see Task#perform | * @see Task#perform | ||||
| * @see Task#execute | * @see Task#execute | ||||
| * @see BuildEvent | * @see BuildEvent | ||||
| * | |||||
| * | |||||
| * @author Conor MacNeill | * @author Conor MacNeill | ||||
| */ | */ | ||||
| public interface TaskContainer { | public interface TaskContainer { | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
| @@ -54,8 +54,6 @@ | |||||
| package org.apache.tools.ant; | package org.apache.tools.ant; | ||||
| import java.lang.reflect.Method; | |||||
| /** | /** | ||||
| * Used to wrap types. | * Used to wrap types. | ||||
| * | * | ||||
| @@ -73,21 +71,21 @@ public interface TypeAdapter { | |||||
| * Gets the project | * Gets the project | ||||
| */ | */ | ||||
| public Project getProject(); | public Project getProject(); | ||||
| /** | /** | ||||
| * Sets the proxy object, whose methods are going to be | * Sets the proxy object, whose methods are going to be | ||||
| * invoked by ant. | * invoked by ant. | ||||
| * A proxy object is normally the object defined by | * A proxy object is normally the object defined by | ||||
| * a <typedef/> task that is adapted by the "adapter" | * a <typedef/> task that is adapted by the "adapter" | ||||
| * attribute. | * attribute. | ||||
| * | |||||
| * | |||||
| * @param o The target object. Must not be <code>null</code>. | * @param o The target object. Must not be <code>null</code>. | ||||
| */ | */ | ||||
| public void setProxy(Object o); | public void setProxy(Object o); | ||||
| /** | /** | ||||
| * Returns the proxy object. | * Returns the proxy object. | ||||
| * | |||||
| * | |||||
| * @return the target proxy object | * @return the target proxy object | ||||
| */ | */ | ||||
| public Object getProxy(); | public Object getProxy(); | ||||
| @@ -55,14 +55,11 @@ package org.apache.tools.ant.filters; | |||||
| import java.io.IOException; | import java.io.IOException; | ||||
| import java.io.Reader; | import java.io.Reader; | ||||
| import java.util.Hashtable; | |||||
| import java.util.Vector; | import java.util.Vector; | ||||
| import java.util.Enumeration; | import java.util.Enumeration; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.Project; | import org.apache.tools.ant.Project; | ||||
| import org.apache.tools.ant.ProjectComponent; | import org.apache.tools.ant.ProjectComponent; | ||||
| import org.apache.tools.ant.types.EnumeratedAttribute; | |||||
| import org.apache.tools.ant.types.Parameter; | |||||
| import org.apache.tools.ant.types.RegularExpression; | import org.apache.tools.ant.types.RegularExpression; | ||||
| import org.apache.tools.ant.types.Substitution; | import org.apache.tools.ant.types.Substitution; | ||||
| import org.apache.tools.ant.util.FileUtils; | import org.apache.tools.ant.util.FileUtils; | ||||
| @@ -250,13 +247,13 @@ public class TokenFilter | |||||
| /** | /** | ||||
| * add a tokenizer | * add a tokenizer | ||||
| */ | */ | ||||
| public void add(Tokenizer tokenizer) { | public void add(Tokenizer tokenizer) { | ||||
| if (this.tokenizer != null) | if (this.tokenizer != null) | ||||
| throw new BuildException("Only one tokenizer allowed"); | throw new BuildException("Only one tokenizer allowed"); | ||||
| this.tokenizer = tokenizer; | this.tokenizer = tokenizer; | ||||
| } | } | ||||
| // ----------------------------------------- | // ----------------------------------------- | ||||
| // Predefined filters | // Predefined filters | ||||
| // ----------------------------------------- | // ----------------------------------------- | ||||
| @@ -300,7 +297,7 @@ public class TokenFilter | |||||
| filters.addElement(filter); | filters.addElement(filter); | ||||
| } | } | ||||
| // -------------------------------------------- | // -------------------------------------------- | ||||
| // | // | ||||
| // Tokenizer Classes | // Tokenizer Classes | ||||
| @@ -353,11 +350,11 @@ public class TokenFilter | |||||
| * the line ending with the line, or to return | * the line ending with the line, or to return | ||||
| * it in the posttoken | * it in the posttoken | ||||
| */ | */ | ||||
| public void setIncludeDelims(boolean includeDelims) { | public void setIncludeDelims(boolean includeDelims) { | ||||
| this.includeDelims = includeDelims; | this.includeDelims = includeDelims; | ||||
| } | } | ||||
| public String getToken(Reader in) | public String getToken(Reader in) | ||||
| throws IOException | throws IOException | ||||
| { | { | ||||
| @@ -451,7 +448,7 @@ public class TokenFilter | |||||
| * attribute delimsaretokens - treat delimiters as | * attribute delimsaretokens - treat delimiters as | ||||
| * separate tokens. | * separate tokens. | ||||
| */ | */ | ||||
| public void setDelimsAreTokens(boolean delimsAreTokens) { | public void setDelimsAreTokens(boolean delimsAreTokens) { | ||||
| this.delimsAreTokens = delimsAreTokens; | this.delimsAreTokens = delimsAreTokens; | ||||
| } | } | ||||
| @@ -462,7 +459,7 @@ public class TokenFilter | |||||
| public void setSuppressDelims(boolean suppressDelims) { | public void setSuppressDelims(boolean suppressDelims) { | ||||
| this.suppressDelims = suppressDelims; | this.suppressDelims = suppressDelims; | ||||
| } | } | ||||
| /** | /** | ||||
| * attribute includedelims - treat delimiters as part | * attribute includedelims - treat delimiters as part | ||||
| * of the token. | * of the token. | ||||
| @@ -61,7 +61,6 @@ import java.io.IOException; | |||||
| import java.io.UnsupportedEncodingException; | import java.io.UnsupportedEncodingException; | ||||
| import java.util.Hashtable; | import java.util.Hashtable; | ||||
| import java.util.Stack; | import java.util.Stack; | ||||
| import java.util.Locale; | |||||
| import org.xml.sax.Locator; | import org.xml.sax.Locator; | ||||
| import org.xml.sax.InputSource; | import org.xml.sax.InputSource; | ||||
| @@ -779,7 +778,7 @@ public class ProjectHelper2 extends ProjectHelper { | |||||
| // container.addTask(task); | // container.addTask(task); | ||||
| // This is a nop in UE: task.init(); | // This is a nop in UE: task.init(); | ||||
| RuntimeConfigurable wrapper | |||||
| RuntimeConfigurable wrapper | |||||
| = new RuntimeConfigurable(task, task.getTaskName()); | = new RuntimeConfigurable(task, task.getTaskName()); | ||||
| for (int i = 0; i < attrs.getLength(); i++) { | for (int i = 0; i < attrs.getLength(); i++) { | ||||
| @@ -23,7 +23,7 @@ | |||||
| * Alternately, this acknowlegement may appear in the software itself, | * Alternately, this acknowlegement may appear in the software itself, | ||||
| * if and wherever such third-party acknowlegements normally appear. | * if and wherever such third-party acknowlegements normally appear. | ||||
| * | * | ||||
| * 4. The names "The Jakarta Project", "Ant", and "Apache Software | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | * Foundation" must not be used to endorse or promote products derived | ||||
| * from this software without prior written permission. For written | * from this software without prior written permission. For written | ||||
| * permission, please contact apache@apache.org. | * permission, please contact apache@apache.org. | ||||
| @@ -73,7 +73,7 @@ public interface AntMain { | |||||
| * | * | ||||
| * @since Ant 1.6 | * @since Ant 1.6 | ||||
| */ | */ | ||||
| void startAnt(String[] args, Properties additionalUserProperties, | |||||
| void startAnt(String[] args, Properties additionalUserProperties, | |||||
| ClassLoader coreLoader); | ClassLoader coreLoader); | ||||
| } | } | ||||
| @@ -23,7 +23,7 @@ | |||||
| * Alternately, this acknowlegement may appear in the software itself, | * Alternately, this acknowlegement may appear in the software itself, | ||||
| * if and wherever such third-party acknowlegements normally appear. | * if and wherever such third-party acknowlegements normally appear. | ||||
| * | * | ||||
| * 4. The names "The Jakarta Project", "Ant", and "Apache Software | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | * Foundation" must not be used to endorse or promote products derived | ||||
| * from this software without prior written permission. For written | * from this software without prior written permission. For written | ||||
| * permission, please contact apache@apache.org. | * permission, please contact apache@apache.org. | ||||
| @@ -70,7 +70,7 @@ public class Launcher { | |||||
| /** The location of a per-user library directory */ | /** The location of a per-user library directory */ | ||||
| public static final String USER_LIBDIR = ".ant/lib"; | public static final String USER_LIBDIR = ".ant/lib"; | ||||
| /** The startup class that is to be run */ | /** The startup class that is to be run */ | ||||
| public static final String MAIN_CLASS = "org.apache.tools.ant.Main"; | public static final String MAIN_CLASS = "org.apache.tools.ant.Main"; | ||||
| @@ -103,29 +103,29 @@ public class Launcher { | |||||
| URL launchJarURL = Locator.getClassLocationURL(getClass()); | URL launchJarURL = Locator.getClassLocationURL(getClass()); | ||||
| File jarDir = new File(launchJarURL.getFile()).getParentFile(); | File jarDir = new File(launchJarURL.getFile()).getParentFile(); | ||||
| if (antHomeProperty != null) { | if (antHomeProperty != null) { | ||||
| antHome = new File(antHomeProperty); | antHome = new File(antHomeProperty); | ||||
| } | } | ||||
| if (antHome == null || !antHome.exists()) { | if (antHome == null || !antHome.exists()) { | ||||
| URL antHomeURL = new URL(launchJarURL, ".."); | URL antHomeURL = new URL(launchJarURL, ".."); | ||||
| antHome = new File(antHomeURL.getFile()); | antHome = new File(antHomeURL.getFile()); | ||||
| System.setProperty(ANTHOME_PROPERTY, antHome.getAbsolutePath()); | System.setProperty(ANTHOME_PROPERTY, antHome.getAbsolutePath()); | ||||
| } | } | ||||
| if (!antHome.exists()) { | if (!antHome.exists()) { | ||||
| throw new IllegalStateException("Ant home is set incorrectly or " | |||||
| throw new IllegalStateException("Ant home is set incorrectly or " | |||||
| + "ant could not be located"); | + "ant could not be located"); | ||||
| } | } | ||||
| // Now try and find JAVA_HOME | // Now try and find JAVA_HOME | ||||
| File toolsJar = Locator.getToolsJar(); | File toolsJar = Locator.getToolsJar(); | ||||
| URL[] systemJars = Locator.getLocationURLs(jarDir); | URL[] systemJars = Locator.getLocationURLs(jarDir); | ||||
| File userLibDir | |||||
| File userLibDir | |||||
| = new File(System.getProperty("user.home"), USER_LIBDIR); | = new File(System.getProperty("user.home"), USER_LIBDIR); | ||||
| URL[] userJars = Locator.getLocationURLs(userLibDir); | URL[] userJars = Locator.getLocationURLs(userLibDir); | ||||
| @@ -136,23 +136,23 @@ public class Launcher { | |||||
| } | } | ||||
| URL[] jars = new URL[numJars]; | URL[] jars = new URL[numJars]; | ||||
| System.arraycopy(userJars, 0, jars, 0, userJars.length); | System.arraycopy(userJars, 0, jars, 0, userJars.length); | ||||
| System.arraycopy(systemJars, 0, jars, userJars.length, | |||||
| System.arraycopy(systemJars, 0, jars, userJars.length, | |||||
| systemJars.length); | systemJars.length); | ||||
| if (toolsJar != null) { | if (toolsJar != null) { | ||||
| jars[jars.length - 1] = toolsJar.toURL(); | jars[jars.length - 1] = toolsJar.toURL(); | ||||
| } | } | ||||
| // now update the class.path property | // now update the class.path property | ||||
| StringBuffer baseClassPath | |||||
| StringBuffer baseClassPath | |||||
| = new StringBuffer(System.getProperty("java.class.path")); | = new StringBuffer(System.getProperty("java.class.path")); | ||||
| for (int i = 0; i < jars.length; ++i) { | for (int i = 0; i < jars.length; ++i) { | ||||
| baseClassPath.append(File.pathSeparatorChar); | baseClassPath.append(File.pathSeparatorChar); | ||||
| baseClassPath.append(jars[i].getFile()); | baseClassPath.append(jars[i].getFile()); | ||||
| } | } | ||||
| System.setProperty("java.class.path", baseClassPath.toString()); | System.setProperty("java.class.path", baseClassPath.toString()); | ||||
| URLClassLoader loader = new URLClassLoader(jars); | URLClassLoader loader = new URLClassLoader(jars); | ||||
| @@ -23,7 +23,7 @@ | |||||
| * Alternately, this acknowlegement may appear in the software itself, | * Alternately, this acknowlegement may appear in the software itself, | ||||
| * if and wherever such third-party acknowlegements normally appear. | * if and wherever such third-party acknowlegements normally appear. | ||||
| * | * | ||||
| * 4. The names "The Jakarta Project", "Ant", and "Apache Software | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | * Foundation" must not be used to endorse or promote products derived | ||||
| * from this software without prior written permission. For written | * from this software without prior written permission. For written | ||||
| * permission, please contact apache@apache.org. | * permission, please contact apache@apache.org. | ||||
| @@ -118,7 +118,7 @@ public class Locator { | |||||
| public static File getToolsJar() { | public static File getToolsJar() { | ||||
| // firstly check if the tols jar is alreayd n the classpath | // firstly check if the tols jar is alreayd n the classpath | ||||
| boolean toolsJarAvailable = false; | boolean toolsJarAvailable = false; | ||||
| try { | try { | ||||
| // just check whether this throws an exception | // just check whether this throws an exception | ||||
| Class.forName("com.sun.tools.javac.Main"); | Class.forName("com.sun.tools.javac.Main"); | ||||
| @@ -131,11 +131,11 @@ public class Locator { | |||||
| // ignore | // ignore | ||||
| } | } | ||||
| } | } | ||||
| if (toolsJarAvailable) { | if (toolsJarAvailable) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| // couldn't find compiler - try to find tools.jar | // couldn't find compiler - try to find tools.jar | ||||
| // based on java.home setting | // based on java.home setting | ||||
| String javaHome = System.getProperty("java.home"); | String javaHome = System.getProperty("java.home"); | ||||
| @@ -150,7 +150,7 @@ public class Locator { | |||||
| } | } | ||||
| return toolsJar; | return toolsJar; | ||||
| } | } | ||||
| /** | /** | ||||
| * Get an array or URLs representing all of the jar files in the | * Get an array or URLs representing all of the jar files in the | ||||
| * given location. If the location is a file, it is returned as the only | * given location. If the location is a file, it is returned as the only | ||||
| @@ -161,7 +161,7 @@ public class Locator { | |||||
| * | * | ||||
| * @return an array of URLs for all jars in the given location. | * @return an array of URLs for all jars in the given location. | ||||
| * | * | ||||
| * @exception MalformedURLException if the URLs for the jars cannot be | |||||
| * @exception MalformedURLException if the URLs for the jars cannot be | |||||
| * formed | * formed | ||||
| */ | */ | ||||
| public static URL[] getLocationURLs(File location) | public static URL[] getLocationURLs(File location) | ||||
| @@ -170,20 +170,20 @@ public class Locator { | |||||
| } | } | ||||
| /** | /** | ||||
| * Get an array or URLs representing all of the files of a given set of | |||||
| * extensions in the given location. If the location is a file, it is | |||||
| * returned as the only element of the array. If the location is a | |||||
| * Get an array or URLs representing all of the files of a given set of | |||||
| * extensions in the given location. If the location is a file, it is | |||||
| * returned as the only element of the array. If the location is a | |||||
| * directory, it is scanned for matching files | * directory, it is scanned for matching files | ||||
| * | * | ||||
| * @param location the location to scan for files | * @param location the location to scan for files | ||||
| * @param extensions an array of extension that are to match in the | |||||
| * @param extensions an array of extension that are to match in the | |||||
| * directory search | * directory search | ||||
| * | * | ||||
| * @return an array of URLs of matching files | * @return an array of URLs of matching files | ||||
| * @exception MalformedURLException if the URLs for the files cannot be | |||||
| * @exception MalformedURLException if the URLs for the files cannot be | |||||
| * formed | * formed | ||||
| */ | */ | ||||
| public static URL[] getLocationURLs(File location, | |||||
| public static URL[] getLocationURLs(File location, | |||||
| final String[] extensions) | final String[] extensions) | ||||
| throws MalformedURLException { | throws MalformedURLException { | ||||
| URL[] urls = new URL[0]; | URL[] urls = new URL[0]; | ||||
| @@ -215,7 +215,7 @@ public class Locator { | |||||
| return false; | return false; | ||||
| } | } | ||||
| }); | }); | ||||
| urls = new URL[matches.length]; | urls = new URL[matches.length]; | ||||
| for (int i = 0; i < matches.length; ++i) { | for (int i = 0; i < matches.length; ++i) { | ||||
| urls[i] = matches[i].toURL(); | urls[i] = matches[i].toURL(); | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
| @@ -58,7 +58,7 @@ import org.apache.tools.ant.Task; | |||||
| import org.apache.tools.ant.Project; | import org.apache.tools.ant.Project; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.DirectoryScanner; | import org.apache.tools.ant.DirectoryScanner; | ||||
| import org.apache.tools.ant.types.EnumeratedAttribute; | |||||
| /** | /** | ||||
| * Alters the default excludes for the <strong>entire</strong> build.. | * Alters the default excludes for the <strong>entire</strong> build.. | ||||
| * | * | ||||
| @@ -69,14 +69,14 @@ import org.apache.tools.ant.types.EnumeratedAttribute; | |||||
| * @ant.task category="utility" | * @ant.task category="utility" | ||||
| */ | */ | ||||
| public class DefaultExcludes extends Task { | public class DefaultExcludes extends Task { | ||||
| private String add = ""; | |||||
| private String add = ""; | |||||
| private String remove = ""; | private String remove = ""; | ||||
| private boolean echo = false; | private boolean echo = false; | ||||
| // by default, messages are always displayed | // by default, messages are always displayed | ||||
| private int logLevel = Project.MSG_WARN; | |||||
| private int logLevel = Project.MSG_WARN; | |||||
| /** | /** | ||||
| * Does the work. | * Does the work. | ||||
| * | * | ||||
| @@ -118,7 +118,7 @@ public class DefaultExcludes extends Task { | |||||
| /** | /** | ||||
| * Pattern to remove from the default excludes. | * Pattern to remove from the default excludes. | ||||
| * | * | ||||
| * @param msg Sets the value for the pattern that | |||||
| * @param msg Sets the value for the pattern that | |||||
| * should nolonger be excluded. | * should nolonger be excluded. | ||||
| */ | */ | ||||
| public void setRemove(String remove) { | public void setRemove(String remove) { | ||||
| @@ -55,7 +55,6 @@ | |||||
| package org.apache.tools.ant.taskdefs; | package org.apache.tools.ant.taskdefs; | ||||
| import java.io.File; | import java.io.File; | ||||
| import java.io.FileInputStream; | |||||
| import java.io.FileOutputStream; | import java.io.FileOutputStream; | ||||
| import java.io.FileNotFoundException; | import java.io.FileNotFoundException; | ||||
| import java.io.InputStream; | import java.io.InputStream; | ||||
| @@ -195,24 +194,24 @@ public class Expand extends Task { | |||||
| // no include pattern implicitly means includes="**" | // no include pattern implicitly means includes="**" | ||||
| incls = new String[] {"**"}; | incls = new String[] {"**"}; | ||||
| } | } | ||||
| for (int w = 0; w < incls.length; w++) { | for (int w = 0; w < incls.length; w++) { | ||||
| String pattern = incls[w].replace('/', File.separatorChar) | String pattern = incls[w].replace('/', File.separatorChar) | ||||
| .replace('\\', File.separatorChar); | .replace('\\', File.separatorChar); | ||||
| if (pattern.endsWith(File.separator)) { | if (pattern.endsWith(File.separator)) { | ||||
| pattern += "**"; | pattern += "**"; | ||||
| } | } | ||||
| included = SelectorUtils.matchPath(pattern, name); | included = SelectorUtils.matchPath(pattern, name); | ||||
| if (included) { | if (included) { | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| if (!included) { | if (!included) { | ||||
| break; | break; | ||||
| } | } | ||||
| String[] excls = p.getExcludePatterns(getProject()); | String[] excls = p.getExcludePatterns(getProject()); | ||||
| if (excls != null) { | if (excls != null) { | ||||
| @@ -59,7 +59,6 @@ import java.io.IOException; | |||||
| import java.util.Enumeration; | import java.util.Enumeration; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.Project; | import org.apache.tools.ant.Project; | ||||
| import org.apache.tools.ant.types.FileSet; | |||||
| import org.apache.tools.ant.types.FilterSet; | import org.apache.tools.ant.types.FilterSet; | ||||
| import org.apache.tools.ant.types.FilterSetCollection; | import org.apache.tools.ant.types.FilterSetCollection; | ||||
| @@ -172,7 +171,7 @@ public class Move extends Copy { | |||||
| getFilterChains(), | getFilterChains(), | ||||
| forceOverwrite, | forceOverwrite, | ||||
| getPreserveLastModified(), | getPreserveLastModified(), | ||||
| getEncoding(), | |||||
| getEncoding(), | |||||
| getOutputEncoding(), | getOutputEncoding(), | ||||
| getProject()); | getProject()); | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
| @@ -23,8 +23,8 @@ | |||||
| * Alternately, this acknowlegement may appear in the software itself, | * Alternately, this acknowlegement may appear in the software itself, | ||||
| * if and wherever such third-party acknowlegements normally appear. | * if and wherever such third-party acknowlegements normally appear. | ||||
| * | * | ||||
| * 4. The names "Ant" and "Apache Software Foundation" | |||||
| * must not be used to endorse or promote products derived | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | * from this software without prior written permission. For written | ||||
| * permission, please contact apache@apache.org. | * permission, please contact apache@apache.org. | ||||
| * | * | ||||
| @@ -51,7 +51,6 @@ | |||||
| * information on the Apache Software Foundation, please see | * information on the Apache Software Foundation, please see | ||||
| * <http://www.apache.org/>. | * <http://www.apache.org/>. | ||||
| */ | */ | ||||
| package org.apache.tools.ant.taskdefs; | package org.apache.tools.ant.taskdefs; | ||||
| import java.io.File; | import java.io.File; | ||||
| @@ -71,8 +70,6 @@ import org.apache.tools.ant.types.FileList; | |||||
| import org.apache.tools.ant.types.PropertySet; | import org.apache.tools.ant.types.PropertySet; | ||||
| import org.apache.tools.ant.types.Reference; | import org.apache.tools.ant.types.Reference; | ||||
| import org.apache.tools.ant.taskdefs.Ant; | |||||
| import org.apache.tools.ant.taskdefs.Property; | |||||
| /** | /** | ||||
| * <i>EXPERIMENTAL:</i> This task is experimental and may be under continual | * <i>EXPERIMENTAL:</i> This task is experimental and may be under continual | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
| * | * | ||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
| @@ -54,7 +54,6 @@ | |||||
| package org.apache.tools.ant.taskdefs; | package org.apache.tools.ant.taskdefs; | ||||
| import org.apache.tools.ant.BuildException; | |||||
| import org.apache.tools.ant.Task; | import org.apache.tools.ant.Task; | ||||
| import org.apache.tools.ant.TaskAdapter; | import org.apache.tools.ant.TaskAdapter; | ||||
| @@ -1,55 +1,55 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | * | ||||
| * Copyright (c) 2002 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | * | ||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | */ | ||||
| package org.apache.tools.ant.taskdefs; | package org.apache.tools.ant.taskdefs; | ||||
| @@ -59,12 +59,12 @@ import org.apache.tools.ant.Task; | |||||
| import org.apache.tools.ant.util.FileUtils; | import org.apache.tools.ant.util.FileUtils; | ||||
| /** | /** | ||||
| * This task sets a property to the name of a temporary file. | |||||
| * This task sets a property to the name of a temporary file. | |||||
| * Unlike the Java1.2 method to create a temporary file, this task | * Unlike the Java1.2 method to create a temporary file, this task | ||||
| * does work on Java1.1. Also, it does not actually create the | * does work on Java1.1. Also, it does not actually create the | ||||
| * temporary file, but it does guarantee that the file did not | * temporary file, but it does guarantee that the file did not | ||||
| * exist when the task was executed. | |||||
| * <p> | |||||
| * exist when the task was executed. | |||||
| * <p> | |||||
| * Examples | * Examples | ||||
| * <pre><tempfile property="temp.file" /></pre> | * <pre><tempfile property="temp.file" /></pre> | ||||
| * create a temporary file | * create a temporary file | ||||
| @@ -111,7 +111,7 @@ public class TempFile extends Task { | |||||
| /** | /** | ||||
| * Sets the destination directory. If null, | |||||
| * Sets the destination directory. If null, | |||||
| * the parent directory is used instead. | * the parent directory is used instead. | ||||
| * | * | ||||
| * @param destDir The new destDir value | * @param destDir The new destDir value | ||||
| @@ -1,58 +1,57 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | * | ||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | */ | ||||
| package org.apache.tools.ant.taskdefs; | package org.apache.tools.ant.taskdefs; | ||||
| import org.apache.tools.ant.types.Path; | import org.apache.tools.ant.types.Path; | ||||
| @@ -68,7 +67,7 @@ import java.net.URL; | |||||
| * system classpath if none is supplied. The named property is set if | * system classpath if none is supplied. The named property is set if | ||||
| * the item can be found. For example | * the item can be found. For example | ||||
| * <pre> | * <pre> | ||||
| * <whichresource resource="/log4j.properties" | |||||
| * <whichresource resource="/log4j.properties" | |||||
| * property="log4j.url" > | * property="log4j.url" > | ||||
| * </pre> | * </pre> | ||||
| * @author steve loughran while stuck in Enumclaw, WA, with a broken down car | * @author steve loughran while stuck in Enumclaw, WA, with a broken down car | ||||
| @@ -56,9 +56,6 @@ package org.apache.tools.ant.taskdefs.optional.clearcase; | |||||
| import org.apache.tools.ant.*; | import org.apache.tools.ant.*; | ||||
| import org.apache.tools.ant.types.Commandline; | import org.apache.tools.ant.types.Commandline; | ||||
| import org.apache.tools.ant.types.Path; | |||||
| import java.io.File; | |||||
| /** | /** | ||||
| * Task to perform mklabel command to ClearCase. | * Task to perform mklabel command to ClearCase. | ||||
| @@ -56,9 +56,6 @@ package org.apache.tools.ant.taskdefs.optional.clearcase; | |||||
| import org.apache.tools.ant.*; | import org.apache.tools.ant.*; | ||||
| import org.apache.tools.ant.types.Commandline; | import org.apache.tools.ant.types.Commandline; | ||||
| import org.apache.tools.ant.types.Path; | |||||
| import java.io.File; | |||||
| /** | /** | ||||
| * Task to perform mklbtype command to ClearCase. | * Task to perform mklbtype command to ClearCase. | ||||
| @@ -56,9 +56,6 @@ package org.apache.tools.ant.taskdefs.optional.clearcase; | |||||
| import org.apache.tools.ant.*; | import org.apache.tools.ant.*; | ||||
| import org.apache.tools.ant.types.Commandline; | import org.apache.tools.ant.types.Commandline; | ||||
| import org.apache.tools.ant.types.Path; | |||||
| import java.io.File; | |||||
| /** | /** | ||||
| * Task to perform rmtype command to ClearCase. | * Task to perform rmtype command to ClearCase. | ||||
| @@ -1,58 +1,57 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "The Jakarta Project", "Ant", and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | * | ||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | */ | ||||
| package org.apache.tools.ant.taskdefs.optional.dotnet; | package org.apache.tools.ant.taskdefs.optional.dotnet; | ||||
| import org.apache.tools.ant.taskdefs.MatchingTask; | import org.apache.tools.ant.taskdefs.MatchingTask; | ||||
| @@ -1,57 +1,56 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "The Jakarta Project", "Ant", and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | * | ||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | */ | ||||
| package org.apache.tools.ant.taskdefs.optional.dotnet; | package org.apache.tools.ant.taskdefs.optional.dotnet; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| @@ -1,57 +1,56 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * | |||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | |||||
| * 4. The names "The Jakarta Project", "Ant", and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | |||||
| package org.apache.tools.ant.taskdefs.optional.dotnet; | package org.apache.tools.ant.taskdefs.optional.dotnet; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| @@ -1,58 +1,57 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "The Jakarta Project", "Ant", and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | * | ||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | */ | ||||
| package org.apache.tools.ant.taskdefs.optional.dotnet; | package org.apache.tools.ant.taskdefs.optional.dotnet; | ||||
| import org.apache.tools.ant.Task; | import org.apache.tools.ant.Task; | ||||
| @@ -1,58 +1,56 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "The Jakarta Project", "Ant", and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | * | ||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | */ | ||||
| package org.apache.tools.ant.taskdefs.optional.dotnet; | package org.apache.tools.ant.taskdefs.optional.dotnet; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| @@ -66,7 +66,6 @@ import java.util.jar.JarOutputStream; | |||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.Project; | import org.apache.tools.ant.Project; | ||||
| import org.apache.tools.ant.taskdefs.Java; | import org.apache.tools.ant.taskdefs.Java; | ||||
| import org.apache.tools.ant.types.Commandline; | |||||
| import org.apache.tools.ant.types.EnumeratedAttribute; | import org.apache.tools.ant.types.EnumeratedAttribute; | ||||
| import org.apache.tools.ant.types.Environment; | import org.apache.tools.ant.types.Environment; | ||||
| import org.apache.tools.ant.types.Path; | import org.apache.tools.ant.types.Path; | ||||
| @@ -865,7 +864,7 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool { | |||||
| } | } | ||||
| try { | try { | ||||
| FileUtils.newFileUtils().rename(newwasJarFile, | |||||
| FileUtils.newFileUtils().rename(newwasJarFile, | |||||
| websphereJarFile); | websphereJarFile); | ||||
| } catch (IOException renameException) { | } catch (IOException renameException) { | ||||
| log(renameException.getMessage(), Project.MSG_WARN); | log(renameException.getMessage(), Project.MSG_WARN); | ||||
| @@ -54,7 +54,6 @@ | |||||
| package org.apache.tools.ant.taskdefs.optional.ide; | package org.apache.tools.ant.taskdefs.optional.ide; | ||||
| import java.lang.reflect.Field; | |||||
| import java.util.Enumeration; | import java.util.Enumeration; | ||||
| import java.util.Vector; | import java.util.Vector; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| @@ -1,58 +1,57 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | * | ||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | */ | ||||
| package org.apache.tools.ant.taskdefs.optional.jsp; | package org.apache.tools.ant.taskdefs.optional.jsp; | ||||
| import java.io.File; | import java.io.File; | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
| * | * | ||||
| * Copyright (c) 2001-2003 The Apache Software Foundation. All rights | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
| @@ -9,28 +9,28 @@ | |||||
| * are met: | * are met: | ||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | * 1. Redistributions of source code must retain the above copyright | ||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright | ||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | * 3. The end-user documentation included with the redistribution, if | ||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "Ant" and "Apache Software | * 4. The names "Ant" and "Apache Software | ||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | * 5. Products derived from this software may not be called "Apache" | ||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | ||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||||
| @@ -51,7 +51,6 @@ | |||||
| * information on the Apache Software Foundation, please see | * information on the Apache Software Foundation, please see | ||||
| * <http://www.apache.org/>. | * <http://www.apache.org/>. | ||||
| */ | */ | ||||
| package org.apache.tools.ant.taskdefs.optional.net; | package org.apache.tools.ant.taskdefs.optional.net; | ||||
| import java.lang.reflect.InvocationTargetException; | import java.lang.reflect.InvocationTargetException; | ||||
| @@ -59,8 +59,6 @@ | |||||
| package org.apache.tools.ant.taskdefs.optional.perforce; | package org.apache.tools.ant.taskdefs.optional.perforce; | ||||
| import java.text.SimpleDateFormat; | |||||
| import java.util.Date; | |||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.Project; | import org.apache.tools.ant.Project; | ||||
| import org.apache.tools.ant.util.StringUtils; | import org.apache.tools.ant.util.StringUtils; | ||||
| @@ -1,56 +1,56 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * | |||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | |||||
| /* | /* | ||||
| * Portions of this software are based upon public domain software | * Portions of this software are based upon public domain software | ||||
| * originally written at the National Center for Supercomputing Applications, | * originally written at the National Center for Supercomputing Applications, | ||||
| @@ -64,7 +64,7 @@ import org.apache.tools.ant.BuildException; | |||||
| /** | /** | ||||
| * @ant.task category="scm" | * @ant.task category="scm" | ||||
| */ | */ | ||||
| public class P4Resolve extends P4Base{ | |||||
| public class P4Resolve extends P4Base { | |||||
| private String resolvemode = null; | private String resolvemode = null; | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
| @@ -23,7 +23,7 @@ | |||||
| * Alternately, this acknowlegement may appear in the software itself, | * Alternately, this acknowlegement may appear in the software itself, | ||||
| * if and wherever such third-party acknowlegements normally appear. | * if and wherever such third-party acknowlegements normally appear. | ||||
| * | * | ||||
| * 4. The names "The Jakarta Project", "Ant", and "Apache Software | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | * Foundation" must not be used to endorse or promote products derived | ||||
| * from this software without prior written permission. For written | * from this software without prior written permission. For written | ||||
| * permission, please contact apache@apache.org. | * permission, please contact apache@apache.org. | ||||
| @@ -57,8 +57,6 @@ import org.apache.tools.ant.Project; | |||||
| import org.apache.tools.ant.MagicNames; | import org.apache.tools.ant.MagicNames; | ||||
| import org.apache.tools.ant.Task; | import org.apache.tools.ant.Task; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.RuntimeConfigurable; | |||||
| import org.apache.tools.ant.UnknownElement; | |||||
| import java.util.Map; | import java.util.Map; | ||||
| import java.util.HashMap; | import java.util.HashMap; | ||||
| @@ -67,7 +65,6 @@ import java.util.ArrayList; | |||||
| import java.util.Iterator; | import java.util.Iterator; | ||||
| import java.util.Set; | import java.util.Set; | ||||
| import java.util.HashSet; | import java.util.HashSet; | ||||
| import java.util.Locale; | |||||
| import org.apache.bsf.BSFException; | import org.apache.bsf.BSFException; | ||||
| import org.apache.bsf.BSFManager; | import org.apache.bsf.BSFManager; | ||||
| @@ -90,16 +87,16 @@ public class ScriptDef extends Task { | |||||
| /** Attributes definitions of this script */ | /** Attributes definitions of this script */ | ||||
| private List attributes = new ArrayList(); | private List attributes = new ArrayList(); | ||||
| /** Nested Element definitions of this script */ | /** Nested Element definitions of this script */ | ||||
| private List nestedElements = new ArrayList(); | private List nestedElements = new ArrayList(); | ||||
| /** The attribute names as a set */ | /** The attribute names as a set */ | ||||
| private Set attributeSet; | private Set attributeSet; | ||||
| /** The nested element definitions indexed by their names */ | /** The nested element definitions indexed by their names */ | ||||
| private Map nestedElementMap; | private Map nestedElementMap; | ||||
| /** | /** | ||||
| * set the name under which this script will be activated in a build | * set the name under which this script will be activated in a build | ||||
| * file | * file | ||||
| @@ -113,7 +110,7 @@ public class ScriptDef extends Task { | |||||
| public boolean isAttributeSupported(String attributeName) { | public boolean isAttributeSupported(String attributeName) { | ||||
| return attributeSet.contains(attributeName); | return attributeSet.contains(attributeName); | ||||
| } | } | ||||
| /** | /** | ||||
| * Set the scripting language used by this script | * Set the scripting language used by this script | ||||
| * | * | ||||
| @@ -124,13 +121,13 @@ public class ScriptDef extends Task { | |||||
| } | } | ||||
| /** | /** | ||||
| * Class representing an attribute definition | |||||
| * Class representing an attribute definition | |||||
| */ | */ | ||||
| public static class Attribute { | public static class Attribute { | ||||
| /** The attribute name */ | /** The attribute name */ | ||||
| private String name; | |||||
| /** | |||||
| private String name; | |||||
| /** | |||||
| * Set the attribute name | * Set the attribute name | ||||
| * | * | ||||
| * @param name the attribute name | * @param name the attribute name | ||||
| @@ -139,7 +136,7 @@ public class ScriptDef extends Task { | |||||
| this.name = name; | this.name = name; | ||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * Add an attribute definition to this script. | * Add an attribute definition to this script. | ||||
| * | * | ||||
| @@ -154,14 +151,14 @@ public class ScriptDef extends Task { | |||||
| */ | */ | ||||
| public static class NestedElement { | public static class NestedElement { | ||||
| /** The name of the neseted element */ | /** The name of the neseted element */ | ||||
| private String name; | |||||
| private String name; | |||||
| /** The Ant type to which this nested element corresponds. */ | /** The Ant type to which this nested element corresponds. */ | ||||
| private String type; | private String type; | ||||
| /** The class to be created for this nested element */ | |||||
| /** The class to be created for this nested element */ | |||||
| private String className; | private String className; | ||||
| /** | /** | ||||
| * set the tag name for this nested element | * set the tag name for this nested element | ||||
| * | * | ||||
| @@ -170,32 +167,32 @@ public class ScriptDef extends Task { | |||||
| public void setName(String name) { | public void setName(String name) { | ||||
| this.name = name; | this.name = name; | ||||
| } | } | ||||
| /** | /** | ||||
| * Set the type of this element. This is the name of an | |||||
| * Set the type of this element. This is the name of an | |||||
| * Ant task or type which is to be used when this element is to be | * Ant task or type which is to be used when this element is to be | ||||
| * created. This is an alternative to specifying the class name directly | * created. This is an alternative to specifying the class name directly | ||||
| * | * | ||||
| * @param type the name of an Ant type, or task, to use for this nested | |||||
| * @param type the name of an Ant type, or task, to use for this nested | |||||
| * element. | * element. | ||||
| */ | */ | ||||
| public void setType(String type) { | public void setType(String type) { | ||||
| this.type = type; | this.type = type; | ||||
| } | } | ||||
| /** | /** | ||||
| * Set the classname of the class to be used for the nested element. | |||||
| * Set the classname of the class to be used for the nested element. | |||||
| * This specifies the class directly and is an alternative to specifying | * This specifies the class directly and is an alternative to specifying | ||||
| * the Ant type name. | * the Ant type name. | ||||
| * | * | ||||
| * @param className the name of the class to use for this nested | |||||
| * @param className the name of the class to use for this nested | |||||
| * element. | * element. | ||||
| */ | */ | ||||
| public void setClassName(String className) { | public void setClassName(String className) { | ||||
| this.className = className; | this.className = className; | ||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * Add a nested element definition. | * Add a nested element definition. | ||||
| * | * | ||||
| @@ -206,88 +203,88 @@ public class ScriptDef extends Task { | |||||
| } | } | ||||
| /** | /** | ||||
| * Define the script. | |||||
| * Define the script. | |||||
| */ | */ | ||||
| public void execute() { | public void execute() { | ||||
| if (name == null) { | if (name == null) { | ||||
| throw new BuildException("scriptdef requires a name attribute to " | |||||
| throw new BuildException("scriptdef requires a name attribute to " | |||||
| + "name the script"); | + "name the script"); | ||||
| } | } | ||||
| if (language == null) { | if (language == null) { | ||||
| throw new BuildException("scriptdef requires a language attribute " | |||||
| throw new BuildException("scriptdef requires a language attribute " | |||||
| + "to specify the script language"); | + "to specify the script language"); | ||||
| } | } | ||||
| attributeSet = new HashSet(); | attributeSet = new HashSet(); | ||||
| for (Iterator i = attributes.iterator(); i.hasNext();) { | for (Iterator i = attributes.iterator(); i.hasNext();) { | ||||
| Attribute attribute = (Attribute) i.next(); | Attribute attribute = (Attribute) i.next(); | ||||
| if (attribute.name == null) { | if (attribute.name == null) { | ||||
| throw new BuildException("scriptdef <attribute> elements " | |||||
| throw new BuildException("scriptdef <attribute> elements " | |||||
| + "must specify an attribute name"); | + "must specify an attribute name"); | ||||
| } | } | ||||
| if (attributeSet.contains(attribute.name)) { | if (attributeSet.contains(attribute.name)) { | ||||
| throw new BuildException("scriptdef <" + name + "> declares " | |||||
| throw new BuildException("scriptdef <" + name + "> declares " | |||||
| + "the " + attribute.name + " attribute more than once"); | + "the " + attribute.name + " attribute more than once"); | ||||
| } | } | ||||
| attributeSet.add(attribute.name); | attributeSet.add(attribute.name); | ||||
| } | } | ||||
| nestedElementMap = new HashMap(); | nestedElementMap = new HashMap(); | ||||
| for (Iterator i = nestedElements.iterator(); i.hasNext();) { | for (Iterator i = nestedElements.iterator(); i.hasNext();) { | ||||
| NestedElement nestedElement = (NestedElement) i.next(); | NestedElement nestedElement = (NestedElement) i.next(); | ||||
| if (nestedElement.name == null) { | if (nestedElement.name == null) { | ||||
| throw new BuildException("scriptdef <element> elements " | |||||
| throw new BuildException("scriptdef <element> elements " | |||||
| + "must specify an element name"); | + "must specify an element name"); | ||||
| } | } | ||||
| if (nestedElementMap.containsKey(nestedElement.name)) { | if (nestedElementMap.containsKey(nestedElement.name)) { | ||||
| throw new BuildException("scriptdef <" + name + "> declares " | |||||
| + "the " + nestedElement.name + " nested element more " | |||||
| throw new BuildException("scriptdef <" + name + "> declares " | |||||
| + "the " + nestedElement.name + " nested element more " | |||||
| + "than once"); | + "than once"); | ||||
| } | } | ||||
| if (nestedElement.className == null | |||||
| if (nestedElement.className == null | |||||
| && nestedElement.type == null) { | && nestedElement.type == null) { | ||||
| throw new BuildException("scriptdef <element> elements " | |||||
| throw new BuildException("scriptdef <element> elements " | |||||
| + "must specify either a classname or type attribute"); | + "must specify either a classname or type attribute"); | ||||
| } | } | ||||
| if (nestedElement.className != null | |||||
| if (nestedElement.className != null | |||||
| && nestedElement.type != null) { | && nestedElement.type != null) { | ||||
| throw new BuildException("scriptdef <element> elements " | |||||
| + "must specify only one of the classname and type " | |||||
| throw new BuildException("scriptdef <element> elements " | |||||
| + "must specify only one of the classname and type " | |||||
| + "attributes"); | + "attributes"); | ||||
| } | } | ||||
| nestedElementMap.put(nestedElement.name, nestedElement); | nestedElementMap.put(nestedElement.name, nestedElement); | ||||
| } | } | ||||
| // find the script repository - it is stored in the project | // find the script repository - it is stored in the project | ||||
| Map scriptRepository = null; | Map scriptRepository = null; | ||||
| Project project = getProject(); | Project project = getProject(); | ||||
| synchronized (project) { | synchronized (project) { | ||||
| scriptRepository = | |||||
| scriptRepository = | |||||
| (Map) project.getReference(MagicNames.SCRIPT_REPOSITORY); | (Map) project.getReference(MagicNames.SCRIPT_REPOSITORY); | ||||
| if (scriptRepository == null) { | if (scriptRepository == null) { | ||||
| scriptRepository = new HashMap(); | scriptRepository = new HashMap(); | ||||
| project.addReference(MagicNames.SCRIPT_REPOSITORY, | |||||
| project.addReference(MagicNames.SCRIPT_REPOSITORY, | |||||
| scriptRepository); | scriptRepository); | ||||
| } | } | ||||
| } | } | ||||
| scriptRepository.put(name, this); | scriptRepository.put(name, this); | ||||
| project.addTaskDefinition(name, ScriptDefBase.class); | project.addTaskDefinition(name, ScriptDefBase.class); | ||||
| } | } | ||||
| public Object createNestedElement(String elementName) { | public Object createNestedElement(String elementName) { | ||||
| NestedElement definition | |||||
| NestedElement definition | |||||
| = (NestedElement) nestedElementMap.get(elementName); | = (NestedElement) nestedElementMap.get(elementName); | ||||
| if (definition == null) { | |||||
| throw new BuildException("<" + name + "> does not support " | |||||
| if (definition == null) { | |||||
| throw new BuildException("<" + name + "> does not support " | |||||
| + "the <" + elementName + "> nested element"); | + "the <" + elementName + "> nested element"); | ||||
| } | } | ||||
| Object instance = null; | Object instance = null; | ||||
| String classname = definition.className; | String classname = definition.className; | ||||
| if (classname == null) { | if (classname == null) { | ||||
| @@ -297,9 +294,9 @@ public class ScriptDef extends Task { | |||||
| } | } | ||||
| } else { | } else { | ||||
| // try the context classloader | // try the context classloader | ||||
| ClassLoader loader | |||||
| ClassLoader loader | |||||
| = Thread.currentThread().getContextClassLoader(); | = Thread.currentThread().getContextClassLoader(); | ||||
| Class instanceClass = null; | Class instanceClass = null; | ||||
| try { | try { | ||||
| instanceClass = Class.forName(classname, true, loader); | instanceClass = Class.forName(classname, true, loader); | ||||
| @@ -308,29 +305,29 @@ public class ScriptDef extends Task { | |||||
| try { | try { | ||||
| instanceClass = Class.forName(classname); | instanceClass = Class.forName(classname); | ||||
| } catch (Throwable e2) { | } catch (Throwable e2) { | ||||
| throw new BuildException("scriptdef: Unable to load " | |||||
| + "class " + classname + " for nested element <" | |||||
| throw new BuildException("scriptdef: Unable to load " | |||||
| + "class " + classname + " for nested element <" | |||||
| + elementName + ">", e2); | + elementName + ">", e2); | ||||
| } | } | ||||
| } | } | ||||
| try { | try { | ||||
| instance = instanceClass.newInstance(); | instance = instanceClass.newInstance(); | ||||
| } catch (Throwable e) { | } catch (Throwable e) { | ||||
| throw new BuildException("scriptdef: Unable to create " | |||||
| + "element of class " + classname + " for nested " | |||||
| throw new BuildException("scriptdef: Unable to create " | |||||
| + "element of class " + classname + " for nested " | |||||
| + "element <" + elementName + ">", e); | + "element <" + elementName + ">", e); | ||||
| } | } | ||||
| getProject().setProjectReference(instance); | getProject().setProjectReference(instance); | ||||
| } | } | ||||
| if (instance == null) { | if (instance == null) { | ||||
| throw new BuildException("<" + name + "> is unable to create " | |||||
| throw new BuildException("<" + name + "> is unable to create " | |||||
| + "the <" + elementName + "> nested element"); | + "the <" + elementName + "> nested element"); | ||||
| } | } | ||||
| return instance; | return instance; | ||||
| } | } | ||||
| /** | /** | ||||
| * Execute the script. | * Execute the script. | ||||
| * | * | ||||
| @@ -344,9 +341,9 @@ public class ScriptDef extends Task { | |||||
| try { | try { | ||||
| BSFManager manager = new BSFManager(); | BSFManager manager = new BSFManager(); | ||||
| // execute the script | // execute the script | ||||
| manager.declareBean("attributes", attributes, | |||||
| manager.declareBean("attributes", attributes, | |||||
| attributes.getClass()); | attributes.getClass()); | ||||
| manager.declareBean("elements", elements, | |||||
| manager.declareBean("elements", elements, | |||||
| elements.getClass()); | elements.getClass()); | ||||
| manager.declareBean("project", getProject(), Project.class); | manager.declareBean("project", getProject(), Project.class); | ||||
| manager.exec(language, "scriptdef <" + name + ">", 0, 0, script); | manager.exec(language, "scriptdef <" + name + ">", 0, 0, script); | ||||
| @@ -363,7 +360,7 @@ public class ScriptDef extends Task { | |||||
| throw new BuildException(t); | throw new BuildException(t); | ||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * Ass the scipt text. | * Ass the scipt text. | ||||
| * | * | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
| @@ -23,7 +23,7 @@ | |||||
| * Alternately, this acknowlegement may appear in the software itself, | * Alternately, this acknowlegement may appear in the software itself, | ||||
| * if and wherever such third-party acknowlegements normally appear. | * if and wherever such third-party acknowlegements normally appear. | ||||
| * | * | ||||
| * 4. The names "The Jakarta Project", "Ant", and "Apache Software | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | * Foundation" must not be used to endorse or promote products derived | ||||
| * from this software without prior written permission. For written | * from this software without prior written permission. For written | ||||
| * permission, please contact apache@apache.org. | * permission, please contact apache@apache.org. | ||||
| @@ -54,7 +54,6 @@ | |||||
| package org.apache.tools.ant.taskdefs.optional.script; | package org.apache.tools.ant.taskdefs.optional.script; | ||||
| import org.apache.tools.ant.Task; | import org.apache.tools.ant.Task; | ||||
| import org.apache.tools.ant.TaskContainer; | |||||
| import org.apache.tools.ant.MagicNames; | import org.apache.tools.ant.MagicNames; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.DynamicConfigurator; | import org.apache.tools.ant.DynamicConfigurator; | ||||
| @@ -65,7 +64,7 @@ import java.util.ArrayList; | |||||
| /** | /** | ||||
| * The script execution class. This class finds the defining script task | * The script execution class. This class finds the defining script task | ||||
| * and passes control to that task's executeScript method. This class | |||||
| * and passes control to that task's executeScript method. This class | |||||
| * implements the TaskCOntainer interface primarily to stop Ant's core from | * implements the TaskCOntainer interface primarily to stop Ant's core from | ||||
| * configuring the nested elements - this is done by the script task itself. | * configuring the nested elements - this is done by the script task itself. | ||||
| * | * | ||||
| @@ -73,36 +72,36 @@ import java.util.ArrayList; | |||||
| * @since Ant 1.6 | * @since Ant 1.6 | ||||
| */ | */ | ||||
| public class ScriptDefBase extends Task implements DynamicConfigurator { | public class ScriptDefBase extends Task implements DynamicConfigurator { | ||||
| /** Nested elements */ | /** Nested elements */ | ||||
| private Map nestedElementMap = new HashMap(); | private Map nestedElementMap = new HashMap(); | ||||
| /** Attributes */ | /** Attributes */ | ||||
| private Map attributes = new HashMap(); | private Map attributes = new HashMap(); | ||||
| /** | /** | ||||
| * Locate the script defining task and execute the script by passing | * Locate the script defining task and execute the script by passing | ||||
| * control to it | |||||
| * control to it | |||||
| */ | */ | ||||
| public void execute() { | public void execute() { | ||||
| getScript().executeScript(attributes, nestedElementMap); | getScript().executeScript(attributes, nestedElementMap); | ||||
| } | } | ||||
| private ScriptDef getScript() { | private ScriptDef getScript() { | ||||
| String name = getTaskType(); | String name = getTaskType(); | ||||
| Map scriptRepository | |||||
| Map scriptRepository | |||||
| = (Map) getProject().getReference(MagicNames.SCRIPT_REPOSITORY); | = (Map) getProject().getReference(MagicNames.SCRIPT_REPOSITORY); | ||||
| if (scriptRepository == null) { | if (scriptRepository == null) { | ||||
| throw new BuildException("Script repository not found for " + name); | throw new BuildException("Script repository not found for " + name); | ||||
| } | } | ||||
| ScriptDef definition = (ScriptDef) scriptRepository.get(getTaskType()); | ScriptDef definition = (ScriptDef) scriptRepository.get(getTaskType()); | ||||
| if (definition == null) { | if (definition == null) { | ||||
| throw new BuildException("Script definition not found for " + name); | throw new BuildException("Script definition not found for " + name); | ||||
| } | } | ||||
| return definition; | return definition; | ||||
| } | } | ||||
| public Object createDynamicElement(String name) { | public Object createDynamicElement(String name) { | ||||
| List nestedElementList = (List) nestedElementMap.get(name); | List nestedElementList = (List) nestedElementMap.get(name); | ||||
| if (nestedElementList == null) { | if (nestedElementList == null) { | ||||
| @@ -113,14 +112,14 @@ public class ScriptDefBase extends Task implements DynamicConfigurator { | |||||
| nestedElementList.add(element); | nestedElementList.add(element); | ||||
| return element; | return element; | ||||
| } | } | ||||
| public void setDynamicAttribute(String name, String value) { | public void setDynamicAttribute(String name, String value) { | ||||
| ScriptDef definition = getScript(); | ScriptDef definition = getScript(); | ||||
| if (!definition.isAttributeSupported(name)) { | if (!definition.isAttributeSupported(name)) { | ||||
| throw new BuildException("<" + getTaskType() | |||||
| throw new BuildException("<" + getTaskType() | |||||
| + "> does not support the \"" + name + "\" attribute"); | + "> does not support the \"" + name + "\" attribute"); | ||||
| } | } | ||||
| attributes.put(name, value); | attributes.put(name, value); | ||||
| } | } | ||||
| } | } | ||||
| @@ -1,55 +1,55 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "The Jakarta Project", "Ant", and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | * | ||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | */ | ||||
| package org.apache.tools.ant.types; | package org.apache.tools.ant.types; | ||||
| @@ -82,7 +82,7 @@ import java.util.Iterator; | |||||
| * <enable package="..." /> | * <enable package="..." /> | ||||
| * </assertions> | * </assertions> | ||||
| * </pre> | * </pre> | ||||
| * enable assertions in a class called Test | |||||
| * enable assertions in a class called Test | |||||
| * <pre> | * <pre> | ||||
| * <assertions > | * <assertions > | ||||
| * <enable class="Test" /> | * <enable class="Test" /> | ||||
| @@ -54,9 +54,6 @@ | |||||
| package org.apache.tools.ant.types; | package org.apache.tools.ant.types; | ||||
| import java.util.Vector; | import java.util.Vector; | ||||
| import java.io.StringWriter; | |||||
| import java.io.Reader; | |||||
| import java.io.IOException; | |||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.filters.ChainableReader; | import org.apache.tools.ant.filters.ChainableReader; | ||||
| @@ -74,8 +71,6 @@ import org.apache.tools.ant.filters.StripLineComments; | |||||
| import org.apache.tools.ant.filters.TabsToSpaces; | import org.apache.tools.ant.filters.TabsToSpaces; | ||||
| import org.apache.tools.ant.filters.TailFilter; | import org.apache.tools.ant.filters.TailFilter; | ||||
| import org.apache.tools.ant.filters.TokenFilter; | import org.apache.tools.ant.filters.TokenFilter; | ||||
| import org.apache.tools.ant.filters.BaseFilterReader; | |||||
| import org.apache.tools.ant.taskdefs.Concat; | |||||
| /** | /** | ||||
| @@ -179,7 +174,7 @@ public final class FilterChain extends DataType | |||||
| { | { | ||||
| filterReaders.addElement(filter); | filterReaders.addElement(filter); | ||||
| } | } | ||||
| /** | /** | ||||
| * replaceregex | * replaceregex | ||||
| * @since Ant 1.6 | * @since Ant 1.6 | ||||
| @@ -188,7 +183,7 @@ public final class FilterChain extends DataType | |||||
| { | { | ||||
| filterReaders.addElement(filter); | filterReaders.addElement(filter); | ||||
| } | } | ||||
| /** | /** | ||||
| * trim | * trim | ||||
| * @since Ant 1.6 | * @since Ant 1.6 | ||||
| @@ -197,7 +192,7 @@ public final class FilterChain extends DataType | |||||
| { | { | ||||
| filterReaders.addElement(filter); | filterReaders.addElement(filter); | ||||
| } | } | ||||
| /** | /** | ||||
| * replacestring | * replacestring | ||||
| * @since Ant 1.6 | * @since Ant 1.6 | ||||
| @@ -218,9 +213,9 @@ public final class FilterChain extends DataType | |||||
| filterReaders.addElement(filter); | filterReaders.addElement(filter); | ||||
| } | } | ||||
| /** | /** | ||||
| * Makes this instance in effect a reference to another FilterChain | |||||
| * Makes this instance in effect a reference to another FilterChain | |||||
| * instance. | * instance. | ||||
| * | * | ||||
| * <p>You must not set another attribute or nest elements inside | * <p>You must not set another attribute or nest elements inside | ||||
| @@ -54,8 +54,6 @@ | |||||
| package org.apache.tools.ant.types; | package org.apache.tools.ant.types; | ||||
| import java.io.File; | |||||
| import java.io.IOException; | |||||
| import java.util.Enumeration; | import java.util.Enumeration; | ||||
| import java.util.Hashtable; | import java.util.Hashtable; | ||||
| import java.util.Properties; | import java.util.Properties; | ||||
| @@ -64,8 +62,6 @@ import java.util.Vector; | |||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.Project; | import org.apache.tools.ant.Project; | ||||
| import org.apache.tools.ant.Task; | |||||
| import org.apache.tools.ant.taskdefs.Property; | |||||
| import org.apache.tools.ant.util.FileNameMapper; | import org.apache.tools.ant.util.FileNameMapper; | ||||
| import org.apache.tools.ant.util.regexp.RegexpMatcher; | import org.apache.tools.ant.util.regexp.RegexpMatcher; | ||||
| import org.apache.tools.ant.util.regexp.RegexpMatcherFactory; | import org.apache.tools.ant.util.regexp.RegexpMatcherFactory; | ||||
| @@ -202,7 +198,7 @@ public class PropertySet extends DataType { | |||||
| if (getDynamic() || cachedNames == null) { | if (getDynamic() || cachedNames == null) { | ||||
| names = new Vector(); // :TODO: should be a Set! | names = new Vector(); // :TODO: should be a Set! | ||||
| if (isReference()) { | if (isReference()) { | ||||
| getRef().addPropertyNames(names, prj.getProperties()); | |||||
| getRef().addPropertyNames(names, prj.getProperties()); | |||||
| } else { | } else { | ||||
| addPropertyNames(names, prj.getProperties()); | addPropertyNames(names, prj.getProperties()); | ||||
| } | } | ||||
| @@ -303,7 +299,7 @@ public class PropertySet extends DataType { | |||||
| /** | /** | ||||
| * Performs the check for circular references and returns the | * Performs the check for circular references and returns the | ||||
| * referenced FileList. | |||||
| * referenced FileList. | |||||
| */ | */ | ||||
| protected PropertySet getRef() { | protected PropertySet getRef() { | ||||
| if (!isChecked()) { | if (!isChecked()) { | ||||
| @@ -314,7 +310,7 @@ public class PropertySet extends DataType { | |||||
| Object o = getRefid().getReferencedObject(getProject()); | Object o = getRefid().getReferencedObject(getProject()); | ||||
| if (!(o instanceof PropertySet)) { | if (!(o instanceof PropertySet)) { | ||||
| String msg = getRefid().getRefId() | |||||
| String msg = getRefid().getRefId() | |||||
| + " doesn\'t denote a propertyset"; | + " doesn\'t denote a propertyset"; | ||||
| throw new BuildException(msg); | throw new BuildException(msg); | ||||
| } else { | } else { | ||||
| @@ -77,14 +77,11 @@ import java.net.URL; | |||||
| * @version $Id$ | * @version $Id$ | ||||
| * @since Ant 1.6 | * @since Ant 1.6 | ||||
| */ | */ | ||||
| import java.net.URL; | |||||
| public class ResourceLocation { | public class ResourceLocation { | ||||
| //-- Fields ---------------------------------------------------------------- | //-- Fields ---------------------------------------------------------------- | ||||
| /** | |||||
| /** | |||||
| * name of the catalog entry type, as per OASIS spec. | * name of the catalog entry type, as per OASIS spec. | ||||
| */ | */ | ||||
| protected String name = null; | protected String name = null; | ||||
| @@ -95,7 +92,7 @@ public class ResourceLocation { | |||||
| /** location of the dtd/entity - a file/resource/URL. */ | /** location of the dtd/entity - a file/resource/URL. */ | ||||
| private String location = null; | private String location = null; | ||||
| /** | |||||
| /** | |||||
| * base URL of the dtd/entity, or null. If null, the Ant project | * base URL of the dtd/entity, or null. If null, the Ant project | ||||
| * basedir is assumed. If the location specifies a relative | * basedir is assumed. If the location specifies a relative | ||||
| * URL/pathname, it is resolved using the base. The default base | * URL/pathname, it is resolved using the base. The default base | ||||
| @@ -62,8 +62,6 @@ import java.util.Hashtable; | |||||
| import org.apache.bsf.BSFException; | import org.apache.bsf.BSFException; | ||||
| import org.apache.bsf.BSFManager; | import org.apache.bsf.BSFManager; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.Project; | |||||
| import org.apache.tools.ant.Task; | |||||
| /** | /** | ||||
| @@ -1,55 +1,55 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | * | ||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | */ | ||||
| package org.apache.tools.ant.types.selectors; | package org.apache.tools.ant.types.selectors; | ||||
| @@ -1,55 +1,55 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | * | ||||
| * Copyright (c) 2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | * | ||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | */ | ||||
| package org.apache.tools.ant.types.selectors; | package org.apache.tools.ant.types.selectors; | ||||
| @@ -54,12 +54,8 @@ | |||||
| package org.apache.tools.ant.types.selectors; | package org.apache.tools.ant.types.selectors; | ||||
| import java.io.BufferedReader; | |||||
| import java.io.File; | import java.io.File; | ||||
| import java.io.IOException; | |||||
| import org.apache.tools.ant.types.EnumeratedAttribute; | import org.apache.tools.ant.types.EnumeratedAttribute; | ||||
| import org.apache.tools.ant.BuildException; | |||||
| import org.apache.tools.ant.Project; | |||||
| import org.apache.tools.ant.types.Parameter; | import org.apache.tools.ant.types.Parameter; | ||||
| /** | /** | ||||
| @@ -54,11 +54,11 @@ | |||||
| package org.apache.tools.ant.util; | package org.apache.tools.ant.util; | ||||
| import java.io.File; | import java.io.File; | ||||
| import org.apache.tools.ant.util.GlobPatternMapper; | |||||
| /** | /** | ||||
| * Maps dotted package name matches to a directory name. | * Maps dotted package name matches to a directory name. | ||||
| * This is the inverse of the package mapper. | * This is the inverse of the package mapper. | ||||
| * This is useful for matching XML formatter results against their JUnit test | |||||
| * This is useful for matching XML formatter results against their JUnit test | |||||
| * cases. | * cases. | ||||
| * <pre> | * <pre> | ||||
| * <mapper classname="org.apache.tools.ant.util.UnPackageNameMapper" | * <mapper classname="org.apache.tools.ant.util.UnPackageNameMapper" | ||||
| @@ -1,55 +1,55 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | * | ||||
| * Copyright (c) 2002-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | * | ||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | */ | ||||
| package org.apache.tools.ant.util; | package org.apache.tools.ant.util; | ||||
| @@ -1,55 +1,55 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | |||||
| * The Apache Software License, Version 1.1 | |||||
| * | * | ||||
| * Copyright (c) 2002 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
| * reserved. | |||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * Redistribution and use in source and binary forms, with or without | |||||
| * modification, are permitted provided that the following conditions | |||||
| * are met: | |||||
| * | * | ||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * 1. Redistributions of source code must retain the above copyright | |||||
| * notice, this list of conditions and the following disclaimer. | |||||
| * | * | ||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * 2. Redistributions in binary form must reproduce the above copyright | |||||
| * notice, this list of conditions and the following disclaimer in | |||||
| * the documentation and/or other materials provided with the | |||||
| * distribution. | |||||
| * | * | ||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * 3. The end-user documentation included with the redistribution, if | |||||
| * any, must include the following acknowlegement: | |||||
| * "This product includes software developed by the | |||||
| * Apache Software Foundation (http://www.apache.org/)." | |||||
| * Alternately, this acknowlegement may appear in the software itself, | |||||
| * if and wherever such third-party acknowlegements normally appear. | |||||
| * | * | ||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * 4. The names "Ant" and "Apache Software | |||||
| * Foundation" must not be used to endorse or promote products derived | |||||
| * from this software without prior written permission. For written | |||||
| * permission, please contact apache@apache.org. | |||||
| * | * | ||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * 5. Products derived from this software may not be called "Apache" | |||||
| * nor may "Apache" appear in their names without prior written | |||||
| * permission of the Apache Group. | |||||
| * | * | ||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED | |||||
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |||||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||||
| * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR | |||||
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |||||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
| * SUCH DAMAGE. | |||||
| * ==================================================================== | |||||
| * | * | ||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| * This software consists of voluntary contributions made by many | |||||
| * individuals on behalf of the Apache Software Foundation. For more | |||||
| * information on the Apache Software Foundation, please see | |||||
| * <http://www.apache.org/>. | |||||
| */ | */ | ||||
| package org.apache.tools.ant.util.optional; | package org.apache.tools.ant.util.optional; | ||||