costin      2002/11/12 22:24:14

  Modified:    modeler  build.xml
  Log:
  Add tomcat home, few fixes.
  
  Seems to be working now.
  
  Revision  Changes    Path
  1.5       +19 -6     jakarta-commons/modeler/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/build.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- build.xml 12 Nov 2002 22:53:41 -0000      1.4
  +++ build.xml 13 Nov 2002 06:24:14 -0000      1.5
  @@ -263,6 +263,7 @@
         <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}" />
  @@ -271,13 +272,9 @@
       <taskdef resource="META-INF/ant.properties"
                classpathref="jmx.test.classpath" />
   
  -    <MLET code="org.apache.commons.modeler.BaseModelMBean"
  -          name="catalina: type=server" >
  -       <arg value="org.apache.catalina.startup.Catalina" />
  -    </MLET>
  -
       <MLET code="mx4j.adaptor.http.HttpAdaptor"
             name="Http:name=HttpAdaptor" />
  +
       <MLET code="mx4j.adaptor.http.XSLTProcessor"
             name="Http:name=XSLTProcessor"/>
   
  @@ -293,6 +290,22 @@
   
       <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"/>
           
  
  
  

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

Reply via email to