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

(-)nbjunit/src/org/netbeans/junit/NbModuleSuite.java (-2 / +2 lines)
Lines 1103-1112 Link Here
1103
            StringBuilder classPathHeader = new StringBuilder();
1103
            StringBuilder classPathHeader = new StringBuilder();
1104
            for (String artifact : mavenCP) {
1104
            for (String artifact : mavenCP) {
1105
                String[] grpArtVers = artifact.split(":");
1105
                String[] grpArtVers = artifact.split(":");
1106
                String suffix = File.separatorChar + grpArtVers[0].replace('.', File.separatorChar) + File.separatorChar + grpArtVers[1] + File.separatorChar + grpArtVers[2] + File.separatorChar + grpArtVers[1] + '-' + grpArtVers[2] + ".jar";
1106
                String partOfPath = File.separatorChar + grpArtVers[0].replace('.', File.separatorChar) + File.separatorChar + grpArtVers[1] + File.separatorChar + grpArtVers[2] + File.separatorChar + grpArtVers[1] + '-' + grpArtVers[2];
1107
                File dep = null;
1107
                File dep = null;
1108
                for (String classpathEntry : classpathEntries) {
1108
                for (String classpathEntry : classpathEntries) {
1109
                    if (classpathEntry.endsWith(suffix)) {
1109
                    if (classpathEntry.endsWith(".jar") && classpathEntry.contains(partOfPath)) {
1110
                        dep = new File(classpathEntry);
1110
                        dep = new File(classpathEntry);
1111
                        break;
1111
                        break;
1112
                    }
1112
                    }

Return to bug 225522