Author: jleroux
Date: Tue Dec 21 12:49:41 2010
New Revision: 1051477

URL: http://svn.apache.org/viewvc?rev=1051477&view=rev
Log:
A patch from BJ Freeman "Add help document (docbook) support to the 
create-component ant target" (https://issues.apache.org/jira/browse/OFBIZ-4070) 
- OFBIZ-4070

Creates the data/helpdata and document directories. Copy templates for each 
folder.

Added:
    ofbiz/trunk/framework/resources/templates/HELP.xml   (with props)
    ofbiz/trunk/framework/resources/templates/document.xml   (with props)
Modified:
    ofbiz/trunk/build.xml

Modified: ofbiz/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/build.xml?rev=1051477&r1=1051476&r2=1051477&view=diff
==============================================================================
--- ofbiz/trunk/build.xml (original)
+++ ofbiz/trunk/build.xml Tue Dec 21 12:49:41 2010
@@ -629,7 +629,9 @@ under the License.
         <mkdir dir="${basedir}/hot-deploy/${component-name}"/>
         <mkdir dir="${basedir}/hot-deploy/${component-name}/config"/>
         <mkdir dir="${basedir}/hot-deploy/${component-name}/data"/>
+        <mkdir dir="${basedir}/hot-deploy/${component-name}/data/helpdata"/>
         <mkdir dir="${basedir}/hot-deploy/${component-name}/dtd"/>
+        <mkdir dir="${basedir}/hot-deploy/${component-name}/documents"/>
         <mkdir dir="${basedir}/hot-deploy/${component-name}/entitydef"/>
         <mkdir dir="${basedir}/hot-deploy/${component-name}/lib"/>
         <mkdir dir="${basedir}/hot-deploy/${component-name}/patches"/>
@@ -658,6 +660,12 @@ under the License.
         <copy file="${basedir}/framework/resources/templates/DemoData.xml" 
tofile="${basedir}/hot-deploy/${component-name}/data/${component-resource-name}DemoData.xml"
 encoding="utf-8">
             <filterset refid="replacePlaceholders"/>
         </copy>
+        <copy file="${basedir}/framework/resources/templates/HELP.xml" 
tofile="${basedir}/hot-deploy/${component-name}/data/helpdata/HELP_${component-resource-name}.xml"
 encoding="utf-8">
+            <filterset refid="replacePlaceholders"/>
+        </copy>
+        <copy file="${basedir}/framework/resources/templates/document.xml" 
tofile="${basedir}/hot-deploy/${component-name}/documents/${component-resource-name}.xml"
 encoding="utf-8">
+            <filterset refid="replacePlaceholders"/>
+        </copy>
         <copy file="${basedir}/framework/resources/templates/entitymodel.xml" 
tofile="${basedir}/hot-deploy/${component-name}/entitydef/entitymodel.xml" 
encoding="utf-8">
             <filterset refid="replacePlaceholders"/>
         </copy>

Added: ofbiz/trunk/framework/resources/templates/HELP.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/resources/templates/HELP.xml?rev=1051477&view=auto
==============================================================================
--- ofbiz/trunk/framework/resources/templates/HELP.xml (added)
+++ ofbiz/trunk/framework/resources/templates/HELP.xml Tue Dec 21 12:49:41 2010
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="5.0" 
+    xmlns:xl="http://www.w3.org/1999/xlink"; 
+    xmlns:xi="http://www.w3.org/2001/XInclude";
+    xsi:schemaLocation="http://docbook.org/ns/docbook 
../../../content/dtd/docbook.xsd"
+    xmlns="http://docbook.org/ns/docbook";>
+    <title>@component-resource-name@  Overview</title>
+    <para>The @component-resource-name@ Help file template.</para>
+</section>
+

Propchange: ofbiz/trunk/framework/resources/templates/HELP.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/resources/templates/HELP.xml
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/trunk/framework/resources/templates/HELP.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: ofbiz/trunk/framework/resources/templates/document.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/resources/templates/document.xml?rev=1051477&view=auto
==============================================================================
--- ofbiz/trunk/framework/resources/templates/document.xml (added)
+++ ofbiz/trunk/framework/resources/templates/document.xml Tue Dec 21 12:49:41 
2010
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!--
+    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
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<chapter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+    version="5.0" xmlns:xl="http://www.w3.org/1999/xlink"; 
xmlns:xi="http://www.w3.org/2001/XInclude";
+    xsi:schemaLocation="http://docbook.org/ns/docbook 
../../content/dtd/docbook.xsd"
+    xmlns="http://docbook.org/ns/docbook";>
+    <title> <anchor id="@component-resource-name@"/>The 
@component-resource-name@ Component</title>
+    <section>
+        <title>Introduction</title>
+        <para>
+        </para>
+    </section>
+        <xi:include href="../data/helpdata/he...@component-resource-name@.xml" 
/>
+    
+</chapter>

Propchange: ofbiz/trunk/framework/resources/templates/document.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/resources/templates/document.xml
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/trunk/framework/resources/templates/document.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml


Reply via email to