Browse Source

构建任务

paid
richie 6 years ago
parent
commit
03fe326e4f
  1. 10
      build.xml

10
build.xml

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="jar" name="plugin"> <project basedir="." default="jar" name="plugin">
<!-- JDK路径,根据自己机器上实际位置修改--> <!-- JDK路径,根据自己机器上实际位置修改-->
<property name="jdk.home" value="/Library/Java/JavaVirtualMachines/JDK1.8/Contents/Home"/> <property name="jdk.home" value="/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home"/>
<property name="libs" value="${basedir}/lib"/> <property name="libs" value="${basedir}/lib"/>
<property name="publicLibs" value=""/> <property name="publicLibs" value=""/>
@ -23,7 +23,7 @@
<xmlproperty file="${basedir}/plugin.xml"/> <xmlproperty file="${basedir}/plugin.xml"/>
<delete dir="${destLoc}/${plugin.name}"/> <delete dir="${destLoc}/${plugin.name}"/>
</target> </target>
<bucket id="compile.classpath"> <path id="compile.classpath">
<fileset dir="${libs}"> <fileset dir="${libs}">
<include name="**/*.jar"/> <include name="**/*.jar"/>
</fileset> </fileset>
@ -33,7 +33,7 @@
<fileset dir="${reportLibs}"> <fileset dir="${reportLibs}">
<include name="**/*.jar"/> <include name="**/*.jar"/>
</fileset> </fileset>
</bucket> </path>
<patternset id="resources4Jar"> <patternset id="resources4Jar">
<exclude name="**/.settings/**"/> <exclude name="**/.settings/**"/>
<exclude name=".classpath"/> <exclude name=".classpath"/>
@ -63,7 +63,7 @@
target="${target_jdk_version}" target="${target_jdk_version}"
fork="true" memoryMaximumSize="512m" listfiles="false" srcdir="${basedir}" fork="true" memoryMaximumSize="512m" listfiles="false" srcdir="${basedir}"
executable="${compile_jdk_version}/bin/javac"> executable="${compile_jdk_version}/bin/javac">
<src bucket="${basedir}/src/main/java"/> <src path="${basedir}/src/main/java"/>
<exclude name="**/.svn/**"/> <exclude name="**/.svn/**"/>
<compilerarg line="-encoding UTF8 "/> <compilerarg line="-encoding UTF8 "/>
<classpath refid="compile.classpath"/> <classpath refid="compile.classpath"/>
@ -127,4 +127,4 @@
</zip> </zip>
<move file="${plugin-folder}.zip" todir="${destLoc}/install"/> <move file="${plugin-folder}.zip" todir="${destLoc}/install"/>
</target> </target>
</project> </project>
Loading…
Cancel
Save