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 232229
Collapse All | Expand All

(-)o.n.bootstrap/apichanges.xml (+16 lines)
Lines 85-90 Link Here
85
        </description>
85
        </description>
86
        <issue number="201731"/>
86
        <issue number="201731"/>
87
    </change>
87
    </change>
88
     <change id="netbeans.ignore.dupmodule">
89
        <api name="launcher"/>
90
        <summary>Property to replace DuplicateException with warning log only</summary>
91
        <version major="2" minor="63"/>
92
        <date day="24" month="7" year="2013"/>
93
        <author login="mantlik"/>
94
        <compatibility addition="yes" binary="compatible" semantic="compatible" />
95
        <description>
96
        <p>
97
            See <a href="@TOP@architecture-summary.html#systemproperty-netbeans.ignore.dupmodule">
98
                netbeans.ignore.dupmodule
99
            </a> for details.
100
        </p>
101
        </description>
102
        <issue number="232229"/>
103
    </change>
88
  </changes>
104
  </changes>
89
105
90
  <!-- Now the surrounding HTML text and document structure: -->
106
  <!-- Now the surrounding HTML text and document structure: -->
(-)o.n.bootstrap/arch.xml (+9 lines)
Lines 617-622 Link Here
617
                    waits to synchronize with system clipboard. Defaults to 1000ms.
617
                    waits to synchronize with system clipboard. Defaults to 1000ms.
618
                </api>
618
                </api>
619
            </li>
619
            </li>
620
            <li>
621
                <api type="export" group="systemproperty" name="netbeans.ignore.dupmodule" category="devel">
622
                    By default ModuleManager throws <code>DuplicateException</code> when an attempt is made
623
                    to load an already loaded module.
624
                    One can change this behavior by providing <code>-Dnetbeans.ignore.dupmodule=true</code>
625
                    since version 2.63. When <code>-Dnetbeans.ignore.dupmodule=true</code> is provided,
626
                    attempt of duplicate loading is logged instead of throwing <code>DuplicateException</code>.
627
                </api>
628
            </li>
620
        </ul>
629
        </ul>
621
        <p>
630
        <p>
622
            There are also some options passed to the launcher (interpreted
631
            There are also some options passed to the launcher (interpreted
(-)o.n.bootstrap/manifest.mf (-1 / +1 lines)
Lines 1-6 Link Here
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
OpenIDE-Module: org.netbeans.bootstrap/1
2
OpenIDE-Module: org.netbeans.bootstrap/1
3
OpenIDE-Module-Specification-Version: 2.62
3
OpenIDE-Module-Specification-Version: 2.63
4
OpenIDE-Module-Localizing-Bundle: org/netbeans/Bundle.properties
4
OpenIDE-Module-Localizing-Bundle: org/netbeans/Bundle.properties
5
OpenIDE-Module-Recommends: org.netbeans.NetigsoFramework
5
OpenIDE-Module-Recommends: org.netbeans.NetigsoFramework
6
6
(-)o.n.bootstrap/src/org/netbeans/ModuleManager.java (+6 lines)
Lines 892-899 Link Here
892
    private void subCreate(Module m) throws DuplicateException {
892
    private void subCreate(Module m) throws DuplicateException {
893
        Module old = get(m.getCodeNameBase());
893
        Module old = get(m.getCodeNameBase());
894
        if (old != null) {
894
        if (old != null) {
895
            if (System.getProperty("netbeans.ignore.dupmodule", "false").equalsIgnoreCase("false")) {
895
            throw new DuplicateException(old, m);
896
            throw new DuplicateException(old, m);
897
            } else {
898
                // ignore duplicate module, log and gracefuly exit
899
                Util.err.warning("Duplicate loading ignored: " + old + " and " + m);
900
                return;
896
        }
901
        }
902
        }
897
        modules.add(m);
903
        modules.add(m);
898
        modulesByName.put(m.getCodeNameBase(), m);
904
        modulesByName.put(m.getCodeNameBase(), m);
899
        providersOf.possibleProviderAdded(m);
905
        providersOf.possibleProviderAdded(m);

Return to bug 232229