Using Jython 2.7.1 from Ant

David Charles <[email protected]> Thu, 14 Dec 2017 15:23:46 -0700
Newsgroups gmane.comp.lang.jython.user
Message-ID <CAJHoYyKvuG3UyHL+6rL9UE6YHUA92=1z0zy6Vr1nF0MKW3Gc3Q@mail.gmail.com>
I'm having trouble using Jython 2.7.1 from Ant.

Here is my Ant target:

    <target name="hello-jython">
        <script language="jython">
print 'Hello, jython!'
        </script>
    </target>

And when I execute the target:

$ ant hello-jython
Buildfile: /home/me/myproject/build.xml

hello-jython:

BUILD FAILED
/home/me/myproject/build.xml:95: Unable to create javax script engine for
jython

Total time: 0 seconds

I copied jython.jar from my Jython2.7.1 installation into $ANT_HOME/lib,
and I noticed that it created the famous 'cachedir' folder there when I
fired up Ant.

The version of Ant in question:

$ ant -version
Apache Ant(TM) version 1.9.6 compiled on June 29 2015

I will appreciate any tips!  Thanks!

David

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Jython-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-users