[Webfunds-commits] java jd_env

Ian Grigg iang@cypherpunks.ai
Tue, 20 Mar 2001 22:37:13 -0400 (AST)


iang        01/03/20 22:37:13

  Modified:    .        jd_env
  Log:
  added -sourcepath, must be a JDK1.2 addition

Revision  Changes    Path
1.4       +3 -4      java/jd_env

Index: jd_env
===================================================================
RCS file: /home/webfunds/cvsroot/java/jd_env,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- jd_env	2000/09/06 16:36:57	1.3
+++ jd_env	2001/03/21 02:37:13	1.4
@@ -27,7 +27,6 @@
     *)  archive=${PWD}/${archive} ;;
 esac
 
-
 for dir in ${list:?set me}
 do
         # convert the dot-form of directory to a slash-form, for populating
@@ -43,8 +42,9 @@
 
 cd ${top}
 
+sourcepath="-sourcepath ."
 packages=$(echo ${list} | sed -e 's,/,.,g')
-${JD:-javadoc} -J"-mx128m" -d ${result} ${packages}
+CLASSPATH=. ${JD:-javadoc} ${sourcepath} -J"-mx128m" -d ${result} ${packages}
 
 cd ${result}
 
@@ -54,6 +54,5 @@
 # for some reason, "." causes zip to add another wierd directory...
 zip -9r ${archive} *
 
-set -x
 # be careful
-rm -rf ${result} ${top} 2>&-
+# rm -rf ${result} ${top} 2>&-