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

Bug 136176

Summary: [log] "Create Ant build file" silently fails while "custom=true" in build properties
Product: [Eclipse Project] PDE Reporter: Davor Cubranic <davor.cubranic>
Component: BuildAssignee: pde-build-inbox <pde-build-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Davor Cubranic CLA 2006-04-11 15:33:25 EDT
Eclipse 3.2M5a

I used the "create Ant build file" tool to create a build file that I was the going to customize for my project, and then added a "custom=true" property to the build.properties file. I then added another source folder to the build properties and tried to regenerate the build file the same way as before. Nothing happened until I commented out "custom=true" property. I understand why you might not want to change the build.xml file in most cases when this property is true, but there should be some kind of warning, rather than a silent failure.

On a related note, while trying to figure out what was going on, I tried deleting build.xml and then regenerating it. I got an error "No custom build file found in <project directory>/build.xml. Isn't that an odd error message when I just issued the command to create such a file? Should this even be treated as an error?
Comment 1 Pascal Rapicault CLA 2006-04-25 20:32:06 EDT
I opened bug #138541 for the first part of the problem.
I agree that the second error is really gross and we should do something about it. Not sure we will do something in the 3.2 timeframe as we have more outstanding issues.
Comment 2 Pascal Rapicault CLA 2007-03-29 22:45:00 EDT
I'm not planning on changing the behavior for that. I changed the message to be more explicit and help the user fix the problem.