jakarta-ecs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject cvs commit: jakarta-ecs2/generation/xhtml-gen generate-project.xml
Date Sat, 22 Sep 2001 15:19:53 GMT
rdonkin     01/09/22 08:19:53

  Added:       generation/xhtml-gen generate-project.xml
  Log:
  Generation tools initial commit
  
  Revision  Changes    Path
  1.1                  jakarta-ecs2/generation/xhtml-gen/generate-project.xml
  
  Index: generate-project.xml
  ===================================================================
  <project name="CodeGenerator" default="jar" basedir=".">
  
      
      <property file="build.properties"/>                
      <property file="../build.properties"/>             
      <property file="${user.home}/build.properties"/>   
          
      <property name="beanutils-jar" value="../../../jakarta-commons/beanutils/dist/commons-beanutils.jar"/>
      <property name="collections-jar" value="../../../jakarta-commons/collections/dist/commons-collections.jar"/>
      <property name="digester-jar" value="../../../jakarta-commons/digester/dist/commons-digester.jar"/>
      <property name="velocity-jar" value="../../../jakarta-velocity/bin/velocity-1.2-dev.jar"/>
  
      <taskdef name="texen" classname="org.apache.ecs.generation.ant.TexenXTask">
          <classpath>
              <pathelement location="${beanutils-jar}"/>
              <pathelement location="${collections-jar}"/>
              <pathelement location="${digester-jar}"/>
              <pathelement location="${velocity-jar}"/>
              <fileset dir="../lib">
                  <include name="**/*.jar"/>
              </fileset>
          </classpath>
      </taskdef>
      
      <!-- Build classpath -->
      <path id="classpath">
          <fileset dir="lib">
                  <include name="**/*.jar"/>
          </fileset>
          <fileset dir="../lib">
              <include name="**/*.jar"/>
          </fileset>
      </path>
      
  
      
      <!-- =================================================================== -->
      <!-- Properties which probably don't need to change 		     -->
      <!-- =================================================================== --> 

      <!-- ant settings -->
      <property name="ant.home" value="."/>
      <property name="debug" value="on"/>
      <property name="optimize" value="off"/>
      <property name="deprecation" value="off"/>
      <property name="build.compiler" value="classic"/>
        
      <!-- the source is generated under this directory -->
      <property name="src" value="../../src"/>
       
      <!-- the velocity templates live here -->
      <property name="templates" value="templates"/>
      
      <!-- this directory is copied into the source before generation-->
      <property name="static" value="${templates}/static"/> 
  
      <!-- turn this on with the command line or you build.props -->
      <property name="debug_schema" value="off"/>
  
  
      <target name="echo-params">
          <echo message="name is ${name} "/>
          <echo message="schema is ${schema} "/>
          <echo message="long_name is ${long_name} "/>
          <echo message="copyright is ${copyright} "/>
          <echo message="package is ${package} "/>
      </target>
  
      <!-- copy the static files to the source-->
      <!-- NB: this happens before files are generated! -->
      <target name="static">
          <echo message="Copying static files..."/>
          <copy todir="${src}">
              <fileset dir="${static}"/>
          </copy>
      </target>
  
      <target name="generate" depends="echo-params,static">  
          <echo message="Generating..."/>
          
          <texen      
              controlTemplate="Control.vm"
              outputDirectory="${src}"
              templatePath="${templates}"
              outputFile="generation.report">
                  <string key="name" text="${name}"/>
                  <class key="codehelper" classname="org.apache.ecs.generation.util.CodeUtils"/>
                  <class key="package" classname="org.apache.ecs.generation.util.PackageHelper">
                      <parameter name="package" value="${package}"/>
                      <parameter name="base" value="${src}"/>
                  </class>
                  <file key="license" file="license.txt"/>
                  <class key="scheme" classname="org.apache.ecs.generation.bootstrap.BootstrapProxy">
                      <parameter name="uri" value="${schema}"/>
                      <parameter name="debug" value="${debug_schema}"/>
                  </class>
          </texen>
      </target>
      
  </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ecs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ecs-dev-help@jakarta.apache.org


Mime
View raw message