Fix launching custom Kt files from command line

The `application` property was already used.
Reusing it breaks things.
Use `openrndr.application` instead.
This commit is contained in:
Abe Pazos
2023-02-27 16:06:57 +01:00
committed by Edwin Jakobs
parent 01d45029e6
commit 0e76bcd431
2 changed files with 11 additions and 7 deletions

View File

@@ -21,11 +21,15 @@ To create runnable jars for a platform different from the platform you use to bu
## Run other Kotlin programs from the command line
By default the `run` task runs the program called `TemplateProgram.kt`.
If you have other programs under your src/ folder and want
to run them from the command line use
`./gradlew -Papplication=MyProgram` to run `MyProgram.kt`.
A full package name can be specified like this: `-Papplication=foo.bar.MyProgram`.
By default `./gradlew run` runs a program called `TemplateProgram.kt` but a different one can be provided as an argument:
To run `src/main/kotlin/myProgram.kt`
./gradlew -Popenrndr.application=MyProgramKt
To run `src/main/kotlin/foo/bar/myProgram.kt` (assuming `package foo.bar` in myProgram.kt)
./gradlew -Popenrndr.application=foo.bar.MyProgramKt
## Github Actions