Zdravim,
Nenasel by se nekdo kdo by mohl poskytnout vzorovy build file do ANTu, ktery by resil start/zastaveni/restart tomcatu, prevod properties ...?
Diky.
PS: Kdy se muzu tesit na dalsi pokracovani?
Vlákno názorů k článku
Apache Struts 1.1: úvod
nebyl by nejaky vzorovy build.xml
Re: nebyl by nejaky vzorovy build.xml
Co na me vyplivnul google na dotaz "tomcat ant restart": http://www.purpletech.com/irv/dev/irv/build.xml
Re: nebyl by nejaky vzorovy build.xml
To je dost sileny priklad buildfile :)
Re: nebyl by nejaky vzorovy build.xml
<target name="reload">
<taskdef name="start"
classpath="/usr/share/java/catalina-ant.jar"
classname="org.apache.catalina.ant.StartTask"/>
<taskdef name="stop" classpath="/usr/share/java/catalina-ant.jar"
classname="org.apache.catalina.ant.StopTask"/>
<stop url="http://...:8080/manager"
username="foo"
password="bar"
path="/"/>
<start url="http://...:8080/manager"
username="foo"
password="bar"
path="/"/>
</target>
<native2ascii
src="${build.dir}"
dest="${build.dir}"
includes="**/*latin2"
ext=".properties"/>
T.
Re: nebyl by nejaky vzorovy build.xml
Co treba pridat do tasku toto:
<exec os="Windows NT" executable="${catalina.home}/bin/shutdown.bat" />
<exec os="Windows NT" executable="${catalina.home}/bin/startup.bat" />
<exec os="Unix" executable="${catalina.home}/tools/bin/shutdown.sh" />
<exec os="Unix" executable="${catalina.home}/tools/bin/startup.sh" />
Petr
Re: nebyl by nejaky vzorovy build.xml
Jo jeste jsem zapomnel na tohle:
<property environment="env"/>
<property name="catalina.home" value="${env.CATALINA_HOME}" />

