use of org.pentaho.di.repository.RepositoryImporter in project pentaho-kettle by pentaho.
the class JobImportIT method setUp.
@Before
public void setUp() throws KettleException {
KettleEnvironment.init();
Props.init(Props.TYPE_PROPERTIES_SPOON);
deleteFolder(new File(REPOSITORY_ROOT_DIR));
KettleFileRepositoryMeta repositoryMeta = new KettleFileRepositoryMeta(FILE_REPOSITORY_ID, FILE_REPOSITORY_NAME, FILE_REPOSITORY_DESC, REPOSITORY_ROOT_DIR);
repository = new KettleFileRepository();
repository.init(repositoryMeta);
repository.connect(null, null);
importer = new RepositoryImporter(repository);
}
Aggregations