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.
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.
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.
Created attachment 1237 [details] build.xml
Created attachment 1238 [details] FBTagLib\build.xml
Created attachment 1239 [details] tmclient\build.xml
Created attachment 1240 [details] tmserver\build.xml
Created attachment 1241 [details] XMLMapper\build.xml
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.
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.
Created attachment 1248 [details] Stripped-down build script I tested against
Verified.
Resolved for 3.3.x or earlier, no new info since then -> closing.