nicolaken    02/03/06 08:55:59

  Modified:    .        build.xml
  Log:
  Jakarta POI elementprocessor component, HSSF Serializer and samples. Original 
code by Marc Johnson (mjohnson at apache dot org) and  Andrew C. Oliver 
(acoliver at apache dot org).
  
  Revision  Changes    Path
  1.177     +47 -1     xml-cocoon2/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/build.xml,v
  retrieving revision 1.176
  retrieving revision 1.177
  diff -u -r1.176 -r1.177
  --- build.xml 5 Mar 2002 13:33:46 -0000       1.176
  +++ build.xml 6 Mar 2002 16:55:59 -0000       1.177
  @@ -319,6 +319,25 @@
   
   
       <class-available classpathref="classpath"
  +                    property="poi.proper.present" 
  +                    classname="org.apache.poi.poifs.common.PoiFSConstants"/>
  +                    
  +    <class-available classpathref="classpath"
  +                    property="log4j.present" 
  +                    classname="org.apache.log4j.Logger"/>     
  +                    
  +    <condition property="poi.present">
  +     <and> <!-- with post 1.4.1 Ant use <isset 
property="poi.proper.present"/> -->
  +      <not>
  +        <equals arg1="${poi.proper.present}" arg2="$${poi.proper.present}" />
  +      </not>
  +      <not> <!-- with post 1.4.1 Ant use <isset property="log4j.present"/> 
-->
  +        <equals arg1="${log4j.present}" arg2="$${log4j.present}" />
  +      </not>
  +     </and>
  +    </condition>
  +    
  +    <class-available classpathref="classpath"
                       property="pizza.present" 
                       classname="net.sf.pizzacompiler.compiler.Main"/>
   
  @@ -646,12 +665,33 @@
                value="Pizza is the alternative Java compiler."/>
       </antcall>
     </target>
  +  <target name="poi-warn" unless="poi.present" depends="optional-tests"
  +      description="Outputs a warning if org.apache.poi.* classes are missing 
during compilation">
  +    <antcall target="op-warning">
  +      <param name="thing" value="POI"/>
  +      <param name="recovery" 
  +        value="Get the POI package from http://jakarta.apache.org/poi/ and 
place the jar in the lib/optional dir"/>
  +      <param name="message"
  +             value="POI is required for the POI sitemap components."/>
  +    </antcall>
  +  </target>  
  +    <target name="log4j-warn" unless="log4j.present" depends="optional-tests"
  +      description="Outputs a warning if org.apache.log4j.* classes are 
missing during compilation">
  +    <antcall target="op-warning">
  +      <param name="thing" value="Log4j"/>
  +      <param name="recovery" 
  +        value="Get the Log4j package from http://jakarta.apache.org/log4j/ 
and place the jar in the lib/optional dir"/>
  +      <param name="message"
  +             value="Log4j is required for the POI sitemap components."/>
  +    </antcall>
  +  </target>  
     
  +     
     <!-- =================================================================== 
-->
     <!-- Print out warnings for optional components                          
-->
     <!-- =================================================================== 
-->
     <target name="optional-warnings" 
  -          depends="bsf-warn, rhino-warn, jfor-warn, xmldb-warn, xt-warn, 
php-warn, naming-warn, svg-warn, fop-warn, tidy-warn, maybeupload-warn, 
lucene-warn, deli-warn, velocity-warn, hsqldb-warn, resolver-warn, jisp-warn, 
pizza-warn" 
  +          depends="bsf-warn, rhino-warn, jfor-warn, xmldb-warn, xt-warn, 
php-warn, naming-warn, svg-warn, fop-warn, tidy-warn, maybeupload-warn, 
lucene-warn, deli-warn, velocity-warn, hsqldb-warn, resolver-warn, jisp-warn, 
pizza-warn, poi-warn, log4j-warn" 
         description="Outputs warnings if some optional jars are missing from 
the environment">
     </target>
   
  @@ -671,6 +711,12 @@
       <mkdir dir="${build.dest}"/>
       <copy todir="${build.src}" filtering="on">
         <fileset dir="${java.dir}">
  +      
  +        <exclude name="**/poi/**"                  unless="poi.present"/>
  +        <exclude name="**/HSSFSerializer.java"     unless="poi.present"/>
  +        <exclude name="**/HSSFSerializer.xconf"    unless="poi.present"/>
  +        <exclude name="**/POIFSSerializer.java"    unless="poi.present"/>
  +              
           <exclude name="**/Pizza.java"              unless="pizza.present"/>
   
           <exclude name="**/JSP*.java"               unless="servlet.present"/>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to