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.
|Summary:||[40cat] Trying to override old definition of task|
|Product:||java||Reporter:||Milan Kubec <mkubec>|
|Component:||Project||Assignee:||David Konecny <dkonecny>|
|Severity:||blocker||CC:||athompson, deeptinker, jglick, pbuzek|
|Issue Type:||DEFECT||Exception Reporter:|
|Bug Depends on:||104103|
Description Milan Kubec 2004-05-28 10:54:39 UTC
[custom build 20040527, JDK 1.4.2] There are warning messages in ant output when running build of one particular project. I can't provide much details about creation of the project because I don't remember doing anything special when creating the project. The project contains IDE examples and the build and run works OK. No other project produces these warnings.
Comment 2 Jesse Glick 2004-05-28 13:32:15 UTC
Known issue (David already investigated it). Appears to be harmless; just a warning. Not sure if there is anything we can do in NB but maybe we could track down why Ant is issuing the warning, and if it is useless, submit a patch to suppress it.
Comment 3 Jesse Glick 2004-05-28 13:32:38 UTC
BTW occurs whenever you have subprojects of j2seproject.
Comment 4 David Konecny 2004-05-31 10:59:19 UTC
OK, I will look at the Ant sources as time permits.
Comment 5 deeptinker 2004-09-08 05:15:14 UTC
These messages for tasks javac, nbjpdastart, debug, and java pop up when following the quickstart guide http://www.netbeans.org/kb/articles/quickstart-40.html. Since this has been open since May, it probably will not be fixed before 4.0 release. Perhaps the release notes or the quickstart guide itself should mention that these messages are harmless. A new user might otherwise think she had done something wrong. Travis
Comment 6 deeptinker 2004-09-08 05:16:15 UTC
(Added myself to cc)
Comment 7 David Konecny 2004-09-13 09:06:31 UTC
*** Issue 48900 has been marked as a duplicate of this issue. ***
Comment 8 David Konecny 2004-09-13 17:18:31 UTC
I think I have it. I will file bug+patch against Ant tomorrow.
Comment 9 David Konecny 2004-09-14 12:17:41 UTC
Filed as Ant issue <http://issues.apache.org/bugzilla/show_bug.cgi?id=31215>. Possible workaround at our side is to not use default values (different per project) in macro definitions. Do not have strong opinion on it. I'm used to ignore these warnings. Other option could be to filter them out in IDE before passing them to output window.
Comment 10 David Konecny 2004-09-22 16:47:30 UTC
I worked around this Ant bug in J2SEAntLogger by filtering out these messages. pbuzek, adding you on CC, you might want to do the same in web Ant logger. Fixed in: src/org/netbeans/modules/java/j2seproject/J2SEAntLogger.java new revision: 1.3; previous revision: 1.2
Comment 11 Milan Kubec 2004-10-01 15:31:51 UTC
Verified in custom 20041001.
Comment 12 _ gtzabari 2004-12-02 01:06:21 UTC
I think this issue is back in 4.1. Please see the problem I reported in #51941 and consider reopening this issue. Should I open a new issue instead?
Comment 13 Jesse Glick 2004-12-02 02:44:24 UTC
If you can reproduce the problem in 4.0, certainly reopen it. If you can reproduce in 4.1 but *not* in 4.0, that is interesting.
Comment 14 Milan Kubec 2004-12-15 14:25:05 UTC
It seems to be really back. I can reproduce it on dev-200412141900. Happens only if I run Build of j2seproject that has dependency on another project. I will file new issue because it's fixed for 4.0.
Comment 15 David Konecny 2004-12-15 14:37:38 UTC
Assign the issue to me please.
Comment 16 athompson 2007-04-09 15:23:31 UTC
back in 6.0, maybe because of new ant?
Comment 17 Milan Kubec 2007-05-16 13:14:27 UTC
Fixed again. There was probably some change in ant itself, because messages from subprojects are send in AntEvent with script 'build.xml' instead of 'build-impl.xml'. Checking in J2SEAntLogger.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEAntLogger.java,v <-- J2SEAntLogger.java new revision: 1.9; previous revision: 1.8 done
Comment 18 athompson 2007-05-27 00:36:06 UTC
Comment 19 Quality Engineering 2008-06-18 15:57:45 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #267 build Changeset: http://hg.netbeans.org/main/rev/c8c9769ecd4c User: Jesse Glick <email@example.com> Log: #104103: AntEvent.scriptLocation was wrong in some cases. (Specifically when a task used Project.log rather than Task.log and it was called via an imported script.) Can thus roll back the hacky refix of #43968.