[xml]jocky build

jocky:java混淆编译插件,金蝶apusic出品。
对自动生成jocky build文件修改:javac增加encoding属性,与workspace相同。
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- WARNING: Jocky autogenerated file. 
  3.               Any modifications will be overwritten.
  4. -->
  5. <project basedir="." default="build" name="com.my.eis.framework.jocky">
  6.     <property name="jocky.jar" value="E:/dev/env/MyEclipse 6.0/eclipse/plugins/org.apusic.jocky_1.0.3/jocky.jar"/>
  7.     <property name="jocky.output.dir" value="E:/dev/projects/myeclipse/workspace/com.my.eis.framework/jocky"/>
  8.     <property name="jocky.scramble.level" value="package"/>
  9.     <property name="target" value="1.5"/>
  10.     <property name="com.my.eis.framework.location" value="E:/dev/projects/myeclipse/workspace/com.my.eis.framework"/>
  11.     
  12.     <path id="project.classpath">
  13.         <pathelement location="bin"/>
  14.         <pathelement location="${com.my.eis.framework.location}/lib/commons-logging.jar"/>
  15.         <pathelement location="${com.my.eis.framework.location}/lib/ibatis-2.3.0.677.jar"/>
  16.         <pathelement location="${com.my.eis.framework.location}/lib/spring.jar"/>
  17.         <pathelement location="${com.my.eis.framework.location}/lib/servlet-api.jar"/>
  18.         <pathelement location="${com.my.eis.framework.location}/lib/jsp-api.jar"/>
  19.     </path>
  20.     <target name="init">
  21.         <jocky jar="${jocky.jar}" level="${jocky.scramble.level}"/>
  22.         <mkdir dir="${jocky.output.dir}"/>
  23.         <mkdir dir="${jocky.output.dir}/bin"/>
  24.     </target>
  25.     <target name="clean">
  26.         <delete dir="${jocky.output.dir}/bin"/>
  27.         <delete dir="${jocky.output.dir}"/>
  28.     </target>
  29.     <target depends="init" name="build">
  30.         <echo message="${ant.project.name}: ${ant.file}"/>
  31.         <jocky enable="true"/>
  32.         <javac destdir="${jocky.output.dir}/bin" target="${target}"  encoding="UTF-8">
  33.             <src path="src"/>
  34.             <classpath refid="project.classpath"/>
  35.         </javac>
  36.     </target>
  37.     
  38.     <target depends="build" name="build_framework_jar">
  39.         <echo message="${ant.project.name}: ${ant.file}"/>
  40.         <jocky enable="true"/>
  41.         <jar destfile="my_framework.jar">
  42.             <fileset dir="${jocky.output.dir}/bin">
  43.                 <include name="**/eis/codegen/anotation/**"/>
  44.                 <include name="**/eis/common/**"/>
  45.                 <include name="**/eis/framework/**"/>
  46.                 <include name="**/eis/sys/**"/>
  47.                 
  48.                 <include name="org/**"/>
  49.             </fileset>
  50.         </jar>
  51.     </target>
  52.     
  53.     
  54. </project>

你可能感兴趣的:(java,xml,jar,Build,encoding)