Here is the updated patch for ooo-build. Also, the newest version of the gui-toolbox-prelight.diff patch (CVS revision 1.2) fails to apply. I had to revert it to the previous revision (1.1) in order to compile.
- Josh Triplett
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1_RC3/apply ooo-build/patches/OOO_1_1_RC3/apply --- ooo-build.orig/patches/OOO_1_1_RC3/apply 2003-09-17 12:09:10.000000000 -0700 +++ ooo-build/patches/OOO_1_1_RC3/apply 2003-09-17 12:07:01.000000000 -0700 @@ -290,6 +290,71 @@ # compile msgbox-gnome every time (we have to support ppc, s390, ... too) compile-msgbox-gnome.diff +# If java is disabled with --disable-java, don't look for a JDK. +allow-no-jdk.diff + +# Set the SOLAR_JAVA variable conditionally with "*=". +solenv-set-solar-java-only-if-unset.diff + +# Use xsltproc to replace java for xml transforms in readlicense_oo. +readlicense-oo-xsltproc.diff + +# Use xsltproc to replace java for xml transforms in officecfg. +officecfg-xsltproc.diff + +# If SOLAR_JAVA is not set, don't pass --enable-java to the configure script, +# and don't expect the jar when finished. +berkeleydb-handle-no-solar-java.diff + +# If SOLAR_JAVA is not set, don't attempt to zip up the compiled java files, +# since they will not be built. +ridljar-handle-no-solar-java.diff + +# Don't build jpipe with SOLAR_JAVA not set. +jurt-handle-no-solar-java.diff + +# Don't build jvmaccess with SOLAR_JAVA not set. +jvmaccess-handle-no-solar-java.diff + +# Don't build jni_uno with SOLAR_JAVA not set. +jni-uno-handle-no-solar-java.diff + +# Don't build javaunohelper with SOLAR_JAVA not set +javaunohelper-handle-no-solar-java.diff + +# Don't use jvmaccess to get JDK font path with SOLAR_JAVA not set. +psprint-handle-no-solar-java.diff + +# When SOLAR_JAVA is not set, replace java applet support with stubs that +# throw an exception. +sj2-handle-no-solar-java.diff + +# Don't build jvmsetup or use jvmaccess for java-related setup with SOLAR_JAVA +# not set. +setup2-handle-no-solar-java.diff + +# Don't ship various java-related files that will no longer be built, but ship +# the stubbed out libj from sj2 because setup fails without it. +scp-handle-no-solar-java.diff + +# Disable SVG import support with SOLAR_JAVA not set, since it depends on +# compile-time and run-time java support. +svg-handle-no-solar-java.diff + +# Disable java components with SOLAR_JAVA not set. +xsltvalidate-handle-no-solar-java.diff + +# Disable java components with SOLAR_JAVA not set. +xsltfilter-handle-no-solar-java.diff + +# Don't build javaldx with SOLAR_JAVA not set, and check for javaldx in +# soffice.sh before using it. +desktop-handle-no-solar-java.diff + +# Disable java components and documentation of java jars with SOLAR_JAVA not +# set. +odk-handle-no-solar-java.diff + # so far Ximian only, controversial patches etc. [ Ximian ] diff -Naur -x CVS ooo-build.orig/patches/RC3/allow-no-jdk.diff ooo-build/patches/RC3/allow-no-jdk.diff --- ooo-build.orig/patches/RC3/allow-no-jdk.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/allow-no-jdk.diff 2003-09-17 12:06:14.000000000 -0700 @@ -0,0 +1,124 @@ +--- config_office/configure.in.orig 2003-09-17 11:51:53.000000000 -0700 ++++ config_office/configure.in 2003-09-17 12:04:41.000000000 -0700 +@@ -1124,63 +1124,68 @@ + dnl =================================================================== + dnl Checks for JDK. + dnl =================================================================== +-JAVA_HOME=; export JAVA_HOME +-if test -z "$with_jdk_home"; then +- AC_PATH_PROG(JAVAC, javac) +- AC_PATH_PROG(JAVA, java) +-else +- _javac_path="$with_jdk_home/bin/javac" +- dnl Check if there is a java compiler at all. +- if test -x "$_javac_path"; then +- JAVAC=$_javac_path +- else +- AC_MSG_ERROR([$_javac_path not found set with_jdk_home]) ++if test "$enable_java" != "no"; then ++ JAVA_HOME=; export JAVA_HOME ++ if test -z "$with_jdk_home"; then ++ AC_PATH_PROG(JAVAC, javac) ++ AC_PATH_PROG(JAVA, java) ++ else ++ _javac_path="$with_jdk_home/bin/javac" ++ dnl Check if there is a java compiler at all. ++ if test -x "$_javac_path"; then ++ JAVAC=$_javac_path ++ else ++ AC_MSG_ERROR([$_javac_path not found set with_jdk_home]) ++ fi ++ ++ _java_path="$with_jdk_home/bin/java" ++ dnl Check if there is a java interpreter at all. ++ if test -x "$_java_path"; then ++ JAVA=$_java_path ++ else ++ AC_MSG_ERROR([$_java_path not found set with_jdk_home]) ++ fi + fi ++ AC_MSG_CHECKING([the installed JDK]) ++ if test "$JAVA"; then + +- _java_path="$with_jdk_home/bin/java" +- dnl Check if there is a java interpreter at all. +- if test -x "$_java_path"; then +- JAVA=$_java_path +- else +- AC_MSG_ERROR([$_java_path not found set with_jdk_home]) +- fi +-fi +-AC_MSG_CHECKING([the installed JDK]) +-if test "$JAVA"; then +- +- dnl java -version sends output to stderr! +- if test `$JAVA -version 2>&1 | grep -c "Kaffe"` -gt 0; then +- +- dnl Kaffe specific tests +- KAFFE_VER=`$JAVA -version 2>&1 | $EGREP " Version:" | $SED -r "s/.* Version: ([[0-9\.]]*).*/\1/"` +- if test -z "$KAFFE_VER"; then +- AC_MSG_ERROR([looks like Kaffe but version detection failed]) +- fi +- _kaffe_ver=`echo "$KAFFE_VER" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'` +- if test "$_kaffe_ver" -lt 10100; then +- AC_MSG_ERROR([Kaffe is too old ($KAFFE_VER - $_kaffe_ver), you need at least 1.1.0]) +- fi +- JDK=kaffe +- +- dnl TODO: define some project exclusion variables +- +- AC_MSG_RESULT([checked (Kaffe $KAFFE_VER)]) +- AC_MSG_WARN([EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile]) +- echo "EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile" >>warn +- else +- +- dnl SUN JDK specific tests +- _jdk=`$JAVAC -J-version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[[-A-Za-z]]*//` +- _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'` +- +- if test "$_jdk_ver" -lt 10300; then +- AC_MSG_ERROR([JDK is too old, you need at least 1.3]) +- fi +- AC_MSG_RESULT([checked (JDK $_jdk)]) ++ dnl java -version sends output to stderr! ++ if test `$JAVA -version 2>&1 | grep -c "Kaffe"` -gt 0; then ++ ++ dnl Kaffe specific tests ++ KAFFE_VER=`$JAVA -version 2>&1 | $EGREP " Version:" | $SED -r "s/.* Version: ([[0-9\.]]*).*/\1/"` ++ if test -z "$KAFFE_VER"; then ++ AC_MSG_ERROR([looks like Kaffe but version detection failed]) ++ fi ++ _kaffe_ver=`echo "$KAFFE_VER" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'` ++ if test "$_kaffe_ver" -lt 10100; then ++ AC_MSG_ERROR([Kaffe is too old ($KAFFE_VER - $_kaffe_ver), you need at least 1.1.0]) ++ fi ++ JDK=kaffe ++ ++ dnl TODO: define some project exclusion variables ++ ++ AC_MSG_RESULT([checked (Kaffe $KAFFE_VER)]) ++ AC_MSG_WARN([EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile]) ++ echo "EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile" >>warn ++ else ++ ++ dnl SUN JDK specific tests ++ _jdk=`$JAVAC -J-version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[[-A-Za-z]]*//` ++ _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'` ++ ++ if test "$_jdk_ver" -lt 10300; then ++ AC_MSG_ERROR([JDK is too old, you need at least 1.3]) ++ fi ++ AC_MSG_RESULT([checked (JDK $_jdk)]) ++ fi ++ JAVA_HOME=`echo $JAVAC | $SED -n "s,//*bin//*javac,,p"` ++ else ++ AC_MSG_ERROR([JAVA not found. You need at least jdk-1.3]) + fi +- JAVA_HOME=`echo $JAVAC | $SED -n "s,//*bin//*javac,,p"` + else +- AC_MSG_ERROR([JAVA not found. You need at least jdk-1.3]) ++ dnl Java disabled ++ JAVA_HOME=NO_JAVA_HOME ; export JAVA_HOME + fi + AC_SUBST(JAVA_HOME) + AC_SUBST(JDK) diff -Naur -x CVS ooo-build.orig/patches/RC3/berkeleydb-handle-no-solar-java.diff ooo-build/patches/RC3/berkeleydb-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/berkeleydb-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/berkeleydb-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,34 @@ +--- berkeleydb/makefile.mk.orig 2003-08-07 20:01:59.000000000 -0700 ++++ berkeleydb/makefile.mk 2003-08-07 20:04:49.000000000 -0700 +@@ -80,7 +80,10 @@ + CONFIGURE_DIR=out + #relative to CONFIGURE_DIR + CONFIGURE_ACTION=..$/dist$/configure +-CONFIGURE_FLAGS=--enable-cxx --enable-java --enable-dynamic --enable-shared ++CONFIGURE_FLAGS=--enable-cxx --enable-dynamic --enable-shared ++.IF "$(SOLAR_JAVA)"!="" ++CONFIGURE_FLAGS+=--enable-java ++.ENDIF + + BUILD_DIR=$(CONFIGURE_DIR) + .IF "$(OS)"=="IRIX" +@@ -92,7 +95,9 @@ + + OUT2LIB=$(BUILD_DIR)$/.libs$/libdb*$(DLLPOST) + ++.IF "$(SOLAR_JAVA)"!="" + OUT2BIN=java$/classes$/db.jar ++.ENDIF + + .ENDIF # "$(GUI)"=="UNX" + +@@ -129,7 +134,9 @@ + include$/db_185.h \ + include$/db_cxx.h + ++.IF "$(SOLAR_JAVA)"!="" + OUT2CLASS=java$/classes$/db.jar ++.ENDIF + + # --- Targets ------------------------------------------------------ + diff -Naur -x CVS ooo-build.orig/patches/RC3/desktop-handle-no-solar-java.diff ooo-build/patches/RC3/desktop-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/desktop-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/desktop-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,67 @@ +--- desktop/scripts/soffice.sh.orig 2003-08-11 11:47:34.000000000 -0700 ++++ desktop/scripts/soffice.sh 2003-08-11 11:48:10.000000000 -0700 +@@ -144,25 +144,27 @@ + esac + + # extend the ld_library_path for java: javaldx checks the sofficerc for us +-java_ld_library_path=`"$sd_prog/javaldx"` +-if [ "$java_ld_library_path" != "" ] ; then +- case $sd_platform in +- AIX) +- LIBPATH=${java_ld_library_path}:${LIBPATH} +- ;; +- Darwin) +- DYLD_LIBRARY_PATH=${java_ld_library_path}:${DYLD_LIBRARY_PATH} +- ;; +- HP-UX) +- SHLIB_PATH=${java_ld_library_path}:${SHLIB_PATH} +- ;; +- IRIX*) +- LD_LIBRARYN32_PATH=${java_ld_library_path}:${LD_LIBRARYN32_PATH} +- ;; +- *) +- LD_LIBRARY_PATH=${java_ld_library_path}:${LD_LIBRARY_PATH} +- ;; +- esac ++if [ -x "$sd_prog/javaldx" ] ; then ++ java_ld_library_path=`"$sd_prog/javaldx"` ++ if [ "$java_ld_library_path" != "" ] ; then ++ case $sd_platform in ++ AIX) ++ LIBPATH=${java_ld_library_path}:${LIBPATH} ++ ;; ++ Darwin) ++ DYLD_LIBRARY_PATH=${java_ld_library_path}:${DYLD_LIBRARY_PATH} ++ ;; ++ HP-UX) ++ SHLIB_PATH=${java_ld_library_path}:${SHLIB_PATH} ++ ;; ++ IRIX*) ++ LD_LIBRARYN32_PATH=${java_ld_library_path}:${LD_LIBRARYN32_PATH} ++ ;; ++ *) ++ LD_LIBRARY_PATH=${java_ld_library_path}:${LD_LIBRARY_PATH} ++ ;; ++ esac ++ fi + fi + + # set java environment variables +--- desktop/source/javaldx/makefile.mk.orig 2003-08-11 11:45:05.000000000 -0700 ++++ desktop/source/javaldx/makefile.mk 2003-08-11 11:46:06.000000000 -0700 +@@ -60,6 +60,7 @@ + # + #************************************************************************* + ++.IF "$(SOLAR_JAVA)"!="" + PRJ=..$/.. + + PRJNAME=javaldx +@@ -89,3 +90,7 @@ + # --- Targets ------------------------------------------------------ + + .INCLUDE : target.mk ++.ELSE ++dummy: ++ @echo "Not building desktop/source/javaldx with SOLAR_JAVA not set" ++.ENDIF diff -Naur -x CVS ooo-build.orig/patches/RC3/javaunohelper-handle-no-solar-java.diff ooo-build/patches/RC3/javaunohelper-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/javaunohelper-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/javaunohelper-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,20 @@ +--- javaunohelper/source/makefile.mk.orig 2003-08-08 08:17:31.000000000 -0700 ++++ javaunohelper/source/makefile.mk 2003-08-08 08:24:59.000000000 -0700 +@@ -59,6 +59,8 @@ + # + # + #************************************************************************* ++ ++.IF "$(SOLAR_JAVA)"!="" + PRJ=.. + + PRJNAME=javaunohelper +@@ -156,3 +158,8 @@ + # --- Targets ------------------------------------------------------ + + .INCLUDE : target.mk ++ ++.ELSE ++dummy: ++ @echo "Not building javaunohelper with SOLAR_JAVA not set" ++.ENDIF diff -Naur -x CVS ooo-build.orig/patches/RC3/jni-uno-handle-no-solar-java.diff ooo-build/patches/RC3/jni-uno-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/jni-uno-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/jni-uno-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,19 @@ +--- bridges/source/jni_uno/makefile.mk.orig 2003-08-07 21:54:04.000000000 -0700 ++++ bridges/source/jni_uno/makefile.mk 2003-08-07 21:54:37.000000000 -0700 +@@ -59,6 +59,8 @@ + # + # + #************************************************************************* ++ ++.IF "$(SOLAR_JAVA)"!="" + PRJ=..$/.. + + PRJNAME=bridges +@@ -103,3 +105,7 @@ + + .INCLUDE : target.mk + ++.ELSE ++dummy: ++ @echo "Not building jni_uno with SOLAR_JAVA not set" ++.ENDIF diff -Naur -x CVS ooo-build.orig/patches/RC3/jurt-handle-no-solar-java.diff ooo-build/patches/RC3/jurt-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/jurt-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/jurt-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,15 @@ +--- jurt/source/pipe/makefile.mk.orig 2003-08-07 21:30:08.000000000 -0700 ++++ jurt/source/pipe/makefile.mk 2003-08-07 21:35:10.000000000 -0700 +@@ -1,3 +1,4 @@ ++.IF "$(SOLAR_JAVA)"!="" + PRJ=..$/.. + + PRJNAME=jurt +@@ -33,3 +34,7 @@ + + .INCLUDE : target.mk + ++.ELSE ++dummy: ++ @echo "Not building jpipe with SOLAR_JAVA not set" ++.ENDIF diff -Naur -x CVS ooo-build.orig/patches/RC3/jvmaccess-handle-no-solar-java.diff ooo-build/patches/RC3/jvmaccess-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/jvmaccess-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/jvmaccess-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,36 @@ +--- jvmaccess/source/makefile.mk.orig 2003-08-07 21:42:07.000000000 -0700 ++++ jvmaccess/source/makefile.mk 2003-08-07 21:42:57.000000000 -0700 +@@ -59,6 +59,7 @@ + # + #************************************************************************* + ++.IF "$(SOLAR_JAVA)"!="" + PRJ = .. + PRJNAME = jvmaccess + TARGET = $(PRJNAME) +@@ -81,3 +82,7 @@ + $(SLO)$/windows.obj + + .INCLUDE: target.mk ++.ELSE ++dummy: ++ @echo "Not building jvmaccess/source with SOLAR_JAVA not set" ++.ENDIF +--- jvmaccess/util/makefile.mk.orig 2003-08-07 21:47:35.000000000 -0700 ++++ jvmaccess/util/makefile.mk 2003-08-07 21:47:49.000000000 -0700 +@@ -59,6 +59,7 @@ + # + #************************************************************************* + ++.IF "$(SOLAR_JAVA)"!="" + PRJ = .. + PRJNAME = jvmaccess + TARGET = $(PRJNAME) +@@ -97,3 +98,7 @@ + DEF1NAME = $(SHL1TARGET) + + .INCLUDE: target.mk ++.ELSE ++dummy: ++ @echo "Not building jvmaccess/util with SOLAR_JAVA not set" ++.ENDIF diff -Naur -x CVS ooo-build.orig/patches/RC3/odk-handle-no-solar-java.diff ooo-build/patches/RC3/odk-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/odk-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/odk-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,76 @@ +--- odk/source/OOSupport/makefile.mk.orig 2003-08-11 11:51:39.000000000 -0700 ++++ odk/source/OOSupport/makefile.mk 2003-08-11 11:54:56.000000000 -0700 +@@ -60,6 +60,7 @@ + # + #************************************************************************* + ++.IF "$(SOLAR_JAVA)"!="" + PRJ = ..$/.. + PRJNAME = oosupport + PACKAGE = org$/netbeans$/modules$/openoffice +@@ -348,3 +349,7 @@ + +cd $(CLASSDIR) && jar -uvf $(TARGETNETBEANSMODULEFILE) netbeans + + .ENDIF ++.ELSE ++dummy: ++ @echo "Not building odk/source/OOSupport with SOLAR_JAVA not set" ++.ENDIF +--- odk/source/bean/native/unix/makefile.mk.orig 2003-08-11 11:53:28.000000000 -0700 ++++ odk/source/bean/native/unix/makefile.mk 2003-08-11 11:55:04.000000000 -0700 +@@ -1,3 +1,4 @@ ++.IF "$(SOLAR_JAVA)"!="" + PRJ=..$/..$/..$/.. + + PRJNAME=odk +@@ -41,3 +42,7 @@ + # --- Targets ------------------------------------------------------ + + .INCLUDE : target.mk ++.ELSE ++dummy: ++ @echo "Not building odk/source/bean/native/unix with SOLAR_JAVA not set" ++.ENDIF +--- odk/pack/gendocu/makefile.mk.orig 2003-08-10 13:11:12.000000000 -0700 ++++ odk/pack/gendocu/makefile.mk 2003-08-10 14:06:57.000000000 -0700 +@@ -117,9 +117,13 @@ + + MY_AUTODOC=$(WRAPCMD) $(SOLARBINDIR)$/autodoc + ++.IF "$(SOLAR_JAVA)"!="" + all: \ + $(CPP_DOCU_INDEX_FILE) \ + $(JAVA_DOCU_INDEX_FILE) ++.ELSE ++all: $(CPP_DOCU_INDEX_FILE) ++.ENDIF + + $(CPP_DOCU_INDEX_FILE) : $(INCLUDELIST) + +-$(MKDIRHIER) $(@:d) +@@ -140,6 +144,8 @@ + # +$(MY_COPY) $< $@ + + #$(JAVA_DOCU_INDEX_FILE) : $(JAVA_SRC_FILES) $(JAVA_BEAN_SRC_FILES) ++.IF "$(SOLAR_JAVA)"!="" + $(JAVA_DOCU_INDEX_FILE) : $(JAVA_SRC_FILES) + +-$(MKDIRHIER) $(@:d) + +javadoc -J-Xmx120m $(JAVADOCPARAMS) > $(JAVADOCLOG) ++.ENDIF +--- odk/util/check.pl.orig 2003-08-10 14:25:24.000000000 -0700 ++++ odk/util/check.pl 2003-08-10 14:30:32.000000000 -0700 +@@ -214,6 +214,7 @@ + + #check java docu, it is only a first and simple check + # improvement required ++if ($ENV["SOLAR_JAVA"] ne "") { + print "check java docu: "; + if (-d "$StartDir/docs/java/ref") { + if (! -e "$StartDir/docs/java/ref/index.html") { +@@ -246,6 +247,7 @@ + $return++; + } + print "\n"; ++} + + #check examples, it is only a first and simple check + # improvement required diff -Naur -x CVS ooo-build.orig/patches/RC3/officecfg-xsltproc.diff ooo-build/patches/RC3/officecfg-xsltproc.diff --- ooo-build.orig/patches/RC3/officecfg-xsltproc.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/officecfg-xsltproc.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,89 @@ +--- officecfg/util/makefile.pmk.orig 2003-08-07 16:01:14.000000000 -0700 ++++ officecfg/util/makefile.pmk 2003-08-07 17:39:01.000000000 -0700 +@@ -67,34 +67,86 @@ + $(MISC)$/registry$/schema$/%.xcs : %.xcs + @+echo -------------+ validating and stripping schema files + -$(MKDIR) -p $(@:d) ++.IF "$(SOLAR_JAVA)"!="" + $(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.configuration.Inspector $< + $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/schema_val.xsl $(@:d)$(<:b).val file=$(<:d)$(<:b) pathSeparator=$/ + $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/sanity.xsl $(@:d)$(<:b).san file=$(<:d)$(<:b) pathSeparator=$/ + $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/schema_trim.xsl $(@:d)$(<:b).tmp + $(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/schema.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.helper.PrettyPrinter $(@:d)$(<:b).tmp $(@:d)$(<:b).xcs ++.ELSE ++# FIXME: replace org.openoffice.configuration.Inspector ++ xsltproc -o $(@:d)$(<:b).val \ ++ --stringparam file $(<:d)$(<:b) \ ++ --stringparam pathSeparator $/ \ ++ $(PRJ)$/util$/schema_val.xsl $< ++ xsltproc -o $(@:d)$(<:b).san \ ++ --stringparam file $(<:d)$(<:b) \ ++ --stringparam pathSeparator $/ \ ++ $(PRJ)$/util$/sanity.xsl $< ++ xsltproc -o $(@:d)$(<:b).tmp \ ++ $(PRJ)$/util$/schema_trim.xsl $< ++# FIXME: replace org.openoffice.helper.PrettyPrinter ++ cp $(@:d)$(<:b).tmp $(@:d)$(<:b).xcs ++.ENDIF + +$(RM) $(@:d)$(<:b).tmp > $(NULLDEV) + +$(RM) $(@:d)$(<:b).val > $(NULLDEV) + + $(MISC)$/registry$/res$/{$(alliso)}$/%.properties :| %.xcs + @+echo -------------+ creating locale dependent resource bundles + -$(MKDIR) -p $(@:d) ++.IF "$(SOLAR_JAVA)"!="" + $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/resource.xsl $(@:d)$(<:b).properties locale={$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $(subst,.properties,.xcs $@)))} ++.ELSE ++ xsltproc -o $(@:d)$(<:b).properties \ ++ --stringparam locale {$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $(subst,.properties,.xcs $@)))} \ ++ $(PRJ)$/util$/resource.xsl $< ++.ENDIF + + # --- XCU --- + + $(MISC)$/registry$/data$/%.xcu : %.xcu + @+echo -------------+ validating and creating a locale independent file + -$(MKDIR) -p $(@:d) ++.IF "$(SOLAR_JAVA)"!="" + $(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.configuration.Inspector $< + $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/data_val.xsl $(@:d)$(<:b).val xcs=$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs schemaRoot=$(PRJ)$/registry$/schema + $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/alllang.xsl $(@:d)$(<:b).tmp xcs=$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs schemaRoot=$(PRJ)$/registry$/schema + $(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/schema.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.helper.PrettyPrinter $(@:d)$(<:b).tmp $(@:d)$(<:b).xcu ++.ELSE ++# FIXME: replace org.openoffice.configuration.Inspector ++ sed 's|xmlns:filehelper="http://www.jclark.com/xt/java/org.openoffice.configuration.FileHelper"||;s|extension-element-prefixes="filehelper"||;s|filehelper:makeAbs(\(.*\))|\1|' < $(PRJ)$/util$/data_val.xsl > $(PRJ)$/util$/dataval2.xsl ++ sed 's|xmlns:filehelper="http://www.jclark.com/xt/java/org.openoffice.configuration.FileHelper"||;s|extension-element-prefixes="filehelper"||;s|filehelper:makeAbs(\(.*\))|\1|' < $(PRJ)$/util$/alllang.xsl > $(PRJ)$/util$/alllang2.xsl ++ xsltproc -o $(@:d)$(<:b).val \ ++ --stringparam xcs $(PWD)$/$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs \ ++ --stringparam schemaRoot $(PWD)$/$(PRJ)$/registry$/schema \ ++ $(PRJ)$/util$/dataval2.xsl $< ++ xsltproc -o $(@:d)$(<:b).tmp \ ++ --stringparam xcs $(PWD)$/$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs \ ++ --stringparam schemaRoot $(PWD)$/$(PRJ)$/registry$/schema \ ++ $(PRJ)$/util$/alllang2.xsl $< ++# FIXME: replace org.openoffice.helper.PrettyPrinter ++ cp $(@:d)$(<:b).tmp $(@:d)$(<:b).xcu ++ +$(RM) $(PRJ)$/util$/dataval2.xsl > $(NULLDEV) ++ +$(RM) $(PRJ)$/util$/alllang2.xsl > $(NULLDEV) ++.ENDIF + +$(RM) $(@:d)$(<:b).tmp > $(NULLDEV) + +$(RM) $(@:d)$(<:b).val > $(NULLDEV) + + $(MISC)$/registry$/res$/{$(alliso)}$/%.xcu :| %.xcu + @+echo -------------+ creating locale dependent entries + -$(MKDIR) -p $(@:d) ++.IF "$(SOLAR_JAVA)"!="" + $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/alllang.xsl $(@:d)$(<:b).tmp xcs=$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs schemaRoot=$(PRJ)$/registry$/schema locale={$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $@))} + $(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/schema.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.helper.PrettyPrinter $(@:d)$(<:b).tmp $(@:d)$(<:b).xcu ++.ELSE ++ sed 's|xmlns:filehelper="http://www.jclark.com/xt/java/org.openoffice.configuration.FileHelper"||;s|extension-element-prefixes="filehelper"||;s|filehelper:makeAbs(\(.*\))|\1|' < $(PRJ)$/util$/alllang.xsl > $(PRJ)$/util$/alllang2.xsl ++ xsltproc -o $(@:d)$(<:b).tmp \ ++ --stringparam xcs $(PWD)$/$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs \ ++ --stringparam schemaRoot $(PWD)$/$(PRJ)$/registry$/schema \ ++ --stringparam locale {$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $@))} \ ++ $(PRJ)$/util$/alllang2.xsl $< ++# FIXME: replace org.openoffice.helper.PrettyPrinter ++ cp $(@:d)$(<:b).tmp $(@:d)$(<:b).xcu ++ +$(RM) $(PRJ)$/util$/alllang2.xsl > $(NULLDEV) ++.ENDIF + +$(RM) $(@:d)$(<:b).tmp > $(NULLDEV) diff -Naur -x CVS ooo-build.orig/patches/RC3/psprint-handle-no-solar-java.diff ooo-build/patches/RC3/psprint-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/psprint-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/psprint-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,43 @@ +--- psprint/source/helper/helper.cxx.orig 2003-08-08 08:41:05.000000000 -0700 ++++ psprint/source/helper/helper.cxx 2003-08-08 08:43:33.000000000 -0700 +@@ -72,7 +72,9 @@ + #include <tools/config.hxx> + #include <rtl/bootstrap.hxx> + #include <sal/config.h> ++#ifdef SOLAR_JAVA + #include "jvmaccess/javainfo.hxx" ++#endif // SOLAR_JAVA + + using namespace rtl; + +@@ -263,6 +265,7 @@ + } + } + ++#ifdef SOLAR_JAVA + // if no javarc (e.g. in setup) exists or it failed try the UDK method + if( ! aJREpath.getLength() ) + { +@@ -299,6 +302,7 @@ + } + } + } ++#endif // SOLAR_JAVA + + if( aJREpath.getLength() ) + { +--- psprint/util/makefile.mk.orig 2003-08-08 08:43:55.000000000 -0700 ++++ psprint/util/makefile.mk 2003-08-08 08:44:52.000000000 -0700 +@@ -95,9 +95,11 @@ + + SHL1STDLIBS=$(UNOTOOLSLIB) \ + $(TOOLSLIB) \ +- $(JVMACCESSLIB) \ + $(SALLIB) \ + -lX11 ++.IF "$(SOLAR_JAVA)"!="" ++SHL1STDLIBS+=$(JVMACCESSLIB) ++.ENDIF + + SHL1DEF= $(MISC)$/$(SHL1TARGET).def + diff -Naur -x CVS ooo-build.orig/patches/RC3/readlicense-oo-xsltproc.diff ooo-build/patches/RC3/readlicense-oo-xsltproc.diff --- ooo-build.orig/patches/RC3/readlicense-oo-xsltproc.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/readlicense-oo-xsltproc.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,39 @@ +--- readlicense_oo/util/makefile.pmk.orig 2003-04-28 10:18:28.000000000 -0700 ++++ readlicense_oo/util/makefile.pmk 2003-08-18 22:02:57.000000000 -0700 +@@ -73,7 +73,36 @@ + + $(MISC)$/%.html : + @+-$(MKDIR) $(@:d) ++.IF "$(SOLAR_JAVA)"!="" + $(JAVA) -classpath $(COMMON_BUILD_TOOLS)$/xt.jar$(PATH_SEPERATOR)$(COMMON_BUILD_TOOLS)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $(subst,$(@::d:d:b), $(@:b).xrm) ..$/readme.xsl os1=$(OS) gui1=$(GUI) cp1=$(CPUNAME) com1=$(COM) lang1=$(iso_$(@:d:d:b)) type=html file=$@ ++.ELSE ++ sed 's|xmlns:xt="http://www.jclark.com/xt"||;s|extension-element-prefixes="xt"||;s|.*xt:document.*||;s|<xsl:output method = "HTML" doctype-public = "-//W3C//DTD HTML 3.2//EN" />|<xsl:output method="html" doctype-public="-//W3C//DTD HTML 3.2//EN" />|' < ..$/readme.xsl > ..$/readme2.xsl ++ xsltproc -o $@ \ ++ --stringparam os1 $(OS) \ ++ --stringparam gui1 $(GUI) \ ++ --stringparam cp1 $(CPUNAME) \ ++ --stringparam com1 $(COM) \ ++ --stringparam lang1 $(iso_$(@:d:d:b)) \ ++ --stringparam type html \ ++ ..$/readme2.xsl \ ++ $(subst,$(@::d:d:b), $(@:b).xrm) ++ rm ..$/readme2.xsl ++.ENDIF ++ + $(MISC)$/%.txt : + @+-$(MKDIR) $(@:d) ++.IF "$(SOLAR_JAVA)"!="" + $(JAVA) -classpath $(COMMON_BUILD_TOOLS)$/xt.jar$(PATH_SEPERATOR)$(COMMON_BUILD_TOOLS)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $(subst,$(@::d:d:b), $(@:b).xrm) ..$/readme.xsl os1=$(OS) gui1=$(GUI) cp1=$(CPUNAME) com1=$(COM) lang1=$(iso_$(@:d:d:b)) type=text file=$@ ++.ELSE ++ sed 's|xmlns:xt="http://www.jclark.com/xt"||;s|extension-element-prefixes="xt"||;s|.*xt:document.*||;s|<xsl:output method = "HTML" doctype-public = "-//W3C//DTD HTML 3.2//EN" />|<xsl:output method="text" />|' < ..$/readme.xsl > ..$/readme2.xsl ++ xsltproc -o $@ \ ++ --stringparam os1 $(OS) \ ++ --stringparam gui1 $(GUI) \ ++ --stringparam cp1 $(CPUNAME) \ ++ --stringparam com1 $(COM) \ ++ --stringparam lang1 $(iso_$(@:d:d:b)) \ ++ --stringparam type text \ ++ ..$/readme2.xsl \ ++ $(subst,$(@::d:d:b), $(@:b).xrm) ++ rm ..$/readme2.xsl ++.ENDIF diff -Naur -x CVS ooo-build.orig/patches/RC3/ridljar-handle-no-solar-java.diff ooo-build/patches/RC3/ridljar-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/ridljar-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/ridljar-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,15 @@ +--- ridljar/util/makefile.mk.orig 2003-08-10 13:12:20.000000000 -0700 ++++ ridljar/util/makefile.mk 2003-08-10 13:12:36.000000000 -0700 +@@ -84,10 +84,12 @@ + ZIP1DIR=$(PRJ) + ZIP1LIST=com -x "*makefile.mk" + ++.IF "$(SOLAR_JAVA)"!="" + ZIP2TARGET=$(TARGET)2_src + ZIP2FLAGS=-u -r + ZIP2DIR=$(MISC)$/java + ZIP2LIST=com ++.ENDIF + + # --- Targets ------------------------------------------------------ + diff -Naur -x CVS ooo-build.orig/patches/RC3/scp-handle-no-solar-java.diff ooo-build/patches/RC3/scp-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/scp-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/scp-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,146 @@ +--- scp/source/global/udk_base.scp.orig 2003-08-11 11:22:39.000000000 -0700 ++++ scp/source/global/udk_base.scp 2003-08-11 11:38:05.000000000 -0700 +@@ -342,6 +342,7 @@ + #endif + End + ++#ifdef SOLAR_JAVA + File gid_File_Lib_Jvmaccess + TXT_FILE_BODY; + Dir = GCFG_BINARY_DIR; +@@ -368,3 +369,4 @@ + Styles = (NETWORK,RELATIVE); + End + #endif ++#endif +--- scp/source/global/setupzip.scp.orig 2003-08-11 11:23:38.000000000 -0700 ++++ scp/source/global/setupzip.scp 2003-08-11 11:28:02.000000000 -0700 +@@ -393,8 +393,6 @@ + + #if !defined(IPL_PRODUCT) && !defined(OPL_PRODUCT) || defined(UNX) + +-#ifdef SOLAR_JAVA +- + File GID_FILE_LIB_J + TXT_FILE_BODY; + #ifdef UNX +@@ -408,8 +406,6 @@ + + #endif + +-#endif +- + File GID_FILE_LIB_COMPHELPER2 + TXT_FILE_BODY; + #ifdef UNX +@@ -527,12 +523,14 @@ + + #endif + ++#ifdef SOLAR_JAVA + File GID_FILE_JAR_UNOIL + TXT_FILE_BODY; + Name = "unoil.jar"; + Dir = GCFG_CLASSES_DIR; + Styles = (PACKED,DONT_OVERWRITE,SETUPZIP); + End ++#endif + + #ifdef INCLUDE_JAVA_ACCESSBRIDGE + +@@ -546,14 +544,14 @@ + #endif + + #ifdef UNX +- ++#ifdef SOLAR_JAVA + File GID_FILE_BIN_JAVALDX + BIN_FILE_BODY; + Dir = GCFG_BINARY_DIR; + Styles = (PACKED, SETUPZIP); + Name = EXENAME(javaldx); + End +- ++#endif + #endif + + #ifdef UNX +--- scp/source/global/udk_complete.scp.orig 2003-08-11 11:28:16.000000000 -0700 ++++ scp/source/global/udk_complete.scp 2003-08-11 11:29:30.000000000 -0700 +@@ -75,6 +75,7 @@ + #endif + End + ++#ifdef SOLAR_JAVA + #ifndef MACOSX + File gid_File_Lib_OfficeBean + TXT_FILE_BODY; +@@ -94,6 +95,8 @@ + Styles = (PACKED); + End + #endif ++#endif ++ + /* + File gid_File_Lib_Stm + TXT_FILE_BODY; +--- scp/source/office/files.scp.orig 2003-08-11 11:29:45.000000000 -0700 ++++ scp/source/office/files.scp 2003-08-11 11:30:15.000000000 -0700 +@@ -715,6 +715,7 @@ + + #endif + ++#ifdef SOLAR_JAVA + File GID_FILE_LIB_JDBC_2 + TXT_FILE_BODY; + Styles = (PACKED,UNO_COMPONENT); +@@ -726,6 +727,7 @@ + Name = "jdbc2.dll"; + #endif + End ++#endif + + File GID_FILE_LIB_ODBC_2 + TXT_FILE_BODY; +--- scp/util/makefile.mk.orig 2003-08-11 11:30:57.000000000 -0700 ++++ scp/util/makefile.mk 2003-08-11 11:34:00.000000000 -0700 +@@ -88,7 +88,6 @@ + module_math.par \ + module_grafik.par \ + module_lingu.par \ +- module_javafilter.par \ + profile.par \ + profile_calc.par \ + profile_impress.par \ +@@ -96,13 +95,10 @@ + profile_math.par \ + profile_chart.par \ + profile_grafik.par \ +- profile_javafilter.par \ + setupzip.par \ + readme.par \ + udk_base.par \ + udk_bridges.par \ +- udk_java.par \ +- udk_pure_java.par \ + udk_remote.par \ + udk_complete.par \ + files.par \ +@@ -113,10 +109,15 @@ + files_chart.par \ + files_grafik.par \ + files_lingu.par \ +- files_javafilter.par \ + dir.par \ + python.par +- ++.IF "$(SOLAR_JAVA)"!="" ++SCP1FILES += module_javafilter.par \ ++ profile_javafilter.par \ ++ files_javafilter.par \ ++ udk_java.par \ ++ udk_pure_java.par ++.ENDIF + + #python.par + diff -Naur -x CVS ooo-build.orig/patches/RC3/setup2-handle-no-solar-java.diff ooo-build/patches/RC3/setup2-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/setup2-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/setup2-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,87 @@ +--- setup2/source/custom/jvmsetup/loader/makefile.mk.orig 2003-08-09 10:07:11.000000000 -0700 ++++ setup2/source/custom/jvmsetup/loader/makefile.mk 2003-08-09 10:08:51.000000000 -0700 +@@ -60,6 +60,7 @@ + # + #************************************************************************* + ++.IF "$(SOLAR_JAVA)"!="" + PRJ=..$/..$/..$/.. + PRJNAME=setup2 + TARGET=jvmsetup +@@ -151,3 +152,8 @@ + echo HEAPSIZE 16384 >>$@ + echo STACKSIZE 524288 >>$@ + .ENDIF ++ ++.ELSE ++dummy: ++ @echo "Not building jvmsetup/loader with SOLAR_JAVA not set" ++.ENDIF +--- setup2/source/custom/jvmsetup/makefile.mk.orig 2003-08-09 10:04:57.000000000 -0700 ++++ setup2/source/custom/jvmsetup/makefile.mk 2003-08-09 10:05:55.000000000 -0700 +@@ -60,6 +60,7 @@ + # + #************************************************************************* + ++.IF "$(SOLAR_JAVA)"!="" + PRJ=..$/..$/.. + PRJNAME=setup2 + TARGET=jvm +@@ -119,3 +120,7 @@ + + # ------------------------------------------------------------------------- + ++.ELSE ++dummy: ++ @echo "Not building jvmsetup with SOLAR_JAVA not set" ++.ENDIF +--- setup2/source/ui/main.cxx.orig 2003-08-11 11:08:35.000000000 -0700 ++++ setup2/source/ui/main.cxx 2003-08-11 11:11:59.000000000 -0700 +@@ -78,7 +78,9 @@ + #include <sal/main.h> + #endif + ++#ifdef SOLAR_JAVA + #include "jvmaccess/javainfo.hxx" ++#endif + + #ifndef _SV_HELP_HXX //autogen + #include <vcl/help.hxx> +@@ -2523,6 +2525,7 @@ + static sal_Bool hasJavarc(); + void prepareJava(const char * szStartPath) + { ++#ifdef SOLAR_JAVA + if(szStartPath) + { + //check if we are started from an installation. This is done by looking for the classes +@@ -2656,6 +2659,7 @@ + #endif + } + } ++#endif // SOLAR_JAVA + } + + static sal_Bool hasJavarc() +--- setup2/util/makefile.mk.orig 2003-08-11 11:14:51.000000000 -0700 ++++ setup2/util/makefile.mk 2003-08-11 11:15:23.000000000 -0700 +@@ -186,7 +186,6 @@ + $(SVTOOLLIB) \ + $(VCLLIB) \ + $(TOOLSLIB) \ +- $(JVMACCESSLIB) \ + $(COMPHELPERLIB) \ + $(CPPUHELPERLIB) \ + $(CPPULIB) \ +@@ -195,7 +194,10 @@ + $(SALHELPERLIB) \ + $(UNOTOOLSLIB) \ + $(SALLIB) +- ++.IF "$(SOLAR_JAVA)"!="" ++APP2STDLIBS+=\ ++ $(JVMACCESSLIB) ++.ENDIF + + .IF "$(GUI)"=="WNT" + APP2STDLIBS += uwinapi.lib advapi32.lib gdi32.lib shell32.lib ole32.lib uuid.lib version.lib \ diff -Naur -x CVS ooo-build.orig/patches/RC3/sj2-handle-no-solar-java.diff ooo-build/patches/RC3/sj2-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/sj2-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/sj2-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,274 @@ +--- sj2/source/java/jnihelp.cxx.orig 2003-08-08 20:54:39.000000000 -0700 ++++ sj2/source/java/jnihelp.cxx 2003-08-08 20:55:41.000000000 -0700 +@@ -59,6 +59,7 @@ + * + ************************************************************************/ + ++#ifdef SOLAR_JAVA + #include <cstdarg> + #include <tools/debug.hxx> + #include <jni.h> /* where everything is defined */ +@@ -99,3 +100,5 @@ + _xJavaThreadRegister_11->revokeThread(); + } + } ++ ++#endif // SOLAR_JAVA +--- sj2/source/jscpp/sjapplet.cxx.orig 2003-08-08 20:58:19.000000000 -0700 ++++ sj2/source/jscpp/sjapplet.cxx 2003-08-08 21:01:41.000000000 -0700 +@@ -60,7 +60,9 @@ + ************************************************************************/ + + #include <cstdarg> ++#ifdef SOLAR_JAVA + #include <jnihelp.hxx> ++#endif // SOLAR_JAVA + + #include <sjapplet.hxx> + +@@ -79,11 +81,15 @@ + + using namespace ::rtl; + using namespace ::utl; ++#ifdef SOLAR_JAVA + using namespace ::sj2; ++#endif // SOLAR_JAVA + + using namespace ::com::sun::star::lang; + using namespace ::com::sun::star::uno; ++#ifdef SOLAR_JAVA + using namespace ::com::sun::star::java; ++#endif // SOLAR_JAVA + + SjApplet2::SjApplet2() + : _pImpl(new SjApplet2_Impl()) +@@ -346,7 +352,7 @@ + /* + * Java init function to invoke Java runtime using JNI invocation API. + */ +- ++#ifdef SOLAR_JAVA + void JRE_PropertyChanged( JNIEnv * env, const SvCommandList & rCmdList ) + { + jclass pClass = env->FindClass("java/util/Properties"); +@@ -389,6 +395,7 @@ + env->DeleteLocalRef( pProps ); + env->DeleteLocalRef( pClass ); + } ++#endif // SOLAR_JAVA + + // Settings are detected by the JavaVM service + // This function is not necessary anymore +--- sj2/source/jscpp/sjapplet_impl.cxx.orig 2003-08-08 21:06:04.000000000 -0700 ++++ sj2/source/jscpp/sjapplet_impl.cxx 2003-08-08 21:24:29.000000000 -0700 +@@ -78,18 +78,24 @@ + #include <vcl/syschild.hxx> + #include <vcl/sysdata.hxx> + ++#ifdef SOLAR_JAVA + #include <jnihelp.hxx> ++#endif // SOLAR_JAVA + + using namespace ::rtl; + using namespace ::osl; ++#ifdef SOLAR_JAVA + using namespace ::sj2; ++#endif // SOLAR_JAVA + using namespace ::utl; + ++#ifdef SOLAR_JAVA + using namespace ::com::sun::star::java; ++#endif // SOLAR_JAVA + using namespace ::com::sun::star::lang; + using namespace ::com::sun::star::uno; + +- ++#ifdef SOLAR_JAVA + static void testJavaException(JNIEnv * pEnv) throw(com::sun::star::uno::RuntimeException) + { + jthrowable jtThrowable = pEnv->ExceptionOccurred(); +@@ -114,7 +120,14 @@ + throw RuntimeException(ouMessage, Reference<XInterface>()); + } + } ++#else // !SOLAR_JAVA ++static void throwException() throw(com::sun::star::uno::RuntimeException) ++{ ++ throw RuntimeException(OUString(RTL_CONSTASCII_USTRINGPARAM("Java applets not supported.")), Reference<XInterface>()); ++} ++#endif + ++#ifdef SOLAR_JAVA + #ifdef UNX + struct EmbeddedWindow { + jobject _joWindow; +@@ -210,17 +223,22 @@ + + _joWindow = 0; + } ++#endif // SOLAR_JAVA + +- +- ++#ifdef SOLAR_JAVA + SjApplet2_Impl::SjApplet2_Impl() throw(com::sun::star::uno::RuntimeException) + : _pJVM(NULL), + _joAppletExecutionContext(0), + _jcAppletExecutionContext(0) + + {} ++#else // !SOLAR_JAVA ++SjApplet2_Impl::SjApplet2_Impl() throw(com::sun::star::uno::RuntimeException) ++{} ++#endif + + SjApplet2_Impl::~SjApplet2_Impl() throw() { ++#ifdef SOLAR_JAVA + if (_joAppletExecutionContext) { + TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get()); + +@@ -230,6 +248,7 @@ + jenv.pEnv->DeleteGlobalRef(_joAppletExecutionContext); + jenv.pEnv->DeleteGlobalRef(_jcAppletExecutionContext); + } ++#endif + } + + void SjApplet2_Impl::init(Window * pParentWin, +@@ -238,6 +257,7 @@ + const SvCommandList & rCmdList) + throw(com::sun::star::uno::RuntimeException) + { ++#ifdef SOLAR_JAVA + _pParentWin = pParentWin; + + +@@ -338,11 +358,14 @@ + joDocBase, joParameters, _pEmbeddedWindow->_joWindow, (jlong)0); testJavaException(jenv.pEnv); + jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_init); testJavaException(jenv.pEnv); + jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_startUp); testJavaException(jenv.pEnv); +- ++#else // !SOLAR_JAVA ++ throwException(); ++#endif + } + + void SjApplet2_Impl::setSize(const Size & rSize) throw(com::sun::star::uno::RuntimeException) + { ++#ifdef SOLAR_JAVA + TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get()); + + _pParentWin->SetSizePixel(rSize); +@@ -350,42 +373,62 @@ + jmethodID jmAppletExecutionContext_resize = jenv.pEnv->GetMethodID(_jcAppletExecutionContext, "appletResize", "(II)V"); testJavaException(jenv.pEnv); + jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_resize, (jint)rSize.Width(), + (jint)rSize.Height()); testJavaException(jenv.pEnv); ++#else // !SOLAR_JAVA ++ throwException(); ++#endif + } + + void SjApplet2_Impl::restart() throw(com::sun::star::uno::RuntimeException) + { ++#ifdef SOLAR_JAVA + TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get()); + + jmethodID jmAppletExecutionContext_restart = jenv.pEnv->GetMethodID(_jcAppletExecutionContext, "restart", "()V"); testJavaException(jenv.pEnv); + jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_restart); testJavaException(jenv.pEnv); ++#else // !SOLAR_JAVA ++ throwException(); ++#endif + } + + void SjApplet2_Impl::reload() throw(com::sun::star::uno::RuntimeException) + { ++#ifdef SOLAR_JAVA + TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get()); + + jmethodID jmAppletExecutionContext_reload = jenv.pEnv->GetMethodID(_jcAppletExecutionContext, "reload", "()V"); testJavaException(jenv.pEnv); + jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_reload); testJavaException(jenv.pEnv); ++#else // !SOLAR_JAVA ++ throwException(); ++#endif + } + + void SjApplet2_Impl::start() throw(com::sun::star::uno::RuntimeException) + { ++#ifdef SOLAR_JAVA + TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get()); + + jmethodID jmAppletExecutionContext_sendStart = jenv.pEnv->GetMethodID(_jcAppletExecutionContext, "sendStart", "()V"); testJavaException(jenv.pEnv); + jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_sendStart); testJavaException(jenv.pEnv); ++#else // !SOLAR_JAVA ++ throwException(); ++#endif + } + + void SjApplet2_Impl::stop() throw(com::sun::star::uno::RuntimeException) + { ++#ifdef SOLAR_JAVA + TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get()); + + jmethodID jmAppletExecutionContext_sendStop = jenv.pEnv->GetMethodID(_jcAppletExecutionContext, "sendStop", "()V"); testJavaException(jenv.pEnv); + jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_sendStop); testJavaException(jenv.pEnv); ++#else // !SOLAR_JAVA ++ throwException(); ++#endif + } + + void SjApplet2_Impl::close() throw(com::sun::star::uno::RuntimeException) + { ++#ifdef SOLAR_JAVA + TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get()); + + jmethodID jmAppletExecutionContext_shutdown = jenv.pEnv->GetMethodID(_jcAppletExecutionContext, "shutdown", "()V"); testJavaException(jenv.pEnv); +@@ -416,5 +459,8 @@ + } + } + } ++#else // !SOLAR_JAVA ++ throwException(); ++#endif + } + +--- sj2/source/jscpp/sjapplet_impl.hxx.orig 2003-08-08 21:24:48.000000000 -0700 ++++ sj2/source/jscpp/sjapplet_impl.hxx 2003-08-08 21:35:45.000000000 -0700 +@@ -1,13 +1,15 @@ + #include <cstdarg> + +- ++#ifdef SOLAR_JAVA + #include <jni.h> +- ++#endif // SOLAR_JAVA + + #include <unotools/processfactory.hxx> + ++#ifdef SOLAR_JAVA + #include <com/sun/star/java/XJavaVM.hpp> + #include <com/sun/star/java/XJavaThreadRegister_11.hpp> ++#endif // SOLAR_JAVA + + #include <com/sun/star/lang/XMultiServiceFactory.hpp> + +@@ -16,9 +18,12 @@ + class SvCommandList; + class Size; + ++#ifdef SOLAR_JAVA + struct EmbeddedWindow; ++#endif // SOLAR_JAVA + + struct SjApplet2_Impl { ++#ifdef SOLAR_JAVA + Window * _pParentWin; + + JavaVM * _pJVM; +@@ -29,6 +34,7 @@ + + com::sun::star::uno::Reference<com::sun::star::java::XJavaVM> _xJavaVM; + com::sun::star::uno::Reference<com::sun::star::java::XJavaThreadRegister_11> _xJavaThreadRegister_11; ++#endif // SOLAR_JAVA + + SjApplet2_Impl() throw(com::sun::star::uno::RuntimeException); + ~SjApplet2_Impl() throw(); diff -Naur -x CVS ooo-build.orig/patches/RC3/solenv-set-solar-java-only-if-unset.diff ooo-build/patches/RC3/solenv-set-solar-java-only-if-unset.diff --- ooo-build.orig/patches/RC3/solenv-set-solar-java-only-if-unset.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/solenv-set-solar-java-only-if-unset.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,66 @@ +--- solenv/inc/unxlngi3.mk.orig 2003-04-28 09:46:48.000000000 -0700 ++++ solenv/inc/unxlngi3.mk 2003-08-18 22:09:12.000000000 -0700 +@@ -64,7 +64,7 @@ + ASM= + AFLAGS= + +-SOLAR_JAVA=TRUE ++SOLAR_JAVA*=TRUE + JAVAFLAGSDEBUG=-g + + # filter for supressing verbose messages from linker +--- solenv/inc/unxlngi4.mk.orig 2003-07-31 01:32:41.000000000 -0700 ++++ solenv/inc/unxlngi4.mk 2003-08-18 22:09:12.000000000 -0700 +@@ -64,7 +64,7 @@ + ASM= + AFLAGS= + +-SOLAR_JAVA=TRUE ++SOLAR_JAVA*=TRUE + JAVAFLAGSDEBUG=-g + + # filter for supressing verbose messages from linker +--- solenv/inc/unxlngi5.mk.orig 2003-07-31 01:32:41.000000000 -0700 ++++ solenv/inc/unxlngi5.mk 2003-08-18 22:09:12.000000000 -0700 +@@ -64,7 +64,7 @@ + ASM= + AFLAGS= + +-SOLAR_JAVA=TRUE ++SOLAR_JAVA*=TRUE + JAVAFLAGSDEBUG=-g + + # filter for supressing verbose messages from linker +--- solenv/inc/unxlngppc.mk.orig 2003-04-28 09:47:14.000000000 -0700 ++++ solenv/inc/unxlngppc.mk 2003-08-18 22:09:12.000000000 -0700 +@@ -65,7 +65,7 @@ + ASM= + AFLAGS= + +-SOLAR_JAVA=TRUE ++SOLAR_JAVA*=TRUE + JAVAFLAGSDEBUG=-g + + # filter for supressing verbose messages from linker +--- solenv/inc/unxlngppc4.mk.orig 2003-06-12 03:02:32.000000000 -0700 ++++ solenv/inc/unxlngppc4.mk 2003-08-18 22:09:12.000000000 -0700 +@@ -64,7 +64,7 @@ + ASM= + AFLAGS= + +-SOLAR_JAVA=TRUE ++SOLAR_JAVA*=TRUE + JAVAFLAGSDEBUG=-g + + # filter for supressing verbose messages from linker +--- solenv/inc/unxlngs3904.mk.orig 2003-06-12 03:02:43.000000000 -0700 ++++ solenv/inc/unxlngs3904.mk 2003-08-18 22:09:12.000000000 -0700 +@@ -64,7 +64,7 @@ + ASM= + AFLAGS= + +-SOLAR_JAVA=TRUE ++SOLAR_JAVA*=TRUE + JAVAFLAGSDEBUG=-g + + # filter for supressing verbose messages from linker diff -Naur -x CVS ooo-build.orig/patches/RC3/svg-handle-no-solar-java.diff ooo-build/patches/RC3/svg-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/svg-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/svg-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,155 @@ +--- filter/source/svg/svgfilter.hxx.orig 2003-08-09 19:28:05.000000000 -0700 ++++ filter/source/svg/svgfilter.hxx 2003-08-09 21:45:14.000000000 -0700 +@@ -83,9 +83,11 @@ + #ifndef _COM_SUN_STAR_DOCUMENT_XFILTER_HPP_ + #include <com/sun/star/document/XFilter.hpp> + #endif ++#ifdef SOLAR_JAVA + #ifndef _COM_SUN_STAR_DOCUMENT_XIMPORTER_HPP_ + #include <com/sun/star/document/XImporter.hpp> + #endif ++#endif // SOLAR_JAVA + #ifndef _COM_SUN_STAR_DOCUMENT_XEXPORTER_HPP_ + #include <com/sun/star/document/XExporter.hpp> + #endif +@@ -104,9 +106,15 @@ + #ifndef _CPPUHELPER_IMPLBASE1_HXX_ + #include <cppuhelper/implbase1.hxx> + #endif ++#ifdef SOLAR_JAVA + #ifndef _CPPUHELPER_IMPLBASE5_HXX_ + #include <cppuhelper/implbase5.hxx> + #endif ++#else // !SOLAR_JAVA ++#ifndef _CPPUHELPER_IMPLBASE4_HXX_ ++#include <cppuhelper/implbase4.hxx> ++#endif ++#endif + #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_ + #include <com/sun/star/lang/XMultiServiceFactory.hpp> + #endif +@@ -152,7 +160,9 @@ + #include <svx/svdxcgv.hxx> + #include <svx/svdobj.hxx> + #include <xmloff/xmlexp.hxx> ++#ifdef SOLAR_JAVA + #include <sj2/jnihelp.hxx> ++#endif + #include "svgfilter.hxx" + #include "svgscript.hxx" + +@@ -238,11 +248,18 @@ + class SVGFontExport; + class SVGActionWriter; + ++#ifdef SOLAR_JAVA + class SVGFilter : public cppu::WeakImplHelper5 < XFilter, + XImporter, + XExporter, + XInitialization, + XServiceInfo > ++#else // !SOLAR_JAVA ++class SVGFilter : public cppu::WeakImplHelper4 < XFilter, ++ XExporter, ++ XInitialization, ++ XServiceInfo > ++#endif + { + typedef ::std::hash_map< Reference< XInterface >, ObjectRepresentation, HashReferenceXInterface > ObjectMap; + +@@ -251,14 +268,18 @@ + ObjectMap* mpObjects; + Reference< XMultiServiceFactory > mxMSF; + Reference< XComponent > mxSrcDoc; ++#ifdef SOLAR_JAVA + Reference< XComponent > mxDstDoc; ++#endif + SvXMLElementExport* mpSVGDoc; + SVGExport* mpSVGExport; + SVGFontExport* mpSVGFontExport; + SVGActionWriter* mpSVGWriter; + sal_Bool mbPresentation; + ++#ifdef SOLAR_JAVA + sal_Bool implImport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException); ++#endif + + sal_Bool implExport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException); + Reference< XDocumentHandler > implCreateExportDocumentHandler( const Reference< XOutputStream >& rxOStm ); +@@ -292,8 +313,10 @@ + virtual sal_Bool SAL_CALL filter( const Sequence< PropertyValue >& rDescriptor ) throw(RuntimeException); + virtual void SAL_CALL cancel( ) throw (RuntimeException); + ++#ifdef SOLAR_JAVA + // XImporter + virtual void SAL_CALL setTargetDocument( const Reference< XComponent >& xDoc ) throw(IllegalArgumentException, RuntimeException); ++#endif + + // XExporter + virtual void SAL_CALL setSourceDocument( const Reference< XComponent >& xDoc ) throw(IllegalArgumentException, RuntimeException); +--- filter/source/svg/makefile.mk.orig 2003-08-09 20:06:22.000000000 -0700 ++++ filter/source/svg/makefile.mk 2003-08-09 20:07:54.000000000 -0700 +@@ -99,10 +99,12 @@ + + SLOFILES= $(SLO)$/svguno.obj \ + $(SLO)$/svgfilter.obj \ +- $(SLO)$/svgimport.obj \ + $(SLO)$/svgexport.obj \ + $(SLO)$/svgfontexport.obj \ + $(SLO)$/svgwriter.obj ++.IF "$(SOLAR_JAVA)"!="" ++SLOFILES+= $(SLO)$/svgimport.obj ++.ENDIF + + # --- Library ----------------------------------- + +@@ -112,7 +114,6 @@ + $(SVXLIB) \ + $(XMLOFFLIB) \ + $(GOODIESLIB) \ +- $(SJLIB) \ + $(VCLLIB) \ + $(UNOTOOLSLIB) \ + $(TOOLSLIB) \ +@@ -120,7 +121,10 @@ + $(CPPUHELPERLIB) \ + $(CPPULIB) \ + $(SALLIB) +- ++.IF "$(SOLAR_JAVA)"!="" ++SHL1STDLIBS+=\ ++ $(SJLIB) ++.ENDIF + + SHL1DEPN= + SHL1IMPLIB= i$(SHL1TARGET) +--- filter/source/svg/svgfilter.cxx.orig 2003-08-09 20:03:37.000000000 -0700 ++++ filter/source/svg/svgfilter.cxx 2003-08-09 21:46:50.000000000 -0700 +@@ -97,9 +97,12 @@ + if( pFocusWindow ) + pFocusWindow->EnterWait(); + ++#ifdef SOLAR_JAVA + if( mxDstDoc.is() ) + bRet = implImport( rDescriptor ); +- else if( mxSrcDoc.is() ) ++ else ++#endif ++ if( mxSrcDoc.is() ) + bRet = implExport( rDescriptor ); + else + bRet = sal_False; +@@ -126,11 +129,13 @@ + + // ----------------------------------------------------------------------------- + ++#ifdef SOLAR_JAVA + void SAL_CALL SVGFilter::setTargetDocument( const Reference< XComponent >& xDoc ) + throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException) + { + mxDstDoc = xDoc; + } ++#endif + + // ----------------------------------------------------------------------------- + diff -Naur -x CVS ooo-build.orig/patches/RC3/xsltfilter-handle-no-solar-java.diff ooo-build/patches/RC3/xsltfilter-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/xsltfilter-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/xsltfilter-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,12 @@ +--- filter/source/xsltfilter/makefile.mk.orig 2003-08-09 22:21:10.000000000 -0700 ++++ filter/source/xsltfilter/makefile.mk 2003-08-09 22:21:31.000000000 -0700 +@@ -90,7 +90,9 @@ + # + $(COPY) $(COPYRECURSE) META-INF $(OUT)$/class$/XSLTFilter$/META-INF + # --- Targets ------------------------------------------------------ + .INCLUDE : target.mk ++.IF "$(SOLAR_JAVA)"!="" + $(JAVACLASSFILES) : $(CLASSDIR) ++.ENDIF + + $(CLASSDIR) : + $(MKDIR) $(CLASSDIR) diff -Naur -x CVS ooo-build.orig/patches/RC3/xsltvalidate-handle-no-solar-java.diff ooo-build/patches/RC3/xsltvalidate-handle-no-solar-java.diff --- ooo-build.orig/patches/RC3/xsltvalidate-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800 +++ ooo-build/patches/RC3/xsltvalidate-handle-no-solar-java.diff 2003-09-14 22:16:18.000000000 -0700 @@ -0,0 +1,12 @@ +--- filter/source/xsltvalidate/makefile.mk.orig 2003-08-09 22:07:10.000000000 -0700 ++++ filter/source/xsltvalidate/makefile.mk 2003-08-09 22:07:23.000000000 -0700 +@@ -87,7 +87,9 @@ + # + $(COPY) $(COPYRECURSE) META-INF $(OUT)$/class$/META-INF + # --- Targets ------------------------------------------------------ + .INCLUDE : target.mk ++.IF "$(SOLAR_JAVA)"!="" + $(JAVACLASSFILES) : $(CLASSDIR) ++.ENDIF + + $(CLASSDIR) : + $(MKDIR) $(CLASSDIR)