Search code examples
groovycwd

How to change the current working directory in Groovy


Now, I am writting a Groovy script to invoke other's interface. But I need change my current working path when running the script. I know it is not possible in Java. Is it possible in Groovy?


Solution

  • As Groovy runs on JVM, the same restrictions apply. Unfortunately it is not possible.

    Changing the current working directory in Java?

    JDK bug