build的那些东西

<?xml version="1.0"  encoding="UTF-8"?>  
<project name="build war" default="all" basedir=".">  
    <property name="src.dir" value="src" />  
    <property name="build.dir" value="test" />  
    <property name="webapp.dir" value="form" />  
    <property name="war.dir" value="sdpportal" />
    <property name="build.lib" value="${build.dir}/lib"/>
	<property name="otherlib.dir" value="shared/otherlib"/>
	<property name="webapps.dir" value="form"/>
	<property name="output.dir" value="output"/>
	<property name="aspregister.dir" value="aspregister"/>
	<property name="shared.dir" value="${output.dir}/webapps/sdpportal/WEB-INF/"/>	
	<property name="sharedzte.dir" value="${output.dir}/webapps/sdpportal/WEB-INF/classes/com/zte"/>
	<property name="movexml.dir" value="${src.dir}/com/zte"/>
	<property name="script.dir" value="script"/>
	<property name="manual.dir" value="manual"/>
	<property name="aspportal.dir" value="${output.dir}/webapps/aspportal"/>
	<property name="aspwebapps.dir" value="aspportal/form"/>
	<property name="aspclass.dir" value="${aspportal.dir}/WEB-INF/classes/com/zte/ump/aspportal"/>
	<property name="aspwebxml.dir" value="aspportal/change"/>
	
    <path id="classpath">  
        <fileset file="${webapp.dir}/WEB-INF/lib/*.jar" /> 
        <fileset file="${otherlib.dir}/*.jar" />
        <pathelement path="${build.dir}/classes" />  
    </path>  
    <target name="clean">  
        <delete dir="${build.dir}" />
        <delete dir="${build.lib}" />
        <delete dir="${output.dir}" />	
        <delete dir="${aspregister.dir}" />	
		<delete file="${basedir}/output.zip" />
		<delete file="${basedir}/aspportal_manager.zip" />
		<delete file="${basedir}/aspportal_register.zip" />
    </target>  
    <target name="compile" depends="clean">  
        <mkdir dir="${build.dir}/classes" />  
        <javac srcdir="${src.dir}" destdir="${build.dir}/classes" debug="true" includeAntRuntime="true" fork="true" memoryMaximumSize="512m">  
            <compilerarg line="-encoding UTF-8" />  
            <classpath refid="classpath" />  
        </javac>  
        <copy todir="${build.dir}/classes">      
            <fileset dir="${src.dir}"> 
                <include name="**/sqlmap/*.xml" />
                <include name="**/sybasesqlmap/*.xml" />				
            </fileset>      
        </copy>    
    </target>	
	<target name="sdpportal" depends="compile">
	    <mkdir dir="${build.lib}" /> 
		<jar jarfile="${build.lib}/sdpportal.jar" basedir="${build.dir}/classes">
		    <exclude name="**/*.svn"/>
			<exclude name="**/*.properties"/>
			<exclude name="**/*.config"/>			  
		</jar>		
	</target>	
	<target name="copyfiles">
		<copy todir="${build.dir}/classes">      
            <fileset dir="${src.dir}">				
                <include name="**/*.xml" />  
                <include name="**/*.properties" /> 
                <include name="**/*.config" />      
            </fileset>      
    </copy>
		<copy todir="${output.dir}/webapps/sdpportal" overwrite="true">			
			<fileset dir="${webapps.dir}">
			    <exclude name="**/*.svn"/>
			    <exclude name="**/*.class"/>
			</fileset> 
    	</copy>
    	
    	
    <copy todir="${output.dir}/webapps/aspportal/aspportal/aspportal" overwrite="true">			
			<fileset dir="${webapps.dir}/aspportal">
			     <include name="add_contract_template.jsp"/>
			     <include name="add_eapackage.jsp"/>
			     <include name="add_tool_and_resource.jsp"/>
			     <include name="error.jsp"/>
			     <include name="manage_contract_template.jsp"/>
			     <include name="manage_eapackage.jsp"/>
			     <include name="manage_tool_and_resource.jsp"/>
			     <include name="update_contract_template.jsp"/>
			     <include name="update_eapackage.jsp"/>
			     <include name="update_tool_and_resource.jsp"/>
			</fileset> 
    </copy>
    
   <copy todir="${output.dir}/webapps/aspportal/aspportal/aspportal/ftpxml" overwrite="true">			
			<fileset dir="${webapps.dir}/aspportal/ftpxml">
			      <include name="aspftp.xml"/>
			</fileset> 
   </copy>
   
    <!-- 用户注册页面部分 -->
     <copy todir="${aspregister.dir}/aspportal/user" overwrite="true">			
			<fileset dir="${webapps.dir}/aspportal/user">
			   	<exclude name="**/*.svn"/>
			    <exclude name="**/*.class"/>
			</fileset> 
    </copy>
    <copy todir="${aspregister.dir}/WEB-INF/classes/com/zte/ump/aspregister" overwrite="true">			
			<fileset dir="${build.dir}/classes/com/zte/ump/aspregister">
				 	<exclude name="**/*.svn"/>
			</fileset> 
   </copy>
   <copy todir="${aspregister.dir}/WEB-INF/classes/com/zte/sdp/aspportal" overwrite="true">			
			<fileset dir="${build.dir}/classes/com/zte/sdp/aspportal">
				 	<exclude name="**/*.svn"/>
			</fileset> 
   </copy>
    <copy todir="${aspregister.dir}/WEB-INF/classes" overwrite="true">			
			<fileset dir="${build.dir}/classes">
				 <include name="ump-aspportalregister-context.xml"/>
				 <include name="ump-aspportalregister-struts.xml"/>
			</fileset> 
   </copy>
  <copy todir="${aspregister.dir}/WEB-INF/lib" overwrite="true">			
			<fileset dir="${webapps.dir}/WEB-INF/lib">
				 <include name="annogen-0.1.0.jar"/>
								<include name="axiom-api-1.2.7.jar"/>
								<include name="axiom-dom-1.2.7.jar"/>
								<include name="axiom-impl-1.2.7.jar"/>
								<include name="axis2-adb-1.4.1.jar"/>
								<include name="axis2-adb-codegen-1.4.1.jar"/>
								<include name="axis2-ant-plugin-1.4.1.jar"/>
								<include name="axis2-clustering-1.4.1.jar"/>
								<include name="axis2-codegen-1.4.1.jar"/>
								<include name="axis2-corba-1.4.1.jar"/>
								<include name="axis2-fastinfoset-1.4.1.jar"/>
								<include name="axis2-java2wsdl-1.4.1.jar"/>
								<include name="axis2-jaxbri-1.4.1.jar"/>
								<include name="axis2-jaxws-1.4.1.jar"/>
								<include name="axis2-jaxws-api-1.4.1.jar"/>
								<include name="axis2-jibx-1.4.1.jar"/>
								<include name="axis2-json-1.4.1.jar"/>
								<include name="axis2-jws-api-1.4.1.jar"/>
								<include name="axis2-kernel-1.4.1.jar"/>
								<include name="axis2-metadata-1.4.1.jar"/>
								<include name="axis2-mtompolicy-1.4.1.jar"/>
								<include name="axis2-saaj-1.4.1.jar"/>
								<include name="axis2-saaj-api-1.4.1.jar"/>
								<include name="axis2-spring-1.4.1.jar"/>
								<include name="axis2-xmlbeans-1.4.1.jar"/>
								<include name="backport-util-concurrent-3.1.jar"/>
								<include name="geronimo-annotation_1.0_spec-1.1.jar"/>
								<include name="geronimo-stax-api_1.0_spec-1.0.1.jar"/>
								<include name="httpcore-4.0-beta1.jar"/>
								<include name="httpcore-nio-4.0-beta1.jar"/>
								<include name="jalopy-1.5rc3.jar"/>
								<include name="jaxb-api-2.1.jar"/>
								<include name="jaxb-impl-2.1.6.jar"/>
								<include name="jaxb-xjc-2.1.6.jar"/>
								<include name="jettison-1.0-RC2.jar"/>
								<include name="jibx-bind-1.1.5.jar"/>
								<include name="jibx-run-1.1.5.jar"/>
								<include name="mail-1.4.jar"/>
								<include name="mex-1.4.1.jar"/>
								<include name="neethi-2.0.4.jar"/>
								<include name="ria_service_menu.xml"/>
								<include name="soapmonitor-1.4.1.jar"/>
								<include name="woden-api-1.0M8.jar"/>
								<include name="woden-impl-dom-1.0M8.jar"/>
								<include name="wsdl4j-1.6.2.jar"/>
								<include name="wstx-asl-3.2.4.jar"/>
								<include name="xalan-2.7.0.jar"/>
								<include name="xercesImpl-2.8.1.jar"/>
								<include name="xml-apis-1.3.04.jar"/>
								<include name="xml-resolver-1.2.jar"/>
								<include name="xmlbeans-2.3.0.jar"/>
								<include name="XmlSchema-1.4.2.jar"/>
			</fileset> 
   </copy>
    <!--end  用户注册页面部分 -->
     <copy todir="${output.dir}/webapps/aspportal/aspportal/css" overwrite="true">			
			<fileset dir="${webapps.dir}/css">
			    <include name="layout.css"/>
			</fileset> 
    </copy>
   <copy todir="${output.dir}/webapps/aspportal/aspportal/images" overwrite="true">			
			<fileset dir="${webapps.dir}/images">
			    <include name="login_btn.png"/>
			</fileset> 
    </copy>
   <copy todir="${output.dir}/webapps/aspportal/aspportal/js" overwrite="true">			
			<fileset dir="${webapps.dir}/js">
			    <include name="jquery.metadata.js"/>
			    <include name="jquery.validate.js"/>
			    <include name="jquery.form.js"/>
			</fileset> 
   </copy>
       <copy todir="${output.dir}/webapps/aspportal/aspportal/uploadfiles/cap" overwrite="true">			
			<fileset dir="${webapps.dir}/uploadfiles/cap">
				<exclude name="**/*.svn"/>
			</fileset> 
   </copy>
    <copy todir="${output.dir}/webapps/aspportal/aspportal/uiloader/images/icons" overwrite="true">			
			<fileset dir="${webapps.dir}/uiloader/images/icons">
			    <include name="add_contract.png"/>
			    <include name="add_countrycode.png"/>
			    <include name="add_eapackage.png"/>
			    <include name="add_resource.png"/>
			    <include name="add_tool.png"/>
			    <include name="manage_contract.png"/>
			    <include name="manage_countrycode.png"/>
			    <include name="manage_eapackage.png"/>
			    <include name="manage_resource.png"/>
			    <include name="manage_tool.png"/>   
			</fileset> 
   </copy>
   <copy todir="${output.dir}/webapps/aspportal/aspportal/WEB-INF/classes/com/zte/ump/aspportal" overwrite="true">			
			<fileset dir="${build.dir}/classes/com/zte/ump/aspportal">
				 	<exclude name="**/*.svn"/>
			</fileset> 
   </copy>

   <copy todir="${output.dir}/webapps/aspportal/aspportal/WEB-INF/classes" overwrite="true">			
			<fileset dir="${build.dir}/classes">
				 <include name="ump-aspportal-context.xml"/>
				 <include name="ump-aspportal-struts.xml"/>
			</fileset> 
   </copy>
   
   
    	<copy todir="${output.dir}/webapps/aspportal/change" overwrite="true">			
			<fileset dir="${aspwebxml.dir}">
			    <exclude name="**/*.svn"/>
			    <exclude name="**/*.class"/>
			</fileset> 
    	</copy>
		<copy todir="${shared.dir}" overwrite="true">
    		<fileset dir="${build.dir}">
    		    <exclude name="**/*.svn"/>
        		<exclude name="**/*.java"/>
				<exclude name="**/*.class"/>
     		</fileset>             
    	</copy>
		<delete dir="${shared.dir}/classes/com" />
		<copy todir="${sharedzte.dir}" overwrite="true">
    		<fileset dir="${movexml.dir}">
        		<exclude name="**/*.java"/>
                <exclude name="**/sqlmap/*.xml" />
                <exclude name="**/sybasesqlmap/*.xml" />				
     		</fileset>             
    	</copy>
	<delete dir="${build.dir}" />
		<zip basedir="." destfile="output.zip" 
            includes="${output.dir}/**"
        />
	</target>
	<target name="zipaspportal_manager">
		<zip destfile="${basedir}/aspportal_manager.zip">
			<fileset dir="${basedir}/output\webapps\aspportal\aspportal" />
		</zip>
	</target>
	<target name="zipaspportal_register">
		<zip destfile="${basedir}/aspportal_register.zip">
			<fileset dir="${aspregister.dir}" />
		</zip>
	</target>
	<delete dir="${build.dir}" />
	
	<target name="cleanaspregister">  
        <delete dir="${aspregister.dir}" />	
        <delete dir="${output.dir}" />	
  </target>
  
	<target name="all" depends="clean,compile,sdpportal,copyfiles,zipaspportal_manager,zipaspportal_register,cleanaspregister" description="Cleans, compiles, then builds the JAR file."/>	
</project>  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
>