take 2 [had a bug in it makes me embarrassed]

 <property name="url.localhost" value = "http://localhost:8000"/>
 
 [which would require changing the manager.url instantiation line to become
  <property name="manager.url"   value="${url.localhost}/manager"/>
 ]

> and then an additional target to the build.xml file--one which would
> copy files into the deploy directory [which is vaguely useful for
> those when ant install doesn't work].  Mine is:

 <!-- =================================== deploy target called
CopyBuiltFilesToTomCat ====================== -->

  <target name="CopyBuiltFilesToTomCat"
    depends="dist"
    description="Copy built files to tomcat for deployment">

<delete file="${catalina.home}/webapps/${app.name}-${app.version}.war"/>
<echo>sleeping 9!</echo>
   <sleep seconds="9"/>
    <copy toDir="${catalina.home}/webapps/">
      <fileset dir="${dist.home}"
        includes=
        "${app.name}-${app.version}.war"/>
    </copy>

<echo>"copied to
${catalina.home}/webapps/${app.name}-${app.version}.war -- access it
at ${url.localhost}/${app.name}-${app.version}"</echo>
  </target>




On 9/20/05, Roger Pack <[EMAIL PROTECTED]> wrote:
> A few changes to the files at
> jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev
> would be:
> 1) the "example app" page's download is corrupted [the .jar file]
> 2) in the src code configuration--it should be noted that in order to
> run "ant" on build.xml given, you must first set catalina.home [there
> or in build.properties] and must
> Copy the file "server/lib/catalina-ant.jar" from your Tomcat 5
>     installation into the "lib" directory of your Ant installation.
> 
> These threw me for a loop.
> 
> Also I would suggest the addition of the property
> <property name="url.localhost" value = "http://localhost:8000"/>
> 
> [which would require changing the manager.url instantiation to become
>  <property name="manager.url"   value="${url.localhost}/manager"/>
> ]
> 
> and then an additional target to the build.xml file--one which would
> copy files into the deploy directory [which is vaguely useful for
> those when install doesn't work].  This would be the following:
> 
> <!-- =================================== deploy target called
> CopyBuiltFilesToTomCat ====================== -->
> 
>   <target name="CopyBuiltFilesToTomCat"
>     depends="dist"
>     description="Copy built files to tomcat for deployment">
> 
> <delete file="/lib/ant.jar"/>
>     <copy toDir="${catalina.home}/webapps/">
>       <fileset dir="${dist.home}"
>         includes=
>         "${app.name}-${app.version}.war"/>
>     </copy>
> <echo>copied to
> ${catalina.home}/webapps/${app.name}-${app.version}.war -- access it
> at ${url.localhost}/${app.name}-${app.version}</echo>
>   </target>
> 
> 
> 
> Thanks!
> -Roger
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to