@ -19,7 +19,7 @@
<delete dir= "${classes}" />
<delete dir= "${classes}" />
<delete dir= "fr-plugin-${plugin-name}-${plugin-version}" />
<delete dir= "fr-plugin-${plugin-name}-${plugin-version}" />
<xmlproperty file= "${basedir}/plugin.xml" />
<xmlproperty file= "${basedir}/plugin.xml" />
<delete dir= "${destLoc}/${plugin. name}" />
<delete dir= "${destLoc}/${plugin- name}" />
</target>
</target>
<path id= "compile.classpath" >
<path id= "compile.classpath" >
<fileset dir= "${libs}" >
<fileset dir= "${libs}" >
@ -43,7 +43,7 @@
<echo message= "从${resources_from}拷贝图片,JS,CSS等资源文件" />
<echo message= "从${resources_from}拷贝图片,JS,CSS等资源文件" />
<delete dir= "tmp" />
<delete dir= "tmp" />
<copy todir= "tmp" >
<copy todir= "tmp" >
<fileset dir= "${resources_from}\src " >
<fileset dir= "${resources_from}/src/main/resources " >
<patternset refid= "resources4Jar" />
<patternset refid= "resources4Jar" />
</fileset>
</fileset>
</copy>
</copy>
@ -54,15 +54,17 @@
</target>
</target>
<target name= "compile_javas" >
<target name= "compile_javas" >
<echo message= "编译${compile_files}下的Java文件" />
<echo message= "编译${compile_files}下的Java文件" />
<javac destdir= "${classes}" debug= "false" optimize= "on" source= "${source_jdk_version}"
<javac destdir= "${classes}" debug= "false" optimize= "on" includeantruntime= "false" source= "${source_jdk_version}" target= "${target_jdk_version}" fork= "true" memoryMaximumSize= "512m" listfiles= "false" srcdir= "${basedir}" executable= "${compile_jdk_version}/bin/javac" >
target="${target_jdk_version}"
<src path= "${basedir}/src/main/java" />
fork="true" memoryMaximumSize="512m" listfiles="false" srcdir="${basedir}"
executable="${compile_jdk_version}/bin/javac">
<src path= "${basedir}/src" />
<exclude name= "**/.svn/**" />
<exclude name= "**/.svn/**" />
<exclude name= "**/.git/**" />
<compilerarg line= "-encoding UTF8 " />
<compilerarg line= "-encoding UTF8 " />
<classpath refid= "compile.classpath" />
<classpath refid= "compile.classpath" />
</javac>
</javac>
<taskdef name= "pretreatment" classname= "com.fr.plugin.pack.PluginPretreatmentTask" >
<classpath refid= "compile.classpath" />
</taskdef>
<pretreatment baseDir= "${basedir}" />
</target>
</target>
<target name= "jar_classes" >
<target name= "jar_classes" >
@ -79,8 +81,8 @@
<param name= "resources_from" value= "${basedir}" />
<param name= "resources_from" value= "${basedir}" />
</antcall>
</antcall>
<antcall target= "compile_javas" >
<antcall target= "compile_javas" >
<param name= "source_jdk_version" value= "1.6 " />
<param name= "source_jdk_version" value= "1.7 " />
<param name= "target_jdk_version" value= "1.6 " />
<param name= "target_jdk_version" value= "1.7 " />
<param name= "compile_jdk_version" value= "${jdk.home}" />
<param name= "compile_jdk_version" value= "${jdk.home}" />
<param name= "compile_files" value= "${basedir}/src" />
<param name= "compile_files" value= "${basedir}/src" />
</antcall>
</antcall>
@ -90,8 +92,8 @@
<param name= "jar_name" value= "${plugin-jar}" />
<param name= "jar_name" value= "${plugin-jar}" />
</antcall>
</antcall>
<delete dir= "${classes}" />
<delete dir= "${classes}" />
</target>
</target>
<target name= "jar" depends= "super_jar" >
<target name= "jar" depends= "super_jar" >
<antcall target= "zip" />
<antcall target= "zip" />
</target>
</target>
@ -105,12 +107,14 @@
<include name= "${plugin-jar}" />
<include name= "${plugin-jar}" />
<include name= "plugin.xml" />
<include name= "plugin.xml" />
</fileset>
</fileset>
<fileset dir= "${libs}" >
<include name= "*" />
</fileset>
</copy>
</copy>
<zip destfile= "${basedir}/${plugin-folder}.zip" basedir= "." >
<zip destfile= "${basedir}/${plugin-folder}.zip" basedir= "." >
<include name= "${plugin-folder}/*.jar" />
<include name= "${plugin-folder}/*.jar" />
<include name= "${plugin-folder}/plugin.xml" />
<include name= "${plugin-folder}/plugin.xml" />
</zip>
</zip>
<xmlproperty file= "${basedir}/plugin.xml" />
<move file= "${plugin-folder}.zip" todir= "${destLoc}/${plugin.name}" />
<move file= "${plugin-folder}.zip" todir= "${destLoc}/${plugin.name}" />
</target>
</target>
</project>
</project>