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 45336 - [40cat] different WAR File name then it's specified in Project Properties
Summary: [40cat] different WAR File name then it's specified in Project Properties
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-22 09:52 UTC by dmladek
Modified: 2007-08-03 10:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project's properties file with conflicted WAR File names (1.05 KB, text/plain)
2004-06-22 09:53 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2004-06-22 09:52:42 UTC
Product Version       = NetBeans IDE Dev (Build
200406211800)
  Operating System      = Linux version
2.4.22-1.2115.nptl running on i386
  Java; VM; Vendor      = 1.5.0-beta3; Java
HotSpot(TM) Client VM 1.5.0-beta3-b55; Sun
Microsystems Inc.
  Java Home             = /usr/local/java/jdk1.5.0/jre
  System Locale; Encod. = cs_CZ (nb); ISO-8859-2
  Home Dir; Current Dir = /usr/local/home/delphym;
/usr/local/forte/forte3/NBdev-last/netbeans/bin
-------------------------------------------------------------------------------

I've created WEB Project from sources.
I've gave it the name "List DB" and placed it into
folder "listdb".
By default WAR File Name in Project
Properties->Build->Packaging Project was equal to
Project Name, that means it was "List DB.war"
I've change it into listdb.war
but when build project it always creates "List
DB.war" which is wrong.

I've found that in
listdb/nbproject/project.properties file 
are in conflict those records:
dist.war=${dist.dir}/List DB.war
war.name=listdb.war

for details see attached project.properties file
Comment 1 dmladek 2004-06-22 09:53:27 UTC
Created attachment 15903 [details]
Project's properties  file with conflicted WAR File names
Comment 2 dmladek 2004-06-22 10:51:30 UTC
well, you could checkout this project from cvs
CVSROOT=:pserver:dm103276@beetle:/cvs
module=webapps/listdb
revision=1.1

in newer revison is manualy corrected wrong project.properties file,
so you won't be able to see this bug ;-)
Comment 3 zikmund 2004-08-04 18:37:23 UTC
It's reproducible with all projects.
Comment 4 Pavel Buzek 2004-08-04 23:17:29 UTC
cvs commit -m "45336 - use war.name for the name of generated war file
(instead of constant)" WebProjectGenerator.java (in directory
E:\nb_all\web\project\src\org\netbeans\modules\web\project\)
Checking in WebProjectGenerator.java;
/cvs/web/project/src/org/netbeans/modules/web/project/WebProjectGenerator.java,v
 <--  WebProjectGenerator.java
new revision: 1.38; previous revision: 1.37
done
Comment 5 gholmer 2004-09-02 17:33:59 UTC
I am still seeing this behavior with build 200408311800.
Comment 6 llturro 2004-09-02 17:35:27 UTC
In QBuild 200408271257 doesn't work. WAR Name = Project Name, despite
WAR File Name value.
Comment 7 Pavel Buzek 2004-09-13 17:27:10 UTC
Lluis,
the problem was in how the project.properties is created when you
first create the project. I assume that you created your project in
earlier build that had this bug in it. Just opening the project in
newer build will not fix it. You can check to see if your
project.properties has this line:

dist.war=${dist.dir}/YourProjectName.war

and if so you can fix it manually to be:

dist.war=${dist.dir}/${war.name}

Please verify that this helps and that for newly created projects it
works, otherwise please reopen again.
Thanks!
Comment 8 Dan Kolar 2007-08-03 10:11:56 UTC
v