@@ -425,14 +425,20 @@ public void testSourceBundleRecognition() throws Exception {
425425 PDETestCase .assumeRunningInStandaloneEclipseSDK ();
426426
427427 ITargetDefinition definition = getNewTarget ();
428+ String defaultLocation = TargetPlatform .getDefaultLocation ();
428429
429- ITargetLocation directoryContainer = getTargetService ().newDirectoryLocation (TargetPlatform . getDefaultLocation () + "/plugins" );
430+ ITargetLocation directoryContainer = getTargetService ().newDirectoryLocation (defaultLocation + "/plugins" );
430431
431- ITargetLocation profileContainer = getTargetService ().newProfileLocation (TargetPlatform . getDefaultLocation () , null );
432+ ITargetLocation profileContainer = getTargetService ().newProfileLocation (defaultLocation , null );
432433
433- ITargetLocation featureContainer = getTargetService (). newFeatureLocation ( TargetPlatform . getDefaultLocation (), "org.eclipse.jdt" , null ) ;
434+ String featureWithCorrespondingSourceFeature = "org.eclipse.equinox.p2.core.feature" ;
434435
435- ITargetLocation featureContainer2 = getTargetService ().newFeatureLocation (TargetPlatform .getDefaultLocation (), "org.eclipse.jdt.source" , null );
436+ ITargetLocation featureContainer = getTargetService ().newFeatureLocation (defaultLocation ,
437+ featureWithCorrespondingSourceFeature ,
438+ null );
439+
440+ ITargetLocation featureContainer2 = getTargetService ().newFeatureLocation (defaultLocation ,
441+ featureWithCorrespondingSourceFeature + ".source" , null );
436442
437443 definition .setTargetLocations (new ITargetLocation []{directoryContainer , profileContainer , featureContainer , featureContainer2 });
438444 definition .resolve (null );
@@ -464,4 +470,5 @@ public void testSourceBundleRecognition() throws Exception {
464470 }
465471 }
466472
473+
467474}
0 commit comments