From 8b99a67aa556afb9284c8fcced139f7276dfd14d Mon Sep 17 00:00:00 2001 From: jensp Date: Tue, 29 Sep 2009 18:20:45 +0000 Subject: [PATCH] Fixed Bug in combination with version ant-apache-bsf tasks 1.7.1/bsf-2.4.0. Fixed by prefixing non Java API packages in lines 1227-1232 of tools-ng/common/xsl/build-templates (which is used to create build-projects) with "Packages" as described at http://wiki.apache.org/ant/AntOddities#Using_your_own_classes_inside_.3Cscript.3E. git-svn-id: https://svn.libreccm.org/ccm/trunk@270 8810af33-2d31-482b-a856-94f89814c4df --- .../com/arsdigita/content-types/OrganizationRole.pdl | 2 +- .../sql/ccm-cms-types-project/postgres-create.sql | 3 +++ .../com/arsdigita/cms/contenttypes/Project.xsl | 11 +++++++++++ tools-ng/common/xsl/build-template.xsl | 10 +++++----- 4 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 ccm-cms-types-project/sql/ccm-cms-types-project/postgres-create.sql create mode 100644 ccm-cms-types-project/web/static/content-types/com/arsdigita/cms/contenttypes/Project.xsl diff --git a/ccm-cms-types-genericorganization/pdl/com/arsdigita/content-types/OrganizationRole.pdl b/ccm-cms-types-genericorganization/pdl/com/arsdigita/content-types/OrganizationRole.pdl index d5d42e45d..670511f8b 100644 --- a/ccm-cms-types-genericorganization/pdl/com/arsdigita/content-types/OrganizationRole.pdl +++ b/ccm-cms-types-genericorganization/pdl/com/arsdigita/content-types/OrganizationRole.pdl @@ -39,7 +39,7 @@ query getRefferingRoles { BigDecimal id; do { - select r.role_id from organizationroles r where r.target_item_id = :itemID + select r.role_id from ct_organizationroles r where r.target_item_id = :itemID } map { id = r.role_id; } diff --git a/ccm-cms-types-project/sql/ccm-cms-types-project/postgres-create.sql b/ccm-cms-types-project/sql/ccm-cms-types-project/postgres-create.sql new file mode 100644 index 000000000..a733590e2 --- /dev/null +++ b/ccm-cms-types-project/sql/ccm-cms-types-project/postgres-create.sql @@ -0,0 +1,3 @@ +begin; +\i ddl/postgres/create.sql +end; \ No newline at end of file diff --git a/ccm-cms-types-project/web/static/content-types/com/arsdigita/cms/contenttypes/Project.xsl b/ccm-cms-types-project/web/static/content-types/com/arsdigita/cms/contenttypes/Project.xsl new file mode 100644 index 000000000..85137dad7 --- /dev/null +++ b/ccm-cms-types-project/web/static/content-types/com/arsdigita/cms/contenttypes/Project.xsl @@ -0,0 +1,11 @@ + +]> + + + + + \ No newline at end of file diff --git a/tools-ng/common/xsl/build-template.xsl b/tools-ng/common/xsl/build-template.xsl index d2553435e..425d2c1aa 100755 --- a/tools-ng/common/xsl/build-template.xsl +++ b/tools-ng/common/xsl/build-template.xsl @@ -1225,11 +1225,11 @@ importClass(java.lang.System); - importClass(com.liferay.portal.tools.WebXMLBuilder); - importClass(com.liferay.portal.kernel.util.FileUtil); - importClass(com.liferay.portal.util.FileImpl); - importClass(com.liferay.portal.xml.SAXReaderImpl); - importClass(com.liferay.portal.kernel.xml.SAXReaderUtil); + importClass(Packages.com.liferay.portal.tools.WebXMLBuilder); + importClass(Packages.com.liferay.portal.kernel.util.FileUtil); + importClass(Packages.com.liferay.portal.util.FileImpl); + importClass(Packages.com.liferay.portal.xml.SAXReaderImpl); + importClass(Packages.com.liferay.portal.kernel.xml.SAXReaderUtil); new FileUtil().setFile(FileImpl.getInstance()); new SAXReaderUtil().setSAXReader(new SAXReaderImpl()); var builder = new WebXMLBuilder(originalWebXML, customWebXML, mergedWebXML);