add validator for NuGet Path
authorEugene Petrenko <eugene.petrenko@gmail.com>
Thu, 14 Jul 2011 14:22:48 +0000 (18:22 +0400)
committerEugene Petrenko <eugene.petrenko@gmail.com>
Thu, 14 Jul 2011 14:22:48 +0000 (18:22 +0400)
nuget-server/src/jetbrains/buildServer/nuget/server/trigger/NuGetSimpleTrigger.java

index 84a4dc941ced7bf6aa3d90e35c53541a04d18ebb..1e29f13599fece3621040ffd44d215355c026a4c 100644 (file)
@@ -78,6 +78,10 @@ public class NuGetSimpleTrigger extends BuildTriggerService {
           err.add(new InvalidProperty(TriggerConstants.SOURCE, "Source must be specified"));\r
         }\r
 \r
+        if (StringUtil.isEmptyOrSpaces(properties.get(TriggerConstants.NUGET_EXE))) {\r
+          err.add(new InvalidProperty(TriggerConstants.NUGET_EXE, "NuGet.exe path must be specified"));\r
+        }\r
+\r
         if (StringUtil.isEmptyOrSpaces(properties.get(TriggerConstants.PACKAGE))) {\r
           err.add(new InvalidProperty(TriggerConstants.PACKAGE, "Package Id must be specified"));\r
         }\r