Class TemplateExtractor
java.lang.Object
studentrepoloader.filesystem.TemplateExtractor
Extracts the static template directory structure used by ViLLe RepoLoader.
The structure is embedded in a ZIP file (`template.zip`) located in the resources directory. The contents are extracted only if missing from the working directory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Ensures that the base `ViLLe courses/` folder and required template substructure exist.
-
Constructor Details
-
TemplateExtractor
public TemplateExtractor()
-
-
Method Details
-
ensureTemplateStructure
public static void ensureTemplateStructure()Ensures that the base `ViLLe courses/` folder and required template substructure exist.Extracts the ZIP if missing; otherwise fills in missing components. Fails fast with a runtime exception on I/O failure.
-