How to find current base execution directory in groovy (or java)? [duplicate] August 12, 2023 by Tarik Try this: System.getProperty("user.dir");