-
Notifications
You must be signed in to change notification settings - Fork 1
Command
Kamontat Chantrachirathumrong edited this page Feb 6, 2017
·
2 revisions
-
./gradlew <command>(in linux or macOS)- you can add
-qto remove unnecessary output
- you can add
-
gradlew <command>(in window)- you can add
-qto remove unnecessary output
- you can add
-
init- Initializes a new Gradle build. (NO NEED) -
wrapper- Generates Gradle wrapper files. (NO NEED)
-
assemble- Assembles the outputs of this project. -
build- Assembles and tests this project. -
distZip- Bundles the project as a distribution. -
buildDependents- Assembles and tests this project and all projects that depend on it. -
buildNeeded- Assembles and tests this project and all projects it depends on. -
classes- Assembles main classes. -
clean- Deletes the build directory. -
jar- Assembles a jar archive containing the main classes. -
testClasses- Assembles test classes.
This command NOT support gui page (go to run gui topic)
-
run- Run default main which locate atsrc/main/java/com/kamontat/main/Main.java -
execute- run custom main class- you need to path main class correctly.
- root directory is
src/main/java. - you DON'T need to write any extension of the file
- example
Maininstead ofMain.java
- example
- you have to use
.instead of/- example
com.kamontat.main.Main
- example
- root directory is
-
normal run
-
execute -P mainClass=<Name>- to run main class by<Name>- example
execute -P mainClass=com.kamontat.main.Main
- example
-
-
run with argument
-
execute -P mainClass=<Name> -P arguments=<arguments>- run main class by<Name>and input arguments separate each of argument by ,- example
execute -P mainClass=com.kamontat.main.Main -P arguments=i,you,we,they
- example
-
- you need to path main class correctly.
- run gradle command
build - in command-line go to path
Github-Request/build/classes/main/ - run command
javawith your class path (WITHOUT extension)
- example
java com.kamontat.main.Maininstead ofjava com.kamontat.main.Main.class
-
javadoc- Generates Javadoc API documentation for the main source code.
-
test- Runs the unit tests.
-
buildEnvironment- Displays all build script dependencies declared in root project. -
components- Displays the components produced by root project. -
dependencies- Displays all dependencies declared in root project. -
dependencyInsight- Displays the insight into a specific dependency in root project. -
help- Displays a help message. -
model- Displays the configuration model of root project. -
projects- Displays the sub-projects of root project. -
properties- Displays the properties of root project.
-
tasks- Displays the tasks runnable from root project. -
tasks --all- See all tasks and more detail -
help --task <task>- see more detail about a<task>
if you run command, here is path that you will get the result
@Deprecated
/build/docs/javadoc/index/html
/build/reports/tests/test/index.html
or
/build/reports/tests/index.html