From f17984e1bd4026b6dd7ed0d61ac81a1c1480250b Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Tue, 25 Jan 2005 11:28:04 +0000 Subject: [PATCH] javadoc and remove unused imports git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277449 13f79535-47bb-0310-9956-ffa450edef68 --- .../ant/types/selectors/AbstractSelectorContainer.java | 4 +--- .../apache/tools/ant/types/selectors/DepthSelector.java | 4 +++- .../apache/tools/ant/types/selectors/ExtendSelector.java | 9 ++++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/org/apache/tools/ant/types/selectors/AbstractSelectorContainer.java b/src/main/org/apache/tools/ant/types/selectors/AbstractSelectorContainer.java index 4265e407e..88aaf67bc 100644 --- a/src/main/org/apache/tools/ant/types/selectors/AbstractSelectorContainer.java +++ b/src/main/org/apache/tools/ant/types/selectors/AbstractSelectorContainer.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2004 The Apache Software Foundation + * Copyright 2002-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,11 +17,9 @@ package org.apache.tools.ant.types.selectors; -import java.io.File; import java.util.Enumeration; import java.util.Vector; -import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Project; import org.apache.tools.ant.types.DataType; import org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector; diff --git a/src/main/org/apache/tools/ant/types/selectors/DepthSelector.java b/src/main/org/apache/tools/ant/types/selectors/DepthSelector.java index 8265d56c3..8d8b3e218 100644 --- a/src/main/org/apache/tools/ant/types/selectors/DepthSelector.java +++ b/src/main/org/apache/tools/ant/types/selectors/DepthSelector.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2004 The Apache Software Foundation + * Copyright 2002-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ import org.apache.tools.ant.types.Parameter; */ public class DepthSelector extends BaseExtendSelector { + /** min attribute */ public int min = -1; + /** max attribute */ public int max = -1; /** Used for parameterized custom selector */ public static final String MIN_KEY = "min"; diff --git a/src/main/org/apache/tools/ant/types/selectors/ExtendSelector.java b/src/main/org/apache/tools/ant/types/selectors/ExtendSelector.java index 2ee3603d9..fbd91ae42 100644 --- a/src/main/org/apache/tools/ant/types/selectors/ExtendSelector.java +++ b/src/main/org/apache/tools/ant/types/selectors/ExtendSelector.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2004 The Apache Software Foundation + * Copyright 2002-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -177,8 +177,11 @@ public class ExtendSelector extends BaseSelector { * since we know we must have them all by now. And since we must know * both classpath and classname, creating the class is deferred to here * as well. - * - * @exception BuildException if an error occurs + * @param basedir The the base directory. + * @param filename The name of the file to check. + * @param file A File object for this filename. + * @return whether the file should be selected or not. + * @exception BuildException if an error occurs. */ public boolean isSelected(File basedir, String filename, File file) throws BuildException {