Skip to content

KubernetesProcessor - BuildInfo - possible switch of constructor attributes #6679

@rsvoboda

Description

@rsvoboda

Hi @iocanel / @geoand, I'm looking at https://github.com/quarkusio/quarkus/blob/master/extensions/kubernetes/deployment/src/main/java/io/quarkus/kubernetes/deployment/KubernetesProcessor.java#L236 and I think attributes on line 239 and 240 should be switched.

                project.getBuildInfo().getOutputFile(),
                project.getBuildInfo().getClassOutputDir());

BuildInfo constructor has this signature: public BuildInfo(String name, String version, String packaging, String buildTool, Path outputFile, Path classOutputDir, Path resourceDir) {

When looking into BuildInfo sources I'm even more confused by code like this:

public void setResourceOutputDir(Path classOutputDir) {
    this.classOutputDir = classOutputDir;
  }

It's probably working atm because classOutputDir and resourceDir are basically the same for maven.
https://github.com/dekorateio/dekorate/blob/master/core/src/main/java/io/dekorate/project/BuildInfo.java#L54-L55

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions