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 11731 - "clean" target fails to remove directory
Summary: "clean" target fails to remove directory
Status: CLOSED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-25 10:15 UTC by Jochen Wiedmann
Modified: 2003-06-30 14:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
build.xml (2.37 KB, text/xml)
2001-07-20 20:39 UTC, Jochen Wiedmann
Details
FBTagLib\build.xml (2.36 KB, text/xml)
2001-07-20 20:39 UTC, Jochen Wiedmann
Details
tmclient\build.xml (3.34 KB, text/xml)
2001-07-20 20:39 UTC, Jochen Wiedmann
Details
tmserver\build.xml (4.58 KB, text/xml)
2001-07-20 20:39 UTC, Jochen Wiedmann
Details
XMLMapper\build.xml (4.80 KB, text/xml)
2001-07-20 20:39 UTC, Jochen Wiedmann
Details
Stripped-down build script I tested against (953 bytes, text/plain)
2001-04-25 15:01 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Wiedmann 2001-04-25 10:15:19 UTC
In my ant project I have a directory "dist". The "clean" target should
remove this directory, create it, and create JAR files in the "dist"
directory.

This works fine, when I have started NetBeans. It doesn't work the
second time, I have to close NetBeans and start again. This is not
the case, if I call Ant from within the command line.
Comment 1 Milan Kubec 2001-04-25 11:03:44 UTC
Would you send the part of ant code responsible for this. And also can you
describe the way how you execute the script or target. Thanks.
Comment 2 Jochen Wiedmann 2001-04-25 11:09:06 UTC
Created attachment 1237 [details]
build.xml
Comment 3 Jochen Wiedmann 2001-04-25 11:09:53 UTC
Created attachment 1238 [details]
FBTagLib\build.xml
Comment 4 Jochen Wiedmann 2001-04-25 11:10:41 UTC
Created attachment 1239 [details]
tmclient\build.xml
Comment 5 Jochen Wiedmann 2001-04-25 11:11:06 UTC
Created attachment 1240 [details]
tmserver\build.xml
Comment 6 Jochen Wiedmann 2001-04-25 11:11:45 UTC
Created attachment 1241 [details]
XMLMapper\build.xml
Comment 7 Jochen Wiedmann 2001-04-25 11:14:13 UTC
The project consists of a root project (build.xml) and four
subprojects (XML-Mapper/build.xml, tmclient/build.xml and so on).
Any of these has a target "dist", a target "clean" and a target
"all".

The problem occurs, if I select the "dist" target of the root
build.xml.
Comment 8 Jesse Glick 2001-04-25 15:00:29 UTC
I cannot reproduce any problem. Your build scripts do not consistitute a
self-contained test to reproduce, but I stripped down the master script some
(attached) and everything worked fine. If you really think there is a problem,
please provide a ZIP file containing a complete test case for the problem, as
small as possible, with an explanation of what happened to you and what you
expected to happen, that I could just unpack and run to see the effects.

Did you select Refresh in the Explorer to update its view of the files on disk?
The IDE is not guaranteed to show all changes made by Ant immediately, it may
take a little while to refresh.

Also some comments about your build script that may be causing you problems:

- Using ${basedir} is generally useless. Path names are assumed to be relative
to the project basedir by default.

- But, for <property/> tags in general you ought to use location= rather than
value=. This makes sure the pathnames are resolved relative to the script they
are literally contained in, rather than the invoking script, when using the
<ant> task.

- Don't you need to <mkdir dir="${dist}"/> in your target 'all'? You create a
file in that directory and just expect it to exist.

- For jar'ing up tmserver.jar, it would probably be easier to use nested
<zipfileset>'s.
Comment 9 Jesse Glick 2001-04-25 15:01:22 UTC
Created attachment 1248 [details]
Stripped-down build script I tested against
Comment 10 Milan Kubec 2001-06-29 12:41:38 UTC
Verified.
Comment 11 Quality Engineering 2003-06-30 14:47:08 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.