Interface ProjectExporter
-
public interface ProjectExporter
Service for exporting project-relating data.The service instance is stateful.
One instance can perform one export only (at the same time). However, it can create additional threads for exporting.- Since:
- 9.0
- Author:
- Leonid Bushuev from JetBrains
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExportedProjects
getExportScope()
Returns projects (build types, vcs roots and templates) that will be exported Includes selected project, its children and all project dependenciesvoid
setDestinationArchiveFile(File archiveFile)
Specifies the target zip file.void
start()
Starts the export.void
waitForFinish()
void
waitForFinish(long timeout, TimeUnit unit)
-
-
-
Method Detail
-
getExportScope
@NotNull ExportedProjects getExportScope()
Returns projects (build types, vcs roots and templates) that will be exported Includes selected project, its children and all project dependencies
-
setDestinationArchiveFile
void setDestinationArchiveFile(@NotNull File archiveFile)
Specifies the target zip file.- Parameters:
archiveFile
- the target zip file.
-
start
void start()
Starts the export.This method starts the export (in another thread) and returns immediately.
-
waitForFinish
void waitForFinish() throws InterruptedException
- Throws:
IllegalStateException
- when called beforestart()
InterruptedException
-
waitForFinish
void waitForFinish(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException
- Throws:
IllegalStateException
- when called beforestart()
InterruptedException
TimeoutException
-
-