-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
First, thank you for this template, it's great!
Unfortunately, linting tasks currently depend on bash scripts. I don't know batch scripting, so I can't help int translating those scripts in batch. Nonetheless, I personally solved the problem as follows:
- I added the
bashexecutable bundled with "Git for Windows" to the PATH; precisely, I added "C:/Program Files/Git/bin" to the PATH; - In
coursera.gradle, I modified the tasks for spotbugs, checkstyle and PMD by settingcommandLineto just'bash'and moving the path of the actual script toargs. For example:
tasks.create(
name: "${assignment.name}CheckStyle",
type: Exec,
dependsOn: [downlodCheckStyle, "${assignment.name}CodeAnalysisPrepare"]
) {
// omitted
commandLine "bash" // <-- put bash here
args = ["$projectDir/.lift/bin/checkstyle", "-coursera"] + assignment.sources
}Not sure why the following didn't work: commandLine 'bash', "$projectDir/.lift/bin/checkstyle".
This is not a real solution, but it's something. I can open a PR with these changes (and instructions in the README) if you want.
Metadata
Metadata
Assignees
Labels
No labels