ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject svn commit: r953840 - in /ant/core/trunk: build.xml lib/optional/README lib/optional/junit-3.8.2.jar lib/optional/junit-4.8.1.jar src/etc/poms/ant-junit/pom.xml src/etc/poms/ant-junit4/ src/etc/poms/ant-junit4/pom.xml src/etc/poms/pom.xml
Date Fri, 11 Jun 2010 19:11:17 GMT
Author: jglick
Date: Fri Jun 11 19:11:16 2010
New Revision: 953840

URL: http://svn.apache.org/viewvc?rev=953840&view=rev
Log:
Seems to be necessary to build ant-junit4.jar separately.

Added:
    ant/core/trunk/lib/optional/junit-3.8.2.jar   (with props)
    ant/core/trunk/src/etc/poms/ant-junit4/
    ant/core/trunk/src/etc/poms/ant-junit4/pom.xml   (with props)
Modified:
    ant/core/trunk/build.xml
    ant/core/trunk/lib/optional/README
    ant/core/trunk/lib/optional/junit-4.8.1.jar
    ant/core/trunk/src/etc/poms/ant-junit/pom.xml
    ant/core/trunk/src/etc/poms/pom.xml

Modified: ant/core/trunk/build.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/build.xml?rev=953840&r1=953839&r2=953840&view=diff
==============================================================================
--- ant/core/trunk/build.xml (original)
+++ ant/core/trunk/build.xml Fri Jun 11 19:11:16 2010
@@ -190,7 +190,16 @@
   </selector>
 
   <selector id="needs.junit">
-    <filename name="${optional.package}/junit/"/>
+    <and>
+      <filename name="${optional.package}/junit/"/>
+      <not>
+        <filename name="${optional.package}/junit/JUnit4TestMethodAdapter*"/>
+      </not>
+    </and>
+  </selector>
+
+  <selector id="needs.junit4">
+    <filename name="${optional.package}/junit/JUnit4TestMethodAdapter*"/>
   </selector>
 
   <selector id="needs.apache-regexp">
@@ -349,10 +358,12 @@
     <available property="recent.xalan2.present"
       classname="org.apache.xalan.trace.TraceListenerEx3"
       classpathref="classpath" ignoresystemclasses="true"/>
-    <condition property="junit.present">
+    <available property="junit.present"
+      classname="junit.framework.TestCase"
+      classpathref="classpath" ignoresystemclasses="true"/>
+    <condition property="junit4.present">
       <and>
         <!-- Need JDK 5+ to compile since junit-4*.jar uses new bytecode format -->
-        <!-- (could also try to compile all but JUnit4TestMethodAdapter but you would
need to add junit-3*.jar to CP yourself) -->
         <available classname="java.net.Proxy"/>
         <available
           classname="org.junit.Test"
@@ -539,6 +550,7 @@
 
             <selector refid="needs.apache-resolver" unless="apache.resolver.present"/>
             <selector refid="needs.junit" unless="junit.present"/>
+            <selector refid="needs.junit4" unless="junit4.present"/>
             <selector refid="needs.apache-regexp"
               unless="apache.regexp.present"/>
             <selector refid="needs.apache-oro" unless="apache.oro.present"/>
@@ -664,6 +676,7 @@
           <selector refid="needs.jmf"/>
           <selector refid="needs.jsch"/>
           <selector refid="needs.junit"/>
+          <selector refid="needs.junit4"/>
           <selector refid="needs.netrexx"/>
           <selector refid="needs.swing"/>
           <selector refid="ant.launcher"/>
@@ -727,6 +740,7 @@
 
     <optional-jar dep="apache-resolver"/>
     <optional-jar dep="junit"/>
+    <optional-jar dep="junit4"/>
     <optional-jar dep="apache-regexp"/>
     <optional-jar dep="apache-oro"/>
     <optional-jar dep="apache-bcel"/>

Modified: ant/core/trunk/lib/optional/README
URL: http://svn.apache.org/viewvc/ant/core/trunk/lib/optional/README?rev=953840&r1=953839&r2=953840&view=diff
==============================================================================
--- ant/core/trunk/lib/optional/README (original)
+++ ant/core/trunk/lib/optional/README Fri Jun 11 19:11:16 2010
@@ -1,3 +1,4 @@
-The file junit-4.8.1.jar is version 4.8.1 of JUnit, see the file LICENSE.junit.html
-for the terms of distribution.  For more information about JUnit or
-the latest release, see <http://www.junit.org/>.
+The file junit-3.8.2.jar is version 3.8.2 of JUnit, whereas junit-4.8.1.jar is
+version 4.8.1 with the junit.** classes removed (except for the 3.x -> 4.x
+adapter); see the file LICENSE.junit.html for the terms of distribution. For
+more information about JUnit or the latest release, see <http://www.junit.org/>.

Added: ant/core/trunk/lib/optional/junit-3.8.2.jar
URL: http://svn.apache.org/viewvc/ant/core/trunk/lib/optional/junit-3.8.2.jar?rev=953840&view=auto
==============================================================================
Binary file - no diff available.

Propchange: ant/core/trunk/lib/optional/junit-3.8.2.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: ant/core/trunk/lib/optional/junit-4.8.1.jar
URL: http://svn.apache.org/viewvc/ant/core/trunk/lib/optional/junit-4.8.1.jar?rev=953840&r1=953839&r2=953840&view=diff
==============================================================================
Binary files - no diff available.

Modified: ant/core/trunk/src/etc/poms/ant-junit/pom.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/etc/poms/ant-junit/pom.xml?rev=953840&r1=953839&r2=953840&view=diff
==============================================================================
--- ant/core/trunk/src/etc/poms/ant-junit/pom.xml (original)
+++ ant/core/trunk/src/etc/poms/ant-junit/pom.xml Fri Jun 11 19:11:16 2010
@@ -82,6 +82,9 @@ xsi:schemaLocation="http://maven.apache.
           <includes>
             <include>org/apache/tools/ant/taskdefs/optional/junit/*</include>
           </includes>
+          <excludes>
+            <exclude>org/apache/tools/ant/taskdefs/optional/junit/JUnit4TestMethodAdapter*</exclude>
+          </excludes>
         </configuration>
       </plugin>
     </plugins>

Added: ant/core/trunk/src/etc/poms/ant-junit4/pom.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/etc/poms/ant-junit4/pom.xml?rev=953840&view=auto
==============================================================================
--- ant/core/trunk/src/etc/poms/ant-junit4/pom.xml (added)
+++ ant/core/trunk/src/etc/poms/ant-junit4/pom.xml Fri Jun 11 19:11:16 2010
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<!--
+  This POM has been created manually by the Ant Development Team.
+  Please contact us if you are not satisfied with the data contained in this POM.
+  URL : http://ant.apache.org
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.apache.ant</groupId>
+    <artifactId>ant-parent</artifactId>
+    <relativePath>../pom.xml</relativePath>
+    <version>1.8.2-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.ant</groupId>
+  <artifactId>ant-junit4</artifactId>
+  <version>1.8.2-SNAPSHOT</version>
+  <description>contains JUnit 4.x support</description>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.ant</groupId>
+      <artifactId>ant</artifactId>
+      <version>1.8.2-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.8.1</version>
+      <scope>compile</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.4</source>
+          <target>1.4</target>
+          <includes>
+            <include>org/apache/tools/ant/taskdefs/optional/junit/JUnit4TestMethodAdapter*</include>
+          </includes>
+        </configuration>
+      </plugin>
+    </plugins>
+    <sourceDirectory>../../../../src/main</sourceDirectory>
+    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
+    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
+    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
+    <directory>../../../../target/${project.artifactId}</directory>
+  </build>
+</project>

Propchange: ant/core/trunk/src/etc/poms/ant-junit4/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: ant/core/trunk/src/etc/poms/pom.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/etc/poms/pom.xml?rev=953840&r1=953839&r2=953840&view=diff
==============================================================================
--- ant/core/trunk/src/etc/poms/pom.xml (original)
+++ ant/core/trunk/src/etc/poms/pom.xml Fri Jun 11 19:11:16 2010
@@ -85,6 +85,7 @@ xsi:schemaLocation="http://maven.apache.
     <module>ant-jmf</module>
     <module>ant-jsch</module>
     <module>ant-junit</module>
+    <module>ant-junit4</module>
     <module>ant-launcher</module>
     <module>ant-netrexx</module>
     <module>ant-swing</module>



Mime
View raw message