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

com.ullink.NuGetRestore.groovy Maven / Gradle / Ivy

There is a newer version: 2.18
Show newest version
package com.ullink

class NuGetRestore extends BaseNuGet {
    def packagesDirectory
    def solutionDirectory
    def packagesConfigFile
    def solutionFile

    NuGetRestore() {
        super('restore')
    }

    @Override
    void verifyCommand() {
    }

    @Override
    List extraCommands() {
        def commandLineArgs = new ArrayList()

        if (packagesDirectory) {
            commandLineArgs += "-PackagesDirectory"
            commandLineArgs += packagesDirectory
        }
        if (solutionDirectory) {
            commandLineArgs += "-SolutionDirectory"
            commandLineArgs += solutionDirectory
        }
        if (packagesConfigFile) {
            commandLineArgs += packagesConfigFile
        }
        if (solutionFile) {
            commandLineArgs += solutionFile
        }

        return commandLineArgs
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy