Changeset 1661 for trunk/docx4j/src/main


Ignore:
Timestamp:
09/14/11 13:16:46 (8 months ago)
Author:
jharrop
Message:

Ignore error configuring logging if FOP is not available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/utils/Log4jConfigurator.java

    r1572 r1661  
    2121                log.info("Since your log4j configuration (if any) was not found, docx4j has configured log4j automatically."); 
    2222                 
    23                 org.docx4j.convert.out.pdf.viaXSLFO.Conversion.log.setLevel(Level.DEBUG); 
     23                try { 
     24                        org.docx4j.convert.out.pdf.viaXSLFO.Conversion.log.setLevel(Level.DEBUG); 
     25                } catch (NoClassDefFoundError n) { 
     26                        // If FOP jar is not available 
     27                } 
    2428        } 
    2529    } 
Note: See TracChangeset for help on using the changeset viewer.