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

(-)nbbuild/antsrc/org/netbeans/nbbuild/L10nTask.java (-14 / +1 lines)
Lines 653-674 Link Here
653
    public void setModules(String s) {
653
    public void setModules(String s) {
654
        StringTokenizer st = new StringTokenizer(s,",");
654
        StringTokenizer st = new StringTokenizer(s,",");
655
        HashSet<String> modSet = new HashSet<String>(); //This will guarantee that there will be no duplications
655
        HashSet<String> modSet = new HashSet<String>(); //This will guarantee that there will be no duplications
656
        String fullMod = null;
657
656
658
        while (st.hasMoreTokens()) {
657
        while (st.hasMoreTokens()) {
659
            fullMod=st.nextToken().trim();;
658
            modSet.add( st.nextToken().trim() );
660
661
            // if (DEBUG) System.out.println("ITEM IN MODLIST: "+fullMod);
662
663
            int index = fullMod.indexOf(File.separator);
664
            if (index >= 0) {
665
                //Check that the mod doesn't have a slash
666
                // (if it does, keep only what is to the left of the slash)
667
                fullMod=fullMod.substring(0,index);
668
669
                // if (DEBUG) System.out.println("CHANGED FULLMOD & it's NOW "+fullMod);
670
            }
671
            modSet.add( fullMod );
672
        }
659
        }
673
        this.modules = new String[ modSet.size() ];
660
        this.modules = new String[ modSet.size() ];
674
        Iterator<String> it = modSet.iterator();
661
        Iterator<String> it = modSet.iterator();

Return to bug 101067