Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 157137 - PDE Build should fail when CVS command fails
Summary: PDE Build should fail when CVS command fails
Status: RESOLVED DUPLICATE of bug 165155
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-13 02:50 EDT by David Olsen CLA
Modified: 2006-12-19 09:02 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Olsen CLA 2006-09-13 02:50:59 EDT
PDE Build should fail whenever a CVS command fails.

Currently, PDE Build does not always fail when a CVS command fails.  Normally a CVS failure will cause a plugin or feature to be missing completely, which will stop the build pretty quickly.  But recently in our builds we have seen CVS export commands that check out a bunch of files and then fail.  PDE Build merrily continued on with the build.  Because the CVS command had done a partial export, all the files that describe the plugin (plugin.xml, MANIFEST.MF, build.properties, etc.) were present.  It was just some of the source files that were missing.  PDE Build tried to compile all the source files that were present and made no complaints about the ones that were missing.

In most cases, one of the plugins failed to compile due to the missing source files.  But we have had at least one case where the missing source files were not used by anything else within that particular build, so the build seemed to succeed.  The problem wasn't noticed until someone else tried to use the plugins that had been created.

Even though this problem is rare (and we think we have fixed our CVS server so these types of errors won't happen any more), it can lead to PDE Build silently building something incorrectly.  And that is the worst possible sin a build can commit.  That's why I think PDE Build should fail immediately whenever a CVS command returns an error.
Comment 1 Pascal Rapicault CLA 2006-09-13 10:16:08 EDT
Have you tried to modify the cvs task call to see if the failOnError option is what you need?
The code that generates the call is CVSFetchTaskFactory#printCVSTask(....).
Comment 2 Pascal Rapicault CLA 2006-12-19 09:02:54 EST

*** This bug has been marked as a duplicate of bug 165155 ***