more path debugging
This commit is contained in:
parent
3389119d03
commit
eef50d5f2c
@ -353,7 +353,8 @@ common:
|
|||||||
pkg := tokens[len(tokens)-2]
|
pkg := tokens[len(tokens)-2]
|
||||||
instanceObject.Libraries = append(instanceObject.Libraries, filepath.Join(ProcessMavenPath(lib.Name), ProcessMavenFilename(lib.Name)))
|
instanceObject.Libraries = append(instanceObject.Libraries, filepath.Join(ProcessMavenPath(lib.Name), ProcessMavenFilename(lib.Name)))
|
||||||
for ind, path := range instanceObject.Libraries {
|
for ind, path := range instanceObject.Libraries {
|
||||||
tokens := strings.Split(path, "/")
|
tokens := strings.Split(path, string(os.PathSeparator))
|
||||||
|
fmt.Printf("Inspecing path %s with %d tokens", path, len(tokens))
|
||||||
if pkg == tokens[len(tokens)-3] {
|
if pkg == tokens[len(tokens)-3] {
|
||||||
instanceObject.Libraries[ind] = filepath.Join(ProcessMavenPath(lib.Name), ProcessMavenFilename(lib.Name))
|
instanceObject.Libraries[ind] = filepath.Join(ProcessMavenPath(lib.Name), ProcessMavenFilename(lib.Name))
|
||||||
fmt.Printf("duplicate library %s\n", pkg)
|
fmt.Printf("duplicate library %s\n", pkg)
|
||||||
@ -411,7 +412,7 @@ common:
|
|||||||
pkg := tokens[len(tokens)-2]
|
pkg := tokens[len(tokens)-2]
|
||||||
instanceObject.Libraries = append(instanceObject.Libraries, filepath.Join(ProcessMavenPath(lib.Name), ProcessMavenFilename(lib.Name)))
|
instanceObject.Libraries = append(instanceObject.Libraries, filepath.Join(ProcessMavenPath(lib.Name), ProcessMavenFilename(lib.Name)))
|
||||||
for ind, path := range instanceObject.Libraries {
|
for ind, path := range instanceObject.Libraries {
|
||||||
tokens := strings.Split(path, "/")
|
tokens := strings.Split(path, string(os.PathSeparator))
|
||||||
if pkg == tokens[len(tokens)-3] {
|
if pkg == tokens[len(tokens)-3] {
|
||||||
instanceObject.Libraries[ind] = filepath.Join(ProcessMavenPath(lib.Name), ProcessMavenFilename(lib.Name))
|
instanceObject.Libraries[ind] = filepath.Join(ProcessMavenPath(lib.Name), ProcessMavenFilename(lib.Name))
|
||||||
fmt.Printf("duplicate library %s\n", pkg)
|
fmt.Printf("duplicate library %s\n", pkg)
|
||||||
|
Loading…
Reference in New Issue
Block a user