You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2003/09/26 03:45:56 UTC

cvs commit: avalon/meta/plugin plugin.jelly

mcconnell    2003/09/25 18:45:56

  Modified:    meta/plugin plugin.jelly
  Log:
  Add support for meta info generation for test src directory with output to test-classes directory.
  
  Revision  Changes    Path
  1.2       +15 -0     avalon/meta/plugin/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/avalon/meta/plugin/plugin.jelly,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- plugin.jelly	24 Sep 2003 08:15:52 -0000	1.1
  +++ plugin.jelly	26 Sep 2003 01:45:56 -0000	1.2
  @@ -30,6 +30,9 @@
       <ant:available property="mainSourcesPresent"
           file="${maven.src.dir}/main"/>
   
  +    <ant:available property="testSourcesPresent"
  +        file="${maven.src.dir}/test"/>
  +
       <ant:mkdir dir="${maven.build.dest}"/>
       <ant:avalon destDir="${maven.build.dest}" 
           format="${avalon.meta.format}" 
  @@ -48,6 +51,18 @@
           </j:if>
   
       </ant:avalon>
  +
  +    <j:if test="${testSourcesPresent == 'true'}">
  +      <ant:avalon destDir="${maven.build.dir}/test-classes" 
  +        format="${avalon.meta.format}" 
  +        force="${avalon.meta.force}"
  +        postfix="${avalon.meta.type.postfix}">
  +          <ant:fileset dir="${maven.src.dir}/test">
  +            <include name="**/*.java"/>
  +          </ant:fileset>
  +      </ant:avalon>
  +    </j:if>
  +
     </goal>
   
   </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org