Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log fileis not suitable format for windows #72

Open
RBirdwatcher opened this issue Oct 8, 2020 · 1 comment
Open

Log fileis not suitable format for windows #72

RBirdwatcher opened this issue Oct 8, 2020 · 1 comment

Comments

@RBirdwatcher
Copy link

RBirdwatcher commented Oct 8, 2020

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants