Browse Source

help dealing with the case where BSF is there but JavaScript support is not - the current build failure in Gump

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1238354 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 13 years ago
parent
commit
82ab7bf6e5
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml

+ 10
- 0
src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml View File

@@ -35,6 +35,16 @@
</or> </or>
</condition> </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" /> <property name="script.manager" value="auto" />


<string id="script.code"> <string id="script.code">


Loading…
Cancel
Save