User: jules_gosnell
Date: 01/09/18 16:06:49
Modified: jetty/src/build build.xml
Log:
add some synchronisation, logging improvements and general tidying up.
Revision Changes Path
1.14 +10 -113 contrib/jetty/src/build/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/contrib/jetty/src/build/build.xml,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- build.xml 2001/09/10 23:52:05 1.13
+++ build.xml 2001/09/18 23:06:49 1.14
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<!-- $Id: build.xml,v 1.13 2001/09/10 23:52:05 jules_gosnell Exp $ -->
+<!-- $Id: build.xml,v 1.14 2001/09/18 23:06:49 jules_gosnell Exp $ -->
<!-- ======================================================================= -->
@@ -26,11 +26,6 @@
<property name="test.client" value="tomcat-test"/>
<property name="build.compiler" value="classic"/>
-
- <echo message="jboss.home=${jboss.home}" />
- <echo message="jetty.home=${jetty.home}" />
- <echo message="jetty.jmx=${jetty.jmx}" />
- <echo message="classpath=${classpath}" />
</target>
@@ -131,114 +126,16 @@
includes="${test.client}.jar,${test.client}.war,client.jar,META-INF/application.xml"
/>
</target>
-
- <!-- =================================================================== -->
- <!-- builds a JBoss-Jetty distribution -->
- <!-- =================================================================== -->
- <target name="dist" depends="init">
-
- <property name="dist.dir" value="${basedir}/dist"/>
-
- <delete dir="${dist.dir}"/>
- <mkdir dir="${dist.dir}"/>
-
- <echo message="copying JBoss from ${jboss.home} to ${dist.dir}/jboss" />
- <copy todir="${dist.dir}/jboss"><fileset dir="${jboss.home}"/></copy>
- <echo message="touching dummy file in ${dist.dir}/jboss/db/jbossmq/" />
- <touch file="${dist.dir}/jboss/db/jbossmq/dummy"/>
- <echo message="copying Jetty from ${jetty.home} to ${dist.dir}/jetty" />
- <copy todir="${dist.dir}/jetty"><fileset dir="${jetty.home}"/></copy>
- <chmod file="${dist.dir}/jetty/cgi-bin/env.sh" perm="+x"/>
- <echo message="copying Jetty JMX from ${jetty.jmx} to ${dist.dir}/jetty-jmx" />
- <copy todir="${dist.dir}/jetty-jmx"><fileset dir="${jetty.jmx}"/></copy>
-
- <property name="cfg.src" value="${jboss.home}/conf/default"/>
- <property name="cfg.tgt" value="${dist.dir}/jboss/conf/jetty"/>
-
- <property name="conf.src" value="${cfg.src}/jboss.conf"/>
- <property name="conf.tgt" value="${cfg.tgt}/jboss.conf"/>
-
- <property name="jcml.src" value="${cfg.src}/jboss.jcml"/>
- <property name="jcml.tgt" value="${cfg.tgt}/jboss.jcml"/>
-
- <delete dir="${cfg.tgt}"/>
-
- <echo message="setting up conf directory ${cfg.tgt}" />
- <copy todir="${cfg.tgt}">
- <fileset dir="${cfg.src}">
- <exclude name="**/jetty.xml"/>
- <exclude name="**/jetty.properties"/>
- </fileset>
- </copy>
-
- <echo message="adding ${basedir}/src/etc/jetty.xml to ${cfg.tgt}" />
- <copy todir="${cfg.tgt}" file="${basedir}/src/etc/jetty.xml"/>
- <echo message="adding ${basedir}/src/jetty.properties to ${cfg.tgt}" />
- <copy todir="${cfg.tgt}" file="${basedir}/src/etc/jetty.properties"/>
- <echo message="installing README file" />
- <copy todir="${dist.dir}" file="${basedir}/src/etc/README"/>
- <echo message="installing VERSION file" />
- <copy todir="${dist.dir}" file="${basedir}/src/etc/VERSION"/>
-
- <echo>
-Adding Jetty MLET to jboss.conf
- </echo>
-
- <echo append="true" file="${conf.tgt}">
-<MLET CODE="org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
- <ARG TYPE="java.lang.String" VALUE="../../../jetty/lib/">
- <ARG TYPE="java.lang.String" VALUE="Jetty">
-</MLET>
-<MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
- <ARG TYPE="java.lang.String" VALUE="../../../jetty-jmx/lib/">
- <ARG TYPE="java.lang.String" VALUE="JettyJMX">
-</MLET>
- </echo>
-
- <echo>
-Setting Jetty as WAR Deployer
- </echo>
-
- <replace
- file="${jcml.tgt}"
- token="service=EmbeddedTomcat"
- value="service=Jetty"
- />
-
- <echo>
-Adding Jetty mbean to jboss.jcml
- </echo>
-
- <replace
- file="${jcml.tgt}"
- token="</server>"
- >
- <replacevalue>
- <mbean code="org.jboss.jetty.JettyService" name="JBOSS-SYSTEM:service=Jetty">
- <attribute name="JettyHome">../../jetty</attribute>
- <attribute
name="Configuration">file:../conf/jetty/jetty.xml</attribute>
- <attribute
name="WebDefault">../../jetty/etc/webdefault.xml</attribute>
- <attribute name="UnpackWars">true</attribute>
- <attribute name="PublishMBeans">true</attribute>
- </mbean>
-
-</server>
- </replacevalue>
-
- </replace>
-
- <antcall target="install">
- <param name="jboss.home" value="${dist.dir}/jboss"/>
- <param name="jetty.home" value="${dist.dir}/jetty"/>
- </antcall>
-
- <echo>
-Adding run script
- </echo>
- <copy todir="${dist.dir}" file="${basedir}/src/bin/run.sh"/>
- <chmod file="${dist.dir}/run.sh" perm="ugo+rx"/>
-
+ <target name="bounce" depends="compile, install">
+ <echo message="bouncing Jetty Service - ..."/>
+ <delete
file="/home/jules/cvs/JBoss/3.0/build/output/jboss-3.0.0alpha/deploy/jetty-service.xml"/>
+ <sleep seconds="5"/>
+ <copy
+ file="/home/jules/cvs/JBoss/3.0/server/src/etc/conf/default/jetty-service.xml"
+ todir="/home/jules/cvs/JBoss/3.0/build/output/jboss-3.0.0alpha/deploy/"
+ />
+ <echo message="bouncing Jetty Service - done"/>
</target>
</project>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development