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 - Open Project now overwrites existing build.xml file
Summary: Open Project now overwrites existing build.xml file
Status: RESOLVED DUPLICATE of bug 74975
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-12 18:42 UTC by chaase3
Modified: 2006-04-13 14:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***