Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an optional baseDirectory parameter to run() #278

Merged
merged 2 commits into from
Mar 27, 2017

Conversation

cunei
Copy link

@cunei cunei commented Mar 27, 2017

If Giter8.run() is used as a library call, it is impossible to control the directory where the template will be generated: it will always be expanded in a subdirectory of the current directory, as returned by the property "user.dir". However, the calling program may not change its current directory by setting the property: that leads to inconsistencies in the .exists() call on Files, and is generally not supported by the VM, see: http://stackoverflow.com/questions/2275362/java-file-exists-inconsistencies-when-setting-user-dir
This pull request adds a variant to the run() method, where the required output directory can be specified explicitly.

@eed3si9n eed3si9n merged commit a75435a into foundweekends:0.7.x Mar 27, 2017
eed3si9n pushed a commit that referenced this pull request Jun 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants