Build.xml (Ant editor in Eclipse)
- Yavneeka Patel
- Mar 25, 2015
- 1 min read
//The following code was modified from the ant tutorial on eclipse
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="The hello world demo.">
<description>
This file is used to run the hello world demo.
NOTE: Before running the tests, you must have already built
the sphinx-4 sources by typing "ant" in the top level
sphinx4 directory.
</description>
<!-- ********************************************************** -->
<!-- * * -->
<!-- * Properties common to all tests * -->
<!-- * * -->
<!-- ********************************************************** -->
<property name="top_dir" value="../../.."/>
<property name="build_dir" value="bld"/>
<property name="classes_dir" value="${build_dir}"/>
<property name="lib_dir" value="${top_dir}/lib"/>
<path id="run.classpath">
<pathelement path="${classes_dir}"/>
<pathelement location="${top_dir}/lib/jsapi.jar"/>
</path>
<!-- ********************************************************** -->
<!-- * * -->
<!-- * The 'none' target. * -->
<!-- * * -->
<!-- ********************************************************** -->
<target name="none">
<echo>Type 'ant -projecthelp' for possible targets.</echo>
</target>
<!-- ********************************************************** -->
<!-- * * -->
<!-- * Compile all the test code. * -->
<!-- * * -->
<!-- ********************************************************** -->
<target name="all"
description="Compiles all the tests.">
<javac debug="true"
source="1.4"
deprecation="true"
destdir="${classes_dir}"
classpath="${classes_dir}:${top_dir}/lib/jsapi.jar:${lib_dir}/sphinx4.jar:${lib_dir}/TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar:${lib_dir}/WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar"
srcdir="src"/>
</target>
<!-- ********************************************************** -->
<!-- * * -->
<!-- * Runs the hello world demo. * -->
<!-- * * -->
<!-- ********************************************************** -->
<target name="run"
description="Runs the hello world demo."
depends="all">
<java classname="demo.sphinx.helloworld.HelloWorld"
fork="true"
maxmemory="128m">
<sysproperty key="frontend" value="epFrontEnd"/>
<classpath refid="run.classpath"/>
<arg value="helloworld.config.xml"/>
</java>
</target>
</project>
Recent Posts
See AllSo we've made it to the very end. Through all the ups and downs and we're all still standing. It was an amazing semester and I made some...
/** *Java Speech Grammar Format (JSGF) file *This file holds all the words that the program will recognize **/...
/* * Copyright 2013 Carnegie Mellon University. * Portions Copyright 2004 Sun Microsystems, Inc. * Portions Copyright 2004 Mitsubishi...
Comentários