forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject cvs commit: xml-forrest/src/scratchpad/targets scratchpad.xtarget
Date Sat, 22 Jun 2002 02:33:54 GMT
crossley    2002/06/21 19:33:54

  Modified:    src/scratchpad/targets scratchpad.xtarget
  Log:
  Added scratchpad target to generate a temporary Ant xmlcatalog by transforming
  the src/resources/schema/catalog.xcat and also appending entries for v10 DTDs.
  This is then used by the scratchpad transform-v11 and validate-v11 targets.
  Note that this is a workaround until Ant uses standard XML Catalogs.
  
  Revision  Changes    Path
  1.3       +33 -2     xml-forrest/src/scratchpad/targets/scratchpad.xtarget
  
  Index: scratchpad.xtarget
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/scratchpad/targets/scratchpad.xtarget,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- scratchpad.xtarget	20 Jun 2002 06:37:27 -0000	1.2
  +++ scratchpad.xtarget	22 Jun 2002 02:33:54 -0000	1.3
  @@ -1,7 +1,8 @@
     <!-- =================================================================== -->
     <!-- Interactive scratchpad builds                                       -->
     <!-- =================================================================== -->
  -  <target name="scratchpad" depends="init" description="Interactive Scratchpad Build">
  +  <target name="scratchpad" depends="init, create-xmlcatalog"
  +          description="Interactive Scratchpad Build">
       <echo message="--------------------------------------------------------------"/>
       <echo message=" "/>    
       <echo message="          ${fullname} ${version} SCRATCHPAD "/>
  @@ -16,7 +17,7 @@
       <echo message=" "/>
       <echo message=" transform-v11 ... from document-v10 to document-v11 DTD"/>
       <echo message=" validate-v11 .... XML validation according to v1.1 DTD"/>
  -    <echo message=" validate-v10 .... XML validation according to v1.0 DTD"/>
  +    <echo message=" --------------"/>
       <echo message=" --------------"/>
       <echo message=" --------------"/>
       <echo message=" --------------"/>
  @@ -27,4 +28,34 @@
   
       <ant antfile="src/scratchpad/targets/${input.selection}.xml"/>
   
  +    <echo message=""/>
  +    <echo message="Deleting temporary Ant xmlcatalog ..."/>
  +    <delete file="${schema.build.dir}/catalog-ant.xcat"/>
  +
     </target>
  +
  +<!-- =================================================================== -->
  +<!-- create-xmlcatalog target                                            -->
  +<!-- * Ant needs a special format of catalog.                            -->
  +<!-- * We do not want the document-v10 DTDs to be generally available    -->
  +<!--                                                                     -->
  +<!-- So we transform the catalog.xcat and add specific entries for v10   -->
  +<!-- and delete it when we have finished.                                -->
  +<!--                                                                     -->
  +<!-- This is a workaround solution until Ant gets proper support for     -->
  +<!-- catalog entity resolver.                                            -->
  +<!-- =================================================================== -->
  +<target name="create-xmlcatalog">
  +
  +  <property name="schema.build.dir" value="${build.dir}/src/resources/schema"/>
  +  <property name="schema.dir" value="src/resources/schema"/>
  +
  +  <echo message="Creating the special Ant xmlcatalog ..."/>
  +  <mkdir dir="${schema.build.dir}"/>
  +
  +  <xslt style="${resource.dir}/library/xslt/xmlcatalog-ant.xsl"
  +    in="${schema.dir}/catalog.xcat"
  +    out="${schema.build.dir}/catalog-ant.xcat"
  +  />
  +
  +</target>
  
  
  

Mime
View raw message