From d9c1a8c2d5353f25666a263db4d1e0200e521d09 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Thu, 6 Jan 2005 11:41:12 +0000 Subject: [PATCH] javadoc git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277293 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/taskdefs/Expand.java | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Expand.java b/src/main/org/apache/tools/ant/taskdefs/Expand.java index 312926ac0..a2c6a3f1c 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Expand.java +++ b/src/main/org/apache/tools/ant/taskdefs/Expand.java @@ -61,6 +61,7 @@ public class Expand extends Task { private static final String NATIVE_ENCODING = "native-encoding"; private String encoding = "UTF8"; + /** Error message when more that one mapper is defined */ public static final String ERROR_MULTIPLE_MAPPERS = "Cannot define more than one mapper"; /** @@ -115,9 +116,9 @@ public class Expand extends Task { /** * This method is to be overridden by extending unarchival tasks. * - * @param fileUtils - * @param srcF - * @param dir + * @param fileUtils the fileUtils + * @param srcF the source file + * @param dir the destination directory */ protected void expandFile(FileUtils fileUtils, File srcF, File dir) { log("Expanding: " + srcF + " into " + dir, Project.MSG_INFO); @@ -144,7 +145,7 @@ public class Expand extends Task { /** * get a mapper for a file - * @return + * @return a filenamemapper for a file */ protected FileNameMapper getMapper() { FileNameMapper mapper = null; @@ -158,15 +159,15 @@ public class Expand extends Task { /** * extract a file to a directory - * @param fileUtils - * @param srcF - * @param dir - * @param compressedInputStream - * @param entryName - * @param entryDate - * @param isDirectory - * @param mapper - * @throws IOException + * @param fileUtils a fileUtils object + * @param srcF the source file + * @param dir the destination directory + * @param compressedInputStream the input stream + * @param entryName the name of the entry + * @param entryDate the date of the entry + * @param isDirectory if this is true the entry is a directory + * @param mapper the filename mapper to use + * @throws IOException on error */ protected void extractFile(FileUtils fileUtils, File srcF, File dir, InputStream compressedInputStream, @@ -302,13 +303,15 @@ public class Expand extends Task { /** * Should we overwrite files in dest, even if they are newer than * the corresponding entries in the archive? + * @param b a boolean value */ public void setOverwrite(boolean b) { overwrite = b; } /** - * Add a patternset + * Add a patternset. + * @param set a pattern set */ public void addPatternset(PatternSet set) { patternsets.addElement(set); @@ -316,6 +319,7 @@ public class Expand extends Task { /** * Add a fileset + * @param set a file set */ public void addFileset(FileSet set) { filesets.addElement(set); @@ -351,7 +355,7 @@ public class Expand extends Task { * *

Set to native-encoding if you want your * platform's native encoding, defaults to UTF8.

- * + * @param encoding the name of the character encoding * @since Ant 1.6 */ public void setEncoding(String encoding) {