Search in sources :

Example 1 with RepositoryImporter

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);
}
Also used : KettleFileRepositoryMeta(org.pentaho.di.repository.filerep.KettleFileRepositoryMeta) RepositoryImporter(org.pentaho.di.repository.RepositoryImporter) File(java.io.File) KettleFileRepository(org.pentaho.di.repository.filerep.KettleFileRepository) Before(org.junit.Before)

Aggregations

File (java.io.File)1 Before (org.junit.Before)1 RepositoryImporter (org.pentaho.di.repository.RepositoryImporter)1 KettleFileRepository (org.pentaho.di.repository.filerep.KettleFileRepository)1 KettleFileRepositoryMeta (org.pentaho.di.repository.filerep.KettleFileRepositoryMeta)1