[FOray-commit] SF.net SVN: foray: [9954] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2007-07-09 15:22:01
|
Revision: 9954
http://svn.sourceforge.net/foray/?rev=9954&view=rev
Author: victormote
Date: 2007-07-09 08:22:01 -0700 (Mon, 09 Jul 2007)
Log Message:
-----------
Add new speech module to the build.
Modified Paths:
--------------
trunk/foray/foray-app/scripts/build.xml
trunk/foray/scripts/build.xml
Added Paths:
-----------
trunk/foray/foray-speech/scripts/
trunk/foray/foray-speech/scripts/build.xml
Modified: trunk/foray/foray-app/scripts/build.xml
===================================================================
--- trunk/foray/foray-app/scripts/build.xml 2007-07-08 00:13:12 UTC (rev 9953)
+++ trunk/foray/foray-app/scripts/build.xml 2007-07-09 15:22:01 UTC (rev 9954)
@@ -41,6 +41,9 @@
<fileset dir="${foray.sandbox}/foray-font/build/ant">
<include name="*.jar"/>
</fileset>
+ <fileset dir="${foray.sandbox}/foray-speech/build/ant">
+ <include name="*.jar"/>
+ </fileset>
<fileset dir="${foray.sandbox}/foray-ps/build/ant">
<include name="*.jar"/>
</fileset>
Added: trunk/foray/foray-speech/scripts/build.xml
===================================================================
--- trunk/foray/foray-speech/scripts/build.xml (rev 0)
+++ trunk/foray/foray-speech/scripts/build.xml 2007-07-09 15:22:01 UTC (rev 9954)
@@ -0,0 +1,151 @@
+<?xml version="1.0"?>
+<!-- $Id$ -->
+
+<project default="package" basedir=".">
+
+ <import file="../../scripts/build-common.xml"/>
+
+ <!-- =================================================================== -->
+ <!-- Initialization target -->
+ <!-- =================================================================== -->
+ <target name="init" depends="env, common-init">
+ <property name="module" value="speech"/>
+ <property name="module.dir" value="${foray.sandbox}/foray-${module}"/>
+ <property name="src.dir" value="${module.dir}/src/java"/>
+ <property name="build.dir" value="${module.dir}/build/ant"/>
+ <property name="classes.dir" value="${build.dir}/classes"/>
+ <property name="jar.file"
+ location="${build.dir}/${name.lowercase}-${module}-${version}.jar"/>
+
+ <path id="libs-build-classpath">
+ <fileset dir="${axsl.build}">
+ <include name="**/axsl*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}">
+ <include name="axsl*.jar"/>
+ </fileset>
+ <fileset dir="${foray.sandbox}/foray-common/build/ant">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Prepares the build directory -->
+ <!-- =================================================================== -->
+ <target name="prepare" depends="init">
+ <!-- create directories -->
+ <echo message="Preparing the build directories"/>
+ <mkdir dir="${build.dir}"/>
+ <mkdir dir="${classes.dir}"/>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Prepares the source code -->
+ <!-- =================================================================== -->
+ <target name="prepare-src"
+ depends="prepare">
+ <!-- copy src files -->
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Compiles the source directory -->
+ <!-- =================================================================== -->
+ <target name="compile" depends="prepare-src">
+ <echo message="Compiling the sources "/>
+ <!-- create directories -->
+ <mkdir dir="${build.dir}"/>
+ <javac destdir="${classes.dir}"
+ debug="${debug}"
+ deprecation="${deprecation}"
+ optimize="${optimize}"
+ source="${source}"
+ >
+ <src path="${src.dir}"/>
+ <classpath refid="libs-build-classpath"/>
+ </javac>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Creates the class package -->
+ <!-- =================================================================== -->
+ <target name="package" depends="compile"
+ description="Generates the jar files (default target)">
+ <echo message="Creating the jar file ${jar.file}"/>
+
+ <tstamp>
+ <format property="ts" pattern="yyyyMMdd-HHmmss-z"/>
+ </tstamp>
+ <jar jarfile="${jar.file}"
+ basedir="${classes.dir}"
+ >
+ <manifest>
+ <attribute name="Implementation-Title" value="${name}-${module}"/>
+ <attribute name="Implementation-Version" value="${version}"/>
+ <attribute name="Implementation-Vendor"
+ value="${contact.info}"/>
+ </manifest>
+ </jar>
+
+ </target>
+
+ <target name="javadoc-api" depends="init" description="Creates API
+ documentation">
+ <echo message="Producing the javadoc files "/>
+ <mkdir dir="${build.dir}/javadoc-api"/>
+ <javadoc
+ packagenames="org.foray.speech"
+ sourcepath="${src.dir}/java"
+ destdir="${build.dir}/javadoc-api"
+ classpathref="libs-build-classpath"
+ author="true"
+ version="true"
+ windowtitle="FOray Speech Integration API"
+ doctitle="FOray Speech Integration API"
+ bottom="Copyright © 2007 The FOray Project. All Rights Reserved."
+ overview="${src.dir}/java/org/foray/speech/overview.html"
+ use="true"
+ access="public"
+ failonerror="true">
+ <classpath refid="libs-build-classpath"/>
+ <classpath>
+ <fileset dir="${lib.dir}">
+ <include name="ant*.jar"/>
+ </fileset>
+ </classpath>
+ </javadoc>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Clean targets -->
+ <!-- =================================================================== -->
+ <target name="clean" depends="init" description="Cleans the build directory">
+ <delete dir="${build.dir}"/>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Checkstyle -->
+ <!-- =================================================================== -->
+ <target name="style" depends="package" description="Runs checkstyle"
+ if="checkstyle.home">
+ <taskdef name="checkstyle"
+ classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
+ <classpath>
+ <fileset dir="${checkstyle.home}">
+ <include name="checkstyle-all-*.jar"/>
+ </fileset>
+ </classpath>
+ </taskdef>
+ <checkstyle config="../../scripts/checkstyle-config.xml">
+ <fileset dir="${src.dir}" includes="**/*.java"/>
+ <classpath>
+ <path refid="libs-build-classpath"/>
+ <path location="${jar.file}"/>
+ </classpath>
+ </checkstyle>
+ </target>
+
+</project>
+
+<!-- Last Line of Script. -->
Property changes on: trunk/foray/foray-speech/scripts/build.xml
___________________________________________________________________
Name: svn:keywords
+ "Author Id Rev Date URL"
Name: svn:eol-style
+ native
Modified: trunk/foray/scripts/build.xml
===================================================================
--- trunk/foray/scripts/build.xml 2007-07-08 00:13:12 UTC (rev 9953)
+++ trunk/foray/scripts/build.xml 2007-07-09 15:22:01 UTC (rev 9954)
@@ -31,6 +31,7 @@
<mkdir dir="${foray.sandbox}/foray-ps/build/ant/classes"/>
<mkdir dir="${foray.sandbox}/foray-pdf/build/ant/classes"/>
<mkdir dir="${foray.sandbox}/foray-font/build/ant/classes"/>
+ <mkdir dir="${foray.sandbox}/foray-speech/build/ant/classes"/>
<mkdir dir="${foray.sandbox}/foray-hyphen-r/build/ant/classes"/>
<mkdir dir="${foray.sandbox}/foray-hyphen-r/build/ant"/>
<mkdir dir="${foray.sandbox}/foray-text/build/ant/classes"/>
@@ -100,6 +101,10 @@
dir="${foray.sandbox}/foray-font/build/ant/classes">
<include name="**"/>
</fileset>
+ <fileset id="foray-speech-classes"
+ dir="${foray.sandbox}/foray-speech/build/ant/classes">
+ <include name="**"/>
+ </fileset>
<fileset id="foray-hyphen-classes"
dir="${foray.sandbox}/foray-hyphen-r/build/ant/classes">
<include name="**"/>
@@ -150,6 +155,7 @@
<fileset refid="foray-ps-classes"/>
<fileset refid="foray-pdf-classes"/>
<fileset refid="foray-font-classes"/>
+ <fileset refid="foray-speech-classes"/>
<fileset refid="foray-hyphen-classes"/>
<fileset refid="foray-text-classes"/>
<fileset refid="foray-fotree-classes"/>
@@ -271,6 +277,7 @@
<fileset dir="${foray.sandbox}/foray-pretty/build/ant" includes="foray*.jar"/>
<fileset dir="${foray.sandbox}/foray-ps/build/ant" includes="foray*.jar"/>
<fileset dir="${foray.sandbox}/foray-render/build/ant" includes="foray*.jar"/>
+ <fileset dir="${foray.sandbox}/foray-speech/build/ant" includes="foray*.jar"/>
<fileset dir="${foray.sandbox}/foray-text/build/ant" includes="foray*.jar"/>
<fileset dir="${lib.dir}" includes="**"/>
@@ -379,6 +386,7 @@
<pathelement path="${foray.sandbox}/foray-ps/src/java"/>
<pathelement path="${foray.sandbox}/foray-graphic/src/java"/>
<pathelement path="${foray.sandbox}/foray-font/src/java"/>
+ <pathelement path="${foray.sandbox}/foray-speech/src/java"/>
<pathelement path="${foray.sandbox}/foray-hyphen-r/src/java"/>
<pathelement path="${foray.sandbox}/foray-fotree/src/java"/>
<pathelement path="${foray.sandbox}/foray-areatree/src/java"/>
@@ -416,6 +424,10 @@
<package name="org.foray.font"/>
<package name="org.foray.font.*"/>
</group>
+ <group title="The FOray Speech Module">
+ <package name="org.foray.speech"/>
+ <package name="org.foray.speech.*"/>
+ </group>
<group title="The FOray Hyphenation Module">
<package name="org.foray.hyphenR"/>
<package name="org.foray.hyphenR.*"/>
@@ -510,6 +522,10 @@
inheritall="false"
target="clean"/>
+ <ant antfile="${foray.sandbox}/foray-speech/scripts/build.xml"
+ inheritall="false"
+ target="clean"/>
+
<ant antfile="${foray.sandbox}/foray-hyphen-r/scripts/build.xml"
inheritall="false"
target="clean"/>
@@ -577,6 +593,9 @@
<ant antfile="${foray.sandbox}/foray-font/scripts/build.xml"
inheritall="false"
target="style"/>
+ <ant antfile="${foray.sandbox}/foray-speech/scripts/build.xml"
+ inheritall="false"
+ target="style"/>
<ant antfile="${foray.sandbox}/foray-hyphen-r/scripts/build.xml"
inheritall="false"
target="style"/>
@@ -690,6 +709,19 @@
</target>
<!-- =================================================================== -->
+ <!-- Build the Speech module -->
+ <!-- =================================================================== -->
+ <target name="speech" depends="common"
+ description="Compile the speech module">
+ <property name="module.speech" value=", speech"/>
+ <ant antfile="${foray.sandbox}/foray-speech/scripts/build.xml"
+ inheritall="false"
+ target="style">
+ <property name="foray.config" value="${foray.config}"/>
+ </ant>
+ </target>
+
+ <!-- =================================================================== -->
<!-- Build the Hyphen module -->
<!-- =================================================================== -->
<target name="hyphen" depends="common"
@@ -821,7 +853,7 @@
Build the App module (unadvertised)
=================================================================== -->
<target name="app" depends="prepare, pretty, ps, graphic, mif, font, hyphen,
- text, pdf, fotree, areatree, pioneer, render, core">
+ speech, text, pdf, fotree, areatree, pioneer, render, core">
<property name="module.app" value=", app"/>
<property name="file.subset" value="-all"/>
<ant antfile="${foray.sandbox}/foray-app/scripts/build.xml"
@@ -845,6 +877,7 @@
<property name="module.graphic" value=""/>
<property name="module.mif" value=""/>
<property name="module.font" value=""/>
+ <property name="module.speech" value=""/>
<property name="module.hyphen" value=""/>
<property name="module.text" value=""/>
<property name="module.pdf" value=""/>
@@ -863,11 +896,11 @@
<property name="module.list2"
value="${module.mif}${module.font}${module.hyphen}${module.text}"/>
<property name="module.list3"
- value="${module.pdf}${module.fotree}${module.areatree}${module.output}"/>
+ value="${module.pdf}${module.speech}"/>
<property name="module.list4"
- value="${module.layout}${module.pioneer}${module.render}${module.core}"/>
+ value="$${module.fotree}${module.areatree}${module.output}{module.layout}"/>
<property name="module.list5"
- value="${module.app}"/>
+ value="${module.pioneer}${module.render}${module.core}${module.app}"/>
<!-- Now group them all together. -->
<property name="module.list" value=
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|