/[svn]/OpenMaTrEx/trunk/build.xml
ViewVC logotype

Contents of /OpenMaTrEx/trunk/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 149 - (show annotations)
Wed Jul 7 14:57:06 2010 UTC (7 years, 6 months ago) by spenkale
File MIME type: text/plain
File size: 3663 byte(s)
Merged pbanerjee branch into trunk
1 <project name="OpenMaTrEx" default="dist" basedir=".">
2 <!--
3 This file is part of OpenMaTrEx: a marker-driven corpus-based machine
4 translation system.
5
6 Copyright (c) 2004-2010 Dublin City University
7 (c) 2004-2007 Steve Armstrong, Yvette Graham, Nano Gough, Declan Groves,
8 Yanjun Ma, Nicolas Stroppa, John Tinsley, Andy Way, Bart Mellebeek
9 (c) 2010 Pratyush Banerjee, Sandipan Dandapat, Mikel L. Forcada,
10 Declan Groves, Sergio Penkale
11
12 This program is free software: you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation, either version 3 of the License, or
15 (at your option) any later version.
16
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program. If not, see <http://www.gnu.org/licenses/>
24 -->
25 <description>
26 build file for EBMT-system
27 </description>
28 <!-- set global properties for this build -->
29 <property name="src" location="${basedir}/src"/>
30 <property name="config" location="${basedir}/config"/>
31 <property name="lib" location="${basedir}/lib"/>
32 <property name="marker" location="${basedir}/marker_files"/>
33 <property name="tools" location="${basedir}/tools"/>
34 <property name="examples" location="${basedir}/examples"/>
35 <property name="build" location="build"/>
36 <property name="nowarn" value="off" />
37
38 <target name="init">
39 <!-- Create the time stamp -->
40 <tstamp/>
41 <!-- Create the build directory structure used by compile -->
42 <mkdir dir="${build}"/>
43 </target>
44
45 <target name="compile" depends="init" description="compile the source " >
46 <!-- Compile the java code from ${src} into ${build} -->
47 <javac srcdir="${src}" destdir="${build}" nowarn="${nowarn}"
48 classpath="${lib}/args4j-2.0.9.jar" debug="on">
49 <compilerarg value="-Xlint:unchecked"/>
50 <include name="**/*.java" />
51 </javac>
52 <!--copy todir="${build}">
53 <fileset dir="${args4j}">
54 <include name="**/*.properties"></include>
55 </fileset>
56 </copy-->
57 </target>
58
59 <target name="dist" depends="compile" description="generate the distribution" >
60 <!-- Create the distribution directory -->
61 <!-- <mkdir dir="${dist}/lib"/> -->
62 <!-- Put everything in ${build} into the OpenMaTrEx.jar file -->
63 <jar jarfile="./OpenMaTrEx.jar" basedir="${build}">
64 <manifest>
65 <!--attribute name="Main-Class" value="${mf.main-class}" /-->
66 <attribute name="Class-Path" value="${lib}/*.jar ${config} ${marker} ${tools} ${examples}" />
67 </manifest>
68 </jar>
69 </target>
70 <!-- If you want to generate Javadocs run ant javadoc -->
71 <target name="javadoc">
72 <javadoc access="public" author="true" classpath="lib/args4j-2.0.9.jar" destdir="doc"
73 nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false"
74 packagenames="org.dcu.matrex.openmatrex.decoders,org.dcu.matrex.openmatrex.aligners,org.dcu.matrex.openmatrex.main,org.dcu.matrex.openmatrex.learning,org.dcu.matrex.openmatrex.utils,org.dcu.matrex.openmatrex.chunkers,org.dcu.matrex.openmatrex.data"
75 source="1.6" sourcepath="src" splitindex="true" use="true" version="true"/>
76 </target>
77
78 <target name="clean"
79 description="clean up" >
80 <!-- Delete the ${build} and ${dist} directory trees -->
81 <delete dir="${build}"/>
82 <!-- <delete dir="${dist}"/> -->
83 </target>
84 </project>

Properties

Name Value
svn:executable *
svn:mime-type text/plain

Mikel L. Forcada">Mikel L. Forcada
ViewVC Help
Powered by ViewVC 1.1.5