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 169134 - "DEPRECATED - <available> used to override an existing property."
Summary: "DEPRECATED - <available> used to override an existing property."
Status: RESOLVED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmichalsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-24 14:50 UTC by Jesse Glick
Modified: 2009-07-29 06:03 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 Jesse Glick 2009-07-24 14:50:08 UTC
nbbuild/default.xml since 5b849577fe2e has

<available property="clusters.file" file="${nb_all}/ide/launcher/netbeans.clusters"
value="${nb_all}/ide/launcher/netbeans.clusters"/>
<available property="clusters.file" file="${netbeans.dest.dir}/etc/netbeans.clusters"
value="${netbeans.dest.dir}/etc/netbeans.clusters"/>

tmysik says this prints the warning mentioned in the subject line when he runs 'ant -f php.project/build.xml'. I can
reproduce:

php.project.default.init:
Updating property file: /space/src/nb/core-main/nbbuild/netbeans/moduleCluster.properties
DEPRECATED - <available> used to override an existing property.
  Build file should not reuse the same property name for different values.

<property> does not have this bad behavior so perhaps that is what you meant to use.
Comment 1 rmichalsky 2009-07-28 14:32:07 UTC
core-main #5185e3bccf70
Comment 2 Quality Engineering 2009-07-29 06:03:16 UTC
Integrated into 'main-golden', will be available in build *200907290201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5185e3bccf70
User: Richard Michalsky <rmichalsky@netbeans.org>
Log: #169134: fixed deprecated use of <available> task to override property