From f1562e05ea0d0deb898edb6f753d6e9022a93696 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Wed, 29 Jun 2005 11:32:47 +0000 Subject: [PATCH] javadoc git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278439 13f79535-47bb-0310-9956-ffa450edef68 --- .../ant/taskdefs/optional/jlink/ClassNameReader.java | 11 ++++++++++- .../tools/ant/taskdefs/optional/jlink/JlinkTask.java | 9 ++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/jlink/ClassNameReader.java b/src/main/org/apache/tools/ant/taskdefs/optional/jlink/ClassNameReader.java index 2f0baaf98..27eb4cc59 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/jlink/ClassNameReader.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/jlink/ClassNameReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2000,2002,2004 The Apache Software Foundation + * Copyright 2000,2002,2004-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. @@ -85,6 +85,8 @@ class ConstantPool { case NAMEANDTYPE : values[i] = new Integer(data.readInt()); break; + default: + // Do nothing } } } @@ -97,6 +99,13 @@ class ConstantPool { */ public class ClassNameReader extends Object { + /** + * Get the class name of a class in an input stream. + * + * @param input an InputStream value + * @return the name of the class + * @exception IOException if an error occurs + */ public static String getClassName(InputStream input) throws IOException { DataInputStream data = new DataInputStream(input); // verify this is a valid class file. diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java index 9f1df1f2e..0e8b65b96 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java @@ -1,5 +1,5 @@ /* - * Copyright 2000,2002,2004 The Apache Software Foundation + * Copyright 2000,2002,2004-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. @@ -54,6 +54,7 @@ public class JlinkTask extends MatchingTask { /** * The output file for this run of jlink. Usually a jar or zip file. + * @param outfile the output file */ public void setOutfile(File outfile) { this.outfile = outfile; @@ -62,6 +63,7 @@ public class JlinkTask extends MatchingTask { /** * Establishes the object that contains the files to * be merged into the output. + * @return a path to be configured */ public Path createMergefiles() { if (this.mergefiles == null) { @@ -72,6 +74,7 @@ public class JlinkTask extends MatchingTask { /** * Sets the files to be merged into the output. + * @param mergefiles a path */ public void setMergefiles(Path mergefiles) { if (this.mergefiles == null) { @@ -84,6 +87,7 @@ public class JlinkTask extends MatchingTask { /** * Establishes the object that contains the files to * be added to the output. + * @return a path to be configured */ public Path createAddfiles() { if (this.addfiles == null) { @@ -94,6 +98,7 @@ public class JlinkTask extends MatchingTask { /** * Sets the files to be added into the output. + * @param addfiles a path */ public void setAddfiles(Path addfiles) { if (this.addfiles == null) { @@ -105,6 +110,7 @@ public class JlinkTask extends MatchingTask { /** * Defines whether or not the output should be compacted. + * @param compress a boolean value */ public void setCompress(boolean compress) { this.compress = compress; @@ -112,6 +118,7 @@ public class JlinkTask extends MatchingTask { /** * Does the adding and merging. + * @throws BuildException on error */ public void execute() throws BuildException { //Be sure everything has been set.