unico 2003/11/19 06:59:07
Modified: tools/targets compile-build.xml
Log:
add call-block-target utitlity target for calling specific targets on blocks
for example: $ build -Dblock.name=repository -Dtarget.name=lib
call-block-target
will compile repository block code and create the repository-block.jar
Revision Changes Path
1.3 +7 -1 cocoon-2.1/tools/targets/compile-build.xml
Index: compile-build.xml
===================================================================
RCS file: /home/cvs/cocoon-2.1/tools/targets/compile-build.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- compile-build.xml 18 Nov 2003 18:06:16 -0000 1.2
+++ compile-build.xml 19 Nov 2003 14:59:07 -0000 1.3
@@ -143,7 +143,7 @@
inheritRefs="false"
target="patch-roles"/>
</target>
-
+
<!-- compiles and packages all blocks -->
<target name="blocks" depends="compile,prepare-blocks">
<ant antfile="${build.temp}/blocks-build.xml"
@@ -152,3 +152,9 @@
target="compile"/>
</target>
+ <target name="call-block-target" depends="prepare">
+ <ant antfile="${build.temp}/blocks-build.xml"
+ inheritAll="true"
+ inheritRefs="false"
+ target="cocoon-block-${block.name}-${target.name}" />
+ </target>