set global properties src and res to point to correct locations on all ant build files.
This commit is contained in:
parent
32639ecee0
commit
a6d9a365f0
|
@ -5,4 +5,5 @@ build/
|
||||||
.idea
|
.idea
|
||||||
.gradle
|
.gradle
|
||||||
.iml
|
.iml
|
||||||
|
target
|
||||||
|
|
||||||
|
|
|
@ -21,14 +21,15 @@
|
||||||
BATM server extensions API
|
BATM server extensions API
|
||||||
</description>
|
</description>
|
||||||
<!-- set global properties for this build -->
|
<!-- set global properties for this build -->
|
||||||
<property name="src" location="src"/>
|
<property name="src" location="src/main/java"/>
|
||||||
|
<property name="res" location="src/main/resources"/>
|
||||||
<property name="build" location="build"/>
|
<property name="build" location="build"/>
|
||||||
<property name="dist" location="dist"/>
|
<property name="dist" location="dist"/>
|
||||||
<property name="libs" location="libs"/>
|
<property name="libs" location="libs"/>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<tstamp/>
|
<tstamp/>
|
||||||
<delete dir="${build}" />
|
<delete dir="${build}"/>
|
||||||
<mkdir dir="${build}"/>
|
<mkdir dir="${build}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -36,21 +37,20 @@
|
||||||
<fileset dir="${libs}" includes="**/*.jar"/>
|
<fileset dir="${libs}" includes="**/*.jar"/>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
<target name="compile" depends="init" description="compile the source " >
|
<target name="compile" depends="init" description="compile the source ">
|
||||||
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source">
|
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source">
|
||||||
<classpath>
|
<classpath>
|
||||||
<path refid="classpath" />
|
<path refid="classpath"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="dist" depends="compile" description="generate the distribution" >
|
<target name="dist" depends="compile" description="generate the distribution">
|
||||||
<mkdir dir="${dist}"/>
|
<mkdir dir="${dist}"/>
|
||||||
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
|
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" description="clean up" >
|
<target name="clean" description="clean up">
|
||||||
<delete dir="${build}"/>
|
<delete dir="${build}"/>
|
||||||
<delete dir="${dist}"/>
|
<delete dir="${dist}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
|
@ -22,15 +22,15 @@
|
||||||
BATM server extra extensions
|
BATM server extra extensions
|
||||||
</description>
|
</description>
|
||||||
<!-- set global properties for this build -->
|
<!-- set global properties for this build -->
|
||||||
<property name="src" location="src"/>
|
<property name="src" location="src/main/java"/>
|
||||||
<property name="res" location="res"/>
|
<property name="res" location="src/main/resources"/>
|
||||||
<property name="build" location="build"/>
|
<property name="build" location="build"/>
|
||||||
<property name="dist" location="dist"/>
|
<property name="dist" location="dist"/>
|
||||||
<property name="libs" location="libs"/>
|
<property name="libs" location="libs"/>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<tstamp/>
|
<tstamp/>
|
||||||
<delete dir="${build}" />
|
<delete dir="${build}"/>
|
||||||
<mkdir dir="${build}"/>
|
<mkdir dir="${build}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -40,10 +40,10 @@
|
||||||
<fileset dir="../server_extensions_api/dist" includes="**/*.jar"/>
|
<fileset dir="../server_extensions_api/dist" includes="**/*.jar"/>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
<target name="compile" depends="init" description="compile the source " >
|
<target name="compile" depends="init" description="compile the source ">
|
||||||
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source">
|
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source">
|
||||||
<classpath>
|
<classpath>
|
||||||
<path refid="classpath" />
|
<path refid="classpath"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
<copy todir="${build}">
|
<copy todir="${build}">
|
||||||
|
@ -51,16 +51,14 @@
|
||||||
<include name="**/*"/>
|
<include name="**/*"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="dist" depends="compile" description="generate the distribution" >
|
<target name="dist" depends="compile" description="generate the distribution">
|
||||||
<mkdir dir="${dist}"/>
|
<mkdir dir="${dist}"/>
|
||||||
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
|
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" description="clean up" >
|
<target name="clean" description="clean up">
|
||||||
<delete dir="${build}"/>
|
<delete dir="${build}"/>
|
||||||
<delete dir="${dist}"/>
|
<delete dir="${dist}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
|
@ -22,15 +22,15 @@
|
||||||
BATM server extra extensions
|
BATM server extra extensions
|
||||||
</description>
|
</description>
|
||||||
<!-- set global properties for this build -->
|
<!-- set global properties for this build -->
|
||||||
<property name="src" location="src"/>
|
<property name="src" location="src/main/java"/>
|
||||||
<property name="res" location="res"/>
|
<property name="res" location="src/main/resources"/>
|
||||||
<property name="build" location="build"/>
|
<property name="build" location="build"/>
|
||||||
<property name="dist" location="dist"/>
|
<property name="dist" location="dist"/>
|
||||||
<property name="libs" location="libs"/>
|
<property name="libs" location="libs"/>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<tstamp/>
|
<tstamp/>
|
||||||
<delete dir="${build}" />
|
<delete dir="${build}"/>
|
||||||
<mkdir dir="${build}"/>
|
<mkdir dir="${build}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -42,25 +42,22 @@
|
||||||
<fileset dir="../server_extensions_extra/dist" includes="**/*.jar"/>
|
<fileset dir="../server_extensions_extra/dist" includes="**/*.jar"/>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
<target name="compile" depends="init" description="compile the source " >
|
<target name="compile" depends="init" description="compile the source ">
|
||||||
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source">
|
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source">
|
||||||
<classpath>
|
<classpath>
|
||||||
<path refid="classpath" />
|
<path refid="classpath"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="dist" depends="compile" description="generate the distribution" >
|
<target name="dist" depends="compile" description="generate the distribution">
|
||||||
<mkdir dir="${dist}"/>
|
<mkdir dir="${dist}"/>
|
||||||
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
|
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
|
||||||
<copy file="${res}/tester.sh" todir="${dist}"/>
|
<copy file="${res}/tester.sh" todir="${dist}"/>
|
||||||
<chmod file="${dist}/tester.sh" perm="ugo+x"/>
|
<chmod file="${dist}/tester.sh" perm="ugo+x"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" description="clean up" >
|
<target name="clean" description="clean up">
|
||||||
<delete dir="${build}"/>
|
<delete dir="${build}"/>
|
||||||
<delete dir="${dist}"/>
|
<delete dir="${dist}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
Loading…
Reference in New Issue