From 0d4789ed70c6b841f413ce74a90d6916a21377c3 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Sun, 7 Oct 2012 14:50:20 -0700 Subject: [PATCH] opening this up for subtypes --- core/src/main/java/hudson/model/FileParameterValue.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/model/FileParameterValue.java b/core/src/main/java/hudson/model/FileParameterValue.java index dd322aba4b..e43b2835fa 100644 --- a/core/src/main/java/hudson/model/FileParameterValue.java +++ b/core/src/main/java/hudson/model/FileParameterValue.java @@ -84,10 +84,13 @@ public class FileParameterValue extends ParameterValue { } // post initialization hook - /*package*/ void setLocation(String location) { + protected void setLocation(String location) { this.location = location; } + public String getLocation() { + return location; + } /** * Exposes the originalFileName as an environment variable. @@ -117,6 +120,10 @@ public class FileParameterValue extends ParameterValue { return originalFileName; } + public FileItem getFile() { + return file; + } + @Override public BuildWrapper createBuildWrapper(AbstractBuild build) { return new BuildWrapper() { -- GitLab