ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/lib log4j-core.jar xdoclet.jar
Date Sun, 13 Jan 2002 00:02:11 GMT
ehatcher    02/01/12 16:02:11

  Modified:    proposal/myrmidon build.xml
               proposal/myrmidon/src/java/org/apache/antlib/core Fail.java
                        LoadProperties.java Log.java Property.java
                        StringToBooleanConverter.java
                        StringToByteConverter.java
                        StringToClassConverter.java
                        StringToDoubleConverter.java
                        StringToEnumConverter.java
                        StringToFileConverter.java
                        StringToFloatConverter.java
                        StringToIntegerConverter.java
                        StringToLongConverter.java
                        StringToShortConverter.java
                        StringToURLConverter.java
  Added:       proposal/myrmidon/src/manifest core-ant-descriptor.template
               proposal/myrmidon/lib log4j-core.jar xdoclet.jar
  Log:
  First pass at an XDoclet proof-of-concept
  
  Use the xdoclet target, and check the build directory for a generated core-ant-descriptor.xml
  
  Revision  Changes    Path
  1.32      +22 -0     jakarta-ant/proposal/myrmidon/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/build.xml,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- build.xml	12 Jan 2002 05:54:41 -0000	1.31
  +++ build.xml	13 Jan 2002 00:02:11 -0000	1.32
  @@ -456,4 +456,26 @@
       <antcall target="main"/>
     </target>
   
  +  <target name="xdoclet">
  +    <path id="xdoclet.classpath">
  +      <pathelement location="lib/xdoclet.jar"/>
  +      <pathelement location="lib/log4j-core.jar"/>
  +      <!-- javadoc is needed -->
  +      <pathelement path="${java.class.path}"/>
  +      <pathelement location="${build.classes}"/>
  +    </path>
  +    <taskdef name="xdoclet"
  +           classname="xdoclet.DocletTask"
  +           classpath="lib/xdoclet.jar"/>
  +    <xdoclet sourcepath="${java.dir}"
  +              destdir="${build.dir}"
  +              classpathref="xdoclet.classpath">
  +      <fileset dir="${java.dir}">
  +        <include name="**/*.java" />
  +      </fileset>
  +      <template templateFile="${manifest.dir}/core-ant-descriptor.template"
  +                destinationfile="core-ant-descriptor.xml"/>
  +    </xdoclet>
  +  </target>
  +  
   </project>
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/manifest/core-ant-descriptor.template
  
  Index: core-ant-descriptor.template
  ===================================================================
  <ant-lib>
  
    <types>
  
      <XDtClass:forAllClasses type="org.apache.myrmidon.api.AbstractTask" extent="hierarchy">
        <XDtClass:ifHasClassTag tagName="ant:task">
          <task name="<XDtClass:classTagValue tagName="ant:task" paramName="name"/>"
                classname="<XDtClass:fullClassName/>"/>
        </XDtClass:ifHasClassTag>
      </XDtClass:forAllClasses>
  
    </types>
  
    <converters>
  
      <XDtClass:forAllClasses type="org.apache.myrmidon.converter.AbstractConverter">
        <XDtClass:ifHasClassTag tagName="ant:converter">
          <converter classname="<XDtClass:fullClassName/>"
                     source="<XDtClass:classTagValue tagName="ant:converter" paramName="source"/>"
                     destination="<XDtClass:classTagValue tagName="ant:converter" paramName="destination"/>"/>
        </XDtClass:ifHasClassTag>
      </XDtClass:forAllClasses>
  
    </converters>
  
  </ant-lib>
  
  
  
  1.4       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/Fail.java
  
  Index: Fail.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/Fail.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Fail.java	23 Dec 2001 06:24:52 -0000	1.3
  +++ Fail.java	13 Jan 2002 00:02:11 -0000	1.4
  @@ -17,6 +17,7 @@
    * Useful for forcing a build to fail on a certain condition.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:task name="fail"
    */
   public class Fail
       extends AbstractTask
  
  
  
  1.2       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/LoadProperties.java
  
  Index: LoadProperties.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/LoadProperties.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LoadProperties.java	5 Jan 2002 03:20:03 -0000	1.1
  +++ LoadProperties.java	13 Jan 2002 00:02:11 -0000	1.2
  @@ -21,6 +21,7 @@
    * This task loads properties from a property file and places them in the context.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:task name="load-properties"
    */
   public class LoadProperties
       extends AbstractContainerTask
  
  
  
  1.6       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/Log.java
  
  Index: Log.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/Log.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Log.java	29 Dec 2001 21:28:04 -0000	1.5
  +++ Log.java	13 Jan 2002 00:02:11 -0000	1.6
  @@ -14,6 +14,7 @@
    * This is a task used to log messages in the build file.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:task name="log"
    */
   public class Log
       extends AbstractTask
  
  
  
  1.4       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/Property.java
  
  Index: Property.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/Property.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Property.java	23 Dec 2001 14:25:01 -0000	1.3
  +++ Property.java	13 Jan 2002 00:02:11 -0000	1.4
  @@ -28,6 +28,7 @@
    * TODO: Determine final format of property task.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:task name="property"
    */
   public class Property
       extends AbstractContainerTask
  
  
  
  1.2       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToBooleanConverter.java
  
  Index: StringToBooleanConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToBooleanConverter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StringToBooleanConverter.java	12 Jan 2002 05:49:07 -0000	1.1
  +++ StringToBooleanConverter.java	13 Jan 2002 00:02:11 -0000	1.2
  @@ -17,6 +17,7 @@
    * String to boolean converter
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:converter source="java.lang.String" destination="java.lang.Boolean"
    */
   public class StringToBooleanConverter
       extends AbstractConverter
  
  
  
  1.4       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToByteConverter.java
  
  Index: StringToByteConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToByteConverter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StringToByteConverter.java	23 Dec 2001 14:25:01 -0000	1.3
  +++ StringToByteConverter.java	13 Jan 2002 00:02:11 -0000	1.4
  @@ -17,6 +17,7 @@
    * String to byte converter
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:converter source="java.lang.String" destination="java.lang.Byte"
    */
   public class StringToByteConverter
       extends AbstractConverter
  
  
  
  1.4       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToClassConverter.java
  
  Index: StringToClassConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToClassConverter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StringToClassConverter.java	23 Dec 2001 14:25:01 -0000	1.3
  +++ StringToClassConverter.java	13 Jan 2002 00:02:11 -0000	1.4
  @@ -17,6 +17,7 @@
    * String to class converter
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:converter source="java.lang.String" destination="java.lang.Class"
    */
   public class StringToClassConverter
       extends AbstractConverter
  
  
  
  1.4       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToDoubleConverter.java
  
  Index: StringToDoubleConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToDoubleConverter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StringToDoubleConverter.java	23 Dec 2001 14:25:01 -0000	1.3
  +++ StringToDoubleConverter.java	13 Jan 2002 00:02:11 -0000	1.4
  @@ -17,6 +17,7 @@
    * String to double converter
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:converter source="java.lang.String" destination="java.lang.Double"
    */
   public class StringToDoubleConverter
       extends AbstractConverter
  
  
  
  1.3       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToEnumConverter.java
  
  Index: StringToEnumConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToEnumConverter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StringToEnumConverter.java	29 Dec 2001 21:35:44 -0000	1.2
  +++ StringToEnumConverter.java	13 Jan 2002 00:02:11 -0000	1.3
  @@ -20,6 +20,7 @@
    * String to Enum converter
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:converter source="java.lang.String" destination="org.apache.avalon.framework.Enum"
    */
   public class StringToEnumConverter
       implements Converter
  
  
  
  1.3       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToFileConverter.java
  
  Index: StringToFileConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToFileConverter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StringToFileConverter.java	23 Dec 2001 06:24:52 -0000	1.2
  +++ StringToFileConverter.java	13 Jan 2002 00:02:11 -0000	1.3
  @@ -20,6 +20,7 @@
    * String to file converter
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:converter source="java.lang.String" destination="java.io.File"
    */
   public class StringToFileConverter
       extends AbstractConverter
  
  
  
  1.4       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToFloatConverter.java
  
  Index: StringToFloatConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToFloatConverter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StringToFloatConverter.java	23 Dec 2001 14:25:01 -0000	1.3
  +++ StringToFloatConverter.java	13 Jan 2002 00:02:11 -0000	1.4
  @@ -17,6 +17,7 @@
    * String to float converter
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:converter source="java.lang.String" destination="java.lang.Float"
    */
   public class StringToFloatConverter
       extends AbstractConverter
  
  
  
  1.4       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToIntegerConverter.java
  
  Index: StringToIntegerConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToIntegerConverter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StringToIntegerConverter.java	23 Dec 2001 14:25:01 -0000	1.3
  +++ StringToIntegerConverter.java	13 Jan 2002 00:02:11 -0000	1.4
  @@ -17,6 +17,7 @@
    * String to integer converter.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:converter source="java.lang.String" destination="java.lang.Integer"
    */
   public class StringToIntegerConverter
       extends AbstractConverter
  
  
  
  1.4       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToLongConverter.java
  
  Index: StringToLongConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToLongConverter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StringToLongConverter.java	23 Dec 2001 14:25:01 -0000	1.3
  +++ StringToLongConverter.java	13 Jan 2002 00:02:11 -0000	1.4
  @@ -17,6 +17,7 @@
    * String to long converter
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:converter source="java.lang.String" destination="java.lang.Long"
    */
   public class StringToLongConverter
       extends AbstractConverter
  
  
  
  1.4       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToShortConverter.java
  
  Index: StringToShortConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToShortConverter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StringToShortConverter.java	23 Dec 2001 14:25:01 -0000	1.3
  +++ StringToShortConverter.java	13 Jan 2002 00:02:11 -0000	1.4
  @@ -17,6 +17,7 @@
    * String to short converter
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:converter source="java.lang.String" destination="java.lang.Short"
    */
   public class StringToShortConverter
       extends AbstractConverter
  
  
  
  1.4       +1 -0      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToURLConverter.java
  
  Index: StringToURLConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/core/StringToURLConverter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StringToURLConverter.java	23 Dec 2001 14:25:01 -0000	1.3
  +++ StringToURLConverter.java	13 Jan 2002 00:02:11 -0000	1.4
  @@ -19,6 +19,7 @@
    * String to url converter
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @ant:converter source="java.lang.String" destination="java.net.URL"
    */
   public class StringToURLConverter
       extends AbstractConverter
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/lib/log4j-core.jar
  
  	<<Binary file>>
  
  
  1.1                  jakarta-ant/proposal/myrmidon/lib/xdoclet.jar
  
  	<<Binary file>>
  
  

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


Mime
View raw message