Package org.openl.util
Class ProjectPackager
java.lang.Object
org.openl.util.ProjectPackager
- All Implemented Interfaces:
FileVisitor<Path>
Pack an OpenL project using ZipArchiver.
- Author:
- Yury Molchan
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddOpenLProject(File sourceDir, String[] includes, ZipArchiver arch) Pack provided files in a source directory.static voidaddOpenLProject(File sourceDir, ZipArchiver arch) Pack all files in a source directory.postVisitDirectory(Path file, IOException exc) preVisitDirectory(Path file, BasicFileAttributes attrs) visitFile(Path file, BasicFileAttributes attrs) visitFileFailed(Path file, IOException exc)
-
Method Details
-
addOpenLProject
public static void addOpenLProject(File sourceDir, String[] includes, ZipArchiver arch) throws IOException Pack provided files in a source directory.- Parameters:
sourceDir- a file or a not empty directory for compressingincludes- the array of files to packarch- a zip archiver.- Throws:
IOException
-
addOpenLProject
Pack all files in a source directory.- Parameters:
sourceDir- a file or a not empty directory for compressingarch- a zip archiver.- Throws:
IOException
-
visitFile
- Specified by:
visitFilein interfaceFileVisitor<Path>- Throws:
IOException
-
preVisitDirectory
- Specified by:
preVisitDirectoryin interfaceFileVisitor<Path>- Throws:
IOException
-
postVisitDirectory
- Specified by:
postVisitDirectoryin interfaceFileVisitor<Path>- Throws:
IOException
-
visitFileFailed
- Specified by:
visitFileFailedin interfaceFileVisitor<Path>- Throws:
IOException
-