jakarta-ecs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject cvs commit: jakarta-bcel/xdocs/stylesheets project.xml
Date Tue, 30 Oct 2001 16:39:24 GMT
jvanzyl     01/10/30 08:39:24

  Modified:    .        build.xml
  Added:       .        default.properties
               xdocs    index.xml
               xdocs/stylesheets project.xml
  Log:
  - adding start of xdocs so we can get the site up and running as
    i'm about to update the jakarta site with references to bcel.
  
    made some additions to the build to allow building the docs
    with anakia.
  
  Revision  Changes    Path
  1.2       +80 -1     jakarta-bcel/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-bcel/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	2001/10/29 19:59:55	1.1
  +++ build.xml	2001/10/30 16:39:23	1.2
  @@ -2,7 +2,7 @@
   
   <!--
      Build file for BCEL
  -   $Id: build.xml,v 1.1 2001/10/29 19:59:55 jvanzyl Exp $
  +   $Id: build.xml,v 1.2 2001/10/30 16:39:23 jvanzyl Exp $
   
   Notes:
      This is a build file for use with the Jakarta Ant build tool.
  @@ -30,6 +30,14 @@
   -->
   
   <project default="jar" basedir=".">
  +  
  +  <!-- Allow any user specific values to override the defaults -->
  +  <property file="${user.home}/build.properties" />
  +  <!-- Allow user defaults for this project -->
  +  <property file="build.properties" />
  +  <!-- Set default values for the build -->
  +  <property file="default.properties" />
  +  
     <target name="init">
       <property name="name"         value="bcel"/>
       <property name="packages"     value="org.apache.bcel.*"/>
  @@ -152,6 +160,77 @@
         <fileset dir="${basedir}" includes="**/*~"/>
       </delete>
   
  +  </target>
  +
  +  <!-- can rename this target when we get the docs sorted out -->
  +
  +  <!-- ================================================================== -->
  +  <!-- D O C S                                                            -->
  +  <!-- ================================================================== -->
  +  
  +  <target 
  +    name="check_for_jdom">
  +    
  +    <available 
  +      property="jdom.present"
  +      classname="org.jdom.JDOMException">
  +      <classpath>
  +        <pathelement location="${jakarta.site2}/lib/${jdom.jar}"/>
  +      </classpath>
  +    </available>
  +  </target>
  +    
  +  <target 
  +    depends="check_for_jdom" 
  +    name="docs-prepare-error" 
  +    unless="jdom.present">
  +    
  +    <echo>
  +      The Jakarta-Site2 module is not present! Please check
  +      to make sure that you have checked it out from CVS.
  +
  +      &lt;http://jakarta.apache.org/site/jakarta-site2.html&gt;
  +    </echo>
  +  </target>
  +
  +  <target 
  +    name="xdocs"
  +    depends="docs-prepare-error"
  +    description="--> generates the HTML documentation"
  +    if="jdom.present">
  +
  +    <taskdef 
  +      name="anakia"
  +      classname="org.apache.velocity.anakia.AnakiaTask">
  +      <classpath>
  +        <fileset dir="${jakarta.site2}/lib">
  +          <include name="*.jar"/>
  +        </fileset>
  +      </classpath>
  +    </taskdef>
  +        
  +    <anakia 
  +      basedir="${docs.src}" 
  +      destdir="${docs.dest}/"
  +      extension=".html" 
  +      style="./site.vsl"
  +      projectFile="stylesheets/project.xml"
  +      excludes="**/stylesheets/** empty.xml"
  +      includes="**/*.xml"
  +      lastModifiedCheck="true"
  +      templatePath="${jakarta.site2}/xdocs/stylesheets">
  +    </anakia>
  +
  +    <copy 
  +      todir="${docs.dest}/images" 
  +      filtering="no">
  +      
  +      <fileset dir="${docs.src}/images">
  +        <include name="**/*.gif"/>
  +        <include name="**/*.jpeg"/>
  +        <include name="**/*.jpg"/>
  +      </fileset>
  +    </copy>
     </target>
   
   </project>
  
  
  
  1.1                  jakarta-bcel/default.properties
  
  Index: default.properties
  ===================================================================
  # -------------------------------------------------------------------
  # B U I L D  P R O P E R T I E S
  # -------------------------------------------------------------------
  # These properties are used by the BCEL build, you may override
  # any of these default values by placing property values in
  # your ${user.home}/build.properties file.
  # -------------------------------------------------------------------
  
  jakarta.site2 = ../jakarta-site2
  docs.src = ./xdocs
  docs.dest = ./docs
  jdom.jar = jdom-b7.jar
  
  
  
  1.1                  jakarta-bcel/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <document>
  
    <properties>
      <title></title>
      <author email="jvanzyl@zenplex.com">Jason van Zyl</author>
    </properties>
  
    <body>
      <section name="BCEL">
        <p>
          Documentation will soon be ready.
        </p>
      </section>
    </body>
  </document>
  
  
  
  1.1                  jakarta-bcel/xdocs/stylesheets/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <project name="BCEL" href="http://jakarta.apache.org/bcel">
  
    <title>BCEL</title>
    <logo href="/images/logo.gif">BCEL</logo>
  
    <body>
      <menu name="BCEL">
        <item name="Overview" href="/index.html"/>
      </menu>
    </body>
  </project>
  
  
  

--
To unsubscribe, e-mail:   <mailto:bcel-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:bcel-dev-help@jakarta.apache.org>


Mime
View raw message