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.
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
Created attachment 15903 [details] Project's properties file with conflicted WAR File names
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 ;-)
It's reproducible with all projects.
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
I am still seeing this behavior with build 200408311800.
In QBuild 200408271257 doesn't work. WAR Name = Project Name, despite WAR File Name value.
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!
v