Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
krystian-panek-vmltech committed Nov 15, 2024
1 parent 45d81b6 commit 5ee3c15
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
4 changes: 2 additions & 2 deletions pkg/cfg/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func (c *Config) setDefaults() {
v.SetDefault("output.log.mode", OutputLogConsole)
v.SetDefault("output.query", "")

v.SetDefault("vendor.quickstart.dist_file", common.LibDir+"/{aem-sdk,cq-quickstart}-*.{zip,jar}")
v.SetDefault("vendor.quickstart.license_file", common.LibDir+"/license.properties")
v.SetDefault("vendor.quickstart.dist_file", common.QuickstartDistFile)
v.SetDefault("vendor.quickstart.license_file", common.QuickstartLicenseFile)

v.SetDefault("vendor.java.home_dir", "")
v.SetDefault("vendor.java.version_constraints", ">= 11, < 12")
Expand Down
4 changes: 4 additions & 0 deletions pkg/common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ const (
DefaultDirName = "default"
DefaultDir = MainDir + "/" + DefaultDirName
DispatcherHomeDir = "dispatcher/home"

QuickstartDistFile = LibDir + "/{aem-sdk,cq-quickstart}-*.{zip,jar}"
QuickstartLicenseFile = LibDir + "/" + QuickstartLicenseFilename
QuickstartLicenseFilename = "license.properties"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/local_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (li LocalInstance) binCbpExecutable() string {
}

func (li LocalInstance) LicenseFile() string {
return pathx.Canonical(li.Dir() + "/" + LicenseFilename)
return pathx.Canonical(li.Dir() + "/" + common.QuickstartLicenseFilename)
}

var (
Expand Down
11 changes: 0 additions & 11 deletions pkg/local_instance_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/dustin/go-humanize"
"github.com/samber/lo"
log "github.com/sirupsen/logrus"
"github.com/wttech/aemc/pkg/common"
"github.com/wttech/aemc/pkg/common/fmtx"
"github.com/wttech/aemc/pkg/common/pathx"
"github.com/wttech/aemc/pkg/common/timex"
Expand All @@ -15,16 +14,6 @@ import (
"time"
)

const (
UnpackDir = common.VarDir + "/instance"
BackupDir = common.VarDir + "/backup"
OverrideDir = common.DefaultDir + "/" + common.VarDirName + "/instance"

DistFile = common.LibDir + "/{aem-sdk,cq-quickstart}-*.{zip,jar}"
LicenseFile = common.LibDir + "/" + LicenseFilename
LicenseFilename = "license.properties"
)

type LocalOpts struct {
manager *InstanceManager

Expand Down

0 comments on commit 5ee3c15

Please sign in to comment.