difference in IFileSystemAccess.generateFile between Linux and Windows???? [message #1378112] |
Sat, 24 May 2014 04:50 |
Gary Worsham Messages: 176 Registered: September 2013 |
Senior Member |
|
|
I've transferred (painfully) my Xtext/Xtend DSL project from Windows to Linux.
Now I'm finding that my code generation is working differently.
override void doGenerate(Resource resource, IFileSystemAccess fsa) {
var pkage = "\\com\\holycityaudio\\SpinCAD\\CADBlocks\\"
fsa.generateFile(pkage + resource.className+"CADBlock.java", toCADBlockCode(resource.contents.head as Program))
}
On my Windows systems, this created a package com.holycityaudio.SpinCAD.CADBlocks and created the file resource.className+"CADBlock.java" within that package.
On Linux, it is creating a file with the name:
"\com\holycityaudio\SpinCAD\CADBlocks\"+resource.className+"CADBlock.java"
and putting it in the default package. Well of course the rest of my code doesn't actually like this.
What's going on and how can I fix it?
GW
[Updated on: Sat, 24 May 2014 04:52] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04894 seconds