ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/make primitive-tests.ant
Date Sun, 27 Jan 2002 23:42:15 GMT
donaldp     02/01/27 15:42:15

  Modified:    proposal/myrmidon/src/manifest selftest-ant-descriptor.xml
               proposal/myrmidon/src/make primitive-tests.ant
  Added:       proposal/myrmidon/src/java/org/apache/antlib/selftest
                        TypedAdderTest.java
  Log:
  Added a simple class to help test the typed adder construct
  
  Revision  Changes    Path
  1.1                  jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/selftest/TypedAdderTest.java
  
  Index: TypedAdderTest.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.antlib.selftest;
  
  import org.apache.myrmidon.api.AbstractTask;
  import org.apache.myrmidon.api.TaskException;
  
  /**
   * This is to test whether adders with just a type (and no name) work.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @ant:task name="typed-adder-test"
   */
  public class TypedAdderTest
      extends AbstractTask
  {
      public void add( final Integer value )
      {
          //Should fail as value is not an interface
          getLogger().warn( "Integer add: " + value );
      }
  
      public void execute()
          throws TaskException
      {
      }
  }
  
  
  
  1.6       +1 -0      jakarta-ant/proposal/myrmidon/src/manifest/selftest-ant-descriptor.xml
  
  Index: selftest-ant-descriptor.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/manifest/selftest-ant-descriptor.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- selftest-ant-descriptor.xml	17 Dec 2001 09:22:16 -0000	1.5
  +++ selftest-ant-descriptor.xml	27 Jan 2002 23:42:15 -0000	1.6
  @@ -7,5 +7,6 @@
       <task name="content-test" classname="org.apache.antlib.selftest.ContentTest" />
       <task name="file-manip-test" classname="org.apache.antlib.selftest.FileManipulationTest"
/>
       <task name="extensions-test" classname="org.apache.antlib.selftest.ExtensionsTest"
/>
  +    <task name="typed-adder-test" classname="org.apache.antlib.selftest.TypedAdderTest"
/>
     </types>
   </ant-lib>
  
  
  
  1.8       +5 -0      jakarta-ant/proposal/myrmidon/src/make/primitive-tests.ant
  
  Index: primitive-tests.ant
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/make/primitive-tests.ant,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- primitive-tests.ant	15 Jan 2002 09:13:13 -0000	1.7
  +++ primitive-tests.ant	27 Jan 2002 23:42:15 -0000	1.8
  @@ -75,4 +75,9 @@
       <extensions-test/>
     </target>
   
  +  <target name="typed-adder-test">
  +    <log message="About to execute typed-adder-test"/>
  +    <typed-adder-test/>
  +  </target>
  +
   </project>
  
  
  

--
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