Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 4th, 2013  |  syntax: None  |  size: 0.94 KB  |  views: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. -Dj2ee.server.home=<app_server_installation_directory>
  2.        
  3. <target name="-post-clean">
  4.     <deltree dir="download" />
  5.     <deltree dir="temp" />
  6. </target>
  7.  
  8. <!--<target name="-pre-init" depends="check-dependencies" if="tomcat.present">-->
  9. <target name="-pre-init">        
  10.     <property name="custom-tomcat-version" value="apache-tomcat-7.0.33" />
  11.  
  12.     <mkdir dir="temp"/>
  13.     <get src="http://apache.rediris.es/tomcat/tomcat-7/v7.0.33/bin/apache-tomcat-7.0.33.zip" dest="temp/${custom-tomcat-version}.zip"/>
  14.  
  15.     <unzip dest="download/image" src="temp/${custom-tomcat-version}.zip">
  16.         <patternset>
  17.             <include name="apache-tomcat-7.*/lib/*"/>
  18.         </patternset>
  19.         <mapper>
  20.             <globmapper from="apache-tomcat-7.*/lib/*" to="*"/>
  21.         </mapper>
  22.     </unzip>
  23.  
  24.     <!-- NB Ant script requieres this propertie to be assigned -->
  25.     <property name="j2ee.server.home" value="download/image/${custom-tomcat-version}"/>
  26. </target>
clone this paste RAW Paste Data