cleanup
[cdmlib.git] / cdmlib-print / src / main / java / eu / etaxonomy / cdm / print / Publisher.java
index 2ada6900830d09eec8dbd1ae20bf4867ea6b2599..c402b1faf4cf553cbb1cea313ac355424dbfcfae 100644 (file)
@@ -1,45 +1,50 @@
 /**
- * 
- */
+* Copyright (C) 2007 EDIT
+* European Distributed Institute of Taxonomy
+* http://www.e-taxonomy.eu
+*
+* The contents of this file are subject to the Mozilla Public License Version 1.1
+* See LICENSE.TXT at the top of this package for the full license terms.
+*/
 package eu.etaxonomy.cdm.print;
 
-import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
 import org.jdom.Document;
 
 import eu.etaxonomy.cdm.print.out.IPublishOutputModule;
 
 /**
  * The central or main class that will execute the publishing process
- * 
+ *
  * @author n.hoffmann
  * @since Apr 1, 2010
- * @version 1.0
  */
 public class Publisher {
-       private static final Logger logger = LogManager.getLogger(Publisher.class);     
-       
-       
+
+    private static final Logger logger = LogManager.getLogger();
+
        /**
-        * Harvests the taxon nodes defined by {@link PublishConfigurator#getSelectedTaxonNodeElements()} and calls 
+        * Harvests the taxon nodes defined by {@link PublishConfigurator#getSelectedTaxonNodeElements()} and calls
         * alls {@link IPublishOutputModule IPublishOutputModules} {@link IPublishOutputModule#output(Document, PublishConfigurator) output}
         * methods
-        * 
+        *
         * @param configurator a valid {@link PublishConfigurator}
         */
        public static void publish(PublishConfigurator configurator){
-               
+
                XMLHarvester xmlHarvester = new XMLHarvester(configurator);
-               
+
                Document document = xmlHarvester.harvest(configurator.getSelectedTaxonNodeElements());
-               
+
                if(configurator.getOutputModules().size() == 0){
                        logger.warn("No output modules set. Exiting.");
                }
-               
+
                for(IPublishOutputModule outputModule : configurator.getOutputModules()){
                        outputModule.output(document, configurator.getExportFolder(), configurator.getProgressMonitor());
                }
-               
+
        }
-       
+
 }