On 1/8/07, Scot P. Floess <[EMAIL PROTECTED]> wrote:
All:
I was trying to execute a simple beanshell script from within my ant
script (I tried using an example found in the documentation):
From the manual:
"""NB: This classpath cannot (currently) be used to specify the
location of the BSF jar file. """
This has been fixed in SVN, and will be in ant 1.7.1.
You can use the nightly build at
http://people.apache.org/builds/ant/nightly/
Peter
<script language="beanshell">
<classpath>
<fileset
dir="/home/sfloess/development/jplate/environment/lib" includes="*.
jar" />
</classpath>
System.out.println("Hello world");
</script>
If I run Ant with "-lib
/home/sfloess/development/jplate/environment/lib" command line option, I
see the System.out.println() executed as I would expect.
However, if I do not use the -lib option, I get:
"java.lang.NoClassDefFoundError: org/apache/bsf/BSFException" error. I
assumed the classpath element would take care of this...but to no avail.
My lib dir contains bsf.jar and bsh-2.0b4.jar
Again, if I use the -lib command line param everything works fine.
Thanks ahead of time...
Scot
--
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-754-4592 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]