Make each run config use its own subfolder and add 'run-data' to .gitignore (#7)

This commit is contained in:
Robert Kämpf 2023-08-09 10:58:54 +02:00 committed by GitHub
parent 303e6e548c
commit 378bff4509
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View file

@ -19,4 +19,5 @@ build
# other
eclipse
run
run
run-data

View file

@ -62,7 +62,7 @@ minecraft {
runs {
// applies to all the run configs below
configureEach {
workingDirectory project.file('run')
workingDirectory project.file("run/${it.name}")
// Recommended logging data for a userdev environment
// The markers can be added/remove as needed separated by commas.
@ -101,8 +101,8 @@ minecraft {
}
data {
// example of overriding the workingDirectory set in configureEach above
workingDirectory project.file('run-data')
// example of overriding the workingDirectory set in configureEach above, uncomment if you want to use it
// workingDirectory project.file('run-data')
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')