summaryrefslogtreecommitdiff
path: root/reportbuilder
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-06-07 11:55:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-06-07 13:42:34 +0200
commit0cd10346f94430128beee0b4084b27837ccda6fa (patch)
tree3e68b8ad27a732f6ab795df76760b8c5733dc081 /reportbuilder
parentde320f38621a879c7826b9280e3ff00121fbf80f (diff)
fdo#65168: Fix regressions introduced with de-extension-ing report builder
...in 90a326c7028d5af132c62edfaef77c53627e4c0e "fdo#61950 move report builder from bundled extensions to plain code": * For one, ReportWizard.startReportWizard (wizards/com/sun/star/wizards/report/ReportWizard.java) would still try to load reportbuilderwizard.jar from the unpacked extension (and, failing that, fell back to the old default engine, so this didn't cause any failure per se). Instead, reference reportbuilderwizard.jar (which was also missing from scp2) from report.jar's manifest Class-Path (which will always be OK, even if reportbuilderwizard.jar is not installed) and check for the relevant class via Class::forName directly. * For another, the en-US/wizard/report/default.otr template had gone missing. The way to find it inside the unpacked extension in the past was to include a Paths.xcu update that extends the Template path. Instead, install that template directly into share/template now, and drop the (unused already) Paths.xcu update. Change-Id: I09eca2b69aa55d5b15fb5ecfec6881f8a6f6e5e5 (cherry picked from commit e57eeb6d5f547a4a49df796641141c733f6c5204)
Diffstat (limited to 'reportbuilder')
-rw-r--r--reportbuilder/Module_reportbuilder.mk1
-rw-r--r--reportbuilder/Package_reportbuilder-templates.mk23
-rw-r--r--reportbuilder/registry/data/org/openoffice/Office/Paths.xcu30
3 files changed, 24 insertions, 30 deletions
diff --git a/reportbuilder/Module_reportbuilder.mk b/reportbuilder/Module_reportbuilder.mk
index 08c3b0115788..aaa3e596e845 100644
--- a/reportbuilder/Module_reportbuilder.mk
+++ b/reportbuilder/Module_reportbuilder.mk
@@ -12,6 +12,7 @@ $(eval $(call gb_Module_Module,reportbuilder))
ifeq ($(ENABLE_REPORTBUILDER),TRUE)
$(eval $(call gb_Module_add_targets,reportbuilder,\
Jar_reportbuilder \
+ Package_reportbuilder-templates \
))
endif
diff --git a/reportbuilder/Package_reportbuilder-templates.mk b/reportbuilder/Package_reportbuilder-templates.mk
new file mode 100644
index 000000000000..54e6d7fc516b
--- /dev/null
+++ b/reportbuilder/Package_reportbuilder-templates.mk
@@ -0,0 +1,23 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+# There is currently only a single, en-US, template that needs to be included in
+# any installation set regardless of language settings, so keep this as a
+# Package instead of an AllLangPackage (whose content would need to go into a
+# language pack in scp2) for now.
+
+$(eval $(call gb_Package_Package,reportbuilder-templates,$(SRCDIR)/reportbuilder/template))
+
+$(eval $(call gb_Package_set_outdir,reportbuilder-templates,$(INSTDIR)))
+
+$(eval $(call gb_Package_add_files_with_dir,reportbuilder-templates,share/template, \
+ en-US/wizard/report/default.otr \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/reportbuilder/registry/data/org/openoffice/Office/Paths.xcu b/reportbuilder/registry/data/org/openoffice/Office/Paths.xcu
deleted file mode 100644
index b8e8be859212..000000000000
--- a/reportbuilder/registry/data/org/openoffice/Office/Paths.xcu
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!--
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- -->
-
-<oor:component-data oor:package="org.openoffice.Office" oor:name="Paths" xmlns:install="http://openoffice.org/2004/installation" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > <node oor:name="Paths">
-
- <node oor:name="Template" oor:op="fuse">
- <node oor:name="InternalPaths">
- <node oor:name="%origin%/../../../../../template" oor:op="fuse"/>
- </node>
- </node>
-
- </node>
-</oor:component-data>
-