Permalink
Browse files

playing with Ant and Ivy

  • Loading branch information...
1 parent e375656 commit 69a2ad93b097f191972c8ca50c46705ff29e819a @leadVisionary committed Jul 10, 2012
Showing with 43 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +29 −0 build.xml
  3. +12 −0 ivy.xml
View
@@ -1,4 +1,6 @@
*.class
+.classpath
+.project
# Package Files #
*.jar
View
@@ -0,0 +1,29 @@
+<project name="menu" default="test" xmlns:ivy="antlib:org.apache.ivy.ant">
+ <property name="src.dir" value="src" />
+ <property name="test.dir" value="test" />
+ <property name="lib.dir" value="lib" />
+ <property name="build.dir" value="bin" />
+
+ <target name="clean" description="--> clean the project">
+ <delete dir="${build.dir}">
+ <fileset dir="." includes="**/*"/>
+ </delete>
+ </target>
+
+ <target name="resolve">
+ <ivy:retrieve />
+ </target>
+
+ <target name="test" dependsOn="resolve">
+ <mkdir dir="${build.dir}/tests"/>
+ <javac srcdir="${test.dir}" destdir="${build.dir}/tests"
+ includeantruntime="false">
+ </javac>
+ <junit>
+ <formatter type="brief" usefile="false" />
+ <batchtest>
+ <fileset dir="${build.dir}/tests" includes="**/*.class" />
+ </batchtest>
+ </junit>
+ </target>
+</project>
View
12 ivy.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ivy-module version="2.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation= "http://ant.apache.org/ivy/schemas/ivy.xsd">
+ <info organisation="com.visionarysoftwaresolutions" module="menu">
+ <ivyauthor name="Nicholas Vaidyanathan" url="http://www.visionarysoftwaresolutions.com"/>
+ <description homepage="https://github.com/leadVisionary/Menu/" />
+ </info>
+ <dependencies>
+ <dependency org="junit" name="junit" rev="4.10.0" />
+ </dependencies>
+</ivy-module>

0 comments on commit 69a2ad9

Please sign in to comment.