Class ExplodedImporterImpl
java.lang.Object
org.jboss.shrinkwrap.impl.base.AssignableBase<Archive<?>>
org.jboss.shrinkwrap.impl.base.importer.ExplodedImporterImpl
- All Implemented Interfaces:
Assignable
,ExplodedImporter
ExplodedImporterImpl
Importer used to import Exploded directory structures into a
Archive
- Version:
- $Revision: $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
a()
private ArchivePath
calculatePath
(File root, File child) Calculate the relative child path.private void
doImport
(File root, File[] files, Filter<ArchivePath> filter) importDirectory
(File file) Import a directory structure as a archive.importDirectory
(File file, Filter<ArchivePath> filter) Import a directory structure as a archive.importDirectory
(String fileName) Import a directory structure as a archive.importDirectory
(String fileName, Filter<ArchivePath> filter) Import a directory structure as a archive.private String
Windows vs Linux will return different path separators, unify the paths.Methods inherited from class org.jboss.shrinkwrap.impl.base.AssignableBase
as, getArchive
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.shrinkwrap.api.Assignable
as
-
Field Details
-
log
Logger
-
-
Constructor Details
-
ExplodedImporterImpl
-
-
Method Details
-
a
void a() -
importDirectory
Import a directory structure as a archive.- Specified by:
importDirectory
in interfaceExplodedImporter
- Parameters:
fileName
- The name of the directory to import- Returns:
- this
- See Also:
-
importDirectory
Import a directory structure as a archive.- Specified by:
importDirectory
in interfaceExplodedImporter
- Parameters:
fileName
- The name of the directory to importfilter
- The filter control which files or directories will be imported- Returns:
- this
- See Also:
-
importDirectory
Import a directory structure as a archive.- Specified by:
importDirectory
in interfaceExplodedImporter
- Parameters:
file
- The directory to import- Returns:
- this
- See Also:
-
importDirectory
Import a directory structure as a archive.- Specified by:
importDirectory
in interfaceExplodedImporter
- Parameters:
file
- The directory to importfilter
- The filter control which files or directories will be imported- Returns:
- this
- See Also:
-
doImport
-
calculatePath
Calculate the relative child path.- Parameters:
root
- The Archive root folderchild
- The Child file- Returns:
- a Path fort he child relative to root
-
unifyPath
Windows vs Linux will return different path separators, unify the paths.- Returns:
-