You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by pl...@apache.org on 2003/05/05 04:57:34 UTC

cvs commit: maven/src/plugins-build/appserver/src/plugin-resources tomcat-4.0.x.jelly tomcat-4.1.x.jelly tomcat-4.x.jelly

plynch      2003/05/04 19:57:34

  Added:       src/plugins-build/appserver/src/plugin-resources
                        tomcat-4.0.x.jelly tomcat-4.1.x.jelly
  Removed:     src/plugins-build/appserver/src/plugin-resources
                        tomcat-4.x.jelly
  Log:
  o breaking out tomcat 4.1.x from tomcat 4.0.x cause I expect to use some smarter scripting, perhaps via Ant tasks, for tomcat 4.1.x
  o updating to better match the protocol found in the webserver plugin
  
  Revision  Changes    Path
  1.1                  maven/src/plugins-build/appserver/src/plugin-resources/tomcat-4.0.x.jelly
  
  Index: tomcat-4.0.x.jelly
  ===================================================================
  <?xml version="1.0"?>
  
  <project xmlns:j="jelly:core" xmlns:log="jelly:log" xmlns:ant="jelly:ant"
    xmlns:tomcat4x="http://www.maven.org/plugin/appserver/tomcat4x"
    xmlns:define="jelly:define" >
  
    <goal name="appserver:tomcat-4.0.x-reqs"
      description="Intialize resources for tomcat processing">
  
      <!-- Check if user has http.conf in a conf dir -->
      <ant:available file="${maven.appserver.conf.dir}/conf/server.xml"
        type="file" property="maven.appserver.tomcat4x.has.conf" value="true" />
  
      <ant:fail unless="maven.appserver.tomcat4x.has.conf">
  To use this appserver, you must have a project specific
  configuration file at the following location:
  
  ${maven.appserver.conf.dir}/conf/server.xml
      </ant:fail>
  
      <define:taglib uri="http://www.maven.org/plugin/appserver/tomcat4x">
  
        <!-- accept the force property with a value of true or false -->
        <define:tag name="install">
  
          <j:if test="${force == 'false'}">
            <!-- Create common directories and copy configuration files -->
            <mkdir dir="${maven.appserver.dir}/conf"/>
            <mkdir dir="${maven.appserver.dir}/work"/>
            <mkdir dir="${maven.appserver.dir}/temp"/>
            <mkdir dir="${maven.appserver.dir}/webapps"/>
            <mkdir dir="${maven.appserver.dir}/logs"/>
          </j:if>
  
          <!-- copy any user configuration files w/ filtering by forcing copy -->
          <!-- if reinstall -->
          <ant:copy todir="${maven.appserver.dir}" overwrite="${force}">
            <ant:fileset dir="${maven.appserver.conf.dir}" />
            <ant:filterset refid="maven.appserver.filterset.default" />
          </ant:copy>
  
        </define:tag>
      </define:taglib>
  
    </goal>
  
    <!--==================================================================-->
    <!-- R E I N S T A L L                                                -->
    <!--==================================================================-->
    <goal name="appserver:reinstall-tomcat-4.0.x"
      prereqs="appserver:tomcat-4.0.x-reqs" description="Reinstall Tomcat 4.0.x">
      <tomcat4x:install force="true"/>
    </goal>
  
    <!--==================================================================-->
    <!-- I N S T A L L                                                    -->
    <!--==================================================================-->
    <goal name="appserver:install-tomcat-4.0.x" prereqs="appserver:tomcat-4.0.x-reqs"
      description="Install Tomcat 4.0.x">
      <tomcat4x:install force="false"/>
    </goal>
  
    <!--==================================================================-->
    <!-- S T A R T                                                        -->
    <!--==================================================================-->
    <goal name="appserver:start-tomcat-4.0.x" prereqs="appserver:tomcat-4.0.x-reqs"
      description="Start Tomcat 4.0.x" >
  
      <java classname="org.apache.catalina.startup.Bootstrap" fork="yes"
          dir="${maven.appserver.dir}">
          <classpath>
            <pathelement path="${maven.appserver.classpath}"/>
            <fileset dir="${maven.appserver.home}">
              <include name="bin/bootstrap.jar"/>
            </fileset>
          </classpath>
          <jvmarg value="-Dcatalina.base=${maven.appserver.dir}"/>
          <jvmarg value="-Dcatalina.home=${maven.appserver.home}"/>
          <arg value="start"/>
        </java>
  
    </goal>
  
    <!--==================================================================-->
    <!-- R E S T A R T                                                    -->
    <!--==================================================================-->
    <goal name="appserver:restart-tomcat-4.0.x" description="Restart Tomcat 4.0.x"
      prereqs="appserver:tomcat-4.0.x-reqs" >
      <ant:fail message="Not yet supported." />
    </goal>
  
    <!--==================================================================-->
    <!-- S T O P                                                          -->
    <!--==================================================================-->
    <goal name="appserver:stop-tomcat-4.0.x" description="Stop Tomcat 4.0.x"
      prereqs="appserver:tomcat-4.0.x-reqs" >
  
      <java classname="org.apache.catalina.startup.Bootstrap" fork="yes"
          dir="${maven.appserver.dir}">
          <classpath>
            <pathelement path="${maven.appserver.classpath}"/>
            <fileset dir="${maven.appserver.home}">
              <include name="bin/bootstrap.jar"/>
            </fileset>
          </classpath>
          <jvmarg value="-Dcatalina.base=${maven.appserver.dir}"/>
          <jvmarg value="-Dcatalina.home=${maven.appserver.home}"/>
          <arg value="stop"/>
        </java>
    </goal>
  
    <!--==================================================================-->
    <!-- C L E A N                                                        -->
    <!--==================================================================-->
    <goal name="appserver:clean-tomcat-4.0.x" description="Clean Tomcat 4.0.x"
      prereqs="appserver:tomcat-4.0.x-reqs" >
  
    </goal>
  
  </project>
  
  
  
  1.1                  maven/src/plugins-build/appserver/src/plugin-resources/tomcat-4.1.x.jelly
  
  Index: tomcat-4.1.x.jelly
  ===================================================================
  <?xml version="1.0"?>
  
  <project xmlns:j="jelly:core" xmlns:log="jelly:log" xmlns:ant="jelly:ant"
    xmlns:tomcat41x="http://www.maven.org/plugin/appserver/tomcat41x"
    xmlns:define="jelly:define" >
  
    <goal name="appserver:tomcat-4.1.x-reqs"
      description="Intialize resources for tomcat processing">
  
      <!-- Check if user has http.conf in a conf dir -->
      <ant:available file="${maven.appserver.conf.dir}/conf/server.xml"
        type="file" property="maven.appserver.tomcat41x.has.conf" value="true" />
  
      <ant:fail unless="maven.appserver.tomcat41x.has.conf">
  To use this appserver, you must have a project specific
  configuration file at the following location:
  
  ${maven.appserver.conf.dir}/conf/server.xml
      </ant:fail>
  
      <define:taglib uri="http://www.maven.org/plugin/appserver/tomcat41x">
  
        <!-- accept the force property with a value of true or false -->
        <define:tag name="install">
  
          <j:if test="${force == 'false'}">
            <!-- Create common directories and copy configuration files -->
            <mkdir dir="${maven.appserver.dir}/conf"/>
            <mkdir dir="${maven.appserver.dir}/work"/>
            <mkdir dir="${maven.appserver.dir}/temp"/>
            <mkdir dir="${maven.appserver.dir}/webapps"/>
            <mkdir dir="${maven.appserver.dir}/logs"/>
          </j:if>
  
          <!-- copy any user configuration files w/ filtering by forcing copy -->
          <!-- if reinstall -->
          <ant:copy todir="${maven.appserver.dir}" overwrite="${force}">
            <ant:fileset dir="${maven.appserver.conf.dir}" />
            <ant:filterset refid="maven.appserver.filterset.default" />
          </ant:copy>
  
        </define:tag>
      </define:taglib>
  
    </goal>
  
    <!--==================================================================-->
    <!-- R E I N S T A L L                                                -->
    <!--==================================================================-->
    <goal name="appserver:reinstall-tomcat-4.1.x"
      prereqs="appserver:tomcat-4.1.x-reqs" description="Reinstall Tomcat 4.1.x">
      <tomcat41x:install force="true"/>
    </goal>
  
    <!--==================================================================-->
    <!-- I N S T A L L                                                    -->
    <!--==================================================================-->
    <goal name="appserver:install-tomcat-4.1.x" prereqs="appserver:tomcat-4.1.x-reqs"
      description="Install Tomcat 4.1.x">
      <tomcat41x:install force="false"/>
    </goal>
  
    <!--==================================================================-->
    <!-- S T A R T                                                        -->
    <!--==================================================================-->
    <goal name="appserver:start-tomcat-4.1.x" prereqs="appserver:tomcat-4.1.x-reqs"
      description="Start Tomcat 4.1.x" >
  
      <java classname="org.apache.catalina.startup.Bootstrap" fork="yes"
          dir="${maven.appserver.dir}">
          <classpath>
            <pathelement path="${maven.appserver.classpath}"/>
            <fileset dir="${maven.appserver.home}">
              <include name="bin/bootstrap.jar"/>
            </fileset>
          </classpath>
          <jvmarg value="-Dcatalina.base=${maven.appserver.dir}"/>
          <jvmarg value="-Dcatalina.home=${maven.appserver.home}"/>
          <arg value="start"/>
        </java>
  
    </goal>
  
    <!--==================================================================-->
    <!-- R E S T A R T                                                    -->
    <!--==================================================================-->
    <goal name="appserver:restart-tomcat-4.1.x" description="Restart Tomcat 4.1.x"
      prereqs="appserver:tomcat-4.1.x-reqs" >
      <ant:fail message="Not yet supported." />
    </goal>
  
    <!--==================================================================-->
    <!-- S T O P                                                          -->
    <!--==================================================================-->
    <goal name="appserver:stop-tomcat-4.1.x" description="Stop Tomcat 4.1.x"
      prereqs="appserver:tomcat-4.1.x-reqs" >
  
      <java classname="org.apache.catalina.startup.Bootstrap" fork="yes"
          dir="${maven.appserver.dir}">
          <classpath>
            <pathelement path="${maven.appserver.classpath}"/>
            <fileset dir="${maven.appserver.home}">
              <include name="bin/bootstrap.jar"/>
            </fileset>
          </classpath>
          <jvmarg value="-Dcatalina.base=${maven.appserver.dir}"/>
          <jvmarg value="-Dcatalina.home=${maven.appserver.home}"/>
          <arg value="stop"/>
        </java>
    </goal>
  
    <!--==================================================================-->
    <!-- C L E A N                                                        -->
    <!--==================================================================-->
    <goal name="appserver:clean-tomcat-4.1.x" description="Clean Tomcat 4.1.x"
      prereqs="appserver:tomcat-4.1.x-reqs" >
  
    </goal>
  
  </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org