itemis / xtext-languageserver-example

An Example for an Xtext Language Server
Eclipse Public License 1.0
54 stars 26 forks source link

Log fileis not suitable format for windows #72

Open RBirdwatcher opened 4 years ago

RBirdwatcher commented 4 years ago

in the file org.xtext.example.mydsl.ide/src/org/xtext/example/mydsl/ide/ServerLauncher.xtend the log file is notsuitable for windows and hard coded to cdietrich. I can produce a pull request for this. The timestamp has : in it which is not suitable for windows which can be fixed with (new Timestamp(System.currentTimeMillis)).toString.replaceAll(" ","")**.replaceAll(":","")**

I would be suitable for windows to use the current working directory for logs using

val currentDir = System.getProperty("user.dir") val stdFileOut = new FileOutputStream(currentDir + "\logs\out-" + id + ".log")

cdietrich commented 4 years ago

feel free to PR. am not sure if the user .dir stuff is working in all cases though