struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Immanuel, Gidado-Yisa" <a...@cdc.gov>
Subject does build.bat need to link to optional.jar?
Date Wed, 15 Nov 2000 19:25:33 GMT
I run into problems when building from source...

The 'build.bat' file picks up %ANT_HOME%\lib\ant.jar
but it does not pick up Ant's (v1.2) 'optional.jar'
The 'optional.jar' contains classes that are used
by Ant's 'style' command for the XSLT conversion of
some struts documention.  The specific class used is:

  org.apache.tools.ant.taskdefs.optional.XalanLiaison

Because of this, when I run 'build.bat dist', the
following exception is thrown:

  d:\dev\morecvs\jakarta-struts\build.xml:108:
    java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.XalanLiaison

When I add 'optional.jar' to the classpath, it runs
fine.  Please let me know if I'm doing something wrong;
otherwise, please consider the patch I used to get it
to work on my system (it assumes that one has downloaded
'optional.jar' and put it in %ANT_HOME%\lib, so perhaps
that step should aslo be added to the documentation).

- Gidado


Index: build.bat
===================================================================
RCS file: /home/cvspublic/jakarta-struts/build.bat,v
retrieving revision 1.7
diff -u -r1.7 build.bat
--- build.bat	2000/09/20 04:21:48	1.7
+++ build.bat	2000/11/15 19:23:16
@@ -62,10 +62,10 @@
 rem ----- Set Up The Runtime Classpath
----------------------------------------
 
 if "%CLASSPATH%" == "" goto noClasspath
-set CP=%ANT_HOME%\lib\ant.jar;%JAVA_HOME%\lib\tools.jar;%CLASSPATH%
+set
CP=%ANT_HOME%\lib\ant.jar;%ANT_HOME%\lib\optional.jar;%JAVA_HOME%\lib\tools.
jar;%CLASSPATH%
 goto gotClasspath
 :noClasspath
-set CP=%ANT_HOME%\lib\ant.jar;%JAVA_HOME%\lib\tools.jar
+set
CP=%ANT_HOME%\lib\ant.jar;%ANT_HOME%\lib\optional.jar;%JAVA_HOME%\lib\tools.
jar
 :gotClasspath

Mime
View raw message