Last active
December 27, 2015 07:29
-
-
Save boseji/7289511 to your computer and use it in GitHub Desktop.
jNeelSerial Ant Build Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 [email protected] | |
@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