summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--java/project/build.xml12
-rw-r--r--java/project/src/main/resources/Application.properties3
2 files changed, 13 insertions, 2 deletions
diff --git a/java/project/build.xml b/java/project/build.xml
index 078c84a..09eca61 100644
--- a/java/project/build.xml
+++ b/java/project/build.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant"
- name="MyProject"
+ name="AntIvyJUnit"
basedir="."
default="test">
@@ -44,12 +44,22 @@
<ivy:cachefileset setid="ivy.deps.runtime.fileset" conf="runtime"/>
</target>
+ <target name="ivy-report" depends="configure,resolve">
+ <ivy:report conf="compile" organisation="ch.asynk" module="${app.name}"/>
+ <ivy:report conf="runtime" organisation="ch.asynk" module="${app.name}"/>
+ <ivy:report conf="test" organisation="ch.asynk" module="${app.name}"/>
+ </target>
+
<target name="clean" depends="configure" description="clean project">
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
<delete file="${app.logfile}" />
<delete file="build.log" />
<delete file="test.log" />
+ <delete file="ivy-report.css" />
+ <delete>
+ <fileset dir="${basedir}" includes="ch.asynk-${app.name}-*"/>
+ </delete>
</target>
<target name="ctags">
diff --git a/java/project/src/main/resources/Application.properties b/java/project/src/main/resources/Application.properties
index 34430cd..80f1bf0 100644
--- a/java/project/src/main/resources/Application.properties
+++ b/java/project/src/main/resources/Application.properties
@@ -1,3 +1,4 @@
-app.logfile=MyApp.log
+app.name=AntIvyJUnit
+app.logfile=${app.name}.log
app.version=0.0.1
app.env=DEV