Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

99 lines (80 sloc) 2.654 kb
<project name="revolution" default="dist" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
<property file="build.properties" />
<property name="ivy.file" value="ivysettings.xml" />
<path id="project.class.path">
<fileset dir="${lib.dir}" />
<pathelement location="${bin}" />
</path>
<path id="test.class.path">
<pathelement location="${test-bin}" />
<path refid="project.class.path" />
</path>
<!-- resolve dependencies -->
<target name="resolve" description="--> retrieve dependencies with ivy">
<path id="ivy.lib.path">
<pathelement location="${ivy.jar.file}" />
</path>
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path" />
<delete dir="${lib.dir}" includes="**/*.*" />
<ivy:settings file="${ivy.file}" />
<ivy:retrieve pattern="lib/[artifact](-[classifier]).[ext]" sync="true" />
</target>
<target name="clean">
<delete dir="${bin}" />
<delete dir="${test-bin}" />
</target>
<target name="init" depends="clean">
<tstamp />
<mkdir dir="${bin}" />
<mkdir dir="${test-bin}" />
</target>
<target name="compile" depends="init, resolve">
<javac srcdir="${src}" destdir="${bin}" debug="true" debuglevel="lines,vars,source">
<classpath refid="project.class.path" />
<src path="${src}"></src>
</javac>
</target>
<target name="compile-tests" depends="compile">
<javac srcdir="${test}" destdir="${test-bin}">
<classpath refid="project.class.path" />
</javac>
</target>
<target name="tests" depends="compile-tests">
<junit printsummary="true" fork="yes" haltonfailure="yes">
<classpath refid="test.class.path" />
<formatter type="brief" usefile="false" />
<batchtest fork="yes">
<fileset dir="${test-bin}">
<include name="**/*Test*" />
</fileset>
</batchtest>
</junit>
</target>
<path id="lib.classpath">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<pathconvert property="manifest.classpath" pathsep=" ">
<path refid="lib.classpath"/>
<mapper>
<chainedmapper>
<flattenmapper/>
<globmapper from="*.jar" to="lib/*.jar"/>
</chainedmapper>
</mapper>
</pathconvert>
<target name="dist" depends="compile">
<mkdir dir="${dist}" />
<jar jarFile="${dist}/rEvolution-${version}.jar" basedir="${bin}">
<fileset dir="${resources}"/>
<manifest>
<attribute name="Main-Class" value="br.com.caelum.revolution.Launcher" />
<attribute name="Class-Path" value="${manifest.classpath}" />
</manifest>
</jar>
<copy todir="${dist}/lib">
<fileset dir="${lib.dir}" />
</copy>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.