Search in sources :

Example 1 with EditPropertiesHelper

use of org.jfrog.build.extractor.clientConfiguration.util.EditPropertiesHelper in project build-info by JFrogDev.

the class SpecsHelper method editPropertiesBySpec.

@SuppressWarnings("unused")
public boolean editPropertiesBySpec(String spec, ArtifactoryManager artifactoryManager, EditPropertiesHelper.EditPropertiesActionType editType, String props) throws IOException {
    EditPropertiesHelper helper = new EditPropertiesHelper(artifactoryManager, log);
    FileSpec fileSpec = FileSpec.fromString(spec);
    FileSpecsValidation.validateSearchBasedFileSpec(fileSpec);
    return helper.editProperties(fileSpec, editType, props);
}
Also used : FileSpec(org.jfrog.filespecs.FileSpec) EditPropertiesHelper(org.jfrog.build.extractor.clientConfiguration.util.EditPropertiesHelper)

Aggregations

EditPropertiesHelper (org.jfrog.build.extractor.clientConfiguration.util.EditPropertiesHelper)1 FileSpec (org.jfrog.filespecs.FileSpec)1