You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2006/04/29 17:24:29 UTC

svn commit: r398177 - in /ant/core/trunk/src: etc/testcases/taskdefs/rmic/rmic.xml testcases/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java

Author: bodewig
Date: Sat Apr 29 08:24:27 2006
New Revision: 398177

URL: http://svn.apache.org/viewcvs?rev=398177&view=rev
Log:
tests for PR 38732

Modified:
    ant/core/trunk/src/etc/testcases/taskdefs/rmic/rmic.xml
    ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java

Modified: ant/core/trunk/src/etc/testcases/taskdefs/rmic/rmic.xml
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/etc/testcases/taskdefs/rmic/rmic.xml?rev=398177&r1=398176&r2=398177&view=diff
==============================================================================
--- ant/core/trunk/src/etc/testcases/taskdefs/rmic/rmic.xml (original)
+++ ant/core/trunk/src/etc/testcases/taskdefs/rmic/rmic.xml Sat Apr 29 08:24:27 2006
@@ -108,6 +108,12 @@
     <available property="kaffe.present" classname="jkaffe.rmi.rmic.RMIC"/>
     <available property="rmic.present" classname="sun.rmi.rmic.Main"/>
     <available property="wlrmic.present" classname="weblogic.rmic"/>
+    <condition property="rmic6.present">
+      <and>
+        <isset property="rmic.present"/>
+        <available classname="java.util.Service"/>
+      </and>
+    </condition>
   </target>
 
   <target name="testDefault" depends="init">
@@ -240,6 +246,20 @@
   <target name="testMagicPropertyIsEmptyString" depends="init">
     <property name="build.rmic" value=""/>
     <base-rmic />
+    <assertBaseCompiled/>
+  </target>
+
+  <target name="testXnew" if="rmic6.present" depends="init">
+    <base-rmic compiler="sun">
+      <compilerarg value="-Xnew"/>
+    </base-rmic>
+    <assertBaseCompiled/>
+  </target>
+
+  <target name="testXnewForked" if="rmic6.present" depends="init">
+    <base-rmic compiler="forking">
+      <compilerarg value="-Xnew"/>
+    </base-rmic>
     <assertBaseCompiled/>
   </target>
 

Modified: ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java?rev=398177&r1=398176&r2=398177&view=diff
==============================================================================
--- ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java (original)
+++ ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java Sat Apr 29 08:24:27 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright  2004-2005 The Apache Software Foundation
+ * Copyright  2004-2006 The Apache Software Foundation
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -192,6 +192,24 @@
      */
     public void testVersionCompat() throws Exception {
         executeTarget("testVersionCompat");
+    }
+
+    /**
+     * test that passes -Xnew to sun's rmic.
+     *
+     * @throws Exception
+     */
+    public void testXnew() throws Exception {
+        executeTarget("testXnew");
+    }
+
+    /**
+     * test that passes -Xnew to sun's rmic running in a different VM.
+     *
+     * @throws Exception
+     */
+    public void testXnewForked() throws Exception {
+        executeTarget("testXnewForked");
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org