Hello!
The file eclipseme-build.xml contains an attribute "encoding" with a
fixed value "UTF-8" at wtkbuild-entries. For non UTF-8 sourcefiles, the
compiling does not work (well).
I suggest the following:
- introducing another parameter in file "eclipseme-build.properties"
named "src.encoding" with the default value "UTF-8". So a user can
override this setting by creating a file user-build.properties and
setting this value according to his needs.
- changing the source-file
"src/eclipseme/core/internal/tools/AntennaBuildExporter.java"
at line 312 to
"buildElement.setAttribute("encoding", "${src.encoding}");"
see
http://sourceforge.net/tracker/index.php?func=detail&aid=1632113&group_id=86829&atid=581076
see attached patch
I would be pleased to receive an answer!
Regards,
Markus
Index: src/eclipseme/core/internal/tools/AntennaBuildExporter.java
===================================================================
RCS file:
/cvsroot/eclipseme/eclipseme.core/src/eclipseme/core/internal/tools/AntennaBuildExporter.java,v
retrieving revision 1.24
diff -c -r1.24 AntennaBuildExporter.java
*** src/eclipseme/core/internal/tools/AntennaBuildExporter.java 12 Nov 2006
01:11:03 -0000 1.24
--- src/eclipseme/core/internal/tools/AntennaBuildExporter.java 10 Jan 2007
08:47:36 -0000
***************
*** 309,315 ****
projectInfo.addWtkBuildElement(entry,
buildElement);
buildElement.setAttribute("destdir",
projectInfo.getBuildDestination());
buildElement.setAttribute("sourcepath", "");
! buildElement.setAttribute("encoding", "UTF-8");
buildElement.setAttribute("source", "1.3");
// Calculate the src directory relative to the
specified
--- 309,315 ----
projectInfo.addWtkBuildElement(entry,
buildElement);
buildElement.setAttribute("destdir",
projectInfo.getBuildDestination());
buildElement.setAttribute("sourcepath", "");
! buildElement.setAttribute("encoding",
"${src.encoding}");
buildElement.setAttribute("source", "1.3");
// Calculate the src directory relative to the
specified
***************
*** 551,556 ****
--- 551,559 ----
Boolean.toString(autoVersion));
props.setProperty("flag.preverify", "true");
+ // Set default encoding to UTF-8
+ props.setProperty("src.encoding", "UTF-8");
+
// Set the classpath to match the device
IDevice device = midletSuite.getDevice();
if (device != null) {
***************
*** 1063,1066 ****
File buildXmlFile = getMidletSuiteFile("eclipseme-build.xml",
monitor);
XMLUtils.writeDocument(buildXmlFile,
eclipseMeBuildXmlDocument);
}
! }
\ No newline at end of file
--- 1066,1069 ----
File buildXmlFile = getMidletSuiteFile("eclipseme-build.xml",
monitor);
XMLUtils.writeDocument(buildXmlFile,
eclipseMeBuildXmlDocument);
}
! }
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users