maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject cvs commit: maven-components/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test SurefirePlugin.java
Date Sat, 19 Jun 2004 12:12:39 GMT
evenisse    2004/06/19 05:12:39

  Modified:    maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test
                        SurefirePlugin.java
  Log:
  Use build directories as parameter.
  
  Revision  Changes    Path
  1.10      +21 -3     maven-components/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
  
  Index: SurefirePlugin.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SurefirePlugin.java	16 Jun 2004 02:51:37 -0000	1.9
  +++ SurefirePlugin.java	19 Jun 2004 12:12:39 -0000	1.10
  @@ -33,6 +33,20 @@
    *  expression="#basedir"
    *  description=""
    * @parameter
  + *  name="classesDirectory"
  + *  type="String"
  + *  required="true"
  + *  validator="validator"
  + *  expression="#project.build.output"
  + *  description=""
  + * @parameter
  + *  name="testClassesDirectory"
  + *  type="String"
  + *  required="true"
  + *  validator="validator"
  + *  expression="#project.build.testOutput"
  + *  description=""
  + * @parameter
    *  name="includes"
    *  type="String"
    *  required="true"
  @@ -74,6 +88,10 @@
   
           String basedir = (String) request.getParameter( "basedir" );
   
  +        String classesDirectory = (String) request.getParameter( "classesDirectory" );
  +
  +        String testClassesDirectory = (String) request.getParameter( "testClassesDirectory"
);
  +
           List includes = (List) request.getParameter( "includes" );
   
           List excludes = (List) request.getParameter( "excludes" );
  @@ -94,9 +112,9 @@
   
           surefireBooter.addClassPathUrl( new File( mavenRepoLocal, "surefire/jars/surefire-1.0.jar"
).getPath() );
   
  -        surefireBooter.addClassPathUrl( new File( basedir, "target/classes" ).getPath()
);
  +        surefireBooter.addClassPathUrl( new File( basedir, classesDirectory ).getPath()
);
   
  -        surefireBooter.addClassPathUrl( new File( basedir, "target/test-classes" ).getPath()
);
  +        surefireBooter.addClassPathUrl( new File( basedir, testClassesDirectory ).getPath()
);
   
           for ( int i = 0; i < classpathElements.length; i++ )
           {
  
  
  

Mime
View raw message