Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334011

Summary: JUnit org.eclipse.jst.j2ee.dependency.tests.testStandaloneWebUtilDependency fails often when verifying dependencies
Product: [WebTools] WTP Java EE Tools Reporter: Roberto Sanchez Herrera <shr31223>
Component: jst.j2eeAssignee: Roberto Sanchez Herrera <shr31223>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc
Version: unspecifiedFlags: cbridgha: review+
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Wait for component file updates ccc: iplog+

Description Roberto Sanchez Herrera CLA 2011-01-11 12:52:24 EST
Build Identifier: M-3.2.3-20110105054130

The JUnit org.eclipse.jst.j2ee.dependency.tests.testStandaloneWebUtilDependency fails quite often when verifying dependencies. The problem seems to be that the method DependencyCreationUtil.createWebLibDependency(saWeb, util) does not wait for the component file to be updated.

Reproducible: Sometimes
Comment 1 Roberto Sanchez Herrera CLA 2011-01-11 13:05:41 EST
Created attachment 186536 [details]
Wait for component file updates

This patch makes the method DependencyCreationUtil.createProjectDependency to wait for the jobs that updates the component file to finish in case a webLibDep is created (because this type of dependency updates the component file)
Comment 2 Chuck Bridgham CLA 2011-01-12 13:43:19 EST
approve
Comment 3 Carl Anderson CLA 2011-01-12 15:01:01 EST
Committed to R3_2_maintenance and HEAD for WTP 3.2.3 and WTP 3.3 M5