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

Fix uberjar creation #661

Merged
merged 3 commits into from
Feb 5, 2019
Merged

Fix uberjar creation #661

merged 3 commits into from
Feb 5, 2019

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Jan 29, 2019

Fixes: #660

@@ -208,7 +208,10 @@ private void buildRunner(FileSystem runnerZipFs, CurateOutcome appState, Augment
@Override
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs)
throws IOException {
addDir(runnerZipFs, dir, root.relativize(dir).toString());
final String relativePath = root.relativize(dir).toString();
if (!"".equals(relativePath)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

relativePath.isEmpty() would be clearer

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Fixed

@geoand
Copy link
Contributor Author

geoand commented Jan 29, 2019

@stuartwdouglas I also added an test for this fix

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now.

@gsmet gsmet merged commit b890c0c into quarkusio:master Feb 5, 2019
@gsmet gsmet added this to the 0.8.0 milestone Feb 5, 2019
@geoand geoand deleted the uberjar-fix branch February 5, 2019 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants