Skip to content

Commit

Permalink
feat(objectionary#768): add a bit of logging
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Oct 19, 2024
1 parent 5200961 commit e9cf4e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/main/java/org/eolang/jeo/AssembleMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,21 @@ public final class AssembleMojo extends AbstractMojo {
@Override
public void execute() throws MojoExecutionException {
try {
new PluginStartup(this.project).init();
if (this.disabled) {
Logger.info(this, "Assemble mojo is disabled. Skipping.");
} else {
new Assembler(
this.sourcesDir.toPath(),
this.outputDir.toPath(),
!this.skipVerification
false
).assemble();
if (this.skipVerification) {
Logger.info(this, "Verification is disabled. Skipping.");
} else {
Logger.info(this, "Verification of all the generated classes.");
new PluginStartup(this.project).init();
new BytecodeDirectory(this.outputDir.toPath()).verify();
}
}
} catch (final DependencyResolutionRequiredException exception) {
throw new MojoExecutionException(exception);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/eolang/jeo/BytecodeDirectory.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ final class BytecodeDirectory {
/**
* Verify bytecode in the folder.
*/
public void verify() {
void verify() {
try (
Stream<Path> classess = Files.walk(this.input)
.filter(Files::isRegularFile)
Expand Down

0 comments on commit e9cf4e6

Please sign in to comment.