You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ad...@apache.org on 2002/05/23 11:33:50 UTC

cvs commit: jakarta-ant-myrmidon/antlib/src/test/org/apache/antlib/runtime/test TypeDefTestFileList.java task-def.ant

adammurdoch    02/05/23 02:33:50

  Modified:    antlib/src/test/org/apache/antlib/runtime/test task-def.ant
  Added:       antlib/src/test/org/apache/antlib/runtime/test
                        TypeDefTestFileList.java
  Log:
  Test case for <type-def> + polymorphic type passes now.
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-ant-myrmidon/antlib/src/test/org/apache/antlib/runtime/test/task-def.ant
  
  Index: task-def.ant
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/test/org/apache/antlib/runtime/test/task-def.ant,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- task-def.ant	22 May 2002 07:36:21 -0000	1.1
  +++ task-def.ant	23 May 2002 09:33:50 -0000	1.2
  @@ -34,7 +34,7 @@
               <classpath-ref id="test.path"/>
           </type-def>
           <list-path>
  -            <test-path some-prop="some-file"/>
  +            <test-path file="some-file"/>
           </list-path>
       </target>
   
  
  
  
  1.1                  jakarta-ant-myrmidon/antlib/src/test/org/apache/antlib/runtime/test/TypeDefTestFileList.java
  
  Index: TypeDefTestFileList.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.runtime.test;
  
  import java.io.File;
  import org.apache.myrmidon.api.TaskContext;
  import org.apache.myrmidon.api.TaskException;
  import org.apache.myrmidon.framework.file.FileList;
  
  /**
   * A file-list implementation used by the <type-def> tests.
   *
   * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
   * @version $Revision: 1.1 $ $Date: 2002/05/23 09:33:50 $
   */
  public class TypeDefTestFileList
      implements FileList
  {
      private File m_file;
  
      public void setFile( File file )
      {
          m_file = file;
      }
  
      /**
       * Returns the files in the list.
       */
      public String[] listFiles( final TaskContext context )
          throws TaskException
      {
          return new String[] { m_file.getAbsolutePath() };
      }
  }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>