Skip to content

Commit

Permalink
Small exception message improvement in AbstractAjcCompiler
Browse files Browse the repository at this point in the history
More exactly, in AbstractAjcCompiler::hasClassPathClassesChanged.

Relates to mojohaus/aspectj-maven-plugin#15.
  • Loading branch information
kriegaex committed Dec 19, 2023
1 parent 61542bf commit 4eaf714
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -892,8 +892,11 @@ protected boolean hasClassPathClassesChanged(File outDir, boolean isTestCompile)
? project.getTestClasspathElements()
: project.getCompileClasspathElements();
}
catch (DependencyResolutionRequiredException e) {
throw new MojoExecutionException("Cannot determine compile classpath elements", e);
catch (DependencyResolutionRequiredException dependencyResolutionRequiredException) {
throw new MojoExecutionException(
"Cannot determine " + (isTestCompile ? "test" : "build") + " classpath elements",
dependencyResolutionRequiredException
);
}
if (classpathDirectories != null) {
Set<String> weaveSources = AjcHelper.getClassFilesAndJars(classpathDirectories.toArray(new String[0]), outDir);
Expand Down

0 comments on commit 4eaf714

Please sign in to comment.