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 50153 - build.xml - error in example and inconsistency with JavaProject
Summary: build.xml - error in example and inconsistency with JavaProject
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-08 09:33 UTC by zikmund
Modified: 2007-10-12 14:05 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 zikmund 2004-10-08 09:33:06 UTC
Build 200410080520

The example:
  <target name="post-compile">
should be:
  <target name="-post-compile">

Missing line behind targets list:
  (Targets beginning with '-' are not intended to
be called on their own.)
Comment 1 zikmund 2004-10-11 12:29:30 UTC
Moreover, JAR name should be changed to WAR -- 3 occurences in *-dist
actions (-pre-dist, -post-dist and do-dist), e.g.:
line:
   -pre-dist:  called before jar building
should be:
   -pre-dist:  called before WAR building
Comment 2 David Konecny 2007-10-11 15:36:46 UTC
I will rename "jar" to "war" or perhaps just to "archive".

I agree with rename of "post-compile" to "-post-compile" but unfortunately that's backward incompatible and could break
existing projects: user creates project in NB55; customizes "post-compile" target; opens project in NB6 which
regenerates build-imp.xml to call "-post-compile" and project is broken.
Comment 3 David Konecny 2007-10-12 14:05:22 UTC
Checking in web/project/src/org/netbeans/modules/web/project/resources/build.xsl;
/cvs/web/project/src/org/netbeans/modules/web/project/resources/build.xsl,v  <--  build.xsl
new revision: 1.16; previous revision: 1.15
done
Checking in j2ee/earproject/src/org/netbeans/modules/j2ee/earproject/resources/build.xsl;
/cvs/j2ee/earproject/src/org/netbeans/modules/j2ee/earproject/resources/build.xsl,v  <--  build.xsl
new revision: 1.5; previous revision: 1.4
done
Checking in j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/resources/build.xsl;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/resources/build.xsl,v  <--  build.xsl
new revision: 1.8; previous revision: 1.7
done
Checking in j2ee/archiveproject/src/org/netbeans/modules/j2ee/archive/project/resources/build.xsl;
/cvs/j2ee/archiveproject/src/org/netbeans/modules/j2ee/archive/project/resources/build.xsl,v  <--  build.xsl
new revision: 1.4; previous revision: 1.3