linux separator?

This commit is contained in:
= 2024-11-26 16:21:26 -07:00
parent eef50d5f2c
commit 377e42a24c

View File

@ -353,7 +353,7 @@ common:
pkg := tokens[len(tokens)-2]
instanceObject.Libraries = append(instanceObject.Libraries, filepath.Join(ProcessMavenPath(lib.Name), ProcessMavenFilename(lib.Name)))
for ind, path := range instanceObject.Libraries {
tokens := strings.Split(path, string(os.PathSeparator))
tokens := strings.Split(path, "/")
fmt.Printf("Inspecing path %s with %d tokens", path, len(tokens))
if pkg == tokens[len(tokens)-3] {
instanceObject.Libraries[ind] = filepath.Join(ProcessMavenPath(lib.Name), ProcessMavenFilename(lib.Name))