Class UnpackPluginMojo.ClasspathFile
java.lang.Object
de.iip_ecosphere.platform.tools.maven.dependencies.UnpackPluginMojo.ClasspathFile
- Enclosing class:
UnpackPluginMojo
Stores classpath file names with additional information for moving in the file system.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateClasspathFile(String name) Classpath file without need for moving.privateClasspathFile(String name, String origPath, String pathSuffix) Classpath file with need for moving. -
Method Summary
Modifier and TypeMethodDescriptionprivate StringgetName()The name of the classpath file.private voidpreprocess(File targetDir) Preprocesses the file intargetDir, i.e., moves it if needed.
-
Field Details
-
name
-
origPath
-
pathSuffix
-
-
Constructor Details
-
ClasspathFile
Classpath file without need for moving.- Parameters:
name- the name/path of the file
-
ClasspathFile
Classpath file with need for moving.- Parameters:
name- the name/path of the fileorigPath- the original path the file is located inpathSuffix- path addition causing the move
-
-
Method Details
-
getName
The name of the classpath file.- Returns:
- the name, original before move/processing, modified after
-
preprocess
Preprocesses the file intargetDir, i.e., moves it if needed. May affectgetName().- Parameters:
targetDir- the target directory where the file/paths are located within- Throws:
org.apache.maven.plugin.MojoFailureException- if moving fails
-