set global properties src and res to point to correct locations on all ant build files.

This commit is contained in:
Juha Kovanen 2016-06-16 17:46:53 +03:00
parent 32639ecee0
commit a6d9a365f0
4 changed files with 82 additions and 86 deletions

1
.gitignore vendored
View File

@ -5,4 +5,5 @@ build/
.idea
.gradle
.iml
target

View File

@ -20,38 +20,38 @@
<description>
BATM server extensions API
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="libs" location="libs"/>
<!-- set global properties for this build -->
<property name="src" location="src/main/java"/>
<property name="res" location="src/main/resources"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="libs" location="libs"/>
<target name="init">
<tstamp/>
<delete dir="${build}" />
<mkdir dir="${build}"/>
</target>
<target name="init">
<tstamp/>
<delete dir="${build}"/>
<mkdir dir="${build}"/>
</target>
<path id="classpath">
<fileset dir="${libs}" includes="**/*.jar"/>
</path>
<target name="compile" depends="init" description="compile the source " >
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source">
<classpath>
<path refid="classpath" />
</classpath>
</javac>
<target name="compile" depends="init" description="compile the source ">
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source">
<classpath>
<path refid="classpath"/>
</classpath>
</javac>
</target>
</target>
<target name="dist" depends="compile" description="generate the distribution">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
</target>
<target name="dist" depends="compile" description="generate the distribution" >
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
</target>
<target name="clean" description="clean up" >
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="clean" description="clean up">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>

View File

@ -21,18 +21,18 @@
<description>
BATM server extra extensions
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="res" location="res"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="libs" location="libs"/>
<!-- set global properties for this build -->
<property name="src" location="src/main/java"/>
<property name="res" location="src/main/resources"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="libs" location="libs"/>
<target name="init">
<tstamp/>
<delete dir="${build}" />
<mkdir dir="${build}"/>
</target>
<target name="init">
<tstamp/>
<delete dir="${build}"/>
<mkdir dir="${build}"/>
</target>
<path id="classpath">
<fileset dir="${libs}" includes="**/*.jar"/>
@ -40,28 +40,26 @@
<fileset dir="../server_extensions_api/dist" includes="**/*.jar"/>
</path>
<target name="compile" depends="init" description="compile the source " >
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source">
<classpath>
<path refid="classpath" />
</classpath>
</javac>
<copy todir="${build}">
<fileset dir="${res}">
<include name="**/*"/>
</fileset>
</copy>
<target name="compile" depends="init" description="compile the source ">
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source">
<classpath>
<path refid="classpath"/>
</classpath>
</javac>
<copy todir="${build}">
<fileset dir="${res}">
<include name="**/*"/>
</fileset>
</copy>
</target>
<target name="dist" depends="compile" description="generate the distribution" >
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
</target>
<target name="dist" depends="compile" description="generate the distribution">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
</target>
<target name="clean" description="clean up" >
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="clean" description="clean up">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>

View File

@ -21,18 +21,18 @@
<description>
BATM server extra extensions
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="res" location="res"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="libs" location="libs"/>
<!-- set global properties for this build -->
<property name="src" location="src/main/java"/>
<property name="res" location="src/main/resources"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="libs" location="libs"/>
<target name="init">
<tstamp/>
<delete dir="${build}" />
<mkdir dir="${build}"/>
</target>
<target name="init">
<tstamp/>
<delete dir="${build}"/>
<mkdir dir="${build}"/>
</target>
<path id="classpath">
<fileset dir="${libs}" includes="**/*.jar"/>
@ -42,26 +42,23 @@
<fileset dir="../server_extensions_extra/dist" includes="**/*.jar"/>
</path>
<target name="compile" depends="init" description="compile the source " >
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source">
<classpath>
<path refid="classpath" />
</classpath>
</javac>
<target name="compile" depends="init" description="compile the source ">
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source">
<classpath>
<path refid="classpath"/>
</classpath>
</javac>
</target>
<target name="dist" depends="compile" description="generate the distribution" >
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
<target name="dist" depends="compile" description="generate the distribution">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
<copy file="${res}/tester.sh" todir="${dist}"/>
<chmod file="${dist}/tester.sh" perm="ugo+x"/>
</target>
</target>
<target name="clean" description="clean up" >
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="clean" description="clean up">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>