ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: 1.6.1 -- where is "optional.jar"
Date Tue, 30 Mar 2004 19:54:27 GMT
> From: Jack J. Woehr [mailto:jax@purematrix.com]
> 
> Stefan Bodewig wrote:
> 
> > Are you sure you have the correct version of BSF?  Ant 1.5.x uses
> > IBM's BSF while 1.6.x uses Apache BSF.  The major difference - as far
> > as Ant is concerned - is the package name and that Beanshell is
> > supported OOTB by Apache BSF.
> 
> Yes, I downloaded and built Apache BSF yesterday. Also js.jar ... do I
> have to have
> every jar for every supported scripting language for the script tag to
> work at all?

No. Just the language you're using. I have bsf.jar and js.jar in ant/lib,
and I'm running small <script language="javascript"> with no problems.

Try with a very small example, and send error if any maybe? --DD

PS: Below is an example script, first run without BSF or JS, then
    with BSF and JS. Works for me...

C:\oss\org_apache\antx>set ANT_HOME=C:\pro\ant1.6.1

C:\oss\org_apache\antx>%ANT_HOME%\bin\ant -f targetname-script1.6.xml
Buildfile: targetname-script1.6.xml

BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/bsf/BSFException
...
Total time: 0 seconds
java.lang.NoClassDefFoundError: org/apache/bsf/BSFException
...
C:\oss\org_apache\antx>
C:\oss\org_apache\antx>copy P:\com_lgc\cycle7\buildtools\ant\lib\bsf.jar
%ANT_HOME%\lib\
        1 file(s) copied.

C:\oss\org_apache\antx>copy P:\com_lgc\cycle7\buildtools\ant\lib\js.jar
%ANT_HOME%\lib\
        1 file(s) copied.

C:\oss\org_apache\antx>%ANT_HOME%\bin\ant -f targetname-script1.6.xml
Buildfile: targetname-script1.6.xml
     [echo] current target is ''

BUILD SUCCESSFUL
Total time: 1 second
C:\oss\org_apache\antx>type targetname-script1.6.xml
<?xml version="1.0"?>

<project>
  <script language="javascript">
    name = self.getOwningTarget().getName();
    self.getProject().setNewProperty("targetname", name);
  </script>
  <echo message="current target is '${targetname}'" />
</project>

C:\oss\org_apache\antx>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message