Author: pete.muir(a)jboss.org
Date: 2009-04-06 15:10:32 -0400 (Mon, 06 Apr 2009)
New Revision: 2324
Modified:
examples/trunk/build.properties
examples/trunk/build.xml
examples/trunk/pom.xml
Log:
support for tomcat example
Modified: examples/trunk/build.properties
===================================================================
--- examples/trunk/build.properties 2009-04-06 19:09:51 UTC (rev 2323)
+++ examples/trunk/build.properties 2009-04-06 19:10:32 UTC (rev 2324)
@@ -1 +1,2 @@
jboss.home=/Applications/jboss-5.0.1.GA
+tomcat.home=/Applications/apache-tomcat-6.0.18
Modified: examples/trunk/build.xml
===================================================================
--- examples/trunk/build.xml 2009-04-06 19:09:51 UTC (rev 2323)
+++ examples/trunk/build.xml 2009-04-06 19:10:32 UTC (rev 2324)
@@ -39,11 +39,23 @@
</copy>
</target>
+ <target name="tomcat.explode" depends="package">
+ <mkdir dir="${tomcat.home}/webapps/${example.name}"/>
+ <copy todir="${tomcat.home}/webapps/${example.name}">
+ <fileset dir="${artifact.dir}" />
+ </copy>
+ </target>
+
<target name="deploy" depends="package">
<copy todir="${jboss.home}/server/default/deploy/"
file="${artifact.target.dir}/${example.name}.${type}"/>
<echo message="The app can be accessed at ${final.url}" />
</target>
+ <target name="tomcat.deploy" depends="package">
+ <copy todir="${tomcat.home}/webapps/"
file="${artifact.target.dir}/${example.name}.${type}"/>
+ <echo message="The app can be accessed at ${final.url}" />
+ </target>
+
<target name="clean">
<maven target="clean" basedir="${basedir}"/>
</target>
@@ -52,6 +64,10 @@
<touch
file="${jboss.home}/server/default/deploy/${example.name}.war/WEB-INF/web.xml"
/>
</target>
+ <target name="tomcat.restart" depends="tomcat.explode"
if="war">
+ <touch file="${tomcat.home}/webapps/${example.name}/WEB-INF/web.xml"
/>
+ </target>
+
<target name="restart.ear" depends="explode"
if="ear">
<touch
file="${jboss.home}/server/default/deploy/${example.name}.ear/META-INF/application.xml"
/>
</target>
@@ -65,6 +81,11 @@
<delete
file="${jboss.home}/server/default/deploy/${example.name}.${type}"
failonerror="false" />
</target>
+ <target name="tomcat.undeploy">
+ <delete dir="${tomcat.home}/webapps/${example.name}"
failonerror="false" />
+ <delete file="${tomcat.home}/webapps/${example.name}"
failonerror="false" />
+ </target>
+
<macrodef name="maven">
<attribute name="target" />
<attribute name="basedir" />
Modified: examples/trunk/pom.xml
===================================================================
--- examples/trunk/pom.xml 2009-04-06 19:09:51 UTC (rev 2323)
+++ examples/trunk/pom.xml 2009-04-06 19:10:32 UTC (rev 2324)
@@ -47,6 +47,7 @@
<modules>
<module>numberguess</module>
<module>jsf2</module>
+ <module>tomcat</module>
<module>translator</module>
<module>login</module>
<module>conversations</module>
Show replies by date