com.ullink.NuGetRestore.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-nuget-plugin Show documentation
Show all versions of gradle-nuget-plugin Show documentation
Gradle plugin for NuGet, to package, upload artifacts and restore packages.
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