OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 154 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 154 Rev 160
Line 12... Line 12...
12
import javax.swing.AbstractAction;
12
import javax.swing.AbstractAction;
13
import javax.swing.JFrame;
13
import javax.swing.JFrame;
14
 
14
 
15
import org.openconcerto.erp.action.CreateFrameAbstractAction;
15
import org.openconcerto.erp.action.CreateFrameAbstractAction;
16
import org.openconcerto.erp.config.ComptaPropsConfiguration;
16
import org.openconcerto.erp.config.ComptaPropsConfiguration;
17
import org.openconcerto.erp.config.Gestion;
-
 
18
import org.openconcerto.erp.config.MainFrame;
17
import org.openconcerto.erp.config.MainFrame;
19
import org.openconcerto.erp.modules.AbstractModule;
18
import org.openconcerto.erp.modules.AbstractModule;
20
import org.openconcerto.erp.modules.ComponentsContext;
19
import org.openconcerto.erp.modules.ComponentsContext;
21
import org.openconcerto.erp.modules.DBContext;
20
import org.openconcerto.erp.modules.DBContext;
22
import org.openconcerto.erp.modules.MenuContext;
21
import org.openconcerto.erp.modules.MenuContext;
23
import org.openconcerto.erp.modules.ModuleFactory;
22
import org.openconcerto.erp.modules.ModuleFactory;
24
import org.openconcerto.erp.modules.ModuleManager;
-
 
25
import org.openconcerto.erp.modules.ModulePackager;
-
 
26
import org.openconcerto.erp.modules.RuntimeModuleFactory;
-
 
27
import org.openconcerto.modules.customerrelationship.lead.call.CustomerCallSQLElement;
23
import org.openconcerto.modules.customerrelationship.lead.call.CustomerCallSQLElement;
28
import org.openconcerto.modules.customerrelationship.lead.call.CustomerCallServiceSQLElement;
24
import org.openconcerto.modules.customerrelationship.lead.call.CustomerCallServiceSQLElement;
29
import org.openconcerto.modules.customerrelationship.lead.call.LeadCallSQLElement;
25
import org.openconcerto.modules.customerrelationship.lead.call.LeadCallSQLElement;
30
import org.openconcerto.modules.customerrelationship.lead.call.LeadCallServiceSQLElement;
26
import org.openconcerto.modules.customerrelationship.lead.call.LeadCallServiceSQLElement;
31
import org.openconcerto.modules.customerrelationship.lead.importer.LeadImporter;
27
import org.openconcerto.modules.customerrelationship.lead.importer.LeadImporter;
Line 38... Line 34...
38
import org.openconcerto.sql.element.SQLElement;
34
import org.openconcerto.sql.element.SQLElement;
39
import org.openconcerto.sql.element.SQLElementDirectory;
35
import org.openconcerto.sql.element.SQLElementDirectory;
40
import org.openconcerto.sql.model.ConnectionHandlerNoSetup;
36
import org.openconcerto.sql.model.ConnectionHandlerNoSetup;
41
import org.openconcerto.sql.model.DBRoot;
37
import org.openconcerto.sql.model.DBRoot;
42
import org.openconcerto.sql.model.SQLDataSource;
38
import org.openconcerto.sql.model.SQLDataSource;
43
import org.openconcerto.sql.model.SQLRequestLog;
-
 
44
import org.openconcerto.sql.model.SQLRow;
39
import org.openconcerto.sql.model.SQLRow;
45
import org.openconcerto.sql.model.SQLRowValues;
40
import org.openconcerto.sql.model.SQLRowValues;
46
import org.openconcerto.sql.model.SQLTable;
41
import org.openconcerto.sql.model.SQLTable;
47
import org.openconcerto.sql.ui.ConnexionPanel;
-
 
48
import org.openconcerto.sql.utils.SQLCreateTable;
42
import org.openconcerto.sql.utils.SQLCreateTable;
49
import org.openconcerto.sql.utils.SQLUtils;
43
import org.openconcerto.sql.utils.SQLUtils;
50
import org.openconcerto.sql.view.EditFrame;
44
import org.openconcerto.sql.view.EditFrame;
51
import org.openconcerto.sql.view.ListeAddPanel;
45
import org.openconcerto.sql.view.ListeAddPanel;
52
import org.openconcerto.sql.view.list.IListe;
46
import org.openconcerto.sql.view.list.IListe;
Line 309... Line 303...
309
 
303
 
310
    @Override
304
    @Override
311
    protected void stop() {
305
    protected void stop() {
312
    }
306
    }
313
 
307
 
314
    public static void main(String[] args) throws IOException {
-
 
315
        System.setProperty(ConnexionPanel.QUICK_LOGIN, "true");
-
 
316
        final File propsFile = new File("module.properties");
-
 
317
        System.out.println(propsFile.getAbsolutePath());
-
 
318
        final ModuleFactory factory = new RuntimeModuleFactory(propsFile);
-
 
319
        SQLRequestLog.setEnabled(true);
-
 
320
        SQLRequestLog.showFrame();
-
 
321
        // uncomment to create and use the jar
-
 
322
        final ModulePackager modulePackager = new ModulePackager(propsFile, new File("bin/"));
-
 
323
        modulePackager.writeToDir(new File("../OpenConcerto/Modules"));
-
 
324
        // final ModuleFactory factory = new JarModuleFactory(jar);
-
 
325
        ModuleManager.getInstance().addFactories(new File("../OpenConcerto/Modules"));
-
 
326
        ModuleManager.getInstance().addFactoryAndStart(factory, false);
-
 
327
        Gestion.main(args);
-
 
328
    }
-
 
329
 
-
 
330
}
308
}