Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle WAR build may fail due to non-existing "WEB-INF/lib" in exploded WAR directory #1074

Closed
chanseokoh opened this issue Oct 1, 2018 · 1 comment

Comments

@chanseokoh
Copy link
Member

chanseokoh commented Oct 1, 2018

In GradleLayerConfigurations, Files.list() may fail if WEB-INF/lib doesn't exist.

    Path libOutputDirectory = explodedWarPath.resolve("WEB-INF/lib");
    try (Stream<Path> dependencyFileStream = Files.list(libOutputDirectory)) {
Caused by: java.nio.file.NoSuchFileException: <...>/jib-war-helloworld-test/build/jib-exploded-war/WEB-INF/lib
        at com.google.cloud.tools.jib.gradle.GradleLayerConfigurations.getForWarProject(GradleLayerConfigurations.java:182)
        at com.google.cloud.tools.jib.gradle.GradleLayerConfigurations.getForProject(GradleLayerConfigurations.java:62)
        at com.google.cloud.tools.jib.gradle.GradleProjectProperties.getForProject(GradleProjectProperties.java:67)
@chanseokoh
Copy link
Member Author

I checked WEB-INF/classes and even WEB-INF may not exist, so we need to check them too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant