...
 
Commits (13)
......@@ -30,6 +30,11 @@ local.properties
.classpath
.factorypath
# Ant
.ant-targets-build.xml
build/
dist/
lib/
# jFiler
out/
!lib/*.jar
......@@ -3,7 +3,6 @@
src=src/
lib=lib/
out=out/
test=test/
jar=jFiler
package=in.ankitpati.jfiler
packageDir=in/ankitpati/jfiler
<?xml version="1.0" encoding="UTF-8" ?>
<project name="jFiler" default="build">
<!DOCTYPE project>
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="jFiler" default="build">
<property file="build.properties" />
<taskdef name="testng" classname="org.testng.TestNGAntTask">
<classpath>
<pathelement location="lib/testng.jar" />
</classpath>
</taskdef>
<path id="classpath.base" />
<path id="classpath.test">
......@@ -30,6 +25,7 @@
</target>
<target name="clean">
<delete dir="${lib}" />
<delete dir="${out}" />
<delete>
<fileset dir="${src}" includes="**/*.class" />
......@@ -39,7 +35,11 @@
</delete>
</target>
<target name="compile" depends="info">
<target name="resolve">
<ivy:retrieve />
</target>
<target name="compile" depends="resolve">
<mkdir dir="${out}" />
<javac srcdir="${src}" destdir="${out}" source="1.8" target="1.8"
includeantruntime="false">
......@@ -48,12 +48,14 @@
</target>
<target name="test" depends="compile">
<taskdef name="testng" classpathref="classpath.test"
classname="org.testng.TestNGAntTask" />
<testng outputdir="${out}/TestNG" classpathref="classpath.test">
<xmlfileset dir="${src}" includes="testng.xml" />
</testng>
</target>
<target name="build" depends="compile">
<target name="build" depends="info,compile">
<jar destfile="${jar}.jar" basedir="${out}"
excludes="TestNG/** ${packageDir}/tests/**">
<manifest>
......
<?xml version="1.0" encoding="UTF-8" ?>
<ivy-module version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"https://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="ankitpati" module="jFiler" />
<dependencies>
<dependency org="org.testng" name="testng" rev="latest.release" />
</dependencies>
</ivy-module>
package in.ankitpati.jfiler.tests;
import java.io.*;
import java.util.*;
import org.testng.*;
import org.testng.annotations.*;
import in.ankitpati.jfiler.commands.*;
......
package in.ankitpati.jfiler.tests;
import java.io.*;
import java.util.*;
import org.testng.*;
import org.testng.annotations.*;
import in.ankitpati.jfiler.commands.*;
......
package in.ankitpati.jfiler.tests;
import java.io.*;
import java.util.*;
import org.testng.*;
import org.testng.annotations.*;
import in.ankitpati.jfiler.commands.*;
......
package in.ankitpati.jfiler.tests;
import java.io.*;
import java.util.*;
import org.testng.*;
import org.testng.annotations.*;
import in.ankitpati.jfiler.commands.*;
......
package in.ankitpati.jfiler.tests;
import java.io.*;
import java.util.*;
import org.testng.*;
import org.testng.annotations.*;
import in.ankitpati.jfiler.commands.*;
......