You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Roger Pack <ro...@gmail.com> on 2005/09/20 21:52:05 UTC
doc change suggestion appdev
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: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org
Re: doc change suggestion appdev
Posted by Yoav Shapira <yo...@apache.org>.
Hi,
Wrong list ;) Please send this to tomcat-user or open a Bugzilla issue for it.
Thanks,
Yoav
--- Roger Pack <ro...@gmail.com> wrote:
> 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 <ro...@gmail.com> 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: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org
Re: doc change suggestion appdev
Posted by Roger Pack <ro...@gmail.com>.
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 <ro...@gmail.com> 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: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org