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 build.xml
Date Sat, 22 Sep 2001 15:19:16 GMT
rdonkin     01/09/22 08:19:16

  Added:       generation/xhtml-gen build.xml
  Log:
  Generation tools initial commit
  
  Revision  Changes    Path
  1.1                  jakarta-ecs2/generation/xhtml-gen/build.xml
  
  Index: build.xml
  ===================================================================
  <!--
      For ease of use, the generation scripts are separated into a master script (this one)

      and a worker script.
      The master script is (hopefully) easy to edit so that you easily generate different
projects.
      The worker script is more complex but also should hopefully be more logical since it
doesn't refer
      to any particular project. 
      
  -->
  
  <project name="master-generate" default="xhtml-generate-build-ecs" basedir=".">
  
  <!-- 
      Tell people what targets we have
  -->
      <target name="help">	
          <echo message="targets for ecs example generation script"/>
          <echo/>
          <echo message="    xhtml-generate (generate from xhtml.xml)"/>
          <echo message="    xhtml-generate-build-ecs (generate, build, jar and document
from xhtml.xml)"/>
      </target>
  
  
  <!--
      General targets.
  -->
      <target name="call-worker">
          <ant antfile="generate-project.xml" target="${call}">
                  <!-- short name -->
              <property name="name" value="${name}"/>
  
                  <!-- the xml schema file name -->
              <property name="schema" value="${schema}"/>
  
                  <!-- descriptive name used for documentation -->
              <property name="long_name" value="${long_name}"/>
  
                  <!-- copyright notice used for documentation -->
              <property name="copyright" value="${copyright}"/>
              
                  <!-- version -->
              <property name="copyright" value="${copyright}"/>
              
                  <!-- this is the base namespace for the generation -->
              <property name="package" value="${package}"/>
          </ant>
      </target>
      
      
      <target name="generate">
          <antcall target="call-worker">
              <param name="call" value="jar" />
          </antcall>
      </target>
  
      <target name="generate-then-document">
          <antcall target="call-worker">
              <param name="call" value="generate-then-document" />
          </antcall>
      </target>
  
  <!--
      Generate ecs elements from the xhtml.xml schema
  -->
      <target name="xhtml-call">
          <antcall target="call-worker">
              <param name="name" value="xhtml"/>
              <param name="schema" value="xhtml.xml"/>
              <param name="long_name" value="ECS Elements From XHTML XML Schema"/>
              <param name="copyright" value="Copyright &amp;copy; 2001 Apache Software
Foundation. All Rights Reserved."/>
              <param name="version" value="1.0"/>
              <param name="package" value="org.apache.ecs.xhtml"/>
              <param name="call" value="${call}"/>
          </antcall>
      </target>
  
      <target name="xhtml-generate">
          <antcall target="xhtml-call">
              <param name="call" value="generate" />
          </antcall>
      </target>
      
      <target name="xhtml-generate-build-ecs" depends="xhtml-generate">
  	<ant antfile="build-ecs.xml" target="clean" dir="../../build/"/>
          <ant antfile="build-ecs.xml" target="package" dir="../../build/"/>
      </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