forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/targets project.xtarget
Date Wed, 22 May 2002 22:14:59 GMT
nicolaken    02/05/22 15:14:59

  Modified:    src/targets project.xtarget
  Log:
  Added a "testpoigen"  target that takes the poi cvs module, makes doco, and puts it on the
krysalis.org/poi site.
  
  Revision  Changes    Path
  1.14      +46 -11    xml-forrest/src/targets/project.xtarget
  
  Index: project.xtarget
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/targets/project.xtarget,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- project.xtarget	22 May 2002 21:56:51 -0000	1.13
  +++ project.xtarget	22 May 2002 22:14:59 -0000	1.14
  @@ -1,15 +1,18 @@
     <!-- =================================================================== -->
     <!-- Targets for this project                                            -->
     <!-- =================================================================== -->
  -    
  +
     <!-- =================================================================== -->
     <!-- Prepares the docs                                                   -->
     <!-- =================================================================== -->
  -  <target name="prepare-docs" depends="init, cleandocs">
  +  <target name="prepare-docs" depends="init">
   
       <property name="centipede.tools.cents.forrest.loglevel" value="INFO"/> 
       <property name="use.skin" value="forrest-site"/> 
       
  +    <property name="documentation.source.dir" value="${context.dir}"/>     
  +    
  +    
       <!-- define filters -->     
       <filter token="skin"              value="${use.skin}"/>
       <filter token="link1"             value="apache"/>
  @@ -33,14 +36,14 @@
      
       <!-- make filtered copy of XML docs -->
       <copy todir="${build.context}" filtering="on" overwrite="true">
  -      <fileset dir="${context.dir}" casesensitive="no">
  +      <fileset dir="${documentation.source.dir}" casesensitive="no">
           <include name="**/*.x*"/>
         </fileset>
       </copy>
   
       <!-- make non filtered copy of images -->
       <copy todir="${build.context}" filtering="off">
  -      <fileset dir="${context.dir}" casesensitive="no">
  +      <fileset dir="${documentation.source.dir}" casesensitive="no">
           <exclude name="**/*.x*"/>
         </fileset>
       </copy>
  @@ -58,7 +61,7 @@
   
       <!-- Copy Cocoon configuration and sitemap -->
       <copy todir="${build.context}" filtering="on">
  -      <fileset dir="${context.dir}/conf">
  +      <fileset dir="${documentation.source.dir}/conf">
           <include name="sitemap.xmap"/>
           <include name="cocoon.xconf"/>        
         </fileset> 
  @@ -66,7 +69,7 @@
   
        <!-- Copy Cocoon configuration and sitemap -->
       <copy todir="${build.context}/WEB-INF/" filtering="on">
  -      <fileset dir="${context.dir}/conf">
  +      <fileset dir="${documentation.source.dir}/conf">
           <exclude name="sitemap.xmap"/>
         </fileset> 
       </copy>
  @@ -125,12 +128,19 @@
       <echo message="-------------------------------------------------------------"/>
       <echo message="  Building docs, please stand by ..."/>
     </target>
  -  
  +
     <!-- =================================================================== -->
     <!-- The documentation system                                            -->
     <!-- =================================================================== -->
     <target name="docs"
  -          depends="prepare-docs, making-docs"
  +          depends="cleandocs, prepare-docs, owdocs"
  +          description="* Generates the documentation"/>
  +            
  +  <!-- =================================================================== -->
  +  <!-- The documentation system                                            -->
  +  <!-- =================================================================== -->
  +  <target name="owdocs"
  +          depends="making-docs"
             description="* Generates the documentation">
   
       <java classname="org.apache.cocoon.Main" fork="true" dir="${build.context}" failonerror="true">
  @@ -173,10 +183,35 @@
       </copy>
     </target>
   
  -  <target name="getcvsmodule" depends="init">
  +  <target name="testpoigen" depends="init">
      
  -    <property name="getcvsmodule.work.dir" value="${build.dir}/work/forrest/cvs/jakarta-poi"
/> 
  +    <antcall target="getcvsmodule">
  +      <param name="getcvsmodule.package"  value="jakarta-poi"/>
  +      <param name="getcvsmodule.work.dir" value="${build.dir}/work/forrest/cvsmodule"
/>       
  +    </antcall>
  +                       
  +    <antcall target="prepare-docs">
  +      <param name="documentation.source.dir"  value="${build.dir}/work/forrest/cvsmodule/jakarta-poi"/>
  +    </antcall>
  +    
  +    <antcall target="owdocs"></antcall>
  +    
  +    <antcall target="deploy">
  +      <param name="deploy.username"     value="nicolaken"/>
  +      <param name="deploy.package-name" value="jakarta-poi"/>
  +      <param name="deploy.data.dir"     value="${build.dir}/docs"/>
  +      <param name="deploy.hostname"     value="krysalis.sourceforge.net"/>
  +      <param name="deploy.remotedir"    value="/home/groups/k/kr/krysalis/htdocs/poi"/>
  +    </antcall>             
  +                          
  +  </target> 
  +  
  +  
  +  <target name="getcvsmodule" depends="init">
      
  +    <property name="getcvsmodule.work.dir" value="${build.dir}/work/forrest/cvsmodule"
/> 
  +    <property name="getcvsmodule.package" value="xml-forrest" /> 
  +       
       <delete dir="${getcvsmodule.work.dir}"/>
       <mkdir dir="${getcvsmodule.work.dir}"/>
        
  @@ -185,7 +220,7 @@
        />
          
       <cvs cvsRoot=":pserver:anoncvs@cvs.apache.org:/home/cvspublic"
  -         package="jakarta-poi"
  +         package="${getcvsmodule.package}"
            dest="${getcvsmodule.work.dir}"
       />                             
     </target>     
  
  
  

Mime
View raw message