You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Jack J. Woehr" <jw...@absolute-performance.com> on 2007/01/03 20:41:20 UTC
Ant 1.7.1 Alpha problems with BSF
A month ago with 1.7.0RC1 my BSF problems ended when Jacob Kjome wrote:
> On Dec 6, 2006, at 5:33 PM, Peter Reilly wrote:
>
> > You can use bsf 2.4.0 and rhino 1.5r4 but
>
> I definitely have Rhino 1.6.5. I *theenk* I have the 2.4.0 of
> BSF but I'll download again to be sure ... that is, I shall when
> the BSF download page uncrashes.
>
> > you need apache-commons as well (for bsf 2.4)
>
> Excuse my ignorance. Everything on the Apache Commons pages? Or
> one particular component? Commons seems to be many small projects.
>
>He meant Apache Commons Logging
Now I've built 1.7.1 from fresh checkout and with the same lib jars
used in lib/optional,
when I try to build my project I now get:
BUILD FAILED
/usr/local/work/SoftWoehr/com/SoftWoehr/build.xml:114: The following
error occurred while executing this line:
/usr/local/work/SoftWoehr/com/SoftWoehr/macros.xml:61: The following
error occurred while executing this line:
/usr/local/work/SoftWoehr/com/SoftWoehr/macros.xml:39: Unable to load
a script engine manager (org.apache.bsf.BSFManager or
javax.script.ScriptEngineManager)
Total time: 0 seconds
$ ant -version
Apache Ant version 1.7.1alpha compiled on January 3 2007
$
What lib versions must I change to, please, in the optional portion
of Ant build?
--
Jack J. Woehr
Director of Development
Absolute Performance, Inc.
jwoehr@absolute-performance.com
303-443-7000 ext. 527
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Ant 1.7.1 Alpha problems with BSF
Posted by Peter Reilly <pe...@gmail.com>.
On 1/3/07, Jack J. Woehr <jw...@absolute-performance.com> wrote:
> A month ago with 1.7.0RC1 my BSF problems ended when Jacob Kjome wrote:
>
> > On Dec 6, 2006, at 5:33 PM, Peter Reilly wrote:
> >
> > > You can use bsf 2.4.0 and rhino 1.5r4 but
> >
> > I definitely have Rhino 1.6.5. I *theenk* I have the 2.4.0 of
> > BSF but I'll download again to be sure ... that is, I shall when
> > the BSF download page uncrashes.
> >
> > > you need apache-commons as well (for bsf 2.4)
> >
> > Excuse my ignorance. Everything on the Apache Commons pages? Or
> > one particular component? Commons seems to be many small projects.
> >
>
> >He meant Apache Commons Logging
>
> Now I've built 1.7.1 from fresh checkout and with the same lib jars
> used in lib/optional,
Why not used ant 1.7.0?
Place bsf-2.4.0.jar, commons-logging-1.0.4.jar and js-1.6R5.jar in
$ANT_HOME/lib.
The following should then work:
<script language="javascript">
self.log("Hello world");
</script>
Or download the nightly build:
http://people.apache.org/builds/ant/nightly/
and you can place the needed jars in the classpath
nested element of <script>
/cygdrive/c/Documents and Settings/peter/lang > ls js bsf
bsf:
bsf-2.4.0.jar commons-logging-1.0.4.jar
js:
js-1.6R5.jar
/cygdrive/c/Documents and Settings/peter/lang >
<script language="javascript">
<classpath>
<fileset dir="${user.home}/lang/bsf" includes="*.jar"/>
<fileset dir="${user.home}/lang/js" includes="*.jar"/>
</classpath>
self.log("Hello world");
</script>
or 3) install java6 and use the javax manager
<script language="javascript" manager="javax">
self.log("Hello world");
</script>
> when I try to build my project I now get:
>
> BUILD FAILED
> /usr/local/work/SoftWoehr/com/SoftWoehr/build.xml:114: The following
> error occurred while executing this line:
> /usr/local/work/SoftWoehr/com/SoftWoehr/macros.xml:61: The following
> error occurred while executing this line:
> /usr/local/work/SoftWoehr/com/SoftWoehr/macros.xml:39: Unable to load
> a script engine manager (org.apache.bsf.BSFManager or
> javax.script.ScriptEngineManager)
>
> Total time: 0 seconds
> $ ant -version
> Apache Ant version 1.7.1alpha compiled on January 3 2007
> $
>
> What lib versions must I change to, please, in the optional portion
> of Ant build?
You need bsf-2.4.0.jar + commons-logging-1.0.4.jar
in $ANT_SRC/lib/optional
or bsf-2.3.0.jar
Either combination will work.
Peter
>
> --
> Jack J. Woehr
> Director of Development
> Absolute Performance, Inc.
> jwoehr@absolute-performance.com
> 303-443-7000 ext. 527
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org