summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2017-03-12 12:24:35 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2017-03-12 12:24:35 +0100
commit118b98b5936e420af72bc2534d45c5bdedc50a35 (patch)
treeb5f3c5ef23416a86e49eb66df8a5b37cbd27def1
parente5ba0c343e026cfe78100c785918f48046da8475 (diff)
downloadshare-118b98b5936e420af72bc2534d45c5bdedc50a35.zip
share-118b98b5936e420af72bc2534d45c5bdedc50a35.tar.gz
java : project : build.xml add ivy-report target
-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