diff options
author | Oliver Bolte <obo@openoffice.org> | 2009-03-20 12:44:30 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2009-03-20 12:44:30 +0000 |
commit | 98c4b54c6938efec59ef20e5a2934de6c5fadca3 (patch) | |
tree | cbfbf856810b8a81cddc5adc540513f532e9a5a0 | |
parent | f0e9ce88ce0bb73a98167bdc97757f92067cf0d8 (diff) |
CWS-TOOLING: integrate CWS rptfix06
2009-03-19 08:14:23 +0100 rene r269715 : #i10000#
2009-03-18 23:48:16 +0100 rene r269709 : #i100334# also reportbuilder
2009-03-18 22:39:42 +0100 rene r269706 : #i100334# fix build with system apache-commons
2009-03-18 22:34:24 +0100 rene r269705 : #i100335# build libs only when needed
2009-03-17 13:24:17 +0100 rene r269600 : fix system-* for the SRB
-rw-r--r-- | apache-commons/java/codec/makefile.mk | 4 | ||||
-rw-r--r-- | apache-commons/java/httpclient/makefile.mk | 4 | ||||
-rw-r--r-- | apache-commons/java/lang/makefile.mk | 4 | ||||
-rw-r--r-- | apache-commons/java/logging/makefile.mk | 4 | ||||
-rw-r--r-- | jfreereport/java/libbase/makefile.mk | 19 | ||||
-rw-r--r-- | reportbuilder/java/com/sun/star/report/makefile.mk | 6 | ||||
-rw-r--r-- | reportbuilder/java/com/sun/star/report/pentaho/makefile.mk | 27 | ||||
-rw-r--r-- | reportbuilder/util/makefile.mk | 5 |
8 files changed, 50 insertions, 23 deletions
diff --git a/apache-commons/java/codec/makefile.mk b/apache-commons/java/codec/makefile.mk index 5ab525b..0a98550 100644 --- a/apache-commons/java/codec/makefile.mk +++ b/apache-commons/java/codec/makefile.mk @@ -43,7 +43,7 @@ ANT_BUILDFILE=build.xml .INCLUDE : antsettings.mk -.IF "$(SOLAR_JAVA)" != "" +.IF "$(SOLAR_JAVA)" != "" && "$(ENABLE_MEDIAWIKI)" == "YES" # --- Files -------------------------------------------------------- TARFILE_NAME=commons-codec-1.3-src @@ -71,7 +71,7 @@ BUILD_ACTION=$(ANT) -Dbuild.label="build-$(RSCREVISION)" -f $(ANT_BUILDFILE) jar .INCLUDE : set_ext.mk .INCLUDE : target.mk -.IF "$(SOLAR_JAVA)" != "" +.IF "$(SOLAR_JAVA)" != "" && "$(ENABLE_MEDIAWIKI)" == "YES" .INCLUDE : tg_ext.mk .ENDIF diff --git a/apache-commons/java/httpclient/makefile.mk b/apache-commons/java/httpclient/makefile.mk index 8e9dd0c..d1794ea 100644 --- a/apache-commons/java/httpclient/makefile.mk +++ b/apache-commons/java/httpclient/makefile.mk @@ -43,7 +43,7 @@ ANT_BUILDFILE=build.xml .INCLUDE : antsettings.mk -.IF "$(SOLAR_JAVA)" != "" +.IF "$(SOLAR_JAVA)" != "" && "$(ENABLE_MEDIAWIKI)" == "YES" # --- Files -------------------------------------------------------- TARFILE_NAME=commons-httpclient-3.1-src @@ -74,7 +74,7 @@ BUILD_ACTION=$(ANT) -Dbuild.label="build-$(RSCREVISION)" -Dcommons-logging.jar= .INCLUDE : set_ext.mk .INCLUDE : target.mk -.IF "$(SOLAR_JAVA)" != "" +.IF "$(SOLAR_JAVA)" != "" && "$(ENABLE_MEDIAWIKI)" == "YES" .INCLUDE : tg_ext.mk .ENDIF diff --git a/apache-commons/java/lang/makefile.mk b/apache-commons/java/lang/makefile.mk index c654168..6d32f12 100644 --- a/apache-commons/java/lang/makefile.mk +++ b/apache-commons/java/lang/makefile.mk @@ -43,7 +43,7 @@ ANT_BUILDFILE=build.xml .INCLUDE : antsettings.mk -.IF "$(SOLAR_JAVA)" != "" +.IF "$(SOLAR_JAVA)" != "" && "$(ENABLE_MEDIAWIKI)" == "YES" # --- Files -------------------------------------------------------- TARFILE_NAME=commons-lang-2.3-src @@ -71,7 +71,7 @@ BUILD_ACTION=$(ANT) -Dbuild.label="build-$(RSCREVISION)" -f $(ANT_BUILDFILE) jar .INCLUDE : set_ext.mk .INCLUDE : target.mk -.IF "$(SOLAR_JAVA)" != "" +.IF "$(SOLAR_JAVA)" != "" && "$(ENABLE_MEDIAWIKI)" == "YES" .INCLUDE : tg_ext.mk .ENDIF diff --git a/apache-commons/java/logging/makefile.mk b/apache-commons/java/logging/makefile.mk index 55bd8f4..732678c 100644 --- a/apache-commons/java/logging/makefile.mk +++ b/apache-commons/java/logging/makefile.mk @@ -43,7 +43,7 @@ ANT_BUILDFILE=build.xml .INCLUDE : antsettings.mk -.IF "$(SOLAR_JAVA)" != "" +.IF "$(SOLAR_JAVA)" != "" && ( "$(ENABLE_MEDIAWIKI)" == "YES" || "$(ENABLE_REPORTBUILDER)" == "YES" ) # --- Files -------------------------------------------------------- TARFILE_NAME=commons-logging-1.1.1-src @@ -75,7 +75,7 @@ BUILD_ACTION=$(ANT) -Dbuild.label="build-$(RSCREVISION)" -f $(ANT_BUILDFILE) -Ds .INCLUDE : set_ext.mk .INCLUDE : target.mk -.IF "$(SOLAR_JAVA)" != "" +.IF "$(SOLAR_JAVA)" != "" && ( "$(ENABLE_MEDIAWIKI)" == "YES" || "$(ENABLE_REPORTBUILDER)" == "YES" ) .INCLUDE : tg_ext.mk .ENDIF diff --git a/jfreereport/java/libbase/makefile.mk b/jfreereport/java/libbase/makefile.mk index 36e4c2b..2ed4f2a 100644 --- a/jfreereport/java/libbase/makefile.mk +++ b/jfreereport/java/libbase/makefile.mk @@ -66,13 +66,22 @@ BUILD_ACTION=$(ANT) -Dlib="../../../class" -Dbuild.label="build-$(RSCREVISION)" .IF "$(SOLAR_JAVA)" != "" .INCLUDE : tg_ext.mk -$(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) : $(CLASSDIR)$/commons-logging-1.1.1.jar ALLTAR : $(CLASSDIR)$/$(TARGET)$(VERSION).jar -$(CLASSDIR)$/commons-logging-1.1.1.jar : - $(COPY) $(SOLARBINDIR)$/commons-logging-1.1.1.jar $(CLASSDIR)$/commons-logging-1.1.1.jar - -$(CLASSDIR)$/$(TARGET)$(VERSION).jar : $(CLASSDIR)$/commons-logging-1.1.1.jar $(PACKAGE_DIR)$/$(INSTALL_FLAG_FILE) +# XCLASSPATH/CLASSPATH does not work and we only can give lib once. But +# the build.xmls fortunately take *.jar out of lib so we can copy our +# commons-logging.jar here - yes, even in the system-apache commons case. +# Sucks. +$(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) : $(CLASSDIR)$/commons-logging.jar + +$(CLASSDIR)$/commons-logging.jar : +.IF "$(SYSTEM_APACHE_COMMONS)" != "YES" + $(COPY) $(SOLARBINDIR)$/commons-logging-1.1.1.jar $(CLASSDIR)$/commons-logging.jar +.ELSE + $(COPY) $(COMMONS_LOGGING_JAR) $(CLASSDIR)$/commons-logging.jar +.ENDIF + +$(CLASSDIR)$/$(TARGET)$(VERSION).jar : $(CLASSDIR)$/commons-logging.jar $(PACKAGE_DIR)$/$(INSTALL_FLAG_FILE) $(COPY) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/build$/lib$/$(TARGET).jar $(CLASSDIR)$/$(TARGET)$(VERSION).jar .ENDIF diff --git a/reportbuilder/java/com/sun/star/report/makefile.mk b/reportbuilder/java/com/sun/star/report/makefile.mk index 9c5c299..5b36aff 100644 --- a/reportbuilder/java/com/sun/star/report/makefile.mk +++ b/reportbuilder/java/com/sun/star/report/makefile.mk @@ -39,10 +39,10 @@ PACKAGE = com$/sun$/star$/report #----- compile .java files ----------------------------------------- JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar -.IF "$(SYSTEM_JFREEREPORT)" == "YES" -XCLASSPATH!:==$(XCLASSPATH)$(PATH_SEPERATOR)$(JCOMMON_JAR)$(PATH_SEPERATOR)$(COMMONS_LOGGING_JAR) +.IF "$(SYSTEM_APACHE_COMMONS)" == "YES" +XCLASSPATH!:==$(XCLASSPATH)$(PATH_SEPERATOR)$(COMMONS_LOGGING_JAR) .ELSE -JARFILES += jcommon-1.0.10.jar commons-logging-1.1.1.jar +JARFILES += commons-logging-1.1.1.jar .ENDIF JAVAFILES := DataRow.java\ diff --git a/reportbuilder/java/com/sun/star/report/pentaho/makefile.mk b/reportbuilder/java/com/sun/star/report/pentaho/makefile.mk index fc2abb5..5d448a6 100644 --- a/reportbuilder/java/com/sun/star/report/pentaho/makefile.mk +++ b/reportbuilder/java/com/sun/star/report/pentaho/makefile.mk @@ -41,10 +41,19 @@ nodep=true #----- compile .java files ----------------------------------------- JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar .IF "$(SYSTEM_JFREEREPORT)" == "YES" -XCLASSPATH!:=$(XCLASSPATH)$(FLUTE_JAR)$(PATH_SEPERATOR)$(LIBBASE_JAR)$(PATH_SEPERATOR)$(LIBXML_JAR)$(PATH_SEPERATOR)$(JFREEREPORT_JAR)$(PATH_SEPERATOR)$(LIBLOADER_JAR)$(PATH_SEPERATOR)$(SAC_JAR)$(PATH_SEPERATOR)$(LIBLAYOUT_JAR)$(PATH_SEPERATOR)$(LIBSERIALIZER_JAR)$(PATH_SEPERATOR)$(LIBFONTS_JAR)$(PATH_SEPERATOR)$(LIBFORMULA_JAR)$(PATH_SEPERATOR)$(LIBREPOSITORY_JAR)$(PATH_SEPERATOR)$(COMMONS_LOGGING_JAR) -COMP=fix_system_jfreereport +XCLASSPATH!:=$(XCLASSPATH)$(FLUTE_JAR)$(PATH_SEPERATOR)$(LIBBASE_JAR)$(PATH_SEPERATOR)$(LIBXML_JAR)$(PATH_SEPERATOR)$(JFREEREPORT_JAR)$(PATH_SEPERATOR)$(LIBLOADER_JAR)$(PATH_SEPERATOR)$(SAC_JAR)$(PATH_SEPERATOR)$(LIBLAYOUT_JAR)$(PATH_SEPERATOR)$(LIBSERIALIZER_JAR)$(PATH_SEPERATOR)$(LIBFONTS_JAR)$(PATH_SEPERATOR)$(LIBFORMULA_JAR)$(PATH_SEPERATOR)$(LIBREPOSITORY_JAR) .ELSE -JARFILES += flute-1.3.0.jar libbase-1.0.0.jar libfonts-1.0.0.jar libformula-0.2.0.jar liblayout-0.2.9.jar libloader-1.0.0.jar librepository-1.0.0.jar libxml-1.0.0.jar flow-engine-0.9.2.jar sac.jar commons-logging-1.1.1.jar +JARFILES += flute-1.3.0.jar libbase-1.0.0.jar libfonts-1.0.0.jar libformula-0.2.0.jar liblayout-0.2.9.jar libloader-1.0.0.jar librepository-1.0.0.jar libxml-1.0.0.jar flow-engine-0.9.2.jar sac.jar +.ENDIF + +.IF "$(SYSTEM_APACHE_COMMONS)" == "YES" +XCLASSPATH!:=$(XCLASSPATH)$(PATH_SEPERATOR)$(COMMONS_LOGGING_JAR) +.ELSE +JARFILES += commons-logging-1.1.1.jar +.ENDIF + +.IF "$(SYSTEM_JFREEREPORT)" == "YES" || "$(SYSTEM_APACHE_COMMONS)" == "YES" +COMP=fix_system_libs .ENDIF JAVAFILES := $(shell @$(FIND) . -name "*.java") @@ -94,13 +103,19 @@ CUSTOMMANIFESTFILE = Manifest.mf $(JARTARGETN) : $(COMP) $(PROPERTYFILES) $(CSSFILES) $(XSDFILES) $(TXTFILES) $(XMLFILES) .ENDIF # "$(JARTARGETN)"!="" -fix_system_jfreereport: - @echo "Fix Java Class-Path entry for JFree JFreeReport libraries from system." +fix_system_libs: + @echo "Fix Java Class-Path entry for libraries from system." +.IF ("$(SYSTEM_JFREEREPORT)" != "YES" && "$(SYSTEM_APACHE_COMMONS)" == "YES") + @$(SED) -r -e "s#commons-logging-1.1.1.jar#file://$(COMMONS_LOGGING_JAR)#" \ + -i ../../../../../../$(INPATH)/class/sun-report-builder/META-INF/MANIFEST.MF +.ENDIF +.IF ("$(SYSTEM_JFREEREPORT)" == "YES" && "$(SYSTEM_APACHE_COMMONS)" == "YES") @$(SED) '/flute/,/sac/d' -i ../../../../../../$(INPATH)/class/sun-report-builder/META-INF/MANIFEST.MF @$(SED) -r -e "s#^Class-Path.*#\0\n file://$(LIBBASE_JAR)\n file://$(SAC_JAR)\n file://$(LIBXML_JAR)\n\ file://$(FLUTE_JAR)\n file://$(JFREEREPORT_JAR)\n file://$(LIBLAYOUT_JAR)\n file://$(LIBLOADER_JAR)\n file://$(LIBFORMULA_JAR)\n\ - file://$(LIBREPOSITORY_JAR)\n file://$(LIBFONTS_JAR)\n file://$(LIBSERIALIZER_JAR)#" \ + file://$(LIBREPOSITORY_JAR)\n file://$(LIBFONTS_JAR)\n file://$(LIBSERIALIZER_JAR)\n file://$(COMMONS_LOGGING_JAR)#" \ -i ../../../../../../$(INPATH)/class/sun-report-builder/META-INF/MANIFEST.MF +.ENDIF $(CLASSDIR)$/$(PACKAGE)$/%.properties : %.properties @@-$(MKDIRHIER) $(@:d) diff --git a/reportbuilder/util/makefile.mk b/reportbuilder/util/makefile.mk index 0dd34f0..6cb9d98 100644 --- a/reportbuilder/util/makefile.mk +++ b/reportbuilder/util/makefile.mk @@ -110,7 +110,10 @@ COMPONENT_EXTJARFILES += \ $(EXTENSIONDIR)$/librepository-1.0.0.jar \ $(EXTENSIONDIR)$/libxml-1.0.0.jar \ $(EXTENSIONDIR)$/flow-engine-0.9.2.jar \ - $(EXTENSIONDIR)$/sac.jar \ + $(EXTENSIONDIR)$/sac.jar +.ENDIF +.IF "$(SYSTEM_APACHE_COMMONS)" != "YES" +COMPONENT_EXTJARFILES += \ $(EXTENSIONDIR)$/commons-logging-1.1.1.jar .ENDIF |