OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 156 Rev 177
Line 45... Line 45...
45
import java.io.OutputStream;
45
import java.io.OutputStream;
46
import java.net.HttpURLConnection;
46
import java.net.HttpURLConnection;
47
import java.net.URI;
47
import java.net.URI;
48
import java.net.URL;
48
import java.net.URL;
49
import java.nio.charset.Charset;
49
import java.nio.charset.Charset;
-
 
50
import java.util.Locale;
50
import java.util.Map;
51
import java.util.Map;
51
import java.util.concurrent.CompletableFuture;
52
import java.util.concurrent.CompletableFuture;
52
import java.util.concurrent.Future;
53
import java.util.concurrent.Future;
53
import java.util.concurrent.FutureTask;
54
import java.util.concurrent.FutureTask;
54
import java.util.concurrent.atomic.AtomicInteger;
55
import java.util.concurrent.atomic.AtomicInteger;
Line 479... Line 480...
479
            if (productInfo != null) {
480
            if (productInfo != null) {
480
                name = productInfo.getName();
481
                name = productInfo.getName();
481
                version = productInfo.getProperty(ProductInfo.VERSION, version);
482
                version = productInfo.getProperty(ProductInfo.VERSION, version);
482
            }
483
            }
483
 
484
 
484
            final Map<Info, String> systemInfos = SystemInfo.get(false);
485
            final Map<Info, String> systemInfos = SystemInfo.get(false, Locale.ENGLISH);
485
            final String os = systemInfos.remove(Info.OS);
486
            final String os = systemInfos.remove(Info.OS);
486
            final String java = systemInfos.toString();
487
            final String java = systemInfos.toString();
487
            final String encodedData = "java=" + PercentEncoder.encode(java, cs) + "&os=" + PercentEncoder.encode(os, cs) + "&software=" + PercentEncoder.encode(name + version, cs) + "&stack="
488
            final String encodedData = "java=" + PercentEncoder.encode(java, cs) + "&os=" + PercentEncoder.encode(os, cs) + "&software=" + PercentEncoder.encode(name + version, cs) + "&stack="
488
                    + PercentEncoder.encode(computeSoftwareInformations() + "\n\n" + error, cs);
489
                    + PercentEncoder.encode(computeSoftwareInformations() + "\n\n" + error, cs);
489
            Thread t = new Thread(new Runnable() {
490
            Thread t = new Thread(new Runnable() {