This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 74959

Summary: Open Project now overwrites existing build.xml file
Product: ide Reporter: chaase3 <chaase3>
Component: CodeAssignee: issues@ide <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description chaase3 2006-04-12 18:42:18 UTC
As of this week's builds (since 4/10), when I open a project in NetBeans for
which I have made edits to the build.xml file that NetBeans created, NetBeans
now overwrites the file with its own version of build.xml and all my changes are
lost.

Last week it was inserting the line 

    <import file="nbproject/build-impl.xml"/>

if I had erased it, but otherwise leaving the file as it was. I didn't like
that, but I could live with it.

The build.xml files for the tutorial we are revising use Blueprints targets in
another directory. We do the following import:

    <import file="../../bp-project/main.xml"/>

This main.xml file determines whether it is being called from within NetBeans or
not, and if it is, it imports the nbproject/build-impl.xml file. By overwriting
our build.xml file, NetBeans makes it impossible to use this logic. 

But in general I would think that anyone who tried to open an existing project
with a build.xml file would be extremely upset to find that the previous
build.xml file no longer existed.
Comment 1 chaase3 2006-04-13 14:53:46 UTC

*** This issue has been marked as a duplicate of 74975 ***