ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciramella, EJ" <ECirame...@emptoris.com>
Subject RE: tomcat automation...
Date Wed, 26 Mar 2003 19:51:52 GMT
  <!-- set global properties for this build -->
  <property file="build.properties"/>
  <property environment="env"/>
  <property name="url"      value="http://localhost:8080/manager"/>
  <property name="username" value="admin"/>
  <property name="password" value="*********"/>
  
  <property name="path"     value="/relengweb"/>

  <!-- Configure the custom Ant tasks for the Manager application -->
  <taskdef name="deploy"    classname="org.apache.catalina.ant.DeployTask"/>
  <taskdef name="install"
classname="org.apache.catalina.ant.InstallTask"/>
  <taskdef name="list"      classname="org.apache.catalina.ant.ListTask"/>
  <taskdef name="reload"    classname="org.apache.catalina.ant.ReloadTask"/>
  <taskdef name="remove"    classname="org.apache.catalina.ant.RemoveTask"/>
  <taskdef name="resources"
classname="org.apache.catalina.ant.ResourcesTask"/>
  <taskdef name="roles"     classname="org.apache.catalina.ant.RolesTask"/>
  <taskdef name="start"     classname="org.apache.catalina.ant.StartTask"/>
  <taskdef name="stop"      classname="org.apache.catalina.ant.StopTask"/>
  <taskdef name="undeploy"
classname="org.apache.catalina.ant.UndeployTask"/>

  <target name="build" depends="war">
   <echo message="finished deploying the war file"/>
  </target>

<!--
****************************************************************************
* -->
<!-- *******************   War and Ear file creation steps
********************* -->
<!--
****************************************************************************
* -->
  <target name="war">
  <mkdir dir="warfile"/>
  <war destfile="warfile/relengweb.war" webxml="relengweb/WEB-INF/web.xml">
    <fileset dir="relengweb" excludes="**/web.xml"/>
  </war>
  <!-- copy file="warfile/relengweb.war" todir="/Tomcat41/webapps"/ -->
  </target>
  
  
  <target name="install" description="Install web application">
    <install url="${url}" username="${username}" password="${password}"
            path="${path}" war="file://releng-site/warfile"/>
  </target>
    <target name="list" description="Start web application">
    <list  url="${url}" username="${username}" password="${password}"/>
  </target>
  
  <target name="start" description="Start web application">
    <start  url="${url}" username="${username}" password="${password}"
            path="${path}"/>
  </target>
  
  <target name="reload" description="Reload web application">
    <reload  url="${url}" username="${username}" password="${password}"
            path="${path}"/>
  </target>
  <target name="remove" description="Remove web application">
    <remove url="${url}" username="${username}" password="${password}"
            path="${path}"/>
  </target>

-----Original Message-----
From: Anderson, Rob H - VSCM [mailto:Anderson.Rob@vectorscm.com]
Sent: Wednesday, March 26, 2003 2:47 PM
To: 'Ant Users List'
Subject: RE: tomcat automation...


What does your build.xml look like?

-Rob A

-----Original Message-----
From: Ciramella, EJ [mailto:ECiramella@emptoris.com]
Sent: Wednesday, March 26, 2003 11:45 AM
To: 'Ant Users List'
Subject: RE: tomcat automation...


these are the types of errors I get:

start:
    [start] FAIL - Application at context path /relengweb could not be
started


BUILD FAILED
file:D:/releng-site/build.xml:55: FAIL - Application at context path
/relengweb could not be started


even with verbose and debug there's no more usefull information.


-----Original Message-----
From: Anderson, Rob H - VSCM [mailto:Anderson.Rob@vectorscm.com]
Sent: Wednesday, March 26, 2003 2:39 PM
To: 'Ant Users List'
Subject: RE: tomcat automation...


I think the tomcat target you are asking about would need to be created in
your build.xml. I think the <copy> task would be usefull for this. I would
probably do something like...

<target name="tomcat-deploy" depends="war" description="deploys built war
file to tomcat/webapps">
	<copy file="${war.file}"
		todir="${tomcat.home}/webapps"/>
</target>

I hope this helps.

-Rob A

-----Original Message-----
From: Ciramella, EJ [mailto:ECiramella@emptoris.com]
Sent: Wednesday, March 26, 2003 9:26 AM
To: 'Ant Users List'
Subject: tomcat automation...


is there a tomcat deploy target somewhere?  I'd like to add a target that
copies up my war file when the build is done and I can't seem to locate
it...

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message