commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-commons/modeler build.xml
Date Fri, 20 Dec 2002 21:37:58 GMT
costin      2002/12/20 13:37:58

  Modified:    modeler  build.xml
  Log:
  Few tweaks in the build file to make it more consistent with
  tomcat ( and other ) build properties.
  
  Revision  Changes    Path
  1.6       +9 -63     jakarta-commons/modeler/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/build.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- build.xml	13 Nov 2002 06:24:14 -0000	1.5
  +++ build.xml	20 Dec 2002 21:37:58 -0000	1.6
  @@ -10,23 +10,24 @@
   <!-- ========== Initialize Properties ===================================== -->
   
   
  +  <property file="${user.home}/build.properties"/>   <!-- User local        -->
     <property file="build.properties"/>                <!-- Component local   -->
     <property file="../build.properties"/>             <!-- Commons local     -->
  -  <property file="${user.home}/build.properties"/>   <!-- User local        -->
   
   
   <!-- ========== External Dependencies ===================================== -->
   
   
     <!-- The directories corresponding to your necessary dependencies -->
  -  <property name="jaxp.home"               value="/usr/local/jaxp-1.1"/>
  -  <property name="junit.home"              value="/usr/local/junit3.7"/>
  -  <property name="commons.home"            value="../../jakarta-commons"/>
  -  <property name="sandbox.home"            value="../../jakarta-commons-sandbox"/>
  +  <property name="base.path"               value="/usr/local" />
  +  <property name="jaxp.home"               value="${base.path}/jaxp-1.1"/>
  +  <property name="junit.home"              value="${base.path}/junit3.7"/>
  +  <property name="commons.home"            location="../../jakarta-commons"/>
  +  <property name="sandbox.home"            location="../../jakarta-commons-sandbox"/>
     <property name="beanutils.home"          value="${commons.home}/beanutils"/>
     <property name="collections.home"        value="${commons.home}/collections"/>
     <property name="digester.home"           value="${commons.home}/digester"/>
  -  <property name="jmx.home"                value="/usr/local/jmx-ri_1.0.1/jmx"/>
  +  <property name="jmx.home"                value="${base.path}/jmx-ri_1.0.1/jmx"/>
     <property name="logging.home"            value="${commons.home}/logging"/>
   
   <!-- ========== Derived Values ============================================ -->
  @@ -41,7 +42,7 @@
     <property name="commons-beanutils.jar"   value="${beanutils.home}/dist/commons-beanutils.jar"/>
     <property name="commons-collections.jar" value="${collections.home}/dist/commons-collections.jar"/>
     <property name="commons-digester.jar"    value="${digester.home}/dist/commons-digester.jar"/>
  -  <property name="commons-logging.jar"     value="${logging.home}/dist/commons-logging.jar"/>
  +  <property name="commons-logging.jar"     value="${logging.home}/target/commons-logging.jar"/>
   
   
   <!-- ========== Component Declarations ==================================== -->
  @@ -254,61 +255,6 @@
         <arg value="org.apache.commons.modeler.RegistryTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
  -  </target>
  -
  -  <target name="ant.test" depends="init">
  -    <property name="tomcat.home" location="../../jakarta-tomcat-5/build" />
  -
  -    <path id="jmx.test.classpath">
  -      <pathelement location="target/classes" />
  -      <fileset dir="${tomcat.home}/common/lib" includes="*.jar"/>
  -      <fileset dir="${tomcat.home}/server/lib" includes="*.jar"/>
  -      <fileset dir="${tomcat.home}/bin" includes="*.jar"/>
  -      <pathelement location="${commons-logging.jar}" />
  -      <pathelement location="${jmx.jar}" />
  -      <pathelement location="${ide.classes}" />
  -    </path>
  -
  -    <taskdef resource="META-INF/ant.properties"
  -             classpathref="jmx.test.classpath" />
  -
  -    <MLET code="mx4j.adaptor.http.HttpAdaptor"
  -          name="Http:name=HttpAdaptor" />
  -
  -    <MLET code="mx4j.adaptor.http.XSLTProcessor"
  -          name="Http:name=XSLTProcessor"/>
  -
  -    <jmxSet name="Http:name=HttpAdaptor"
  -            attribute="Port"
  -            type="int"
  -            value="9999" />
  -
  -    <jmxSet name="Http:name=HttpAdaptor"
  -            attribute="ProcessorName"
  -            type="ObjectName"
  -            value="Http:name=XSLTProcessor" />
  -
  -    <jmx name="Http:name=HttpAdaptor"
  -         method="start" />
  -
  -    <!-- start catalina -->
  -
  -    <MLET code="org.apache.commons.modeler.BaseModelMBean"
  -          name="catalina: type=server" >
  -       <arg value="org.apache.catalina.startup.Catalina" />
  -    </MLET>
  -
  -    <jmxSet name="catalina: type=server"
  -            attribute="catalinaHome"
  -            value="${tomcat.home}"/>
  -
  -    <jmx name="catalina: type=server"
  -         method="start" />
  -
  -    <echo>Tomcat started</echo>
  -
  -    <sleep hours="1"/>
  -        
     </target>
   
   <!-- ========== Demonstration Targets ===================================== -->
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message