git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@398177 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -108,6 +108,12 @@ | |||||
| <available property="kaffe.present" classname="jkaffe.rmi.rmic.RMIC"/> | <available property="kaffe.present" classname="jkaffe.rmi.rmic.RMIC"/> | ||||
| <available property="rmic.present" classname="sun.rmi.rmic.Main"/> | <available property="rmic.present" classname="sun.rmi.rmic.Main"/> | ||||
| <available property="wlrmic.present" classname="weblogic.rmic"/> | <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> | ||||
| <target name="testDefault" depends="init"> | <target name="testDefault" depends="init"> | ||||
| @@ -243,4 +249,18 @@ | |||||
| <assertBaseCompiled/> | <assertBaseCompiled/> | ||||
| </target> | </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> | |||||
| </project> | </project> | ||||
| @@ -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"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
| @@ -194,6 +194,24 @@ public class RmicAdvancedTest extends BuildFileTest { | |||||
| executeTarget("testVersionCompat"); | 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"); | |||||
| } | |||||
| /** | /** | ||||
| * this little bunny verifies that we can load stuff, and that | * this little bunny verifies that we can load stuff, and that | ||||
| * a failure to execute is turned into a fault | * a failure to execute is turned into a fault | ||||