Skip to content

Commit

Permalink
Cleaned up Javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Nov 27, 2023
1 parent d800fda commit 2f9b7a5
Show file tree
Hide file tree
Showing 5 changed files with 261 additions and 46 deletions.
204 changes: 204 additions & 0 deletions .idea/intellij-javadocs-4.0.1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions src/main/java/rife/bld/extension/CompileKotlinOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
* @since 1.0
*/
public class CompileKotlinOperation extends AbstractOperation<CompileKotlinOperation> {
/**
* The Kotlin file (.kt) pattern.
*/
public static final Pattern KOTLIN_FILE_PATTERN = Pattern.compile("^.*\\.kt$");
private static final Logger LOGGER = Logger.getLogger(CompileKotlinOperation.class.getName());
private final Collection<String> compileMainClasspath_ = new ArrayList<>();
Expand Down Expand Up @@ -177,6 +180,8 @@ public Collection<String> compileMainClasspath() {

/**
* Retrieves the list of compilation options for the compiler.
*
* @return the compile kotlin options
*/
public CompileKotlinOptions compileOptions() {
return compileOptions_;
Expand Down Expand Up @@ -246,12 +251,16 @@ public void execute()

/**
* Part of the {@link #execute execute} operation, builds the main sources.
*
* @throws IOException if an error occurs
*/
@SuppressWarnings("PMD.SystemPrintln")
protected void executeBuildMainSources()
throws IOException {
if (!silent()) {
System.out.println("Compiling Kotlin main sources.");
}

executeBuildSources(
compileMainClasspath(),
sources(mainSourceFiles(), mainSourceDirectories()),
Expand All @@ -266,6 +275,7 @@ protected void executeBuildMainSources()
* @param sources the source files to compile
* @param destination the destination directory
* @param friendPaths the output directory for friendly modules
* @throws IOException if an error occurs
*/
protected void executeBuildSources(Collection<String> classpath, Collection<File> sources, File destination,
File friendPaths)
Expand Down Expand Up @@ -315,7 +325,10 @@ protected void executeBuildSources(Collection<String> classpath, Collection<File

/**
* Part of the {@link #execute execute} operation, builds the test sources.
*
* @throws IOException if an error occurs
*/
@SuppressWarnings("PMD.SystemPrintln")
protected void executeBuildTestSources()
throws IOException {
if (!silent()) {
Expand All @@ -330,6 +343,8 @@ protected void executeBuildTestSources()

/**
* Part of the {@link #execute execute} operation, creates the build directories.
*
* @throws IOException if an error occurs
*/
protected void executeCreateBuildDirectories() throws IOException {
if (buildMainDirectory() != null && !buildMainDirectory().exists() && !buildMainDirectory().mkdirs()) {
Expand Down Expand Up @@ -358,6 +373,7 @@ protected void executeCreateBuildDirectories() throws IOException {
* </ul>
*
* @param project the project to configure the compile operation from
* @return this operation instance
*/
public CompileKotlinOperation fromProject(BaseProject project) {
project_ = project;
Expand Down
Loading

0 comments on commit 2f9b7a5

Please sign in to comment.