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 83224 - nbbuild/build.xml#real-clean can fail
Summary: nbbuild/build.xml#real-clean can fail
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: pzajac
URL: http://deadlock.nbextras.org/job/trun...
Keywords: REGRESSION
Depends on:
Blocks: 82910
  Show dependency tree
 
Reported: 2006-08-22 19:27 UTC by Jesse Glick
Modified: 2006-10-23 15:46 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 Jesse Glick 2006-08-22 19:27:24 UTC
See URL of a trunk build failure. The failing target is real-clean. Problem is
that 'build-init' is now a prerequisite of 'clean' in
common.xml/projectized.xml. This is no good because during cleaning, many module
JARs (those previously cleaned) will be absent, and so <parseprojectxml> is
unable to create a module CP if one of this module's deps has already been
cleaned. Regression introduced by fix of issue #82910.

You must find some way to clean tests without calling build-init. For example,
you may be able to move defns of ${test.unit.out.folder} and similar props from
test-init (which is no good since it has an indirect dep on build-init) to
basic-init, and then have test-unit-clean etc. dep on basic-init only.
Comment 1 pzajac 2006-08-23 10:28:45 UTC
Fixed .
IDE: [8/23/06 11:25 AM] Committing "projectized.xml" started
Checking in projectized.xml;
/cvs/nbbuild/templates/projectized.xml,v  <--  projectized.xml
new revision: 1.86; previous revision: 1.85

I fixed it for module in module suite project yersterday in different way: 

 <target name="test-clean" depends="basic-init,files-init">
         <parseprojectxml project=".">
             <testtype name="unit"  folder="test.unit.folder" />
         </parseprojectxml>      
         <property name="test.unit.out.folder" location="${test.unit.folder}"/>
         <delete dir="${test.unit.out.folder}"/>    
  </target>

It seems to be working fine.