ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rolf Schumacher <r...@august.de>
Subject bsf for scripting
Date Sat, 26 Apr 2003 05:47:52 GMT
I cannot run scripts that worked so far (till 1.5.1).

What I've done:
1. Checked out ant (calls itself 1.6 alpha) from cvs today.
2. Understood that I can no longer use bsf.jar from IBM.
3. Tried to checkout apache-bsf source, failed, download bsf jar binary
(calls itself 2.3.0)

BUILD FAILED with a Java error.

4. reduced the build.xml in order to focus on the errormessage

My workaround will do for a while - but in case
- someone is intressted in the error or
- someone sees my fault or
- directs me to where leave this information

the build.xml:
==========

<project name="com.myurl.mypackage" default="init">

    <target name="init" depends="derivedProperties">
        <echo>projectPath=${project.path}</echo>
        <echo>projectName=${project.name}</echo>
    </target>

    <target name="derivedProperties">
        <script language="javascript"><![CDATA[
            pkgName = self.getProject().getProperty("ant.project.name");
            pkgPath = pkgName.replace('.', java.io.File.separatorChar);
            prjName = pkgName.substring(pkgName.lastIndexOf('.')+1);
            self.getProject().setNewProperty("project.path", pkgPath);
            self.getProject().setNewProperty("project.name", prjName);
        ]]></script>
    </target>

</project>

the error (complete output)
=======

Buildfile: build.xml

derivedProperties:

BUILD FAILED
java.lang.NoSuchMethodError:
org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine;
        at
org.apache.bsf.engines.javascript.JavaScriptEngine.eval(Unknown Source)
        at org.apache.bsf.util.BSFEngineImpl.exec(Unknown Source)
        at org.apache.bsf.BSFManager$6.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.bsf.BSFManager.exec(Unknown Source)
        at
org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:122)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:231)
        at org.apache.tools.ant.Task.perform(Task.java:399)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1404)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1278)
        at org.apache.tools.ant.Main.runBuild(Main.java:611)
        at org.apache.tools.ant.Main.start(Main.java:198)
        at org.apache.tools.ant.Main.main(Main.java:245)

Total time: 0 seconds
java.lang.NoSuchMethodError:
org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine;
        at
org.apache.bsf.engines.javascript.JavaScriptEngine.eval(Unknown Source)
        at org.apache.bsf.util.BSFEngineImpl.exec(Unknown Source)
        at org.apache.bsf.BSFManager$6.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.bsf.BSFManager.exec(Unknown Source)
        at
org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:122)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:231)
        at org.apache.tools.ant.Task.perform(Task.java:399)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1404)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1278)
        at org.apache.tools.ant.Main.runBuild(Main.java:611)
        at org.apache.tools.ant.Main.start(Main.java:198)
        at org.apache.tools.ant.Main.main(Main.java:245)
org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine;









Mime
View raw message