CVS libant1.6-java/debian/patches

Arnaud Vandyck avdyk@haydn.debian.org
Wed May 25 21:46:05 2005


Update of /cvsroot/pkg-java/libant1.6-java/debian/patches
In directory haydn:/tmp/cvs-serv20758/debian/patches

Modified Files:
	01_gjdoc_task.patch 
Log Message:
new upstream to experimental

--- /cvsroot/pkg-java/libant1.6-java/debian/patches/01_gjdoc_task.patch	2004/01/30 16:31:47	1.1
+++ /cvsroot/pkg-java/libant1.6-java/debian/patches/01_gjdoc_task.patch	2005/05/25 21:45:52	1.2
@@ -1,2206 +1,3 @@
-diff -uNr src.orig/main/org/apache/tools/ant/taskdefs/Gjdoc.java src/main/org/apache/tools/ant/taskdefs/Gjdoc.java
---- src.orig/main/org/apache/tools/ant/taskdefs/Gjdoc.java	1970-01-01 09:00:00.000000000 +0900
-+++ src/main/org/apache/tools/ant/taskdefs/Gjdoc.java	2004-01-14 20:32:51.000000000 +0900
-@@ -0,0 +1,2199 @@
-+/*
-+ * The Apache Software License, Version 1.1
-+ *
-+ * Copyright (c) 2000-2003 The Apache Software Foundation.  All rights
-+ * reserved.
-+ *
-+ * Redistribution and use in source and binary forms, with or without
-+ * modification, are permitted provided that the following conditions
-+ * are met:
-+ *
-+ * 1. Redistributions of source code must retain the above copyright
-+ *    notice, this list of conditions and the following disclaimer.
-+ *
-+ * 2. Redistributions in binary form must reproduce the above copyright
-+ *    notice, this list of conditions and the following disclaimer in
-+ *    the documentation and/or other materials provided with the
-+ *    distribution.
-+ *
-+ * 3. The end-user documentation included with the redistribution, if
-+ *    any, must include the following acknowlegement:
-+ *       "This product includes software developed by the
-+ *        Apache Software Foundation (http://www.apache.org/)."
-+ *    Alternately, this acknowlegement may appear in the software itself,
-+ *    if and wherever such third-party acknowlegements normally appear.
-+ *
-+ * 4. The names "Ant" and "Apache Software
-+ *    Foundation" must not be used to endorse or promote products derived
-+ *    from this software without prior written permission. For written
-+ *    permission, please contact apache@apache.org.
-+ *
-+ * 5. Products derived from this software may not be called "Apache"
-+ *    nor may "Apache" appear in their names without prior written
-+ *    permission of the Apache Group.
-+ *
-+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
-+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-+ * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
-+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
-+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
-+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-+ * SUCH DAMAGE.
-+ * ====================================================================
-+ *
-+ * This software consists of voluntary contributions made by many
-+ * individuals on behalf of the Apache Software Foundation.  For more
-+ * information on the Apache Software Foundation, please see
-+ * <http://www.apache.org/>.
-+ */
-+package org.apache.tools.ant.taskdefs;
-+
-+import java.lang.reflect.InvocationTargetException;
-+import java.lang.reflect.Method;
-+import java.io.File;
-+import java.io.FileWriter;
-+import java.io.FilenameFilter;
-+import java.io.IOException;
-+import java.io.PrintWriter;
-+import java.io.BufferedReader;
-+import java.io.FileReader;
-+import java.net.MalformedURLException;
-+import java.net.URL;
-+import java.util.Enumeration;
-+import java.util.Locale;
-+import java.util.StringTokenizer;
-+import java.util.Vector;
-+import org.apache.tools.ant.BuildException;
-+import org.apache.tools.ant.DirectoryScanner;
-+import org.apache.tools.ant.Project;
-+import org.apache.tools.ant.ProjectComponent;
-+import org.apache.tools.ant.Task;
-+import org.apache.tools.ant.types.Commandline;
-+import org.apache.tools.ant.types.DirSet;
-+import org.apache.tools.ant.types.EnumeratedAttribute;
-+import org.apache.tools.ant.types.FileSet;
-+import org.apache.tools.ant.types.Path;
-+import org.apache.tools.ant.types.PatternSet;
-+import org.apache.tools.ant.types.Reference;
-+import org.apache.tools.ant.util.FileUtils;
-+import org.apache.tools.ant.util.JavaEnvUtils;
-+
-+/**
-+ * Generates Javadoc documentation for a collection
-+ * of source code.
-+ *
-+ * <P>Current known limitations are:
-+ *
-+ * <P><UL>
-+ *    <LI>patterns must be of the form "xxx.*", every other pattern doesn't
-+ *        work.
-+ *    <LI>there is no control on arguments sanity since they are left
-+ *        to the javadoc implementation.
-+ *    <LI>argument J in javadoc1 is not supported (what is that for anyway?)
-+ * </UL>
-+ *
-+ * <P>If no <CODE>doclet</CODE> is set, then the <CODE>version</CODE> and
-+ * <CODE>author</CODE> are by default <CODE>"yes"</CODE>.
-+ *
-+ * <P>Note: This task is run on another VM because the Javadoc code calls
-+ * <CODE>System.exit()</CODE> which would break Ant functionality.
-+ *
-+ * @author Jon S. Stevens <a href="mailto:jon@clearink.com">jon@clearink.com</a>
-+ * @author Stefano Mazzocchi
-+ *         <a href="mailto:stefano@apache.org">stefano@apache.org</a>
-+ * @author Patrick Chanezon
-+ *         <a href="mailto:chanezon@netscape.com">chanezon@netscape.com</a>
-+ * @author Ernst de Haan <a href="mailto:ernst@jollem.com">ernst@jollem.com</a>
-+ * @author Stefan Bodewig
-+ *
-+ * @since Ant 1.1
-+ *
-+ * @ant.task category="java"
-+ */
-+public class Gjdoc extends Task {
-+    /**
-+     * Inner class used to manage doclet parameters.
-+     */
-+    public class DocletParam {
-+        /** The parameter name */
-+        private String name;
-+
-+        /** The parameter value */
-+        private String value;
-+
-+        /**
-+         * Set the name of the parameter.
-+         *
-+         * @param name the name of the doclet parameter
-+         */
-+        public void setName(String name) {
-+            this.name = name;
-+        }
-+
-+        /**
-+         * Get the parameter name.
-+         *
-+         * @return the parameter's name.
-+         */
-+        public String getName() {
-+            return name;
-+        }
-+
-+        /**
-+         * Set the parameter value.
-+         *
-+         * Note that only string values are supported. No resolution of file
-+         * paths is performed.
-+         *
-+         * @param value the parameter value.
-+         */
-+        public void setValue(String value) {
-+            this.value = value;
-+        }
-+
-+        /**
-+         * Get the parameter value.
-+         *
-+         * @return the parameter value.
-+         */
-+        public String getValue() {
-+            return value;
-+        }
-+    }
-+
-+    /**
-+     * A project aware class used for Javadoc extensions which take a name
-+     * and a path such as doclet and taglet arguments.
-+     *
-+     * @author Conor MacNeill
-+     */
-+    public static class ExtensionInfo extends ProjectComponent {
-+        /** The name of the extension */
-+        private String name;
-+
-+        /** The optional path to use to load the extension */
-+        private Path path;
-+
-+        /**
-+         * Set the name of the extension
-+         *
-+         * @param name the extension's name.
-+         */
-+        public void setName(String name) {
-+            this.name = name;
-+        }
-+
-+        /**
-+         * Get the name of the extension.
-+         *
-+         * @return the extension's name.
-+         */
-+        public String getName() {
-+            return name;
-+        }
-+
-+        /**
-+         * Set the path to use when loading the component.
-+         *
-+         * @param path a Path instance containing the classpath to use.
-+         */
-+        public void setPath(Path path) {
-+            if (this.path == null) {
-+                this.path = path;
-+            } else {
-+                this.path.append(path);
-+            }
-+        }
-+
-+        /**
-+         * Get the extension's path.
-+         *
-+         * @return the path to be used to load the extension.
-+         * May be <code>null</code>
-+         */
-+        public Path getPath() {
-+            return path;
-+        }
-+
-+        /**
-+         * Create an empty nested path to be configured by Ant with the
-+         * classpath for the extension.
-+         *
-+         * @return a new Path instance to be configured.
-+         */
-+        public Path createPath() {
-+            if (path == null) {
-+                path = new Path(getProject());
-+            }
-+            return path.createPath();
-+        }
-+
-+        /**
-+         * Adds a reference to a CLASSPATH defined elsewhere.
-+         *
-+         * @param r the reference containing the path.
-+         */
-+        public void setPathRef(Reference r) {
-+            createPath().setRefid(r);
-+        }
-+    }
-+
-+    /**
-+     * This class stores info about doclets.
-+     *
-+     * @author Conor MacNeill
-+     */
-+    public class DocletInfo extends ExtensionInfo {
-+
-+        /** Collection of doclet parameters. */
-+        private Vector params = new Vector();
-+
-+        /**
-+         * Create a doclet parameter to be configured by Ant.
-+         *
-+         * @return a new DocletParam instance to be configured.
-+         */
-+        public DocletParam createParam() {
-+            DocletParam param = new DocletParam();
-+            params.addElement(param);
-+
-+            return param;
-+        }
-+
-+        /**
-+         * Get the doclet's parameters.
-+         *
-+         * @return an Enumeration of DocletParam instances.
-+         */
-+        public Enumeration getParams() {
-+            return params.elements();
-+        }
-+    }
-+
-+    /**
-+     * Used to track info about the packages to be javadoc'd
-+     */
-+    public static class PackageName {
-+        /** The package name */
-+        private String name;
-+
-+        /**
-+         * Set the name of the package
-+         *
-+         * @param name the package name.
-+         */
-+        public void setName(String name) {
-+            this.name = name.trim();
-+        }
-+
-+        /**
-+         * Get the package name.
-+         *
-+         * @return the package's name.
-+         */
-+        public String getName() {
-+            return name;
-+        }
-+
-+        /**
-+         * @see java.lang.Object#toString
-+         */
-+        public String toString() {
-+            return getName();
-+        }
-+    }
-+
-+    /**
-+     * This class is used to manage the source files to be processed.
-+     */
-+    public static class SourceFile {
-+        /** The source file */
-+        private File file;
-+
-+        /**
-+         * Default constructor
-+         */
-+        public SourceFile() {
-+        }
-+
-+        /**
-+         * Constructor specifying the source file directly
-+         *
-+         * @param file the source file
-+         */
-+        public SourceFile(File file) {
-+            this.file = file;
-+        }
-+
-+        /**
-+         * Set the source file.
-+         *
-+         * @param file the source file.
-+         */
-+        public void setFile(File file) {
-+            this.file = file;
-+        }
-+
-+        /**
-+         * Get the source file.
-+         *
-+         * @return the source file.
-+         */
-+        public File getFile() {
-+            return file;
-+        }
-+    }
-+
-+    /**
-+     * An HTML element in the javadoc.
-+     *
-+     * This class is used for those javadoc elements which contain HTML such as
-+     * footers, headers, etc.
-+     */
-+    public static class Html {
-+        /** The text for the element */
-+        private StringBuffer text = new StringBuffer();
-+
-+        /**
-+         * Add text to the element.
-+         *
-+         * @param t the text to be added.
-+         */
-+        public void addText(String t) {
-+            text.append(t);
-+        }
-+
-+        /**
-+         * Get the current text for the element.
-+         *
-+         * @return the current text.
-+         */
-+        public String getText() {
-+            return text.substring(0);
-+        }
-+    }
-+
-+    /**
-+     * EnumeratedAttribute implementation supporting the javadoc scoping
-+     * values.
-+     */
-+    public static class AccessType extends EnumeratedAttribute {
-+        /**
-+         * @see EnumeratedAttribute#getValues().
-+         */
-+        public String[] getValues() {
-+            // Protected first so if any GUI tool offers a default
-+            // based on enum #0, it will be right.
-+            return new String[] {"protected", "public", "package", "private"};
-+        }

[3963 lines skipped]