直接从cvs上创建jar包

来源:互联网 发布:建筑贴膜淘宝 编辑:程序博客网 时间:2024/06/05 00:23
  1. <project name="ezconfig.build" default="ezconfig.build" basedir=".">
  2.     <property file="build.properties"/>
  3.     <property name="ezcfg.src.dir" value="${src.dir}/${ezcfg.project.name}"/>
  4.     <property name="ezcfg.bin.dir" value="${bin.dir}/${ezcfg.project.name}"/>
  5.     <property name="ezcfg.lib.dir" value="${lib.dir}/${ezcfg.project.name}"/>
  6.     <target name="prepare">
  7.         <delete dir="${ezcfg.dir}"/>
  8.         <mkdir dir="${ezcfg.src.dir}"/>
  9.         <mkdir dir="${ezcfg.bin.dir}"/>
  10.         <mkdir dir="${ezcfg.lib.dir}"/>
  11.         <mkdir dir="${ezcfg.dir}/WEB-INF/lib"/>
  12.         <mkdir dir="${ezcfg.dir}/jsp/EZConfigManager"/>
  13.         
  14.         <cvs cvsRoot="${cvsroot}"
  15.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.src.dir} ${ezcfg.cvs.src}"
  16.              compression="true"/>
  17.         <cvs cvsRoot="${cvsroot}"
  18.              command="${cvscommand} -r ${shared.jar.cvs.tag} -d ${ezcfg.lib.dir} ${shared.jar.cvs.path}/dwr.jar"
  19.              compression="true"/>
  20.         <cvs cvsRoot="${cvsroot}"
  21.              command="${cvscommand} -r ${shared.jar.cvs.tag} -d ${ezcfg.lib.dir} ${shared.jar.cvs.path}/xalan.jar"
  22.              compression="true"/>
  23.         <cvs cvsRoot="${cvsroot}"
  24.              command="${cvscommand} -r ${shared.jar.cvs.tag} -d ${ezcfg.lib.dir} ${shared.jar.cvs.path}/ezactor_license7.2.5.jar"
  25.              compression="true"/>
  26.         <cvs cvsRoot="${cvsroot}"
  27.              command="${cvscommand} -r ${shared.jar.cvs.tag} -d ${ezcfg.lib.dir} ${shared.jar.cvs.path}/ezactor_license7.2.5.jar"
  28.              compression="true"/>
  29.     </target>
  30.     <target name="compile">
  31.         <javac srcdir="${ezcfg.src.dir}"
  32.                destdir="${ezcfg.bin.dir}"
  33.                encoding="UTF-8" deprecation="true"
  34.                source="1.4"
  35.                target="1.4">
  36.             <classpath>
  37.                 <fileset dir="${ezcfg.lib.dir}">
  38.                     <include name="**/*.jar"/>
  39.                 </fileset>
  40.                 <fileset dir="../lib">
  41.                     <include name="**/*.jar"/>
  42.                 </fileset>
  43.             </classpath>
  44.         </javac>
  45.         <copy todir="${ezcfg.bin.dir}" overwrite="true">
  46.             <fileset dir="${ezcfg.src.dir}">
  47.                 <exclude name="**/*.java"/>
  48.             </fileset>
  49.         </copy>
  50.         <jar jarfile="${ezcfg.dir}/WEB-INF/lib/ezconfig.jar" basedir="${ezcfg.bin.dir}"/>
  51.     </target>
  52.     <target name="files">
  53.         <copy todir="${ezcfg.dir}/WEB-INF/lib" overwrite="true">
  54.             <fileset dir="${ezcfg.lib.dir}">
  55.                 <include name="dwr.jar"/>
  56.                 <include name="xalan.jar"/>
  57.             </fileset>
  58.         </copy>
  59.         <cvs cvsRoot="${cvsroot}"
  60.                command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp ${ezcfg.web.cvs.root}/jsp" compression="true"/>
  61.         
  62.         <delete dir="${ezcfg.dir}/jsp/EZConfigManager/SQL"/>
  63.         
  64.         <mkdir dir="${ezcfg.dir}/jsp/EZConfigManager/SQL/SQLServer"/>
  65.         <mkdir dir="${ezcfg.dir}/jsp/EZConfigManager/SQL/Oracle"/>
  66.         <mkdir dir="${ezcfg.dir}/jsp/EZConfigManager/SQL/initialXMLFile"/>
  67.         
  68.         <cvs cvsRoot="${cvsroot}"
  69.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/WEB-INF ${ezcfg.web.cvs.root}/WEB-INF/dwr-ezconfig.xml" compression="true"/>
  70.         
  71.         <cvs cvsRoot="${cvsroot}"
  72.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/initialXMLFile ${sql.cvs.home}/initialXMLFile" compression="true"/>
  73.         <cvs cvsRoot="${cvsroot}"
  74.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/SQLServer ${sql.cvs.home}/SQLServer/StaticTable.sql" compression="true"/>
  75.         <cvs cvsRoot="${cvsroot}"
  76.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/SQLServer ${sql.cvs.home}/SQLServer/TenantDynamicTable.sql" compression="true"/>
  77.         <cvs cvsRoot="${cvsroot}"
  78.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/SQLServer ${sql.cvs.home}/SQLServer/TenantDynamicTrigger.sql" compression="true"/>
  79.         <cvs cvsRoot="${cvsroot}"
  80.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/SQLServer ${sql.cvs.home}/SQLServer/ContactReport.sql" compression="true"/>
  81.         <cvs cvsRoot="${cvsroot}"
  82.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/SQLServer/gb ${sql.cvs.home}/SQLServer/gb/InitTenant-gb_SQLSERVER.sql" compression="true"/>
  83.         <cvs cvsRoot="${cvsroot}"
  84.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/SQLServer/gb ${sql.cvs.home}/SQLServer/gb/InitDynamicTenant-gb_SQLSERVER.sql" compression="true"/>
  85.         <cvs cvsRoot="${cvsroot}"
  86.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/SQLServer/en ${sql.cvs.home}/SQLServer/en/InitTenant-en_SQLSERVER.sql" compression="true"/>
  87.         <cvs cvsRoot="${cvsroot}"
  88.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/SQLServer/en ${sql.cvs.home}/SQLServer/en/InitDynamicTenant-en_SQLSERVER.sql" compression="true"/>
  89.         <cvs cvsRoot="${cvsroot}"
  90.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/SQLServer/big5 ${sql.cvs.home}/SQLServer/big5/InitTenant-big5_SQLSERVER.sql" compression="true"/>
  91.         <cvs cvsRoot="${cvsroot}"
  92.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/SQLServer/big5 ${sql.cvs.home}/SQLServer/big5/InitDynamicTenant-big5_SQLSERVER.sql" compression="true"/>
  93.         <cvs cvsRoot="${cvsroot}"
  94.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/Oracle ${sql.cvs.home}/Oracle/StaticTable.sql" compression="true"/>
  95.         <cvs cvsRoot="${cvsroot}"
  96.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/Oracle ${sql.cvs.home}/Oracle/TenantDynamicTable.sql" compression="true"/>
  97.         <cvs cvsRoot="${cvsroot}"
  98.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/Oracle ${sql.cvs.home}/Oracle/TenantDynamicTrigger.sql" compression="true"/>
  99.         <cvs cvsRoot="${cvsroot}"
  100.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/Oracle ${sql.cvs.home}/Oracle/ContactReport.sql" compression="true"/>
  101.         <cvs cvsRoot="${cvsroot}"
  102.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/Oracle/gb ${sql.cvs.home}/Oracle/gb/InitTenant-gb_ORACLE.sql" compression="true"/>
  103.         <cvs cvsRoot="${cvsroot}"
  104.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/Oracle/gb ${sql.cvs.home}/Oracle/gb/InitDynamicTenant-gb_ORACLE.sql" compression="true"/>
  105.         <cvs cvsRoot="${cvsroot}"
  106.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/Oracle/en ${sql.cvs.home}/Oracle/en/InitTenant-en_ORACLE.sql" compression="true"/>
  107.         <cvs cvsRoot="${cvsroot}"
  108.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/Oracle/en ${sql.cvs.home}/Oracle/en/InitDynamicTenant-en_ORACLE.sql" compression="true"/>
  109.         <cvs cvsRoot="${cvsroot}"
  110.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/Oracle/big5 ${sql.cvs.home}/Oracle/big5/InitTenant-big5_ORACLE.sql" compression="true"/>
  111.         <cvs cvsRoot="${cvsroot}"
  112.              command="${cvscommand} -r ${ezcfg.cvs.tag} -d ${ezcfg.dir}/jsp/EZConfigManager/SQL/Oracle/big5 ${sql.cvs.home}/Oracle/big5/InitDynamicTenant-big5_ORACLE.sql" compression="true"/>
  113.     
  114.     </target>
  115.     <target name="clean">
  116.         <delete dir="${src.dir}"/>
  117.         <delete dir="${bin.dir}"/>
  118.         <delete dir="${lib.dir}"/>
  119.     </target>
  120.     <target name="ezconfig.build" depends="prepare, compile, files, clean"/>
  121. </project>

原创粉丝点击