Groovy Gradle - isOsWindows


/ Published in: Groovy
Save to your folder(s)

When this snippet is added to a class it provides the boolean property: osWindows


Copy this code and paste it in your HTML
  1. boolean isOsWindows() { return System.properties.'os.name'.toLowerCase().contains('windows'); }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.