[jdom-interest] build.sh not working for Cygwin

Laurent Bihanic laurent.bihanic at atosorigin.com
Wed Mar 19 05:16:51 PST 2003


Hi,

Attached is a patch to fix the build.sh of the "jdom" module that does not 
work with Cygwin (v1.3.12 at least).

The 2 problems fixed are:
  - Env. variable OSTYPE is not available when switching to /bin/sh. Thus, 
test shall be made against the output of the uname command
  - Some '$' characters are missing in LOCALCLASSPATH definition (for the 
Jaxen JARs)

Laurent
-------------- next part --------------
Index: build.sh
===================================================================
RCS file: /home/cvspublic/jdom/build.sh,v
retrieving revision 1.7
diff -r1.7 build.sh
16c16
< if [ `echo $OSTYPE | grep -n cygwin` ]; then
---
> if [ `uname | grep -n CYGWIN` ]; then
22c22
< LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar${PS}./lib/xerces.jar${PS}./lib/ant.jar${PS}./lib/jaxp.jar${PS}$JAVA_HOME/lib/dev.jar{PS}./lib/jaxen-core.jar{PS}./lib/jaxen-jdom.jar{PS}./lib/saxpath.jar
---
> LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar${PS}./lib/xerces.jar${PS}./lib/ant.jar${PS}./lib/jaxp.jar${PS}$JAVA_HOME/lib/dev.jar${PS}./lib/jaxen-core.jar${PS}./lib/jaxen-jdom.jar${PS}./lib/saxpath.jar


More information about the jdom-interest mailing list