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 46595 - Clean target of java/parser deletes nbbuild directory
Summary: Clean target of java/parser deletes nbbuild directory
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-27 02:51 UTC by _ tboudreau
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

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 _ tboudreau 2004-07-27 02:51:55 UTC
Seen while building, invoking nbbuild/build.xml from a different 
dir to build an installer:

Process 'java/parser' location with 'clean' target
clean:
init:
deps-clean:
clean:
Deleting directory /space/nb_another/nbbuild

As you can imagine, this causes some problems with the build 
continuing :-/

The problem is in your build-impl.xml - I have no idea why, but 
there is this:

    <target name="-do-clean" depends="init">
        <delete dir="${build.dir}"/>  <---!!!!!!!!!!!!!!
        <delete dir="${dist.dir}"/>
    </target>


Best would simply be to use the standard netbeans module 
project type.
Comment 1 Jan Becicka 2004-07-27 08:56:37 UTC
Tomasi, please take a look at it. Thanks.
Comment 2 Tomas Zezula 2004-07-27 14:32:07 UTC
I've done the following on my Linux:
cd nb_all
ant -f nbbuild/build.xml clean

and the clean process has finished as it was expected:

clean:
   [delete] Deleting directory
/home/tom/Projects/netbeans/trunk/nb_all/java/parser/build
   [delete] Deleting directory
/home/tom/Projects/netbeans/trunk/nb_all/java/parser/dist


If you did something else please describe what you did.
Honza was testing it on Windows and it worked fine, the same holds for
MacOS X.
Comment 3 _ tboudreau 2004-07-27 16:07:23 UTC
My mistake, I guess - I was calling nbbuild from a script which set build.dir to nbbuild.
Comment 4 Jesse Glick 2004-07-27 20:00:47 UTC
There was a related P1 too, in mdr.
Comment 5 Tomas Zezula 2004-07-28 08:08:50 UTC
Yes, the issue:
http://www.netbeans.org/issues/show_bug.cgi?id=46596
It is also closed.