* ============LICENSE_END=========================================================
*/
-package org.openecomp.sdc.generator.impl;
+package org.onap.sdc.generator.impl;
-import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED;
-import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_INVOCATION_ERROR_CODE;
-import static org.openecomp.sdc.generator.util.ArtifactGeneratorUtil.logError;
+import static org.onap.sdc.generator.util.ArtifactGeneratorUtil.logError;
+import org.onap.sdc.generator.data.GeneratorConstants;
+import org.onap.sdc.generator.util.ArtifactGeneratorUtil;
import org.openecomp.sdc.logging.api.Logger;
import org.openecomp.sdc.logging.api.LoggerFactory;
-import org.openecomp.sdc.generator.GeneratorManager;
-import org.openecomp.sdc.generator.GeneratorTask;
-import org.openecomp.sdc.generator.data.Artifact;
-import org.openecomp.sdc.generator.data.GenerationData;
-import org.openecomp.sdc.generator.intf.ArtifactGenerator;
-import org.openecomp.sdc.generator.service.ArtifactGenerationService;
-import org.openecomp.sdc.generator.util.ArtifactGeneratorUtil;
+import org.onap.sdc.generator.GeneratorManager;
+import org.onap.sdc.generator.GeneratorTask;
+import org.onap.sdc.generator.data.Artifact;
+import org.onap.sdc.generator.data.GenerationData;
+import org.onap.sdc.generator.intf.ArtifactGenerator;
+import org.onap.sdc.generator.service.ArtifactGenerationService;
import java.util.List;
import java.util.Map;
}
} catch (IllegalArgumentException iae) {
//Invalid client configuration
- logError(GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED, iae);
+ ArtifactGeneratorUtil
+ .logError(GeneratorConstants.GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED, iae);
GenerationData errorData = new GenerationData();
- errorData.add(GENERATOR_INVOCATION_ERROR_CODE, iae.getMessage());
+ errorData.add(GeneratorConstants.GENERATOR_INVOCATION_ERROR_CODE, iae.getMessage());
return errorData;
} catch (Exception ex) {
- logError(GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED, ex);
+ ArtifactGeneratorUtil
+ .logError(GeneratorConstants.GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED, ex);
GenerationData errorData = new GenerationData();
- errorData.add(GENERATOR_INVOCATION_ERROR_CODE,
- GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED);
+ errorData.add(GeneratorConstants.GENERATOR_INVOCATION_ERROR_CODE,
+ GeneratorConstants.GENERATOR_ERROR_ARTIFACT_GENERATION_FAILED);
return errorData;
}
}