课程: Gradle for Java-Based Applications and Libraries
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Solution: Generating Javadocs for a Java project
课程: Gradle for Java-Based Applications and Libraries
Solution: Generating Javadocs for a Java project
(upbeat music) - [Instructor] We'll get started by having a look at the gradle tasks list. And for that, we'll run the gradlew tasks task. And within here, hopefully we can find out what the task name is for the javadoc task. You can see here we have it listed right under Documentation tasks. So I would assume that is likely the task that we need to run to generate the API documentation. So we'll first run this, see what happens. It seems to be working properly. If you look here at the build output directory, you should find a new directory called build, docs, and then javadoc, so let's open that one. You can see here that's the full path to an index file that has been generated by this task, so let's open that one in the browser. And you can see here it lists both of our classes that we have in the project Calculator, so let's have a brief look here. That looks like our typical Javadoc representation. If you click on…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
(已锁定)
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 秒
-
(已锁定)
-
-
-