Re: Packaging Jython code in jar
Jim Baker <[email protected]> Tue, 5 Sep 2017 11:07:18 -0600
| Newsgroups | gmane.comp.lang.jython.user |
|---|---|
| Message-ID | <CAOhO=aO2q--+mqByVqA8zP8gZCSBaGTfGh95xd09a+9AYtsycA@mail.gmail.com> |
Ivan, Darjus Loktevic and I worked on Clamp (https://github.com/jythontools/clamp), which is a project to support such packaging and other functionality, but it's not been updated for 3 years. But it still works fine. Just keep in mind its documented limitations. We would be open to any PRs against Clamp - there are a lot of things that can be done, per https://github.com/jythontools/clamp#todo - Jim On Mon, Sep 4, 2017 at 4:33 AM, Ivan Golovko <[email protected]> wrote: > Hi all, we use Jython as a scripting engine inside a Java app. Besides > our Java classes, we would like to provide people who write scripts with > certain code written in Python, e. g. function decorators. We need to > package our Jython code in jar to do this. But plaintext.py (as instance) files > won’t work. > We tried jython-compile-maven-plugin > <http://mavenjython.sourceforge.net/compile/index.html>, but it appears > to be outdated and not working. > > Help us find a solution. > > In details. > > 1. We have a java application that is built by maven. > 2. There are some *.py *filies in the resource directory. > 3. A running application can work with external *.py *files. > > We want external *.py* files to be able to use jython modules from the > resource directory. > > -- > С уважением, Иван Головко > > ------------------------------------------------------------ > ------------------ > 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 > > ------------------------------------------------------------------------------ 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