Skip to content

Invalid classpath when username has .jar #353

@taranovegor

Description

@taranovegor

If the username contains .jar, for example baton.jar the classpath will not be processed correctly and will be a string like C:\Users\baton.jar instead of C:\Users\baton.jar\...\asset.jar.

_processClassPathList(list) {
const ext = '.jar'
const extLen = ext.length
for(let i=0; i<list.length; i++) {
const extIndex = list[i].indexOf(ext)
if(extIndex > -1 && extIndex !== list[i].length - extLen) {
list[i] = list[i].substring(0, extIndex + extLen)
}
}
}

Pretty freaky case, but it can happen...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions