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 145305 - "Empty placeholder" target not actually empty
Summary: "Empty placeholder" target not actually empty
Status: NEW
Alias: None
Product: soa
Classification: Unclassified
Component: SQL Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Venkat Srinivasan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-27 14:47 UTC by ats37
Modified: 2008-10-01 15:30 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 ats37 2008-08-27 14:47:34 UTC
I'm using NetBeans IDE 6.5 Beta (Build 200808111757) under Sun's JDK 1.6.0_02 on Windows XP.

I have created a new empty SQL Module type project, and noticed that although the comments in build.xml include
      pre-dist:                 called before jar building 
empty "extension" targets, that target is not in fact empty.  In addition to the
        <!-- Empty placeholder for easier customization. -->
        <!-- You can override this target in the ../build.xml file. -->
comments it also contains tasks to create the ${build.dir}/META-INF directory and calls the generate-wsdl-artifacts task.
If I were to follow the advice in build.xml and override the target, I would inadvertently break the generation...

If these steps truly need to be done before dist_se, then following the examples of the compile & test sections they
ought to be moved into a pre-pre-dist target.  That certainly makes sense for the mkdir tasks (by comparison with
pre-pre-compile which contains the mkdir for ${build.classes.dir}) though the generate-wsdl-artifacts task should
probably be moved into dist_se or given its own target.

One other observation; the SQL Module's build-impl.xml uses "pre-dist" and "post-dist" etc., while other project types
generally use "-post-dist" and "-post-dist" to hide such targets from 'ant -projecthelp' since they're not intended to
be called from outside the build script.
Comment 1 ats37 2008-08-27 15:52:06 UTC
Another thing I noticed - pre-dist creates the ${build.dir} and ${build.dir}/META-INF directories, but the do-clean
target only removes ${dist.dir}.  After running the "clean" target, the build directory is still present.
Comment 2 Sergey Lunegov 2008-10-01 15:30:16 UTC
Changed target milestone.