Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 52630b0b39
Fetching contributors…

Cannot retrieve contributors at this time

102 lines (88 sloc) 3.95 kb
<?xml version="1.0" encoding="UTF-8"?>
<project name="BeanShell Engine" default="dist" basedir=".">
This script will build the BeanShell Engine lib.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
<property name="src" location="src" />
<property name="lib" location="lib" />
<property name="build" location="build" />
<property name="build.classes" location="${build}/classes" />
<property name="build.dist" location="${build}/dist" />
<path id="classpath">
<fileset dir="${lib}">
<include name="*.jar" />
<pathconvert property="manifest.libs" pathsep=" ">
<path refid="classpath" />
<flattenmapper />
<globmapper from="*.jar" to="*.jar" />
<target name="init" depends="clean,checkRequirements,getChangelogDateVersion" description="Create the output directories.">
<mkdir dir="${build}" />
<mkdir dir="${build.classes}" />
<target name="compile" depends="init" description="Compile the source.">
<javac srcdir="${src}" classpathref="classpath" destdir="${build.classes}" compiler="javac1.7" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="1.7" target="1.7" />
<copy todir="${build.classes}/META-INF/services">
<fileset dir="${src}/META-INF/services" />
<target name="jar" depends="compile" description="Create the jar file.">
<jar destfile="${build.dist}/bsh-engine-2.0b5.jar">
<fileset dir="${build.classes}" />
<attribute name="Built-By" value="${}" />
<attribute name="Built-Date" value="${build.tstamp}" />
<attribute name="Class-Path" value="${manifest.libs}" />
<attribute name="Implementation-URL" value="" />
<attribute name="Implementation-Version" value="${l2j.version}" />
<target name="dist" depends="jar" description="Generates a zip with the BeanShell Engine.">
<concat destfile="${build.dist}/bsh-engine_CHANGELOG.txt">${l2j.changelog}</concat>
<zip destfile="${build}/" basedir="${build.dist}" />
<target name="clean" description="Remove the output directories.">
<delete dir="${build}" />
<target name="checkRequirements" description="Check Requirements">
<fail message="Ant 1.8.2 is required. But your version is ${ant.version}">
<antversion atleast="1.8.2" />
<available classname="java.lang.AutoCloseable" property="JDK7.present" />
<fail unless="JDK7.present" message="Java 1.7 is required. But your version is Java ${} and probably JDK is not installed." />
<target name="getChangelogDateVersion" description="Get Changelog, Date, Version">
<exec dir="." executable="svn" outputproperty="l2j.changelog">
<arg value="log" />
<arg value="--stop-on-copy" />
<format property="build.tstamp" pattern="dd/MM/yyyy HH:mm" />
<exec dir="." executable="svnversion" outputproperty="l2j.version" />
Jump to Line
Something went wrong with that request. Please try again.