Browse Source

javadoc

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278439 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
f1562e05ea
2 changed files with 18 additions and 2 deletions
  1. +10
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/jlink/ClassNameReader.java
  2. +8
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java

+ 10
- 1
src/main/org/apache/tools/ant/taskdefs/optional/jlink/ClassNameReader.java View File

@@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -85,6 +85,8 @@ class ConstantPool {
case NAMEANDTYPE : case NAMEANDTYPE :
values[i] = new Integer(data.readInt()); values[i] = new Integer(data.readInt());
break; break;
default:
// Do nothing
} }
} }
} }
@@ -97,6 +99,13 @@ class ConstantPool {
*/ */
public class ClassNameReader extends Object { public class ClassNameReader extends Object {


/**
* Get the class name of a class in an input stream.
*
* @param input an <code>InputStream</code> value
* @return the name of the class
* @exception IOException if an error occurs
*/
public static String getClassName(InputStream input) throws IOException { public static String getClassName(InputStream input) throws IOException {
DataInputStream data = new DataInputStream(input); DataInputStream data = new DataInputStream(input);
// verify this is a valid class file. // verify this is a valid class file.


+ 8
- 1
src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java View File

@@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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. * The output file for this run of jlink. Usually a jar or zip file.
* @param outfile the output file
*/ */
public void setOutfile(File outfile) { public void setOutfile(File outfile) {
this.outfile = outfile; this.outfile = outfile;
@@ -62,6 +63,7 @@ public class JlinkTask extends MatchingTask {
/** /**
* Establishes the object that contains the files to * Establishes the object that contains the files to
* be merged into the output. * be merged into the output.
* @return a path to be configured
*/ */
public Path createMergefiles() { public Path createMergefiles() {
if (this.mergefiles == null) { if (this.mergefiles == null) {
@@ -72,6 +74,7 @@ public class JlinkTask extends MatchingTask {


/** /**
* Sets the files to be merged into the output. * Sets the files to be merged into the output.
* @param mergefiles a path
*/ */
public void setMergefiles(Path mergefiles) { public void setMergefiles(Path mergefiles) {
if (this.mergefiles == null) { if (this.mergefiles == null) {
@@ -84,6 +87,7 @@ public class JlinkTask extends MatchingTask {
/** /**
* Establishes the object that contains the files to * Establishes the object that contains the files to
* be added to the output. * be added to the output.
* @return a path to be configured
*/ */
public Path createAddfiles() { public Path createAddfiles() {
if (this.addfiles == null) { if (this.addfiles == null) {
@@ -94,6 +98,7 @@ public class JlinkTask extends MatchingTask {


/** /**
* Sets the files to be added into the output. * Sets the files to be added into the output.
* @param addfiles a path
*/ */
public void setAddfiles(Path addfiles) { public void setAddfiles(Path addfiles) {
if (this.addfiles == null) { if (this.addfiles == null) {
@@ -105,6 +110,7 @@ public class JlinkTask extends MatchingTask {


/** /**
* Defines whether or not the output should be compacted. * Defines whether or not the output should be compacted.
* @param compress a <code>boolean</code> value
*/ */
public void setCompress(boolean compress) { public void setCompress(boolean compress) {
this.compress = compress; this.compress = compress;
@@ -112,6 +118,7 @@ public class JlinkTask extends MatchingTask {


/** /**
* Does the adding and merging. * Does the adding and merging.
* @throws BuildException on error
*/ */
public void execute() throws BuildException { public void execute() throws BuildException {
//Be sure everything has been set. //Be sure everything has been set.


Loading…
Cancel
Save