ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1238354 - /ant/core/trunk/src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml
Date Tue, 31 Jan 2012 10:01:50 GMT
Author: bodewig
Date: Tue Jan 31 10:01:50 2012
New Revision: 1238354

URL: http://svn.apache.org/viewvc?rev=1238354&view=rev
Log:
help dealing with the case where BSF is there but JavaScript support is not - the current
build failure in Gump

Modified:
    ant/core/trunk/src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml

Modified: ant/core/trunk/src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml?rev=1238354&r1=1238353&r2=1238354&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml Tue Jan 31
10:01:50 2012
@@ -35,6 +35,16 @@
     </or>
   </condition>
 
+  <!-- auto doesn't verify the language is supported and selects BSF
+       even if the JavaScriptEngine is not there -->
+  <condition property="script.manager" value="javax">
+    <and>
+      <not>
+        <available classname="org.apache.bsf.engines.javascript.JavaScriptEngine" />
+      </not>
+      <isset property="prereqs-ok"/>
+    </and>
+  </condition>
   <property name="script.manager" value="auto" />
 
   <string id="script.code">



Mime
View raw message