Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r452 - trunk/build.xml

argouml-gen
Discussion topic

Back to topic list

svn commit: r452 - trunk/build.xml

Reply

Author linus
Full name Linus Tolke
Date 2007-02-02 14:06:25 PST
Message Author: linus
Date: 2007-02-02 14:06:25-0800
New Revision: 452

Modified:
   trunk/build.xml

Log:
Prepared for reusing the documentation build.

Modified: trunk/build.xml
Url: http://argouml-gen.t​igris.org/source/bro​wse/argouml-gen/trun​k/build.xml?view=dif​f&rev=452&p1​=trunk/build.xml​&p2=trunk/build.xml​&r1=451&r2=45​2
====================​====================​====================​==================
--- trunk/build.xml (original)
+++ trunk/build.xml 2007-02-02 14:06:25-0800
@@ -99,11 +99,36 @@
 
   <target name="report:documentation" depends="init-result"
           description="generate the documentation">
- <ant dir="${argouml.docu​mentation.dir}" target="docs" inheritAll="false">
+ <antcall target="one-documentation">
+ <param name="documentation.dir" value="${argouml.do​cumentation.dir}"/​>
+ <param name="build.result.dir"
+ value="${argouml.di​r}/build/documentati​on"/>
+ </antcall>
+
+ <delete dir="${result.dir}/​documentation"/>
+ <move todir="${result.dir}" file="${argouml.dir​}/build/documentatio​n"/>
+ </target>
+
+ <target name="report:documentation-es" depends="init-result"
+ description="generate the Spanish documentation">
+ <antcall target="one-documentation">
+ <param name="documentation.dir"
+ value="${working.di​r}/argouml-es/docume​ntation"/>
+ <param name="build.result.dir"
+ value="${working.di​r}/argouml-es/build/​documentation"/>
+ </antcall>
+
+ <delete dir="${result.dir}/​documentation-es"/​>
+ <move todir="${result.dir​}/documentation-es"
+ file="${working.dir​}/argouml-es/build/d​ocumentation"/>
+ </target>
+
+ <target name="one-documentation">
+ <ant dir="${documentation.dir}" target="docs" inheritAll="false">
       <property name="argo.root.dir" value="${argouml.dir}"/>
     </ant>
     <!-- Special patching to reduce the size of the diff -->
- <exec dir="${argouml.dir}​/build/documentation​/defaulthtml"
+ <exec dir="${build.result​.dir}/defaulthtml"
           executable="sh"
           failonerror="true">
       <arg value="-c"/>
@@ -111,15 +136,14 @@
     </exec>
 
     <!-- Special patching to reduce the size of the diff -->
- <exec dir="${argouml.dir}​/build/documentation​/printablehtml"
+ <exec dir="${build.result​.dir}/printablehtml"​
           executable="sh"
           failonerror="true">
       <arg value="-c"/>
       <arg value='for i in */*.html; do mv $i $i.orig &amp;&amp; sed &apos;s/\(name=​"[^"]*"\|href="[^"#​]*#[^"#]*"\)/\n &amp;\n/g&apos; $i.orig > $i &amp;&amp; rm $i.orig; done'/>
     </exec>
-
- <delete dir="${result.dir}/​documentation"/>
- <move todir="${result.dir}" file="${argouml.dir​}/build/documentatio​n"/>
   </target>
 
+
+
 </project>

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r452 - trunk/build.xml linus Linus Tolke 2007-02-02 14:06:25 PST
Messages per page: