Added:
incubator/beehive/trunk/netui/src/compiler-xdoclet/pageflow-webapp-build.properties
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-xdoclet/pageflow-webapp-build.properties?view=auto&rev=157713
==============================================================================
---
incubator/beehive/trunk/netui/src/compiler-xdoclet/pageflow-webapp-build.properties
(added)
+++
incubator/beehive/trunk/netui/src/compiler-xdoclet/pageflow-webapp-build.properties
Tue Mar 15 23:14:32 2005
@@ -0,0 +1,69 @@
+# Root directory for tomcat.
+tomcat.home=c:/prog/jakarta-tomcat-5.0.25/jakarta-tomcat-5.0.25
+
+compile.source=1.3
+
+# Path to the webapp root for this project
+webapp.root.dir=./webapp
+
+# username and password for a user in the manager role (for redeploying the
app dynamically)
+tomcat.manager.username=manager
+tomcat.manager.password=manager
+
+# Override to specify a different temporary build directory - defaults to
${webinf.dir}/.tmpbeansrc
+# temp.build.dir=
+
+webinf.dir=${webapp.root.dir}/WEB-INF
+webinf.lib.dir=${webinf.dir}/lib
+webapp.classes.dir=${webinf.dir}/classes
+
+# Override to specify a different source directory - defaults to the webapp
root
+src.dir=${webapp.root.dir}
+
+# locations of the jar files used in the build
+lib.dir=lib
+xdoclet.dir=${lib.dir}/xdoclet
+
+# jar files used in the build classpath
+netui.xdoclet.compiler.jar=${lib.dir}/beehive-netui-compiler-xdoclet.jar
+netui.scoping.jar=${webinf.lib.dir}/beehive-netui-scoping.jar
+netui.util.jar=${webinf.lib.dir}/beehive-netui-util.jar
+netui.pageflow.jar=${webinf.lib.dir}/beehive-netui-pageflow.jar
+netui.tags.html.jar=${webinf.lib.dir}/beehive-netui-tags-html.jar
+netui.tags.databinding.jar=${webinf.lib.dir}/beehive-netui-tags-databinding.jar
+netui.tags.template.jar=${webinf.lib.dir}/beehive-netui-tags-template.jar
+xdoclet.jar=${xdoclet.dir}/xdoclet-1.2b4.jar
+xjavadoc.jar=${xdoclet.dir}/xjavadoc-1.1-j5-v3.jar
+commons.collections.jar=${webinf.lib.dir}/commons-collections.jar
+commons.logging.jar=${webinf.lib.dir}/commons-logging.jar
+struts.jar=${webinf.lib.dir}/struts.jar
+xbean.jar=${webinf.lib.dir}/apache-xbean.jar
+jsr173-api.jar=${webinf.lib.dir}/jsr173_1.0_api.jar
+servlet.jar=${tomcat.home}/common/lib/servlet-api.jar
+ant.jar=${tomcat.home}/server/lib/catalina-ant.jar
+
+build.pre.class.path=
+build.post.class.path=
+
+build.class.path=\
+${build.pre.class.path};\
+${webapp.classes.dir};\
+${xdoclet.jar};\
+${xjavadoc.jar};\
+${struts.jar};\
+${commons.collections.jar};\
+${commons.logging.jar};\
+${netui.xdoclet.compiler.jar};\
+${netui.pageflow.jar};\
+${netui.scoping.jar};\
+${netui.util.jar};\
+${netui.tags.html.jar};\
+${netui.tags.databinding.jar};\
+${netui.tags.template.jar};\
+${netui.generic.webapp.jar};\
+${netui.tomcat.webapp.jar};\
+${xbean.jar};\
+${jsr173-api.jar};\
+${servlet.jar};\
+${ant.jar};\
+${build.post.class.path}
Propchange:
incubator/beehive/trunk/netui/src/compiler-xdoclet/pageflow-webapp-build.properties
------------------------------------------------------------------------------
svn:eol-style = native
Added:
incubator/beehive/trunk/netui/src/compiler-xdoclet/pageflow-webapp-build.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-xdoclet/pageflow-webapp-build.xml?view=auto&rev=157713
==============================================================================
---
incubator/beehive/trunk/netui/src/compiler-xdoclet/pageflow-webapp-build.xml
(added)
+++
incubator/beehive/trunk/netui/src/compiler-xdoclet/pageflow-webapp-build.xml
Tue Mar 15 23:14:32 2005
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<project name="Netui XDoclet Build" default="build" basedir=".">
+
+ <property file="pageflow-webapp-build.properties"/>
+
+ <property name="temp.build.dir" value="${webinf.dir}/.tmpbeansrc"/>
+
+ <!-- ===================================================================
-->
+ <!-- Initialise
-->
+ <!-- ===================================================================
-->
+ <target name="init">
+ <tstamp>
+ <format property="TODAY" pattern="d-MM-yy"/>
+ </tstamp>
+ <echo>build.class.path ( ${build.class.path} )</echo>
+ <taskdef
+ name="netuidoclet"
+ classname="org.apache.beehive.netui.xdoclet.NetuiDocletTask"
+ classpath="${build.class.path};${webapp.classes.dir}" />
+ <taskdef
+ name="source-copy"
+ classname="org.apache.beehive.netui.tasks.SourceCopy"
+ classpath="${build.class.path}" />
+ </target>
+
+ <!-- ===================================================================
-->
+ <!-- Invoke netui doclet -->
+ <!-- ===================================================================
-->
+ <target name="build" depends="init" description="Build all classes in the
webapp, and generate struts-config files for any page flows" >
+
+ <echo>Copying pageflows and webapp source files for
compilation...</echo>
+
+ <!-- copy all java and jpf files to a temp directory -->
+ <delete dir="${temp.build.dir}" />
+ <mkdir dir="${temp.build.dir}" />
+ <source-copy todir="${temp.build.dir}">
+ <fileset dir="${src.dir}">
+ <include name="**/*.java" />
+ <include name="**/*.jpf" />
+ <include name="**/*.app" />
+ </fileset>
+ <fileset dir="${webinf.dir}/src">
+ <include name="**/*.java" />
+ <include name="**/*.jpf" />
+ <include name="**/*.app" />
+ </fileset>
+ </source-copy>
+
+ <!-- rename .jpf and .app to .java -->
+ <move todir="${temp.build.dir}">
+ <fileset dir="${temp.build.dir}">
+ <include name="**/*.jpf"/>
+ </fileset>
+ <mapper type="glob" from="*.jpf" to="*.java"/>
+ </move>
+ <move todir="${temp.build.dir}">
+ <fileset dir="${temp.build.dir}">
+ <include name="**/Global.app"/>
+ </fileset>
+ <mapper type="glob" from="*.app" to="*.java"/>
+ </move>
+
+ <echo>Compiling source files...</echo>
+
+ <!-- compile the java files into web-inf/classes -->
+ <mkdir dir="${webapp.classes.dir}" />
+ <javac srcdir="${temp.build.dir}"
+ destdir="${webapp.classes.dir}"
+ classpath="${build.class.path}"
+ source="${compile.source}">
+ <include name="**/*.java"/>
+ </javac>
+
+ <echo>Generating struts-config files...</echo>
+
+ <!-- set verbose="true" to view informational messages -->
+ <netuidoclet
+ webapproot="${webapp.root.dir}"
+ excludedtags="@version,@author,@todo"
+ force="true"
+ verbose="false"
+ >
+ <fileset dir="${temp.build.dir}">
+ <include name="**/*.java"/>
+ </fileset>
+ <netui/>
+ </netuidoclet>
+
+ <echo>Deleting temporary source files...</echo>
+
+ <!-- delete the temp dir -->
+ <delete dir="${temp.build.dir}" />
+ </target>
+
+
+ <!-- ===================================================================
-->
+ <!-- Clean
-->
+ <!-- ===================================================================
-->
+ <target name="clean">
+ <delete dir="${temp.build.dir}"/>
+ <delete dir="${webapp.classes.dir}"/>
+ <!-- delete gen'd struts-config files too? -->
+ </target>
+
+ <target name="update.libs" description="Update the netui jars in this
webapp">
+ <copy file="${netui.scoping.jar}" todir="${webinf.dir}/lib"
overwrite="true" />
+ <copy file="${netui.util.jar}" todir="${webinf.dir}/lib"
overwrite="true" />
+ <copy file="${netui.pageflow.jar}" todir="${webinf.dir}/lib"
overwrite="true" />
+ <copy file="${netui.tags.html.jar}" todir="${webinf.dir}/lib"
overwrite="true" />
+ <copy file="${netui.tags.databinding.jar}" todir="${webinf.dir}/lib"
overwrite="true" />
+ <copy file="${netui.tags.template.jar}" todir="${webinf.dir}/lib"
overwrite="true" />
+ <copy file="${netui.generic.webapp.jar}" todir="${webinf.dir}/lib"
overwrite="true" />
+ <copy file="${struts.jar}" todir="${webinf.dir}/lib" overwrite="true"
/>
+ </target>
+
+</project>
Propchange:
incubator/beehive/trunk/netui/src/compiler-xdoclet/pageflow-webapp-build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/beehive/trunk/netui/src/compiler-xdoclet/xdoclet-xml.xdt
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-xdoclet/xdoclet-xml.xdt?view=auto&rev=157713
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-xdoclet/xdoclet-xml.xdt (added)
+++ incubator/beehive/trunk/netui/src/compiler-xdoclet/xdoclet-xml.xdt Tue Mar
15 23:14:32 2005
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+<!DOCTYPE xdoclet-module PUBLIC "-//XDoclet Team//DTD XDoclet Module 1.0//EN"
"http://xdoclet.sourceforge.net/dtd/xdoclet-module_1_0.dtd">
+-->
+
+<XDtComment:comment>
+This template builds the deployment descriptor for modules
+</XDtComment:comment>
+
+<xdoclet-module>
+ <!--
+ <XDtClass:forAllClasses>
+ <XDtClass:fullClassName/>
+ </XDtClass:forAllClasses>
+ -->
+
+ <XDtClass:forAllClasses type="xdoclet.template.TemplateTagHandler"
abstract="false">
+ <taghandler
+ namespace="<XDtClass:classTagValue tagName="xdoclet.taghandler"
paramName="namespace" mandatory="true"/>"
+ class="<XDtClass:fullClassName/>"
+ />
+ </XDtClass:forAllClasses>
+
+ <XDtClass:forAllClasses type="xdoclet.SubTask" abstract="false">
+ <subtask
+ name="<XDtClass:classTagValue tagName="ant.element" paramName="name"
mandatory="true"/>"
+ implementation-class="<XDtClass:fullClassName/>"
+ parent-task-class="<XDtClass:classTagValue tagName="ant.element"
paramName="parent" mandatory="true"/>"
+ />
+ </XDtClass:forAllClasses>
+</xdoclet-module>