All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.deploygate.gradle.plugins.utils.UrlUtils.groovy Maven / Gradle / Ivy

Go to download

This is the DeployGate plugin for the Gradle. You can build and deploy your apps to DeployGate by running a single task.

There is a newer version: 2.8.0
Show newest version
package com.deploygate.gradle.plugins.utils

class UrlUtils {
    static def parseQueryString(String s) {
        (s ?: "").split("&").inject([:]) { LinkedHashMap m, String str ->
            if (str) {
                def (k, v) = str.split("=", 2).collect { URLDecoder.decode(it, 'UTF-8') }
                m[k] = v
            }

            m
        } as LinkedHashMap
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy