Updated "deleteFileset" added "ignoreErrors" parameter
This commit is contained in:
parent
3db873b17e
commit
f0508b4fd9
|
@ -398,17 +398,20 @@ public class ProjectsCaller {
|
||||||
* @param projectID the project ID
|
* @param projectID the project ID
|
||||||
* @param jsonPathToFileset the json path to fileset
|
* @param jsonPathToFileset the json path to fileset
|
||||||
* @param force the force
|
* @param force the force
|
||||||
|
* @param ignoreErrors the ignore errors
|
||||||
* @return the project
|
* @return the project
|
||||||
* @throws RemoteException the remote exception
|
* @throws RemoteException the remote exception
|
||||||
*/
|
*/
|
||||||
public Project deleteFileset(String profileID, String projectID, String jsonPathToFileset, Boolean force)
|
public Project deleteFileset(String profileID, String projectID, String jsonPathToFileset, Boolean force, Boolean ignoreErrors)
|
||||||
throws RemoteException {
|
throws RemoteException {
|
||||||
LOG.info("deleteFileset called for profileID {} and projectID {}, fileset path: {}", profileID, projectID,
|
LOG.info("deleteFileset called for profileID {} and projectID {}, fileset path: {}", profileID, projectID,
|
||||||
jsonPathToFileset);
|
jsonPathToFileset);
|
||||||
|
|
||||||
Projects<Project> client = (Projects<Project>) getClient(profileID);
|
Projects<Project> client = (Projects<Project>) getClient(profileID);
|
||||||
|
|
||||||
Project project = client.deleteFileSet(projectID, jsonPathToFileset, force);
|
ignoreErrors = ignoreErrors==null?false:ignoreErrors;
|
||||||
|
|
||||||
|
Project project = client.deleteFileSet(projectID, jsonPathToFileset, force, ignoreErrors);
|
||||||
LOG.info("fileset {} deleted", jsonPathToFileset);
|
LOG.info("fileset {} deleted", jsonPathToFileset);
|
||||||
LOG.debug("returning new project: {} ", project.getTheDocument());
|
LOG.debug("returning new project: {} ", project.getTheDocument());
|
||||||
return project;
|
return project;
|
||||||
|
|
Loading…
Reference in New Issue