Changed deployment type
This commit is contained in:
parent
15d8e4da77
commit
f07bad0d90
2 changed files with 20 additions and 6 deletions
17
build.xml
17
build.xml
|
|
@ -13,6 +13,12 @@
|
|||
<property name="releaseDir" value="${outputRoot}/release" />
|
||||
<property name="deployPath" value="/var/lib/tomcat7/webapps/Zallery.war" />
|
||||
|
||||
<!-- Deployment properties -->
|
||||
<property name="tomcat.url" value="http://localhost:8080/manager/text" />
|
||||
<property name="tomcat.user" value="" />
|
||||
<property name="tomcat.pass" value="" />
|
||||
<property name="catalina.home" value="/usr/shared/tomcat7"/>
|
||||
|
||||
<!--define standard arguments for javac-->
|
||||
<presetdef name="javac">
|
||||
<javac includeantruntime="false" />
|
||||
|
|
@ -64,10 +70,13 @@
|
|||
</target>
|
||||
|
||||
<target name="deploy" depends="package">
|
||||
<delete file="${deployPath}" quiet="true" />
|
||||
<copy
|
||||
file="${releaseDir}/Zallery.war"
|
||||
toFile="${deployPath}" />
|
||||
<import file="${catalina.home}/bin/catalina-tasks.xml"/>
|
||||
<deploy url="${tomcat.url}"
|
||||
username="${tomcat.user}"
|
||||
password="${tomcat.pass}"
|
||||
path="/zallery"
|
||||
update="true"
|
||||
war="file:${releaseDir}/Zallery.war" />
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue