View | Details | Raw Unified | Return to bug 259685 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/model/ClasspathTests.java (+36 lines)
Lines 3689-3694 Link Here
3689
	}
3689
	}
3690
}
3690
}
3691
/*
3691
/*
3692
 * Ensures that nested libraries in the Class-Path: clause of a jar doesn't create a marker.
3693
 * (regression test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=259685 )
3694
 */
3695
public void testExtraLibraries17() throws Exception {
3696
	try {
3697
		IJavaProject p = createJavaProject("P");
3698
		addExternalLibrary(p, getExternalResourcePath("lib.jar"), new String[0], 
3699
			new String[] {
3700
				"META-INF/MANIFEST.MF",
3701
				"Manifest-Version: 1.0\n" +
3702
				"Class-Path: lib/ \n",
3703
			},
3704
			JavaCore.VERSION_1_4);
3705
		waitForAutoBuild();
3706
		
3707
		org.eclipse.jdt.core.tests.util.Util.createJar(
3708
			null/*no classes*/,
3709
			new String[] {
3710
				"META-INF/MANIFEST.MF",
3711
				"Manifest-Version: 1.0\n" +
3712
				"Class-Path: lib/ lib/sublib/ \n",
3713
			},
3714
			getExternalResourcePath("lib.jar"),
3715
			null/*no classpath*/,
3716
			JavaCore.VERSION_1_4);
3717
		refreshExternalArchives(p);
3718
		assertMarkers(
3719
			"Unexpected markers",
3720
			"",
3721
			p);
3722
	} finally {
3723
		deleteProject("P");
3724
		deleteExternalResource("lib.jar");
3725
	}
3726
}
3727
/*
3692
 * Ensures that a marker is removed if adding an internal jar that is on the classpath in another project
3728
 * Ensures that a marker is removed if adding an internal jar that is on the classpath in another project
3693
 * (regression test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=213723 )
3729
 * (regression test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=213723 )
3694
 */
3730
 */

Return to bug 259685