|
|
|
@ -2,10 +2,8 @@
|
|
|
|
|
<project basedir="." default="jar" name="plugin"> |
|
|
|
|
<!-- JDK路径,根据自己机器上实际位置修改--> |
|
|
|
|
<property name="jdk.home" value="/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home"/> |
|
|
|
|
|
|
|
|
|
<property name="libs" value="${basedir}/lib/report"/> |
|
|
|
|
<property name="libs" value="${basedir}/lib"/> |
|
|
|
|
<property name="publicLibs" value=""/> |
|
|
|
|
<property name="reportLibs" value="${basedir}/../env/webroot/WEB-INF/lib"/> |
|
|
|
|
<property name="destLoc" value="."/> |
|
|
|
|
<property name="classes" value="classes"/> |
|
|
|
|
<xmlproperty file="${basedir}/plugin.xml"/> |
|
|
|
@ -28,9 +26,6 @@
|
|
|
|
|
<include name="**/*.jar"/> |
|
|
|
|
</fileset> |
|
|
|
|
<fileset dir="${publicLibs}"> |
|
|
|
|
<include name="**/*.class"/> |
|
|
|
|
</fileset> |
|
|
|
|
<fileset dir="${reportLibs}"> |
|
|
|
|
<include name="**/*.jar"/> |
|
|
|
|
</fileset> |
|
|
|
|
</path> |
|
|
|
@ -48,7 +43,7 @@
|
|
|
|
|
<echo message="从${resources_from}拷贝图片,JS,CSS等资源文件"/> |
|
|
|
|
<delete dir="tmp"/> |
|
|
|
|
<copy todir="tmp"> |
|
|
|
|
<fileset dir="${resources_from}/src/main/resources"> |
|
|
|
|
<fileset dir="${resources_from}\src"> |
|
|
|
|
<patternset refid="resources4Jar"/> |
|
|
|
|
</fileset> |
|
|
|
|
</copy> |
|
|
|
@ -63,15 +58,11 @@
|
|
|
|
|
target="${target_jdk_version}" |
|
|
|
|
fork="true" memoryMaximumSize="512m" listfiles="false" srcdir="${basedir}" |
|
|
|
|
executable="${compile_jdk_version}/bin/javac"> |
|
|
|
|
<src path="${basedir}/src/main/java"/> |
|
|
|
|
<src path="${basedir}/src"/> |
|
|
|
|
<exclude name="**/.svn/**"/> |
|
|
|
|
<compilerarg line="-encoding UTF8 "/> |
|
|
|
|
<classpath refid="compile.classpath"/> |
|
|
|
|
</javac> |
|
|
|
|
<taskdef name="pretreatment" classname="com.fr.plugin.pack.PluginPretreatmentTask"> |
|
|
|
|
<classpath refid="compile.classpath"/> |
|
|
|
|
</taskdef> |
|
|
|
|
<pretreatment baseDir="${basedir}"/> |
|
|
|
|
</target> |
|
|
|
|
|
|
|
|
|
<target name="jar_classes"> |
|
|
|
@ -101,7 +92,6 @@
|
|
|
|
|
<delete dir="${classes}"/> |
|
|
|
|
|
|
|
|
|
</target> |
|
|
|
|
|
|
|
|
|
<target name="jar" depends="super_jar"> |
|
|
|
|
<antcall target="zip"/> |
|
|
|
|
</target> |
|
|
|
@ -115,16 +105,12 @@
|
|
|
|
|
<include name="${plugin-jar}"/> |
|
|
|
|
<include name="plugin.xml"/> |
|
|
|
|
</fileset> |
|
|
|
|
<fileset dir="${libs}"> |
|
|
|
|
<include name="*.jar"/> |
|
|
|
|
<include name="*.dll"/> |
|
|
|
|
</fileset> |
|
|
|
|
</copy> |
|
|
|
|
<zip destfile="${basedir}/${plugin-folder}.zip" basedir="."> |
|
|
|
|
<include name="${plugin-folder}/*.jar"/> |
|
|
|
|
<include name="${plugin-folder}/*.dll"/> |
|
|
|
|
<include name="${plugin-folder}/plugin.xml"/> |
|
|
|
|
</zip> |
|
|
|
|
<move file="${plugin-folder}.zip" todir="${destLoc}/install"/> |
|
|
|
|
<xmlproperty file="${basedir}/plugin.xml"/> |
|
|
|
|
<move file="${plugin-folder}.zip" todir="${destLoc}/${plugin.name}"/> |
|
|
|
|
</target> |
|
|
|
|
</project> |