Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (45 sloc) 1.72 KB
<?xml version="1.0" encoding="UTF-8"?>
<project name="play-loader" default="build" basedir=".">
<!--<property file="build.properties" />-->
<property name="play.path" value="D:/play-1.2.4"></property>
<target name="check" unless="play.path">
<fail message="Please specify Play framework path using -Dplay.path=/path/to/framework/home" />
</target>
<path id="project.classpath">
<pathelement path="${play.path}/framework/classes"/>
<fileset dir="${play.path}/framework/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${play.path}/framework">
<include name="*.jar"/>
</fileset>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="build" depends="compile">
<mkdir dir="lib" />
<copy todir="tmp/classes">
<fileset dir="src">
<include name="**/*.properties"/>
<include name="**/*.xml"/>
<include name="**/play.plugins"/>
<include name="**/play.static"/>
</fileset>
</copy>
<jar destfile="lib/play-loader.jar" basedir="tmp/classes">
<manifest>
<section name="Play-module">
<attribute name="Specification-Title" value="play-loader"/>
</section>
</manifest>
</jar>
<delete dir="tmp" />
</target>
<target name="compile" depends="check">
<mkdir dir="tmp/classes" />
<javac srcdir="src" destdir="tmp/classes" target="1.6" debug="true" includeantruntime="on" encoding="utf-8">
<classpath refid="project.classpath" />
</javac>
</target>
</project>