Coverage details for net.sourceforge.demetrix.Demetrix

LineHitsSource
1 /*******************************************************************************
2  * Demetrix process modelling system
3  *
4  * Copyright (c) 2003, 2004 Dimitri A. Pissarenko
5  *
6  * This file is part of Demetrix.
7  *
8  * Demetrix is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or
11  * (at your option) any later version.
12  *
13  * Demetrix is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with Demetrix; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21  *
22  * For further information you may
23  *
24  * - send an e-mail in Russian, German or English to dimitri.pissarenko@gmx.net
25  * - look at http://sourceforge.net/projects/demetrix/
26  * - look at http://demetrix.sourceforge.net/
27  * - look at http://members.inode.at/d.pissarenko/
28  *
29  *****************************************************************************/
30  
31 package net.sourceforge.demetrix;
32  
33 import java.io.File;
34  
35 import org.apache.log4j.Logger;
36  
37 import net.sourceforge.demetrix.ui.DemetrixConfigurationSingleton;
38  
39 import net.sourceforge.demetrix.ui.ProcessChainEditor;
40  
41 import net.sourceforge.demetrix.util.LoggerSetupHelper;
42  
430public class Demetrix {
44  
45     public static final String PRODUCT_VERSION = "0.0.8";
46  
47     public static final String PRODUCT_NAME = "demetrix";
48  
49     public static final String PRODUCT_DESCRIPTION = "process modelling system";
50  
51     public static final String COPYRIGHT =
52         "Copyright (c) 2003, 2004 Dimitri A. Pissarenko";
53  
54     public static final String HOMEPAGE = "http://demetrix.sourceforge.net/";
55  
56     public static void main(String[] args) {
57  
580        ProcessChainEditor editor = null;
59  
600        Logger logger = null;
61  
620        File txtLogFile = null;
63  
640        File htmlLogFile = null;
65  
660        txtLogFile = new File("log/demetrix.log");
670        if (txtLogFile.exists())
68         {
690            txtLogFile.delete();
70         }
71  
720        htmlLogFile = new File("log/demetrix.log.html");
730        if (htmlLogFile.exists())
74         {
750            htmlLogFile.delete();
76         }
77  
780        LoggerSetupHelper.setupLogger();
79  
800        logger = Logger.getLogger(Demetrix.class);
81  
82         logger.info(Demetrix.PRODUCT_NAME + " " + Demetrix.PRODUCT_VERSION);
83  
84         logger.info(Demetrix.PRODUCT_DESCRIPTION);
85  
86         logger.info(Demetrix.COPYRIGHT);
87  
88         logger.info(Demetrix.HOMEPAGE);
89  
900        DemetrixConfigurationSingleton.getInstance().loadData();
91  
920        editor = ProcessChainEditor.getInstance();
93  
940        editor.show();
95  
960    }
97  
98 }

this report was generated by version 1.0.5 of jcoverage.
visit www.jcoverage.com for updates.

copyright © 2003, jcoverage ltd. all rights reserved.
Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.