ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: jakarta-ant/src/etc/testcases/taskdefs java.xml
Date Mon, 11 Feb 2002 02:46:44 GMT
stevel      02/02/10 18:46:44

  Modified:    src/etc/testcases/taskdefs java.xml
  Log:
  added tests to look at <java's> exception handling.
  
  Revision  Changes    Path
  1.2       +36 -19    jakarta-ant/src/etc/testcases/taskdefs/java.xml
  
  Index: java.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/etc/testcases/taskdefs/java.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- java.xml	10 Feb 2002 22:30:32 -0000	1.1
  +++ java.xml	11 Feb 2002 02:46:44 -0000	1.2
  @@ -4,65 +4,82 @@
   
     <property name="app" 
       value="org.apache.tools.ant.taskdefs.JavaTest$$EntryPoint" />
  -  
  +
  +  <property name="app2" 
  +    value="org.apache.tools.ant.taskdefs.JavaTest$$ExceptingEntryPoint" />
  +    
     <path id="test.classpath">
       <pathelement location="${build.tests}"/>
     </path>
     
  -  <target name="noclassname">
  +  <target name="testNoJarNoClassname">
       <java/>
     </target>
   
  -  <target name="jarNoFork">
  +  <target name="testJarNoFork">
       <java jar="test.jar" fork="false"/>
     </target>  
     
     
  -  <target name="jarAndClassname">
  +  <target name="testJarAndClassName">
       <java jar="test.jar" classname="${app}" />
     </target>
     
  -  <target name="ClassnameAndjar">
  +  <target name="testClassnameAndJar">
       <java classname="${app}" jar="test.jar"  />
     </target>  
     
  -  <target name="run">
  +  <target name="testRun">
       <fail unless="tests-classpath.value" /> 
       <java classname="${app}"
         classpath="${tests-classpath.value}"/>
     </target>
   
  -  <target name="run-fail">
  +  <target name="testRunFail">
       <java classname="${app}" 
  -      classpath="tests-classpath.value"
  +      classpath="${tests-classpath.value}"
         >
  -        <arg value="-1"/>
  +      <arg value="-1"/>
       </java>
     </target>
   
  -  <target name="run-fail-foe">
  +  <target name="testRunFailFoe">
       <java classname="${app}"
  -        classpath="tests-classpath.value"
  -        failonerror="true">
  -        <arg value="-1"/>
  +      classpath="${tests-classpath.value}"
  +      failonerror="true">
  +      <arg value="-1"/>
       </java>
     </target>
   
  -  <target name="run-fail-foe-fork">
  +  <target name="testRunFailFoeFork">
       <java classname="${app}"
  -        classpath="tests-classpath.value"
  +        classpath="${tests-classpath.value}"
           failonerror="true"
           fork="true">
           <arg value="-1"/>
       </java>
     </target>
   
  -  <target name="runExpectNoFail">
  -    <java classname="${app}"
  -        classpath="tests-classpath.value"
  +  <target name="testExcepting">
  +    <java classname="${app2}"
  +        classpath="${tests-classpath.value}"
  +        >
  +    </java>
  +  </target>
  +
  +  <target name="testExceptingFoe">
  +    <java classname="${app2}"
  +        classpath="${tests-classpath.value}"
           failonerror="true">
  -        <arg value="-1"/>
       </java>
     </target>
   
  +  <target name="testExceptingFoeFork">
  +    <java classname="${app2}"
  +        classpath="${tests-classpath.value}"
  +        failonerror="true"
  +        fork="true">
  +    </java>
  +  </target>
  +  
   </project>
  
  
  

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


Mime
View raw message