Author: ekoneil
Date: Mon Mar 28 09:45:05 2005
New Revision: 159270

URL: http://svn.apache.org/viewcvs?view=rev&rev=159270
Log:
Continued work on the SVN tree build provided with the NetUI webapp template.

BB: self
DRT: none


Added:
    
incubator/beehive/trunk/netui/src/webapp-template/default/WEB-INF/src/build.properties
   (with props)
Modified:
    
incubator/beehive/trunk/netui/src/webapp-template/default/WEB-INF/src/build.xml

Added: 
incubator/beehive/trunk/netui/src/webapp-template/default/WEB-INF/src/build.properties
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/webapp-template/default/WEB-INF/src/build.properties?view=auto&rev=159270
==============================================================================
--- 
incubator/beehive/trunk/netui/src/webapp-template/default/WEB-INF/src/build.properties
 (added)
+++ 
incubator/beehive/trunk/netui/src/webapp-template/default/WEB-INF/src/build.properties
 Mon Mar 28 09:45:05 2005
@@ -0,0 +1,6 @@
+#
+#
+#
+
+beehive.dir=../../
+context.path=svnWeb
\ No newline at end of file

Propchange: 
incubator/beehive/trunk/netui/src/webapp-template/default/WEB-INF/src/build.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
incubator/beehive/trunk/netui/src/webapp-template/default/WEB-INF/src/build.xml
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/webapp-template/default/WEB-INF/src/build.xml?view=diff&r1=159269&r2=159270
==============================================================================
--- 
incubator/beehive/trunk/netui/src/webapp-template/default/WEB-INF/src/build.xml 
(original)
+++ 
incubator/beehive/trunk/netui/src/webapp-template/default/WEB-INF/src/build.xml 
Mon Mar 28 09:45:05 2005
@@ -1,26 +1,62 @@
-<?xml version="1.0"?>
+<?xml version="1.0" ?>
 
-<project name="Beehive/NetUI/Webapp" default="build" basedir="../..">
-
-    <import 
-
-    <property name="buildWebapp.ant" 
location="${beehive.home}/test/ant/buildWebapp.xml"/>
-
-    <property name="webapp.dir" value="${basedir}"/>
-    <property name="context.path" value="beehiveWeb"/>
-
-    <import file="${beehive.home}/test/ant/tomcat-imports.xml"/>
-
-    <target name="build" description="Build the webapp">
-        <ant antfile="${buildWebapp.ant}" target="build.webapp">
-            <property name="webapp.dir" location="${basedir}"/>
-        </ant>
-    </target>
-
-    <target name="clean" description="Clean the webapp">
-        <ant antfile="${buildWebapp.ant}" target="clean.webapp">
-            <property name="webapp.dir" location="${basedir}"/>
-        </ant>
-    </target>
-
-</project>
+<!--
+   Copyright 2005 The Apache Software Foundation 
+ 
+   Licensed 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.
+ 
+   $Header:$
+ -->
+
+<project name="Beehive petstoreWeb sample" default="build" basedir="../..">
+
+  <property file="${basedir}/WEB-INF/src/build.properties"/>
+  <import file="${beehive.dir}/beehive-imports.xml"/>
+  
+  <property name="webapp.dir" location="${basedir}"/>
+  
+  <!-- ========================================= -->
+  <!-- build - build the webapp                  -->
+  <!-- ========================================= -->
+
+  <target name="build" description="Build the webapp">
+    <deploy-netui webappDir="${webapp.dir}"/>
+    <build-webapp webappDir="${webapp.dir}"/>
+  </target>
+
+  
+  <!-- ========================================= -->
+  <!-- clean - clean the webapp                  -->
+  <!-- ========================================= -->
+
+  <target name="clean" description="Clean the webapp">
+    <clean-webapp webappDir="${webapp.dir}"/>
+  </target>
+
+  <!-- =========================================== -->
+  <!-- deploy targets - move the app to the server -->
+  <!-- =========================================== -->
+  
+  <target name="deploy" description="Deploy the webapp to a running server">
+    <deploy-webapp webappDir="${webapp.dir}" contextPath="${context.path}"/>
+  </target>
+
+  <target name="undeploy" description="Undeploy the webapp from a running 
server">
+    <undeploy-webapp contextPath="${context.path}"/>
+  </target>
+
+  <target name="redeploy" description="Redeploy the webapp on a running 
server">
+    <redeploy-webapp contextPath="${context.path}"/>
+  </target>
+  
+</project>
\ No newline at end of file


Reply via email to