OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 19 | Rev 80 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19 Rev 61
Line 56... Line 56...
56
            e.printStackTrace();
56
            e.printStackTrace();
57
            return;
57
            return;
58
        }
58
        }
59
        ServerFinder f = new ServerFinder();
59
        ServerFinder f = new ServerFinder();
60
        File fH2 = new File(Configuration.getDefaultConfDir(), "OpenConcerto-GESTION_DEFAULT/DBData");
60
        File fH2 = new File(Configuration.getDefaultConfDir(), "OpenConcerto-GESTION_DEFAULT/DBData");
61
        if (fH2.exists() && fH2.isDirectory()) {
61
        if (ServerFinderPanel.containsValidH2DB(fH2)) {
62
            final ServerFinderConfig c = new ServerFinderConfig();
62
            final ServerFinderConfig c = new ServerFinderConfig();
63
            c.setType(ServerFinderConfig.H2);
63
            c.setType(ServerFinderConfig.H2);
64
            c.setFile(fH2);
64
            c.setFile(fH2);
65
            if (new File(fH2, "OpenConcerto.h2.db").exists()) {
-
 
66
                c.setProduct("H2 OpenConcerto found");
65
            c.setProduct("H2 OpenConcerto found");
67
            } else {
66
            confs.add(c);
68
                c.setProduct("Unknown H2 database");
-
 
69
            }
67
        }
-
 
68
        fH2 = new File(Configuration.getDefaultConfDir(), "OpenConcerto/DBData");
-
 
69
        if (ServerFinderPanel.containsValidH2DB(fH2)) {
-
 
70
            final ServerFinderConfig c = new ServerFinderConfig();
-
 
71
            c.setType(ServerFinderConfig.H2);
-
 
72
            c.setFile(fH2);
-
 
73
            c.setProduct("H2 OpenConcerto found");
70
            confs.add(c);
74
            confs.add(c);
71
        }
75
        }
72
        List<String> l = f.getIPsToScan();
76
        List<String> l = f.getIPsToScan();
73
        int stop = l.size();
77
        int stop = l.size();
74
        for (int i = 0; i < stop; i++) {
78
        for (int i = 0; i < stop; i++) {