Posted By

laurenceosx on 03/28/13


Tagged

groovy


Versions (?)

Groovy Gradle - isOsWindows


 / Published in: Groovy
 

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

  1. boolean isOsWindows() { return System.properties.'os.name'.toLowerCase().contains('windows'); }

Report this snippet  

You need to login to post a comment.