Groovy Execute Shell Command In Directory. My Script as below: if (actual. Java also seems to read the current