Skip to content

Commit

Permalink
fix: WildfyJarGenerator throws dedicated JKubeException
Browse files Browse the repository at this point in the history
  • Loading branch information
mgurrie authored Apr 23, 2024
1 parent fb8e7da commit 3cada4b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.eclipse.jkube.generator.api.GeneratorContext;
import org.eclipse.jkube.generator.javaexec.JavaExecGenerator;
import org.eclipse.jkube.kit.common.AssemblyFileSet;
import org.eclipse.jkube.kit.common.JKubeException;
import org.eclipse.jkube.kit.common.JavaProject;
import org.eclipse.jkube.kit.common.Plugin;
import org.eclipse.jkube.kit.common.util.JKubeProjectUtil;
Expand Down Expand Up @@ -89,9 +90,10 @@ protected List<AssemblyFileSet> addAdditionalFiles() {
parentDir = repoDir.getParent();
}
if (Files.notExists(repoDir)) {
throw new RuntimeException("Error, WildFly bootable JAR generator can't retrieve "
throw new JKubeException("Error, WildFly bootable JAR generator can't retrieve "
+ "generated maven local cache, directory " + repoDir + " doesn't exist.");
}

set.add(AssemblyFileSet.builder()
.directory(parentDir.toFile())
.include(localRepoCache.getFileName().toString())
Expand Down

0 comments on commit 3cada4b

Please sign in to comment.