Basic beginner question


(Simo Amini) #1

Hi all!
can one gradle command be written in two or more lines?

thanks


(Pepper Lebeck-Jobe) #2

Since the gradle, gradle.exe or ./gradlew or ./gradlew.bat commands are all just regular command-line programs, you can use whatever your command interpreter uses to split lines if you need to put the commands on two or more lines.

For example, in a bash shell on a *nix system, you’d be able to write:

$> ./gradlew \
> compileJava \
> test

And it would be executed correctly because it is the shell’s job to turn those three lines into one.

Hope that helps.