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 # other
eclipse eclipse
run run
run-data

View file

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