[FOray-commit] SF.net SVN: foray: [7747] trunk/foray/scripts/build.xml
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-06-30 23:01:15
|
Revision: 7747 Author: victormote Date: 2006-06-30 16:01:11 -0700 (Fri, 30 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7747&view=rev Log Message: ----------- 1. Rearrange targets to accommodate modular builds. 2. Get the font module build working. Modified Paths: -------------- trunk/foray/scripts/build.xml Modified: trunk/foray/scripts/build.xml =================================================================== --- trunk/foray/scripts/build.xml 2006-06-30 21:45:53 UTC (rev 7746) +++ trunk/foray/scripts/build.xml 2006-06-30 23:01:11 UTC (rev 7747) @@ -1,7 +1,7 @@ <?xml version="1.0"?> <!-- $Id$ --> -<project default="package" basedir="."> +<project default="package-all" basedir="."> <!-- Set up a prefix to designate environment variables. --> <property environment="env"/> @@ -61,22 +61,45 @@ <!-- create directories --> <echo message="Preparing the build directories"/> <mkdir dir="${build.dir}"/> + <mkdir dir="${foray.home}/foray-common/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-pretty/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-graphic/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-mif/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-ps/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-pdf/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-font/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-hyphen-r/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-hyphen-r/build/ant"/> + <mkdir dir="${foray.home}/foray-text/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-fotree/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-areatree/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-layout/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-pioneer/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-output/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-render/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-core/build/ant/classes"/> + <mkdir dir="${foray.home}/foray-app/build/ant/classes"/> </target> <!-- =================================================================== --> - <!-- Compiles all packages --> + <!-- Compiles all modules --> <!-- =================================================================== --> - <target name="all-packages" depends="prepare, common, pretty, ps, graphic, + <target name="all-modules" depends="prepare, pretty, ps, graphic, mif, font, hyphen, text, pdf, fotree, areatree, pioneer, render, core, app"> - <echo message="Building the Subpackages"/> </target> <!-- =================================================================== --> + <!-- Compiles all modules and packages them in a jar file --> + <!-- =================================================================== --> + <target name="package-all" depends="all-modules, validate-web, package" + description="Build all FOray modules and package them in a jar file"/> + + <!-- =================================================================== --> <!-- Creates the project output --> <!-- =================================================================== --> - <target name="package" depends="all-packages, validate-web" - description="Generates the jar files (default target)"> + <target name="package" depends="" + description="Generates a jar file for whatever targets have been built."> <echo message="Creating the jar file ${module.jar.name}"/> <tstamp> @@ -402,7 +425,8 @@ <!-- =================================================================== --> <!-- Clean targets --> <!-- =================================================================== --> - <target name="clean" depends="init" description="Cleans the build directory"> + <target name="clean" depends="init" + description="Cleans the main build directory and all module directories."> <delete dir="${build.dir}"/> <ant antfile="${foray.home}/foray-common/scripts/build.xml" @@ -531,11 +555,10 @@ target="style"/> </target> - <!-- =================================================================== --> - <!-- Build the Common module --> - <!-- =================================================================== --> - <target name="common" depends="prepare" description="Compile the common module"> - <echo message="Building the Common Package"/> + <!-- =================================================================== + Build the Common module (not publicized) + =================================================================== --> + <target name="common" depends="prepare"> <ant antfile="${foray.home}/foray-common/scripts/build.xml" inheritall="false" target="package"> @@ -546,7 +569,8 @@ <!-- =================================================================== --> <!-- Build the Pretty module --> <!-- =================================================================== --> - <target name="pretty" depends="prepare" description="Compile the pretty module"> + <target name="pretty" depends="common" + description="Compile the pretty module"> <ant antfile="${foray.home}/foray-pretty/scripts/build.xml" inheritall="false" target="package"> @@ -557,7 +581,8 @@ <!-- =================================================================== --> <!-- Build the PostScript module --> <!-- =================================================================== --> - <target name="ps" depends="prepare" description="Compile the ps module"> + <target name="ps" depends="common" + description="Compile the ps module"> <ant antfile="${foray.home}/foray-ps/scripts/build.xml" inheritall="false" target="package"> @@ -568,7 +593,8 @@ <!-- =================================================================== --> <!-- Build the Graphic module --> <!-- =================================================================== --> - <target name="graphic" depends="prepare" description="Compile the graphic module"> + <target name="graphic" depends="common" + description="Compile the graphic module"> <ant antfile="${foray.home}/foray-graphic/scripts/build.xml" inheritall="false" target="package"> @@ -579,7 +605,8 @@ <!-- =================================================================== --> <!-- Build the MIF module --> <!-- =================================================================== --> - <target name="mif" depends="prepare" description="Compile the mif module"> + <target name="mif" depends="common" + description="Compile the mif module"> <ant antfile="${foray.home}/foray-mif/scripts/build.xml" inheritall="false" target="package"> @@ -590,7 +617,8 @@ <!-- =================================================================== --> <!-- Build the Font module --> <!-- =================================================================== --> - <target name="font" depends="prepare" description="Compile the font module"> + <target name="font" depends="ps, pretty" + description="Compile the font module"> <ant antfile="${foray.home}/foray-font/scripts/build.xml" inheritall="false" target="package"> @@ -601,7 +629,8 @@ <!-- =================================================================== --> <!-- Build the Hyphen module --> <!-- =================================================================== --> - <target name="hyphen" depends="prepare" description="Compile the hyphen module"> + <target name="hyphen" depends="common" + description="Compile the hyphen module"> <ant antfile="${foray.home}/foray-hyphen-r/scripts/build.xml" inheritall="false" target="package"> @@ -612,7 +641,8 @@ <!-- =================================================================== --> <!-- Build the Text module --> <!-- =================================================================== --> - <target name="text" depends="prepare" description="Compile the text module"> + <target name="text" depends="common" + description="Compile the text module"> <ant antfile="${foray.home}/foray-text/scripts/build.xml" inheritall="false" target="package"> @@ -623,7 +653,8 @@ <!-- =================================================================== --> <!-- Build the PDF module --> <!-- =================================================================== --> - <target name="pdf" depends="prepare" description="Compile the pdf module"> + <target name="pdf" depends="common" + description="Compile the pdf module"> <ant antfile="${foray.home}/foray-pdf/scripts/build.xml" inheritall="false" target="package"> @@ -634,7 +665,8 @@ <!-- =================================================================== --> <!-- Build the FOTree module --> <!-- =================================================================== --> - <target name="fotree" depends="prepare" description="Compile the fotree module"> + <target name="fotree" depends="common" + description="Compile the fotree module"> <ant antfile="${foray.home}/foray-fotree/scripts/build.xml" inheritall="false" target="package"> @@ -645,7 +677,8 @@ <!-- =================================================================== --> <!-- Build the AreaTree module --> <!-- =================================================================== --> - <target name="areatree" depends="prepare" description="Compile the areatree module"> + <target name="areatree" depends="common" + description="Compile the areatree module"> <ant antfile="${foray.home}/foray-areatree/scripts/build.xml" inheritall="false" target="package"> @@ -654,9 +687,22 @@ </target> <!-- =================================================================== --> + <!-- Build the Output module (unadvertised) --> + <!-- =================================================================== --> + <target name="output" depends="common" + description="Compile the output module"> + <ant antfile="${foray.home}/foray-output/scripts/build.xml" + inheritall="false" + target="package"> + <property name="foray.config" value="${foray.config}"/> + </ant> + </target> + + <!-- =================================================================== --> <!-- Build the Pioneer module --> <!-- =================================================================== --> - <target name="pioneer" depends="prepare" description="Compile the pioneer module"> + <target name="pioneer" depends="output" + description="Compile the pioneer module"> <ant antfile="${foray.home}/foray-pioneer/scripts/build.xml" inheritall="false" target="package"> @@ -667,7 +713,8 @@ <!-- =================================================================== --> <!-- Build the Render module --> <!-- =================================================================== --> - <target name="render" depends="prepare" description="Compile the render module"> + <target name="render" depends="common" + description="Compile the render module"> <ant antfile="${foray.home}/foray-render/scripts/build.xml" inheritall="false" target="package"> @@ -678,7 +725,8 @@ <!-- =================================================================== --> <!-- Build the Core module --> <!-- =================================================================== --> - <target name="core" depends="prepare" description="Compile the core module"> + <target name="core" depends="common" + description="Compile the core module"> <ant antfile="${foray.home}/foray-core/scripts/build.xml" inheritall="false" target="package"> @@ -689,7 +737,8 @@ <!-- =================================================================== --> <!-- Build the Application module --> <!-- =================================================================== --> - <target name="app" depends="prepare" description="Compile the app module"> + <target name="app" depends="common" + description="Compile the app module"> <ant antfile="${foray.home}/foray-app/scripts/build.xml" inheritall="false" target="package"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |