Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
monperrus committed Aug 7, 2024
1 parent 19ebfd1 commit c4cd22e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions dspot-maven/src/main/java/eu/stamp_project/DSpotMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
public class DSpotMojo extends AbstractMojo {
@Override
public void execute() {
if (!targetModule.isEmpty()) {
if (this.mavenProject.getBasedir().getAbsolutePath().endsWith(targetModule)) {
this.absolutePathToProjectRoot =
this.mavenProject.getBasedir().getAbsolutePath().substring(0,
this.mavenProject.getBasedir().getAbsolutePath().length() - this.targetModule.length()
);
} else {
return;
}
} else {
this.absolutePathToProjectRoot = this.mavenProject.getBasedir().getAbsolutePath();
}
final String[] args = DSpotMojo.removeBlank(new String[]{});
Main.main(args);
// if (!targetModule.isEmpty()) {
// if (this.mavenProject.getBasedir().getAbsolutePath().endsWith(targetModule)) {
// this.absolutePathToProjectRoot =
// this.mavenProject.getBasedir().getAbsolutePath().substring(0,
// this.mavenProject.getBasedir().getAbsolutePath().length() - this.targetModule.length()
// );
// } else {
// return;
// }
// } else {
// this.absolutePathToProjectRoot = this.mavenProject.getBasedir().getAbsolutePath();
// }
// final String[] args = DSpotMojo.removeBlank(new String[]{});
// Main.main(args);
}

private String absolutePathToProjectRoot;
Expand Down

0 comments on commit c4cd22e

Please sign in to comment.