免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
Ant多項(xiàng)功能配置
Ant多項(xiàng)功能配置 
 以下是Ant對(duì)多項(xiàng)應(yīng)用的配置:
<?xml version="1.0" encoding="UTF-8"?>
<project name="GP Test" default="" basedir=".">
 <property file="build.properties"/>
 <property name="compile.debug" value="true"/>
 <property name="compile.deprecation" value="false"/>
 <property name="compile.optimize" value="true"/>
 
 <path id="compile.classpath">
  <pathelement location="${lib.home}"/>
  <fileset dir="${lib.home}">
   <include name="**/*.jar"/>
  </fileset>
 </path>
 
 <target name="clean" description="Clean the deploy dist.">
  <delete dir="${classes.home}"/>
  <delete dir="${tomcat.webapps}/${project.name}"/>
 </target>
 
 <target name="compile" description="Compile the java source.">
  <mkdir dir="${classes.home}"/>
  <javac srcdir="${src.home}"
   destdir="${classes.home}"
   debug="${compile.debug}"
   deprecation="${compile.deprecation}"
   optimize="${compile.optimize}"
  >
   <classpath refid="compile.classpath"/>
  </javac>
 
  <copy todir="${classes.home}">
   <fileset dir="${src.home}" excludes="*.properties"/>
   <fileset dir="${src.home}" excludes="*.xml"/>
   <fileset dir="${src.home}" excludes="**/*.java"/>
  </copy>
 </target>
 
 <target name="deploy" depends="compile"
   description="Deploy application to servlet container">
     <!-- Copy the contents of the build directory -->
     <mkdir     dir="${tomcat.webapps}/${project.name}"/>
  <mkdir     dir="${tomcat.webapps}/${project.name}/log"/>
  <mkdir     dir="${tomcat.webapps}/${project.name}/WEB-INF/reports"/>
     <mkdir     dir="${tomcat.webapps}/${project.name}/WEB-INF/classes"/>
     <mkdir     dir="${tomcat.webapps}/${project.name}/WEB-INF/lib"/>
    
     <copy    todir="${tomcat.webapps}/${project.name}/WEB-INF">
       <fileset dir="${webroot.webhome}/WEB-INF" includes="*.xml"/>
       <fileset dir="${webroot.webhome}/WEB-INF" includes="*.properties"/>
       <fileset dir="${webroot.webhome}/WEB-INF" includes="*.tld"/>
       <fileset dir="${webroot.webhome}/WEB-INF" includes="*.wsdd"/>
       <fileset dir="${webroot.webhome}/WEB-INF" includes="*.dtd"/>
       <!--fileset dir="${config.home}/properties" includes="*.*"/ -->
       <fileset dir="${src.home}" includes="*.properties"/>
       <fileset dir="${src.home}" includes="*.xml"/>
     </copy>
 
  <copy todir="${tomcat.webapps}/${project.name}">
   <fileset dir="${webroot.webhome}" includes="**/*.jsp"/>
   <fileset dir="${webroot.webhome}" includes="**/*.js"/>
   <fileset dir="${webroot.webhome}" includes="**/*.css"/>
   <fileset dir="${webroot.webhome}" includes="**/*.gif"/>
  </copy>
 
  <copy todir="${tomcat.webapps}/${project.name}/WEb-INF/reports">
   <fileset dir="${reports.home}" includes="*.*"/>
  </copy>
        
     <copy    todir="${tomcat.webapps}/${project.name}/WEB-INF/classes">
        <fileset dir="${classes.home}" excludes="**/*.properties"/>
      <fileset dir="${classes.home}" excludes="**/*.xml"/>
     </copy>
   
    <copy    todir="${tomcat.webapps}/${project.name}/WEB-INF/lib">
     <fileset dir="${lib.home}" excludes="postgresql-8.0-311.jdbc3.jar"/>  
    </copy>
   </target>
 <!--Hibernate配置-->
 <target name="codegen" description="Generate Java source code from the Hibernate mapping files">                    
     <taskdef name="hibernatetool"
         classname="org.hibernate.tool.ant.HibernateToolTask"
         classpathref="compile.classpath"/>
     <hibernatetool destdir="${src.home}">
         <configuration propertyFile="build.properties">
             <fileset dir="${hibernate.mapping.home}">
               <include name="${hibernate.mapping.file}"/>
             </fileset>
         </configuration>
         <hbm2java />
     </hibernatetool>
 </target>
 
 <target name="hibernateCreator" description="Generate java source code and mapping files from the config file">
  <taskdef name="hibernatetool"
   classname="org.hibernate.tool.ant.HibernateToolTask"
  classpathref="compile.classpath"/>
  <hibernatetool destdir="${src.home}" classpath="${lib.home}" taskname="hibernatetool">
   <jdbcconfiguration configurationfile="${config.home}/hibernate.hbm.xml"
    revengfile="${config.home}/hibernate.reveng.xml"
    packagename="com.technodex.gp.hbm"/>
   <!--cfg2cfgxml/-->
   <cfg2hbm/>
   <hbm2java/>
   <hbm2ddl/>
   <hbm2doc/>
  </hibernatetool>
 </target>
 <!--Axis配置-->
 <target name="axisDeploy" description="Deploy axis service" depends="compile">
  <echo message="**/*Deploy the axis service..."/>
  <java classname="org.apache.axis.utils.Admin"
   failonerror="true"
   fork="true"
   classpathref="compile.classpath"
   dir="${webroot.webhome}/WEB-INF/">
   <arg value="server"/>
   <arg file="${webservice.wsdd.path}"/>
  </java>
 </target>
 
 <taskdef resource="axis-tasks.properties" classpathref="compile.classpath"/>
 
 <target name="javaToWsdl" description="Create the wsdl file from the java class" depends="compile">
  <echo level="info" message="**/*Create the wsdl file..."/>
  <axis-java2wsdl classname="${webservice.java.class}"
   classpath="${classes.home}"
   classpathref="compile.classpath"
   location="${webservice.wsdl.location}"
   namespace="urn:com.technodex.gp.webservice"
   output="${schema.home}/${webservice.wsdl.file.name}"
   serviceelementname="${webservice.wsdl.service.name}"
   serviceportname="${webservice.wsdl.service.port.name}"
   style="rpc"
   use="encoded"
  />
 </target>
 
 <target name="wsdlToJava" description="Create the java class from wsdl file">
  <echo level="debug" message="**/*Create the java classes..."/>
  <axis-wsdl2java allowinvalidurl="on"
   debug="true"
   failonnetworkerrors="true"
   output="${webservice.java.class.output}"
   printstacktraceonfailure="true"
   timeout="30"
   testcase="true"
   verbose="true"
   url="${webservice.wsdl.file.url}">
   <mapping namespace="  </axis-wsdl2java>
 </target>
 <!--JasperReport配置-->
 <target name="jasperReportsCompile" description="Compile the jasperreports source files">
  <echo level="info" message="**/*Compile the jasperreports files..."/>
  <taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask">
   <classpath>
    <fileset dir="${lib.home}">
     <include name="*.jar"/>
    </fileset>
   </classpath>
  </taskdef>
  <jrc srcdir="${reports.home}" destdir="${reports.home}" keepjava="no"/>
 </target>
</project>
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
ant shell 實(shí)現(xiàn)增量減量部署
使用ANT腳本自動(dòng)預(yù)編譯jsp文件
ant通用模板
ant項(xiàng)目打包實(shí)例
整理一個(gè)ANT在J2EE項(xiàng)目中的應(yīng)用,含預(yù)編譯JSP和打包WAR/EAR擋!
eclipseEE版本中使用ivy管理jar包
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服