This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 201132
Collapse All | Expand All

(-)maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java (-1 / +6 lines)
Lines 279-287 Link Here
279
        for (Map.Entry<? extends String,? extends String> entry : config.getProperties().entrySet()) {
279
        for (Map.Entry<? extends String,? extends String> entry : config.getProperties().entrySet()) {
280
            if (!entry.getKey().startsWith(ENV_PREFIX)) {
280
            if (!entry.getKey().startsWith(ENV_PREFIX)) {
281
                //skip envs, these get filled in later.
281
                //skip envs, these get filled in later.
282
                toRet.add("-D" + entry.getKey() + "=" + (Utilities.isWindows() ? entry.getValue().replace(quote, escaped) : entry.getValue().replace(quote, "'")));
282
                String s = "-D" + entry.getKey() + "=" + (Utilities.isWindows() ? entry.getValue().replace(quote, escaped) : entry.getValue().replace(quote, "'"));
283
                if (Utilities.isWindows() && s.endsWith("\"")) {
284
                    s = s + " ";
283
            }
285
            }
286
                toRet.add(s);
287
                System.out.println("d=" + s);
284
        }
288
        }
289
        }
285
290
286
        if (config.isOffline() != null && config.isOffline().booleanValue()) {
291
        if (config.isOffline() != null && config.isOffline().booleanValue()) {
287
            toRet.add("--offline");//NOI18N
292
            toRet.add("--offline");//NOI18N

Return to bug 201132