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

QuarkusIntegrationTest cannot locate build output directory if it contains special characters like # #17607

Closed
bdevreugd-vialis opened this issue Jun 1, 2021 · 0 comments · Fixed by #17623
Assignees
Milestone

Comments

@bdevreugd-vialis
Copy link
Contributor

My project path contains '#' character, which gives me the following exception:

java.lang.IllegalStateException: The determined Quarkus build output 'C:\Workspace\%23git\test\service\test-service\target' is not a directory
	at io.quarkus.test.junit.QuarkusIntegrationTestExtension.determineBuildOutputDirectory(QuarkusIntegrationTestExtension.java:154)
	at io.quarkus.test.junit.QuarkusIntegrationTestExtension.readQuarkusArtifactProperties(QuarkusIntegrationTestExtension.java:112)
	at io.quarkus.test.junit.QuarkusIntegrationTestExtension.ensureStarted(QuarkusIntegrationTestExtension.java:79)
	at io.quarkus.test.junit.QuarkusIntegrationTestExtension.beforeAll(QuarkusIntegrationTestExtension.java:73)
        ...

The problem is:

private static File determineBuildOutputDirectory(final URL url) {

Which uses url.getPath, which gives an URL-encoded path! This can be fixed by calling URLDecoder.decode(p, "UTF-8") before providing the path to the File constructor.

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

Successfully merging a pull request may close this issue.

3 participants