The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

[SOLVED] Relative Repository

ziszis Member Posts: 22 Contributor II
edited November 2018 in Help
Hi,

I have a question. Is any way how to get a Repository by relative path?

For example:

I have a project PR1 and a want to create repository here - PR1/Repo, I will create a Process with Store operator and I want to store data to the repository.

If I use GUI, it wants a absolute path. So is any way how I can change this absolute path to relative in code (or through RapidMiner class)?

(Idea is, using process with Store operator in my Project without creating new repository through GUI. Project using only rapidminer.jar)

Thanks for ideas,
Regards
John
Tagged:

Answers

  • ziszis Member Posts: 22 Contributor II
    Ok,

    I found a solution RepositoryManager.getInstance(null).addRepository(new LocalRepository("MyRepo", new File("path")));

    Regards,
    John
Sign In or Register to comment.