PageRenderTime 338ms CodeModel.GetById 216ms app.highlight 1ms RepoModel.GetById 119ms app.codeStats 1ms

/build.xml

http://github.com/nddrylliog/ooc
XML | 54 lines | 42 code | 5 blank | 7 comment | 0 complexity | 96dfdf09cf86e7db25f2dad493cae495 MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 2<project default="create_run_jar" name="Create Runnable Jar for Project ooc-frontend">
 3	<!-- set global properties for this build -->
 4	<property name="build" location="build/javac-classes"/>
 5	<property name="bin" location="bin"/>
 6	<loadfile property="version-codename" srcFile="utils/version.txt">
 7		<filterchain>
 8			<tokenfilter>
 9				<trim/>
10				<ignoreblank/>
11			</tokenfilter>
12		</filterchain>
13	</loadfile>
14
15	<target name="init">
16		<!-- Create the time stamp -->
17		<tstamp>
18			<format property="date" pattern="yyyy-MM-dd"/>
19			<format property="time" pattern="HH:mm"/>
20		</tstamp>
21		<!-- Create the build directory structure used by compile -->
22		<mkdir dir="${build}"/>
23		<mkdir dir="${bin}"/>
24	</target>
25
26	<target name="compile" depends="init"
27			description="compile the source " >
28		<!-- Compile the java code from ${src} into ${build} -->
29		<javac destdir="${build}" debug="true">
30			<src path="src"/>
31		</javac>
32	</target>
33
34    <!--this file was created by Eclipse Runnable JAR Export Wizard-->
35    <!--ANT 1.7 is required                                        -->
36    <target name="create_run_jar" depends="compile">
37        <jar destfile="bin/ooc.jar" filesetmanifest="mergewithoutmain">
38            <manifest>
39				<attribute name="Built-By" value="${user.name}"/>
40                <attribute name="Main-Class" value="org.ooc.frontend.CommandLine"/>
41                <attribute name="Class-Path" value="."/>
42				<attribute name="Implementation-Version" value="${version-codename}, built on ${date} at ${time}"/> 
43            </manifest>
44            <fileset dir="${build}"/>
45        </jar>
46    </target>
47	
48	<target name="clean"
49        description="clean up" >
50		<!-- Delete the ${build} directory trees -->
51		<delete dir="${build}"/>
52	</target>
53	
54</project>