Package com.devonfw.cobigen.cli.commands
Class AdaptTemplatesCommand
- java.lang.Object
-
- com.devonfw.cobigen.cli.commands.AdaptTemplatesCommand
-
-
Constructor Summary
Constructors Constructor Description AdaptTemplatesCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Integercall()static voiddeleteDirectoryRecursively(Path pathToBeDeleted)Deletes a directory and its sub directories recursivelystatic voidprocessJar(Path destinationPath)Unpacks the source CobiGen_Templates Jar and creates a new CobiGen_Templates folder structure at $destinationPath/CobiGen_Templates location
-
-
-
Method Detail
-
processJar
public static void processJar(Path destinationPath) throws IOException
Unpacks the source CobiGen_Templates Jar and creates a new CobiGen_Templates folder structure at $destinationPath/CobiGen_Templates location- Parameters:
destinationPath- path to be used as target directory- Throws:
IOException- if no destination path could be set
-
deleteDirectoryRecursively
public static void deleteDirectoryRecursively(Path pathToBeDeleted) throws IOException
Deletes a directory and its sub directories recursively- Parameters:
pathToBeDeleted- the directory which should be deleted recursively- Throws:
IOException- if the file could not be deleted
-
-