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 65657 - [50cat] properties loaded in nbproject/build-impl.xml are not propagated to child build files
Summary: [50cat] properties loaded in nbproject/build-impl.xml are not propagated to c...
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 5.x
Hardware: PC Linux
: P3 blocker with 1 vote (vote)
Assignee: Jesse Glick
Depends on:
Reported: 2005-10-03 03:51 UTC by claudio4j
Modified: 2005-10-03 22:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description claudio4j 2005-10-03 03:51:12 UTC
[ BUILD # : beta 1 ]
[ JDK VERSION : 1.6 ]

tested with JDK 5_05

1) create a new general java project
2) edit build.xml
3) create a custom task, like:
<target name="jaaava">
 <echo>javac.classpath = ${javac.classpath}</echo>
4) Right click, Run target, other targets, jaaava
5) it prints
javac.classpath = ${javac.classpath}

  It is supposed to javac.classpath be printed like example below, right ?

  if the target name is change to -post-jar, for example the javac.classpath prints correctly (the swinglayout need to be put under library)
Comment 1 Geertjan Wielenga 2005-10-03 10:11:28 UTC
You need to import the property file if you want to use its properties.

Add this to the build.xml, for example, put it below <import

<property file ="nbproject/"/>

Comment 2 Geertjan Wielenga 2005-10-03 10:14:25 UTC
Importing the property file explicitly like this is not needed for -post-jar
because -post-jar is called from build-impl.xml (automatically, after the dist).
Comment 3 Jesse Glick 2005-10-03 22:21:54 UTC