ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/optional BeanShellScriptTest.java
Date Thu, 21 Nov 2002 09:49:09 GMT
bodewig     2002/11/21 01:49:09

  Modified:    .        Tag: ANT_15_BRANCH build.xml
               src/etc/testcases/taskdefs/optional Tag: ANT_15_BRANCH
                        script.xml
  Added:       src/testcases/org/apache/tools/ant/taskdefs/optional Tag:
                        ANT_15_BRANCH BeanShellScriptTest.java
  Log:
  Add a test that shows that <script> can use beanshell
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.304.2.37 +7 -0      jakarta-ant/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/build.xml,v
  retrieving revision 1.304.2.36
  retrieving revision 1.304.2.37
  diff -u -r1.304.2.36 -r1.304.2.37
  --- build.xml	21 Nov 2002 09:04:51 -0000	1.304.2.36
  +++ build.xml	21 Nov 2002 09:49:08 -0000	1.304.2.37
  @@ -534,6 +534,9 @@
       <available property="rhino.present"
                  classname="org.mozilla.javascript.Scriptable"
                  classpathref="classpath"/>
  +    <available property="beanshell.present"
  +               classname="bsh.StringUtil"
  +               classpathref="classpath"/>
     </target>
   
   
  @@ -1313,6 +1316,10 @@
                      unless="bsf.present"/>
             <exclude name="${optional.package}/RhinoScriptTest.java"
                      unless="rhino.present"/>
  +          <exclude name="${optional.package}/BeanShellScriptTest.java"
  +                   unless="bsf.present"/>
  +          <exclude name="${optional.package}/BeanShellScriptTest.java"
  +                   unless="beanshell.present"/>
   
             <!-- fail if testcases can be loaded from the system classloader -->
             <exclude name="${optional.package}/junit/JUnitClassLoaderTest.java"
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +7 -0      jakarta-ant/src/etc/testcases/taskdefs/optional/script.xml
  
  Index: script.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/etc/testcases/taskdefs/optional/script.xml,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- script.xml	21 Nov 2002 09:04:52 -0000	1.1.2.1
  +++ script.xml	21 Nov 2002 09:49:09 -0000	1.1.2.2
  @@ -39,4 +39,11 @@
     </target>
   
     <target name="example2" depends="sub1,sub2"/>
  +
  +  <target name="useBeanshell">
  +    <script language="beanshell"><![CDATA[
  +       self.log("I'm here", org.apache.tools.ant.Project.MSG_INFO);
  +    ]]></script>
  +  </target>
  +
   </project>
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +81 -0     jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/optional/Attic/BeanShellScriptTest.java
  
  
  
  

--
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