mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 13:05:41 +01:00
163 lines
6.2 KiB
XML
163 lines
6.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="plot_news" default="all">
|
|
|
|
|
|
<property file="plotsquared.properties"/>
|
|
<!-- Uncomment the following property if no tests compilation is needed -->
|
|
<!--
|
|
<property name="skip.tests" value="true"/>
|
|
-->
|
|
|
|
<!-- Compiler options -->
|
|
|
|
<property name="compiler.debug" value="on"/>
|
|
<property name="compiler.generate.no.warnings" value="off"/>
|
|
<property name="compiler.args" value=""/>
|
|
<property name="compiler.max.memory" value="700m"/>
|
|
<patternset id="ignored.files">
|
|
<exclude name="**/CVS/**"/>
|
|
<exclude name="**/SCCS/**"/>
|
|
<exclude name="**/RCS/**"/>
|
|
<exclude name="**/rcs/**"/>
|
|
<exclude name="**/.DS_Store/**"/>
|
|
<exclude name="**/.svn/**"/>
|
|
<exclude name="**/.pyc/**"/>
|
|
<exclude name="**/.pyo/**"/>
|
|
<exclude name="**/*.pyc/**"/>
|
|
<exclude name="**/*.pyo/**"/>
|
|
<exclude name="**/.git/**"/>
|
|
<exclude name="**/*.hprof/**"/>
|
|
<exclude name="**/_svn/**"/>
|
|
<exclude name="**/.hg/**"/>
|
|
<exclude name="**/*.lib/**"/>
|
|
<exclude name="**/*~/**"/>
|
|
<exclude name="**/__pycache__/**"/>
|
|
<exclude name="**/.bundle/**"/>
|
|
<exclude name="**/*.rbc/**"/>
|
|
</patternset>
|
|
<patternset id="library.patterns">
|
|
<include name="*.war"/>
|
|
<include name="*.ear"/>
|
|
<include name="*.apk"/>
|
|
<include name="*.zip"/>
|
|
<include name="*.swc"/>
|
|
<include name="*.ane"/>
|
|
<include name="*.egg"/>
|
|
<include name="*.jar"/>
|
|
</patternset>
|
|
<patternset id="compiler.resources">
|
|
<exclude name="**/?*.java"/>
|
|
<exclude name="**/?*.form"/>
|
|
<exclude name="**/?*.class"/>
|
|
<exclude name="**/?*.groovy"/>
|
|
<exclude name="**/?*.scala"/>
|
|
<exclude name="**/?*.flex"/>
|
|
<exclude name="**/?*.kt"/>
|
|
<exclude name="**/?*.clj"/>
|
|
</patternset>
|
|
|
|
<!-- JDK definitions -->
|
|
|
|
<property name="jdk.bin.1.7" value="${jdk.home.1.7}/bin"/>
|
|
<path id="jdk.classpath.1.7">
|
|
<fileset dir="${jdk.home.1.7}">
|
|
<include name="jre/lib/charsets.jar"/>
|
|
<include name="jre/lib/deploy.jar"/>
|
|
<include name="jre/lib/javaws.jar"/>
|
|
<include name="jre/lib/jce.jar"/>
|
|
<include name="jre/lib/jfr.jar"/>
|
|
<include name="jre/lib/jfxrt.jar"/>
|
|
<include name="jre/lib/jsse.jar"/>
|
|
<include name="jre/lib/management-agent.jar"/>
|
|
<include name="jre/lib/plugin.jar"/>
|
|
<include name="jre/lib/resources.jar"/>
|
|
<include name="jre/lib/rt.jar"/>
|
|
<include name="jre/lib/ext/access-bridge-64.jar"/>
|
|
<include name="jre/lib/ext/dnsns.jar"/>
|
|
<include name="jre/lib/ext/jaccess.jar"/>
|
|
<include name="jre/lib/ext/localedata.jar"/>
|
|
<include name="jre/lib/ext/sunec.jar"/>
|
|
<include name="jre/lib/ext/sunjce_provider.jar"/>
|
|
<include name="jre/lib/ext/sunmscapi.jar"/>
|
|
<include name="jre/lib/ext/zipfs.jar"/>
|
|
</fileset>
|
|
</path>
|
|
|
|
<property name="project.jdk.home" value="${jdk.home.1.7}"/>
|
|
<property name="project.jdk.bin" value="${jdk.bin.1.7}"/>
|
|
<property name="project.jdk.classpath" value="jdk.classpath.1.7"/>
|
|
|
|
|
|
<!-- Project Libraries -->
|
|
|
|
<path id="library.bukkit-1.7.9-r0.2.classpath">
|
|
<pathelement location="${basedir}/lib/bukkit-1.7.9-R0.2.jar"/>
|
|
</path>
|
|
|
|
<path id="library.lib.classpath">
|
|
<fileset dir="${basedir}/lib">
|
|
<patternset refid="library.patterns"/>
|
|
</fileset>
|
|
<pathelement location="${basedir}/lib/BarAPI.jar"/>
|
|
<pathelement location="${basedir}/lib/CameraAPI.jar"/>
|
|
<pathelement location="${basedir}/lib/PlotMe.jar"/>
|
|
<pathelement location="${basedir}/lib/WorldEdit.jar"/>
|
|
</path>
|
|
|
|
<path id="library.simple-xml.classpath">
|
|
<pathelement location="${basedir}/lib/simple-5.1.6.jar"/>
|
|
<pathelement location="${basedir}/lib/simple-xml.jar"/>
|
|
</path>
|
|
<!-- Register Custom Compiler Taskdefs -->
|
|
<property name="javac2.home" value="${idea.home}/lib"/>
|
|
<path id="javac2.classpath">
|
|
<pathelement location="${javac2.home}/javac2.jar"/>
|
|
<pathelement location="${javac2.home}/jdom.jar"/>
|
|
<pathelement location="${javac2.home}/asm4-all.jar"/>
|
|
<pathelement location="${javac2.home}/jgoodies-forms.jar"/>
|
|
</path>
|
|
<target name="register.custom.compilers">
|
|
<taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="javac2.classpath"/>
|
|
<taskdef name="instrumentIdeaExtensions" classname="com.intellij.ant.InstrumentIdeaExtensions" classpathref="javac2.classpath"/>
|
|
</target>
|
|
|
|
<!-- Modules -->
|
|
|
|
<import file="${basedir}/PlotSquared/module_plotsquared.xml"/>
|
|
|
|
<target name="init" description="Build initialization">
|
|
<!-- Perform any build initialization in this target -->
|
|
</target>
|
|
|
|
<target name="clean" depends="clean.module.plotsquared" description="cleanup all"/>
|
|
|
|
<target name="build.modules" depends="init, clean, compile.module.plotsquared" description="build all modules"/>
|
|
|
|
<target name="init.artifacts">
|
|
<property name="artifacts.temp.dir" value="${basedir}/__artifacts_temp"/>
|
|
<property name="artifact.output.plotsquared__" value="${basedir}/out/plotsquared"/>
|
|
<mkdir dir="${artifacts.temp.dir}"/>
|
|
<property name="temp.jar.path.plotsquared__.jar" value="${artifacts.temp.dir}/plotsquared__.jar"/>
|
|
</target>
|
|
|
|
<target name="artifact.plotsquared__" depends="init.artifacts, compile.module.plotsquared" description="Build 'plotsquared__' artifact">
|
|
<property name="artifact.temp.output.plotsquared__" value="${artifacts.temp.dir}/plotsquared__"/>
|
|
<mkdir dir="${artifact.temp.output.plotsquared__}"/>
|
|
<jar destfile="${temp.jar.path.plotsquared__.jar}" duplicate="preserve" filesetmanifest="mergewithoutmain">
|
|
<zipfileset dir="${plotsquared.output.dir}"/>
|
|
</jar>
|
|
<copy file="${temp.jar.path.plotsquared__.jar}" tofile="${artifact.temp.output.plotsquared__}/plotsquared__.jar"/>
|
|
</target>
|
|
|
|
<target name="build.all.artifacts" depends="artifact.plotsquared__" description="Build all artifacts">
|
|
<mkdir dir="${artifact.output.plotsquared__}"/>
|
|
<copy todir="${artifact.output.plotsquared__}">
|
|
<fileset dir="${artifact.temp.output.plotsquared__}"/>
|
|
</copy>
|
|
|
|
<!-- Delete temporary files -->
|
|
<delete dir="${artifacts.temp.dir}"/>
|
|
</target>
|
|
|
|
<target name="all" depends="build.modules, build.all.artifacts" description="build all"/>
|
|
</project> |