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

Add new assembly option "name" #771

Closed
wants to merge 2 commits into from
Closed

Conversation

rhuss
Copy link
Collaborator

@rhuss rhuss commented May 3, 2017

this can be used to specify the assembly name which is used also as directory
for holding the assembly files. I.e. the directory which needs to be refered to when
an extrean Dockerfile wants to include an assembly. "targetDir" now defaults to "/" + this name.

Also extended the documentation to clarify the usage.

Fixes #634

this can be used to specify the assembly name which is used also as directory
for holding the assembly files. I.e. the directory which needs to be refered to when
an extrean Dockerfile wants to include an assembly. "targetDir" now defaults to "/" + this name.

Also extended the documentation to clarify the usage.

Fixes fabric8io#634
@ghost
Copy link

ghost commented May 3, 2017

SonarQube analysis reported 2 issues

  • MAJOR 2 major

Watch the comments in this conversation to review them.

1 extra issue

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. MAJOR AssemblyConfiguration.java#L11: Remove this unused "DEFAULT_BASE_DIR" private field. rule

@@ -132,7 +131,7 @@ public TarArchiver customize(TarArchiver archiver) throws IOException {
}
}

return createBuildTarBall(buildDirs, customizer, assemblyMode, buildConfig.getCompression());
return createBuildTarBall(assemblyConfig.getName(), buildDirs, customizer, assemblyMode, buildConfig.getCompression());
Copy link

Choose a reason for hiding this comment

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

MAJOR NullPointerException might be thrown as 'assemblyConfig' is nullable here rule

@rhuss rhuss closed this May 3, 2017
@codecov
Copy link

codecov bot commented May 3, 2017

Codecov Report

Merging #771 into master will increase coverage by 0.01%.
The diff coverage is 83.33%.

@@             Coverage Diff              @@
##             master     #771      +/-   ##
============================================
+ Coverage     47.68%   47.69%   +0.01%     
  Complexity     1043     1043              
============================================
  Files           131      131              
  Lines          6751     6755       +4     
  Branches        879      879              
============================================
+ Hits           3219     3222       +3     
  Misses         3258     3258              
- Partials        274      275       +1
Impacted Files Coverage Δ Complexity Δ
...c8/maven/docker/assembly/MappingTrackArchiver.java 30.12% <100%> (+0.85%) 10 <2> (ø) ⬇️
...bric8/maven/docker/assembly/DockerFileBuilder.java 91.14% <100%> (ø) 74 <4> (ø) ⬇️
...ic8/maven/docker/config/AssemblyConfiguration.java 77.04% <100%> (+0.77%) 14 <1> (+1) ⬆️
...o/fabric8/maven/docker/assembly/AssemblyFiles.java 83.87% <100%> (ø) 6 <0> (ø) ⬇️
...8/maven/docker/assembly/DockerAssemblyManager.java 14.42% <40%> (+0.41%) 6 <0> (ø) ⬇️
...ain/java/io/fabric8/maven/docker/util/EnvUtil.java 62.22% <0%> (-0.75%) 38% <0%> (-1%)

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.

1 participant