Skip to content

Commit 11661bb

Browse files
committed
fix: allowing the selection of mainClass with commandline argument: -PmainClass
1 parent 3af204d commit 11661bb

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ For tests you can run
2727

2828
For example you can run
2929

30-
```de.ukt.mvh.CLIConsentMapperOlderMinors_1_7_2 --date_of_birth=12.2010 --date_of_consent=04.07.2025 -o outfileOlderMinors.json --consent_pat_data_1=true --consent_insurance_data_2=true --consent_contact_5=false```
31-
30+
```./gradlew run -PmainClass=de.ukt.mvh.CLIConsentMapperOlderMinors_1_7_2 --args="--date_of_birth=12.2010 --date_of_consent=04.07.2025 -o outfileOlderMinors.json --consent_pat_data_1=true --consent_insurance_data_2=true --consent_contact_5=false"```
3231

3332

3433

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,10 @@ dependencies {
3131

3232
test {
3333
useJUnitPlatform()
34+
}
35+
36+
run {
37+
if (project.hasProperty('mainClass')) {
38+
mainClass = project.property('mainClass')
39+
}
3440
}

0 commit comments

Comments
 (0)