/** * Converts customWorkspace property to ProjectProperty. * * @throws IOException if any. */ void convertCustomWorkspaceProperty() throws IOException { if (null != customWorkspace && null == getProperty(CUSTOM_WORKSPACE_PROPERTY_NAME)) { setCustomWorkspace(customWorkspace); customWorkspace = null;//Reset to null. No longer needed. } }
/** * Converts customWorkspace property to ProjectProperty. * * @throws IOException if any. */ void convertCustomWorkspaceProperty() throws IOException { if (null != customWorkspace && null == getProperty(CUSTOM_WORKSPACE_PROPERTY_NAME)) { setCustomWorkspace(customWorkspace); customWorkspace = null;//Reset to null. No longer needed. } }
/** * Converts customWorkspace property to ProjectProperty. * * @throws IOException if any. */ void convertCustomWorkspaceProperty() throws IOException { if (null != customWorkspace && null == getProperty(CUSTOM_WORKSPACE_PROPERTY_NAME)) { setCustomWorkspace(customWorkspace); customWorkspace = null;//Reset to null. No longer needed. } }
/** * Converts customWorkspace property to ProjectProperty. * * @throws IOException if any. */ void convertCustomWorkspaceProperty() throws IOException { if (null != customWorkspace && null == getProperty(CUSTOM_WORKSPACE_PROPERTY_NAME)) { setCustomWorkspace(customWorkspace); customWorkspace = null;//Reset to null. No longer needed. } }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, Descriptor.FormException { super.submit(req, rsp); JSONObject json = req.getSubmittedForm(); JSONObject customWorkspace = json.has("customWorkspace")? json.getJSONObject("customWorkspace"):null; setCustomWorkspace( customWorkspace != null? customWorkspace.getString("directory") : null); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, Descriptor.FormException { super.submit(req, rsp); setCustomWorkspace( req.hasParameter("customWorkspace") ? req.getParameter("customWorkspace.directory") : null); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, Descriptor.FormException { super.submit(req, rsp); setCustomWorkspace( req.hasParameter("customWorkspace") ? req.getParameter("customWorkspace.directory") : null); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, Descriptor.FormException { super.submit(req, rsp); setCustomWorkspace( req.hasParameter("customWorkspace") ? req.getParameter("customWorkspace.directory") : null); }