top of page

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>

 
 
 

Comments


Featured Posts
Check back soon
Once posts are published, you’ll see them here.
Recent Posts
Archive
Search By Tags
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
  • Facebook Classic
  • Twitter Classic
  • Google Classic
  • RSS Classic

© 2023 by TOKYO DESIGN. Proudly created with Wix.com

bottom of page