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 98618 - Renaming of whole project causes build.xml cannot be loaded
Summary: Renaming of whole project causes build.xml cannot be loaded
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks: 98171
  Show dependency tree
 
Reported: 2007-03-22 11:10 UTC by Jana Maleckova
Modified: 2007-03-26 12:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
98618 (3.85 KB, text/plain)
2007-03-22 11:57 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-03-22 11:10:45 UTC
NetBeans IDE Dev (Build 200703211900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252

Description:
============
Create new project and try to rename it. It doesn't matter if "also rename
folder" is checked. Then warning, with message Build.xml could not be loaded, is
thrown.
Fact is, build.xml is not loaded if user opens it.
Seems it is caused added code row 
project.encoding=D:\\testing_NB\\6.0\\merge to trunk\\zaloha\\Test\\UTF-8
in file - ProjectDir\nbproject\private\private.properties

Also an exception occurs when Project Properties are executed.
StackTrace:
===========
java.nio.charset.IllegalCharsetNameException: D:\testing_NB\6.0\merge to
trunk\Test2\UTF-8
	at java.nio.charset.Charset.checkName(Charset.java:285)
	at java.nio.charset.Charset.<init>(Charset.java:611)
	at
org.netbeans.modules.java.j2seproject.ui.customizer.CustomizerSources$UnknownCharset.<init>(CustomizerSources.java:179)
	at
org.netbeans.modules.java.j2seproject.ui.customizer.CustomizerSources$EncodingModel.<init>(CustomizerSources.java:169)
	at
org.netbeans.modules.java.j2seproject.ui.customizer.CustomizerSources.<init>(CustomizerSources.java:114)
	at
org.netbeans.modules.java.j2seproject.ui.customizer.J2SECompositePanelProvider.createComponent(J2SECompositePanelProvider.java:122)
Comment 1 Jana Maleckova 2007-03-22 11:57:07 UTC
Created attachment 39802 [details]
98618
Comment 2 Tomas Zezula 2007-03-22 13:55:05 UTC
It seems that property starting with project. are a bit magic :-), their value
is changed when project is renamed or moved. I will change the name of the
property from project.encoding to content.encoding. I will also change the
J2SEFEQImpl and the UI to be more robust.
Comment 3 Tomas Zezula 2007-03-22 20:09:56 UTC
Checking in org/netbeans/modules/java/j2seproject/J2SEProjectGenerator.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEProjectGenerator.java,v
 <--  J2SEProjectGenerator.java
new revision: 1.55; previous revision: 1.54
done
Checking in
org/netbeans/modules/java/j2seproject/queries/J2SEProjectEncodingQueryImpl.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/queries/J2SEProjectEncodingQueryImpl.java,v
 <--  J2SEProjectEncodingQueryImpl.java
new revision: 1.2; previous revision: 1.1
done
Checking in org/netbeans/modules/java/j2seproject/resources/build-impl.xsl;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl,v
 <--  build-impl.xsl
new revision: 1.85; previous revision: 1.84
done
Checking in
org/netbeans/modules/java/j2seproject/ui/customizer/CustomizerSources.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/CustomizerSources.java,v
 <--  CustomizerSources.java
new revision: 1.15; previous revision: 1.14
done
Checking in
org/netbeans/modules/java/j2seproject/ui/customizer/J2SEProjectProperties.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/J2SEProjectProperties.java,v
 <--  J2SEProjectProperties.java
new revision: 1.64; previous revision: 1.63
done
Comment 4 Martin Schovanek 2007-03-25 22:35:30 UTC
Please can you verify the fix in M8 build?
Comment 5 Jana Maleckova 2007-03-26 12:49:55 UTC
verified on 
NetBeans IDE Dev (Build 200703252000)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252