Hi ant, ant elder wrote: > There are a whole lot of JSR-223 script engines available at > https://scripting.dev.java.net/ (scroll down to the bottom and you > see the > 25 or so languages supported). These use a BSD license which is Apache > friendly (see > http://people.apache.org/~cliffs/3party.html<http://people.apache.org/%7Ecliffs/3party.html>), > > so AFAIK is ok to distribute these in an Apache project all we'd need > to do > is include the Sun copyright and BSD license in the NOTICE file. > > One problem with them is the engines are compiled with JDK6 so don't work > with JDK 1.4 or 1.5, and I think we need to keep BSF3 working on JDK > 1.4 if > we can. One way around this is Retroweaver ( > http://retroweaver.sourceforge.net/) which uses byte code manipulate to > convert compiled classes to be JDK 1.4 compatible. To see if this is > feasible I've added a module to the build to download that scripting > engine > zip, unzip it, convert an engine to JDK 1.4 with Retroweaver, and install > the new jar in the local maven repo. See > https://svn.apache.org/repos/asf/jakarta/bsf/trunk/bsf3/install-engines/. > > It seems to work, so what do people think about using these engines in > BSF3? > It would certainly expedite things but it feels a bit odd doing this, > what > do you think? If it is legally and technically possible, I would go that route for sure. One thing we could do is approaching the maintainers of those engines and request from them a re-compile with JDK 1.4 and test them with BSF3. It should be very attractive for them as that definitely would open up a lot of opportunities with Java apps that are deployed right now with eralrier version of Java than with Java 1.6.
Regards, ---rony P.S.: JSR-223 originally was *not* geared towards 1.6. Only after the specs where more or less finalized did Sun come up with the idea to introduce and exploit as many features of JDK 1.6 as possible. In the discussion I pointed out that there would be an opportunity to use BSF for earlier version of Java (talking about the 2.x codebase then, but hoping that the 3.x codebase was really coming into existence, being a full replacement of JSR-223 in Java 1.6 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
