Changeset 3259


Ignore:
Timestamp:
Apr 20, 2007, 3:27:48 PM (16 years ago)
Author:
Martin Svensson
Message:

References #536. Set SVN to ignore the generated helptext file.
Helptexts-import file is now generated at the same time as the chunked html-files

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r3247 r3259  
    255255      It will be included in the 'doc' target in the future."
    256256  />
    257  
    258   <target
    259     name="helptext"
    260     depends="dev.init, doc.helptext"
    261     description="Generate import file with helptexts from the docbook documentation."
    262   />
    263 
    264257 
    265258  <!-- init targets -->
     
    10251018  <target
    10261019    name="doc.docbook.html"
    1027     depends="dev.init,doc.init"
     1020    depends="dev.init,doc.init,xsltprocessor"
    10281021    >
    10291022    <mkdir dir="${doc}/docbook/html" />
     
    10651058      <fileset dir="${doc}/docbook/html" defaultexcludes="no" />
    10661059    </delete>
     1060    <delete file="data/helptexts.xml" />
    10671061  <ant antfile="${lib}/docbook/ant-build-docbook.xml" inheritall="false" target="html.chunked">
    10681062      <property name="ant.docbook.styler.dir" location="${lib}/docbook" />
     
    10731067      <property name="base.version" value="${base.version}"/>
    10741068    </ant>
     1069   
     1070    <property name="catalog.location" location="${lib}/docbook/preprocess/catalog.xml" />
     1071    <path id="ant-extensions">
     1072        <fileset dir="${lib}/docbook/ant-extensions" includes="**/*.jar" />
     1073        <pathelement path="${lib}/docbook/ant-extensions" />
     1074      </path>
     1075   
     1076    <xmlcatalog id="dtdcatalog">
     1077          <catalogpath>
     1078              <fileset file="${catalog.location}"/>
     1079          </catalogpath>
     1080      </xmlcatalog>
     1081
     1082      <style
     1083          in      = "${build}/docbook/docbook-ready-file.tmp"
     1084          style   = "${lib}/docbook/preprocess/webclient_helptext.xsl"
     1085          out     = "data/helptexts.xml"
     1086          processor = "${xslt.processor}"
     1087          >
     1088          <xmlcatalog refid="dtdcatalog"/>
     1089          <classpath refid="ant-extensions" />
     1090
     1091          <param name="xsltproc.catalog" expression="${catalog.location}" />
     1092          <param name="xsltproc.option.--nonet"  expression="" />
     1093      </style>
     1094
     1095    <replaceregexp
     1096      file="data/helptexts.xml"
     1097      match="&lt;(?!/?name|/?description|/?helpitem|/?helptexts)(/?([a-z]+)[^>]*)&gt;"
     1098      replace="&amp;lt;\$1&amp;gt;"
     1099      flags="sg"
     1100    />
    10751101  </target>
    10761102 
     
    11061132    </copy>
    11071133  </target>
    1108  
    1109   <target
    1110     name="doc.helptext"
    1111     depends="doc.docbook.html, xsltprocessor"
    1112     description="Generate a import file with helptexts for the webclient"
    1113     >   
    1114     <delete file="${build}/docbook/helptext_docbook.xml"/> 
    1115     <property name="catalog.location" location="${lib}/docbook/preprocess/catalog.xml" />
    1116     <path id="ant-extensions">
    1117         <fileset dir="${lib}/docbook/ant-extensions" includes="**/*.jar" />
    1118         <pathelement path="${lib}/docbook/ant-extensions" />
    1119       </path>
    1120    
    1121     <xmlcatalog id="dtdcatalog">
    1122           <catalogpath>
    1123               <fileset file="${catalog.location}"/>
    1124           </catalogpath>
    1125       </xmlcatalog>
    1126 
    1127       <style
    1128           in      = "${build}/docbook/docbook-ready-file.tmp"
    1129           style   = "${lib}/docbook/preprocess/webclient_helptext.xsl"
    1130           out     = "${build}/docbook/helptext_docbook.xml"
    1131           processor = "${xslt.processor}"
    1132           >
    1133           <xmlcatalog refid="dtdcatalog"/>
    1134           <classpath refid="ant-extensions" />
    1135 
    1136           <param name="xsltproc.catalog" expression="${catalog.location}" />
    1137           <param name="xsltproc.option.--nonet"  expression="" />
    1138       </style>
    1139 
    1140     <replaceregexp
    1141       file="${build}/docbook/helptext_docbook.xml"
    1142       match="&lt;(?!/?name|/?description|/?helpitem|/?helptexts)(/?([a-z]+)[^>]*)&gt;"
    1143       replace="&amp;lt;\$1&amp;gt;"
    1144       flags="sg"
    1145     />
    1146    
    1147   </target>
    1148  
     1134
    11491135  <target name="xsltprocessor">
    11501136      <property environment="env"/>
  • trunk/data

    • Property svn:ignore set to
      helptexts.xml
Note: See TracChangeset for help on using the changeset viewer.