aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2016-08-21 01:14:38 +0200
committerEduardo Pedroni <e.pedroni91@gmail.com>2016-08-21 01:14:38 +0200
commit3a25d47f187fe7499d2d481d9a0a3411a92bfa11 (patch)
tree40ee4efedd0bcbd29aa0ec8e5cb3c8e11af9e26e /build
parent7f80ab416a708e5c31116b9af7295af673d116d7 (diff)
Switched from ant to gradle, had to refactor some of the tests because of the new build structure, a bit ugly but should pass
Diffstat (limited to 'build')
-rw-r--r--build/build.xml113
-rw-r--r--build/header1
2 files changed, 0 insertions, 114 deletions
diff --git a/build/build.xml b/build/build.xml
deleted file mode 100644
index 918039b..0000000
--- a/build/build.xml
+++ /dev/null
@@ -1,113 +0,0 @@
-<?xml version="1.0"?>
-<project name="cardbase" default="test" basedir="..">
-
- <property name="main.build.dir" value="build/main" />
- <property name="main.src.dir" value="src" />
- <property name="main-class" value="eu.equalparts.cardbase.cli.CardbaseCLI" />
-
- <property name="test.build.dir" value="build/test" />
- <property name="test.src.dir" value="test" />
-
- <property name="build.dir" location="build" />
- <property name="dist.dir" location="dist" />
- <property name="lib.dir" value="lib" />
- <property name="test.lib.dir" value="lib/junit" />
-
- <property name="res.dir" value="res" />
-
- <property name="jar.name" value="cardbase" />
-
- <path id="classpath.base" >
- <fileset dir="${basedir}/">
- <include name="${res.dir}/*" />
-
- <include name="${lib.dir}/*.jar" />
- <exclude name="${lib.dir}/*sources.jar"/>
- <exclude name="${lib.dir}/*javadoc.jar"/>
- </fileset>
- </path>
-
- <path id="classpath.test">
- <fileset dir="${basedir}/">
- <include name="${lib.dir}/junit/*.jar" />
- <exclude name="${lib.dir}/junit/*sources.jar"/>
- <exclude name="${lib.dir}/junit/*javadoc.jar"/>
- </fileset>
- <pathelement location="${test.build.dir}"/>
- <pathelement location="${main.build.dir}"/>
- <path refid="classpath.base" />
- </path>
-
- <target name="test" depends="run, clean" />
-
- <target name="compile" depends="clean">
- <mkdir dir="${main.build.dir}"/>
- <javac srcdir="${main.src.dir}" destdir="${main.build.dir}" includeantruntime="false">
- <classpath refid="classpath.base"/>
- </javac>
- <copy todir="${main.build.dir}">
- <fileset dir="${res.dir}" excludes=""/>
- </copy>
- </target>
-
- <target name="build" depends="compile">
- <mkdir dir="${test.build.dir}"/>
- <javac srcdir="${test.src.dir}" destdir="${test.build.dir}" includeantruntime="false">
- <classpath refid="classpath.test"/>
- </javac>
- <copy todir="${test.build.dir}">
- <fileset dir="${test.src.dir}" excludes="**.java"/>
- </copy>
- <echo message="Build done" />
- </target>
-
- <!-- Test and build all files -->
- <!-- To run this: use "ant" (default) or "ant run" -->
- <target name="run" depends="build">
- <junit printsummary="on" haltonfailure="yes">
- <classpath>
- <path refid="classpath.test" />
- <pathelement location="${test.build.dir}"/>
- </classpath>
- <formatter type="brief" usefile="false" />
- <batchtest>
- <fileset dir="${test.src.dir}" includes="**/*Test*.java" />
- </batchtest>
- </junit>
- </target>
-
- <!-- delete all class files -->
- <!-- To run this: use "ant clean" -->
- <target name="clean">
- <delete dir="${main.build.dir}" />
- <delete dir="${test.build.dir}" />
- <echo message="clean done" />
- </target>
-
- <!-- Create the jar and declare the ext libraries in manifest.mf file -->
- <target name="jar" depends="compile" >
- <mkdir dir="${dist.dir}" />
-
- <jar jarfile="${dist.dir}/${jar.name}.jar" basedir="${main.build.dir}">
- <zipgroupfileset dir="${lib.dir}" includes="*.jar" excludes="*sources.jar, *javadoc.jar" />
- <manifest>
- <attribute name="Main-Class" value="${main-class}" />
- <attribute name="Class-Path" value="${classpath.base.name}" />
- </manifest>
- </jar>
- </target>
-
- <!-- Produce a standalone, runnable jar -->
- <target name="deploy" depends="compile, jar" />
-
- <!-- Concatenate the jar to a pre-set header and chmod 755 it -->
- <target name="shebang" depends="deploy" >
- <concat destfile="${dist.dir}/${jar.name}" binary="yes">
- <fileset dir="${build.dir}" includes="header"/>
- <fileset dir="${dist.dir}" includes="${jar.name}.jar"/>
- </concat>
-
- <chmod file="${dist.dir}/${jar.name}" perm="755"/>
- </target>
-
-</project> \ No newline at end of file
diff --git a/build/header b/build/header
deleted file mode 100644
index fdeaa61..0000000
--- a/build/header
+++ /dev/null
@@ -1 +0,0 @@
-#!/usr/bin/java -jar