Ant

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(New page: Resin 3.1.5 includes a resin-ant.jar in ${resin.home}/plugins/resin-ant.jar with several useful task: == resin-jspc == <project name="test" default="test" basedir="."> <property na...)
 
(added ant-deploy)
Line 21: Line 21:
 
   
 
   
 
   </project>
 
   </project>
 +
 +
Resin 4 will include an Ant deploy client that can deploy applications to a Resin cloud.
 +
 +
== resin-deploy ==
 +
<?xml version="1.0"?>
 +
<project name="test" default="test" basedir=".">
 +
  <property name="resin.home" value="/usr/share/resin"/>
 +
  <target name="test">
 +
    <taskdef name="resin-deploy" classname="com.caucho.ant.ResinDeploy">
 +
      <classpath>
 +
        <fileset dir="${resin.home}">
 +
          <include name="lib/*.jar"/>
 +
          <include name="plugins/resin-ant.jar"/>
 +
        </fileset>
 +
      </classpath>
 +
    </taskdef>
 +
 +
    <resin-deploy server="localhost"
 +
                  port="8080"
 +
                  user="admin"
 +
                  password="myadminpass"
 +
                  warFile="cloudapp.war"/>
 +
  </target>
 +
</project>

Revision as of 00:27, 4 August 2009

Resin 3.1.5 includes a resin-ant.jar in ${resin.home}/plugins/resin-ant.jar with several useful task:

resin-jspc

<project name="test" default="test" basedir=".">
    <property name="resin.home" value="/usr/local/share/resin"/>

    <target name="test">
         <taskdef name="resin-jspc"
                          classname="com.caucho.ant.Jspc">
             <classpath>
                   <fileset dir="${resin.home}">
                       <include name="plugins/resin-ant.jar"/>
                       <include name="lib/*.jar"/>
                   </fileset>
             </classpath>
         </taskdef>

         <resin-jspc rootDirectory="/home/ferg/ws/dist/my-webapp"/>
    </target>

 </project>

Resin 4 will include an Ant deploy client that can deploy applications to a Resin cloud.

resin-deploy

<?xml version="1.0"?>
<project name="test" default="test" basedir=".">
  <property name="resin.home" value="/usr/share/resin"/>
  <target name="test">
    <taskdef name="resin-deploy" classname="com.caucho.ant.ResinDeploy">
      <classpath>
        <fileset dir="${resin.home}">
          <include name="lib/*.jar"/>
          <include name="plugins/resin-ant.jar"/>
        </fileset>
      </classpath>
    </taskdef>

    <resin-deploy server="localhost"
                  port="8080"
                  user="admin"
                  password="myadminpass"
                  warFile="cloudapp.war"/>
  </target>
</project>
Personal tools