Hi
I want to auto change the default charset in package.bld.xml at line 1 automantic when compile the souce code. the default charset is UTF-8.
<?xml version="1.0" encoding="UTF-8"?>
This make the compile process break . because my source code path name have multibytes words.
If I manual change the encode type to my local charset. the compile
could be success.
The full error message as follow:
[Fatal Error] package.bld.xml:10:49: Invalid byte 2 of 2-byte UTF-8 sequence.
org.xml.sax.SAXParseException: Invalid byte 2 of 2-byte UTF-8 sequence.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:146)
at xdc.services.intern.gen.JClass.genPkgBuild(JClass.java:852)
at xdc.services.intern.gen.JClass.genPkgValues(JClass.java:1009)
at xdc.services.intern.gen.JClass.gen(JClass.java:194)
at xdc.services.intern.cmd.Builder.gen(Builder.java:235)
at xdc.services.intern.cmd.Builder.main(Builder.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1227)
at config.Shell.evaluateLoad(Shell.java:789)
at config.Shell.processLoad(Shell.java:672)
at config.Shell.load(Shell.java:1229)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:411)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:173)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1227)
at config.Shell.evaluateReader(Shell.java:830)
at config.Shell.processReader(Shell.java:499)
at config.Shell.processFile(Shell.java:561)
at config.Shell.exec(Shell.java:773)
at config.Shell.main(Shell.java:1376)
gmake: *** [package/package.xdc.inc] Error 1