From a45b42b8018834e8b6a1dd54a2ab91b51fbc02a6 Mon Sep 17 00:00:00 2001 From: Rene Engelhard Date: Wed, 13 Feb 2013 20:21:44 +0100 Subject: don't use -notimestanp when using gjdoc as javadoc Change-Id: Ie729aaeaeff41838a435a043dec10c5016355187 --- config_host.mk.in | 1 + configure.ac | 5 +++++ odk/pack/gendocu/makefile.mk | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config_host.mk.in b/config_host.mk.in index 4f5d2e45301f..803be089f439 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -267,6 +267,7 @@ export JAVACISGCJ=@JAVACISGCJ@ export JAVACISKAFFE=@JAVACISKAFFE@ export JAVACOMPILER=@JAVACOMPILER@ export JAVADOC=@JAVADOC@ +export JAVADOCISGJDOC=@JAVADOCISGJDOC@ export JAVAIFLAGS=@JAVAIFLAGS@ export JAVAINTERPRETER=@JAVAINTERPRETER@ @x_JAVALIB@ export JAVALIB=@JAVALIB@ diff --git a/configure.ac b/configure.ac index c906e0e6c82f..1355f3c0da72 100644 --- a/configure.ac +++ b/configure.ac @@ -6354,7 +6354,12 @@ if test "$SOLAR_JAVA" != ""; then JAVADOC=`cygpath -d "$JAVADOC"` JAVADOC=`cygpath -u "$JAVADOC"` fi + + if test `$JAVADOC --version 2>&1 | $GREP -c "gjdoc"` -gt 0; then + JAVADOCISGJDOC="yes" + fi fi +AC_SUBST(JAVADOCISGJDOC) if test "$SOLAR_JAVA" != ""; then # check if JAVA_HOME was (maybe incorrectly?) set automatically to /usr diff --git a/odk/pack/gendocu/makefile.mk b/odk/pack/gendocu/makefile.mk index 0e51d1c0be09..f3e5b080e794 100644 --- a/odk/pack/gendocu/makefile.mk +++ b/odk/pack/gendocu/makefile.mk @@ -59,7 +59,10 @@ JAVA_BEAN_SRC_FILES=\ $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/OfficeConnection.java \ $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/OfficeWindow.java -JAVADOCPARAMS= -notimestamp -use -splitindex -windowtitle "Java UNO Runtime Reference" -header $(JAVADOCREFNAME) -d $(DESTDIRGENJAVAREF) -sourcepath $(JAVA_SRC_DIR) -classpath $(SOLARBINDIR)$/ridl.jar -linkoffline ../../common/ref ./uno -linkoffline http://java.sun.com/j2se/1.5/docs/api ./java $(JAVA_PACKAGES) +JAVADOCPARAMS= -use -splitindex -windowtitle "Java UNO Runtime Reference" -header $(JAVADOCREFNAME) -d $(DESTDIRGENJAVAREF) -sourcepath $(JAVA_SRC_DIR) -classpath $(SOLARBINDIR)$/ridl.jar -linkoffline ../../common/ref ./uno -linkoffline http://java.sun.com/j2se/1.5/docs/api ./java $(JAVA_PACKAGES) +.IF "$(JAVADOCISGJDOC)" != "yes" +JAVADOCPARAMS+= -notimestamp +.ENDIF JAVADOCLOG = $(MISC)$/javadoc_log.txt -- cgit