[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ant-dev
Subject:    cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/jlink ClassNameReader.java JlinkTask
From:       peterreilly () apache ! org
Date:       2005-06-29 11:32:48
Message-ID: 20050629113248.31139.qmail () minotaur ! apache ! org
[Download RAW message or body]

peterreilly    2005/06/29 04:32:48

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/jlink
                        ClassNameReader.java JlinkTask.java
  Log:
  javadoc
  
  Revision  Changes    Path
  1.17      +10 -1     ant/src/main/org/apache/tools/ant/taskdefs/optional/jlink/ClassNameReader.java
  
  Index: ClassNameReader.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/jlink/ClassNameReader.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ClassNameReader.java	9 Mar 2004 16:48:30 -0000	1.16
  +++ ClassNameReader.java	29 Jun 2005 11:32:47 -0000	1.17
  @@ -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 @@
               case NAMEANDTYPE :
                   values[i] = new Integer(data.readInt());
                   break;
  +            default:
  +                // Do nothing
               }
           }
       }
  @@ -97,6 +99,13 @@
    */
   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 {
           DataInputStream data = new DataInputStream(input);
           // verify this is a valid class file.
  
  
  
  1.19      +8 -1      ant/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java
  
  Index: JlinkTask.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- JlinkTask.java	9 Mar 2004 16:48:30 -0000	1.18
  +++ JlinkTask.java	29 Jun 2005 11:32:47 -0000	1.19
  @@ -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 @@
   
       /**
        * 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 @@
       /**
        * 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 @@
   
       /**
        * 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 @@
       /**
        * 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 @@
   
       /**
        * 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 @@
   
       /**
        * Defines whether or not the output should be compacted.
  +     * @param compress a <code>boolean</code> value
        */
       public  void setCompress(boolean compress) {
           this.compress = compress;
  @@ -112,6 +118,7 @@
   
       /**
        * Does the adding and merging.
  +     * @throws BuildException on error
        */
       public  void execute() throws BuildException {
           //Be sure everything has been set.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic