Skip to content

Commit

Permalink
[#11245] Support running client scripts via Gradle (#11605)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCwy authored Apr 6, 2022
1 parent 6b909b2 commit ec73778
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,15 @@ task generateTypes {
dependsOn generateApiConstants
}

task execScript(type: JavaExec) {
description "Run user defined scripts specified by project variable - userScript"

classpath = sourceSets.test.runtimeClasspath
if (project.hasProperty("userScript")) {
mainClass = "teammates.client.scripts.${project.property('userScript')}"
}
}

// SETUP TASKS

task createConfigs {
Expand Down

0 comments on commit ec73778

Please sign in to comment.