Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (49 sloc) 1.55 KB
<?xml version="1.0" encoding="UTF-8"?>
<project name="elasticsearch" default="build" basedir=".">
<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="check" unless="play.path">
<fail message="Please specify Play framework path using -Dplay.path=/path/to/framework/home" />
</target>
<target name="compile" depends="check">
<property name="ant.build.javac.source" value="1.6" />
<property name="ant.build.javac.target" value="1.6" />
<mkdir dir="tmp/classes" />
<javac srcdir="src" destdir="tmp/classes" target="1.6" debug="true"
classpathref="project.classpath">
</javac>
</target>
<target name="build" depends="compile">
<echo message="${play.path}/play"></echo>
<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-elasticsearch.jar" basedir="tmp/classes">
<manifest>
<section name="Play-module">
<attribute name="Specification-Title" value="elasticsearch" />
</section>
</manifest>
</jar>
<delete dir="tmp" />
</target>
<target name="clean">
<delete dir="tmp"/>
<delete dir="modules"/>
</target>
</project>
Something went wrong with that request. Please try again.