[FOray-commit] SF.net SVN: foray: [7749] trunk/foray/scripts/build.xml
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-07-01 00:15:22
|
Revision: 7749 Author: victormote Date: 2006-06-30 17:15:18 -0700 (Fri, 30 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7749&view=rev Log Message: ----------- Add scheme for including a list of the modules in the jar file. Modified Paths: -------------- trunk/foray/scripts/build.xml Modified: trunk/foray/scripts/build.xml =================================================================== --- trunk/foray/scripts/build.xml 2006-06-30 23:31:10 UTC (rev 7748) +++ trunk/foray/scripts/build.xml 2006-07-01 00:15:18 UTC (rev 7749) @@ -85,9 +85,7 @@ <!-- Compiles all modules --> <!-- =================================================================== --> <target name="all-modules" depends="prepare, pretty, ps, graphic, - mif, font, hyphen, text, pdf, fotree, areatree, pioneer, render, core, - app"> - </target> + mif, font, hyphen, text, pdf, fotree, areatree, pioneer, render, core"/> <!-- =================================================================== --> <!-- Compiles all modules and packages them in a jar file --> @@ -98,7 +96,7 @@ <!-- =================================================================== --> <!-- Creates the project output --> <!-- =================================================================== --> - <target name="package" depends="" + <target name="package" depends="module-list" description="Generates a jar file for whatever targets have been built."> <echo message="Creating the jar file ${module.jar.name}"/> @@ -200,10 +198,11 @@ <fileset refid="foray-core-classes"/> <fileset refid="foray-app-classes"/> <manifest> - <attribute name="Implementation-Title" value="${name}-${module}"/> - <attribute name="Implementation-Version" value="${version}"/> - <attribute name="Implementation-Vendor" - value="${contact.info}"/> + <attribute name="Implementation-Title" value="${name}-${module}"/> + <attribute name="Implementation-Version" value="${version}"/> + <attribute name="Implementation-Vendor" + value="${contact.info}"/> + <attribute name="FOray-Modules" value="${module.list}"/> </manifest> </jar> </target> @@ -556,9 +555,10 @@ </target> <!-- =================================================================== - Build the Common module (not publicized) + Build the Common module (unadvertised) =================================================================== --> <target name="common" depends="prepare"> + <property name="module.common" value="common"/> <ant antfile="${foray.home}/foray-common/scripts/build.xml" inheritall="false" target="package"> @@ -571,6 +571,7 @@ <!-- =================================================================== --> <target name="pretty" depends="common" description="Compile the pretty module"> + <property name="module.pretty" value=", pretty"/> <ant antfile="${foray.home}/foray-pretty/scripts/build.xml" inheritall="false" target="package"> @@ -583,6 +584,7 @@ <!-- =================================================================== --> <target name="ps" depends="common" description="Compile the ps module"> + <property name="module.ps" value=", ps"/> <ant antfile="${foray.home}/foray-ps/scripts/build.xml" inheritall="false" target="package"> @@ -595,6 +597,7 @@ <!-- =================================================================== --> <target name="graphic" depends="common" description="Compile the graphic module"> + <property name="module.graphic" value=", graphic"/> <ant antfile="${foray.home}/foray-graphic/scripts/build.xml" inheritall="false" target="package"> @@ -607,6 +610,7 @@ <!-- =================================================================== --> <target name="mif" depends="common" description="Compile the mif module"> + <property name="module.mif" value=", mif"/> <ant antfile="${foray.home}/foray-mif/scripts/build.xml" inheritall="false" target="package"> @@ -619,6 +623,7 @@ <!-- =================================================================== --> <target name="font" depends="ps, pretty" description="Compile the font module"> + <property name="module.font" value=", font"/> <ant antfile="${foray.home}/foray-font/scripts/build.xml" inheritall="false" target="package"> @@ -631,6 +636,7 @@ <!-- =================================================================== --> <target name="hyphen" depends="common" description="Compile the hyphen module"> + <property name="module.hyphen" value=", hyphen"/> <ant antfile="${foray.home}/foray-hyphen-r/scripts/build.xml" inheritall="false" target="package"> @@ -643,6 +649,7 @@ <!-- =================================================================== --> <target name="text" depends="common" description="Compile the text module"> + <property name="module.text" value=", text"/> <ant antfile="${foray.home}/foray-text/scripts/build.xml" inheritall="false" target="package"> @@ -655,6 +662,7 @@ <!-- =================================================================== --> <target name="pdf" depends="ps" description="Compile the pdf module"> + <property name="module.pdf" value=", pdf"/> <ant antfile="${foray.home}/foray-pdf/scripts/build.xml" inheritall="false" target="package"> @@ -667,6 +675,7 @@ <!-- =================================================================== --> <target name="fotree" depends="common" description="Compile the fotree module"> + <property name="module.fotree" value=", fotree"/> <ant antfile="${foray.home}/foray-fotree/scripts/build.xml" inheritall="false" target="package"> @@ -679,6 +688,7 @@ <!-- =================================================================== --> <target name="areatree" depends="common" description="Compile the areatree module"> + <property name="module.areatree" value=", areatree"/> <ant antfile="${foray.home}/foray-areatree/scripts/build.xml" inheritall="false" target="package"> @@ -690,6 +700,7 @@ <!-- Build the Output module (unadvertised) --> <!-- =================================================================== --> <target name="output" depends="mif"> + <property name="module.output" value=", output"/> <ant antfile="${foray.home}/foray-output/scripts/build.xml" inheritall="false" target="package"> @@ -701,6 +712,7 @@ <!-- Build the Layout module (unadvertised) --> <!-- =================================================================== --> <target name="layout" depends="common"> + <property name="module.layout" value=", layout"/> <ant antfile="${foray.home}/foray-layout/scripts/build.xml" inheritall="false" target="package"> @@ -713,6 +725,7 @@ <!-- =================================================================== --> <target name="pioneer" depends="layout" description="Compile the pioneer module"> + <property name="module.pioneer" value=", pioneer"/> <ant antfile="${foray.home}/foray-pioneer/scripts/build.xml" inheritall="false" target="package"> @@ -725,6 +738,7 @@ <!-- =================================================================== --> <target name="render" depends="ps, output" description="Compile the render module"> + <property name="module.render" value=", render"/> <ant antfile="${foray.home}/foray-render/scripts/build.xml" inheritall="false" target="package"> @@ -737,6 +751,7 @@ <!-- =================================================================== --> <target name="core" depends="common" description="Compile the core module"> + <property name="module.core" value=", core"/> <ant antfile="${foray.home}/foray-core/scripts/build.xml" inheritall="false" target="package"> @@ -744,6 +759,46 @@ </ant> </target> + <!-- =================================================================== + Create list of modules built. This list is included in the jar + manifest. (unadvertised) + =================================================================== --> + <target name="module-list" depends=""> + <!-- Set the values to all module name properties to empty. This ensures + that some value is set for each of them. If they have already been set, + this will have no effect. --> + <property name="module.common" value=""/> + <property name="module.pretty" value=""/> + <property name="module.ps" value=""/> + <property name="module.graphic" value=""/> + <property name="module.mif" value=""/> + <property name="module.font" value=""/> + <property name="module.hyphen" value=""/> + <property name="module.text" value=""/> + <property name="module.pdf" value=""/> + <property name="module.fotree" value=""/> + <property name="module.areatree" value=""/> + <property name="module.output" value=""/> + <property name="module.layout" value=""/> + <property name="module.pioneer" value=""/> + <property name="module.render" value=""/> + <property name="module.core" value=""/> + + <!-- Subgroupings (for readability here only) --> + <property name="module.list1" + value="${module.common}${module.pretty}${module.ps}${module.graphic}"/> + <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}"/> + <property name="module.list4" + value="${module.layout}${module.pioneer}${module.render}${module.core}"/> + + <!-- Now group them all together. --> + <property name="module.list" + value="${module.list1}${module.list2}${module.list3}${module.list4}"/> + </target> + </project> <!-- Last Line of File --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |