Windows 10 Running Error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Windows 10 Running Error

zeeshii
In "build.gradle"
def getJarManifestClasspathForCurrentOs() {
    def osClassPath = ''
    if (os.contains('windows')) {
        configurations.runtime.files.each { cpEntry ->
            osClassPath += '\\' + cpEntry.toString().trim().replaceAll(" ", "%20")+ ' '
        }
    } else {
        osClassPath = configurations.runtime.files.collect { "$it" }.join(' ')
    }
    return osClassPath
}


If User name Directory contain space like "Zeeshan Sikander" Every jar path is separated by space by logic of this peace of code! when it detect space in URI it consider end of one path. So i just added small change in it. And it is working now
 
Abu
Reply | Threaded
Open this post in threaded view
|

Re: Windows 10 Running Error

Abu
This worked on win10! JazaakAllah Zeeshan