Skip to content

Instantly share code, notes, and snippets.

@boseji
Last active December 27, 2015 07:29
Show Gist options
  • Save boseji/7289511 to your computer and use it in GitHub Desktop.
Save boseji/7289511 to your computer and use it in GitHub Desktop.
jNeelSerial Ant Build Script
<?xml version="1.0" encoding="UTF-8"?>
<!--
jNeelSerial Build Script
........................
@copy © Abhijit Bose , A.D.H.A.R Labs Research Bharat(India), 2013.
jNeelSerial 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 of the License, or
(at your option) any later version.
jNeelSerial is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
@email info@adharlabs.in
@website http://adharlabs.in
-->
<project basedir="." default="compile" name="jNeelSer">
<fail message="Please build using Ant 1.8.0 or higher.">
<condition>
<not>
<antversion atleast="1.8.0"/>
</not>
</condition>
</fail>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${build}/classes"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<javac srcdir="${src}" destdir="${build}/classes" includeantruntime="true" >
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="./lib/jssc.jar"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist}"/>
<jar destfile="${dist}/jNeelSerial.jar" basedir="${build}/classes">
<manifest>
<attribute name="Main-Class" value="com.adharlabs.jNeelSer.Exe"/>
</manifest>
<zipgroupfileset dir="./lib" includes="**/*.jar"/>
</jar>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment