antlets build.xml,1.6,1.7

[email protected] Wed, 10 Mar 2004 04:25:16 -0800
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/antlets
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14983

Modified Files:
	build.xml 
Log Message:
added ability to build a documentation portal using forrest

Index: build.xml
===================================================================
RCS file: /cvsroot/metamorphosis/antlets/build.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** build.xml	5 Mar 2004 14:53:37 -0000	1.6
--- build.xml	10 Mar 2004 12:25:14 -0000	1.7
***************
*** 1,27 ****
  <?xml version="1.0"?>
  	
! <project default="install" basedir="." name="install-all">
! 	
! 	<description>Locally install all antlets.</description>
  
! 	<target name="install">	
!       <ant dir="makeantlet" antfile="build.xml"/>
!       <ant dir="init" antfile="build.xml" />
!       <ant dir="java" antfile="build.xml"/>
!       <ant dir="forrest" antfile="build.xml"/>
!       <ant dir="jaxb" antfile="build.xml"/>
!       <ant dir="jdepend" antfile="build.xml"/>
!       <ant dir="pmd" antfile="build.xml"/>
!       <ant dir="ruperDepend" antfile="build.xml"/>
!       <ant dir="scripts" antfile="build.xml"/>
!       <ant dir="version" antfile="build.xml"/>
!       <ant dir="webapp" antfile="build.xml"/>
!       <ant dir="xdoclet" antfile="build.xml"/>
!       <ant dir="cvsbuild" antfile="build.xml"/>
!       <ant dir="javasrc" antfile="build.xml"/>
!       <ant dir="checkstyle" antfile="build.xml"/>
!       <ant dir="junit" antfile="build.xml"/>
!       <ant dir="jalopy" antfile="build.xml"/>
  	</target>
  </project>
- 
--- 1,125 ----
  <?xml version="1.0"?>
  	
! <project default="test" basedir="." name="antlets">
  
! 	<description>builds, installs antlets and generates portal documentation</description>	
! 	
! 	<!-- install all antlets to ant installation at: $ANT_HOME.	-->
! 	<!-- this is required prior to using the importer tasks -->
! 	<ant dir="makeantlet" antfile="build.xml"/>
! 	<ant dir="init" antfile="build.xml" />
! 	<ant dir="java" antfile="build.xml"/>
! 	<ant dir="forrest" antfile="build.xml"/>
! 	<ant dir="jaxb" antfile="build.xml"/>
! 	<ant dir="jdepend" antfile="build.xml"/>
! 	<ant dir="pmd" antfile="build.xml"/>
! 	<ant dir="ruperDepend" antfile="build.xml"/>
! 	<ant dir="scripts" antfile="build.xml"/>
! 	<ant dir="version" antfile="build.xml"/>
! 	<ant dir="webapp" antfile="build.xml"/>
! 	<ant dir="xdoclet" antfile="build.xml"/>
! 	<ant dir="cvsbuild" antfile="build.xml"/>
! 	<ant dir="javasrc" antfile="build.xml"/>
! 	<ant dir="checkstyle" antfile="build.xml"/>
! 	<ant dir="junit" antfile="build.xml"/>
! 	<ant dir="jalopy" antfile="build.xml"/>	
! 	<!-- the antlet docs -->
!     <ant dir="makeantlet" antfile="build.xml" target="antletdocs"/>
!     <ant dir="init" antfile="build.xml" target="antletdocs" />
!     <ant dir="java" antfile="build.xml" target="antletdocs"/>
!     <ant dir="forrest" antfile="build.xml" target="antletdocs"/>
!     <ant dir="jaxb" antfile="build.xml" target="antletdocs"/>
!     <ant dir="jdepend" antfile="build.xml" target="antletdocs"/>
!     <ant dir="pmd" antfile="build.xml" target="antletdocs"/>
!     <ant dir="ruperDepend" antfile="build.xml" target="antletdocs"/>
!     <ant dir="scripts" antfile="build.xml" target="antletdocs"/>
!     <ant dir="version" antfile="build.xml" target="antletdocs"/>
!     <ant dir="webapp" antfile="build.xml" target="antletdocs"/>
!     <ant dir="xdoclet" antfile="build.xml" target="antletdocs"/>
!     <ant dir="cvsbuild" antfile="build.xml" target="antletdocs"/>
!     <ant dir="javasrc" antfile="build.xml" target="antletdocs"/>
!     <ant dir="checkstyle" antfile="build.xml" target="antletdocs"/>
!     <ant dir="junit" antfile="build.xml" target="antletdocs"/>
!     <ant dir="jalopy" antfile="build.xml" target="antletdocs"/>	
! 		
!     <taskdef resource="org/krysalis/centipede2/ant/antlib.xml"/>
!     <importer name="init-0.1"/> 
!     <importer name="forrest-0.1"/>    
!     
!     <!-- portal targets -->    
!     <!-- jdepend depends on compile -->
! 	<!--target name="metrics" depends="javadocs, checkstyle.report, compile, junit-report, jdepend.report, pmd.report"/-->
! 	<target name="portal" depends="clean,antletdocs,site"/>	      
!     
! 	<property name="base.portal.dir"          value="${basedir}/portal" />
! 	<property name="base.src.dir"             value="${basedir}/src" />
! 	<property name="base.build.dir"           value="${basedir}/build" />
! 	<property name="base.portal.dir"      	  value="${basedir}/portal" />
! 	<property name="base.xdocs.dir"     	  value="${base.build.dir}/documentation/content/xdocs" />		     
!     
!     <target name="test">
!     <echo>Test succeeded.</echo>
!     </target>    
! 	
! 	<target name="clean" description="removes all build artefacts">
! 	  <delete dir="${base.build.dir}"></delete>	
! 	  <!-- TODO: clean recursively build artefacts in the 'myantlet' subdirs -->
! 	  <!-- TODO: clean also the 'portal' and 'antletdocs' artefacts i.e the generated (only!) forrest in- and output -->
! 	</target>
! 		
! 	<target name="uninstall" description="removes installed antlets from ant install dir">
! 		<!-- TODO -->
  	</target>
+ 	
+ 	<target name="buildonly" description="builds antlets to a build subdir, but does no install to ant dir">
+ 		<!-- TODO -->
+ 	</target>
+ 	
+ 	<target name="antletdocs" description="generates documentation for antlets">
+ 		<!-- Execute the makeantlet.antletdocs target for every antlet in this project -->
+ 		<!-- Direct the intermediate xdoc output to the build dir for further processing -->
+ 		
+ 		<!-- rewrite this whole build file. it is not really homogen now. 
+ 		     This is a quick setup in order to allow both: 
+ 		     - running this file to install antlets in the first place
+ 		     - using the installed antlets already within this build -->
+ 		      
+ 	    <!--ant dir="makeantlet" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="init" antfile="build.xml" target="antletdocs" />
+ 	    <ant dir="java" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="forrest" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="jaxb" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="jdepend" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="pmd" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="ruperDepend" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="scripts" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="version" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="webapp" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="xdoclet" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="cvsbuild" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="javasrc" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="checkstyle" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="junit" antfile="build.xml" target="antletdocs"/>
+ 	    <ant dir="jalopy" antfile="build.xml" target="antletdocs"/-->
+ 	    
+ 		<mkdir dir="${base.xdocs.dir}"/>	
+ 		<!-- copy the generated xdocs files from the specific antlets to a common input dir for forrest: -->	
+ 	    <copy todir="${base.xdocs.dir}" overwrite="yes" >
+     		<fileset dir="${basedir}"/>   
+     		<!-- TODO: make this OS-independent! this regexp works on windows only-->
+     		<!-- TODO: once the antlet sources are moved to src. it is sufficient to look there and simplify this -->
+ 	    	<mapper type="regexp" from="build\\([^\\]+)\\xdocs\\([^\\]*xml)$$" to="\1\\\2"/>	    	
+ 	    </copy>
+ 	    <!-- copy static forrest content to the common input dir -->
+ 	    <copy todir="${base.build.dir}/documentation"  overwrite="yes" >
+     		<fileset dir="${base.src.dir}/documentation"/>  
+     	</copy> 
+ 	</target>
+ 		
+ 	<!-- prepare everything for the build  -->
+ 	<target name="init">
+ 		<mkdir dir="${base.build.dir}"/>	
+ 	</target>
+     
+ 		
  </project>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click