课程: Gradle for Java-Based Applications and Libraries
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Compiling Java source code
- [Instructor] Part of your day-to-day workflow as a Java developer, is to create a modified Java source code to implement a feature or a bug fix. At some point of time, you will want to compile the code to ensure that it can be turned into bytecode. The Java plugin instantiates the task called compileJava. When executing the task, gradle will look for files with the extension .java in the directory src/main/java. The compiler will then compile the code with the Java version it can find on the system. Usually that's the Java distribution as indicated by the PATH environment variable. We can execute the task by running gardlew compileJava. As long as there are no issues with the source code, the compiler will produce the class files. Class files can be found in the output directory built classes. Another aspect of preparing runtime readiness for Java application, is to mix in the resource files with the class files so…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
(已锁定)
Anatomy of a simple Java project2 分钟 34 秒
-
(已锁定)
Applying the Java plugin2 分钟 37 秒
-
(已锁定)
Compiling Java source code2 分钟 49 秒
-
(已锁定)
Packaging a JAR file2 分钟 51 秒
-
(已锁定)
Exploring the Java Application plugin3 分钟 10 秒
-
(已锁定)
Challenge: Generating Javadocs for a Java project1 分钟 42 秒
-
(已锁定)
Solution: Generating Javadocs for a Java project5 分钟 25 秒
-
(已锁定)
-
-
-