Skip to content

Commit

Permalink
DefaultArchetypeGenerator.java
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 22, 2024
1 parent cd12adb commit ffc3fc9
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,26 @@
public class DefaultArchetypeGenerator implements ArchetypeGenerator {
private static final Logger LOGGER = LoggerFactory.getLogger(DefaultArchetypeGenerator.class);

@Inject
private ArchetypeArtifactManager archetypeArtifactManager;

@Inject
private FilesetArchetypeGenerator filesetGenerator;

@Inject
private OldArchetype oldArchetype;

@Inject
private RepositorySystem repositorySystem;

@Inject
public DefaultArchetypeGenerator(
ArchetypeArtifactManager archetypeArtifactManager,
FilesetArchetypeGenerator filesetGenerator,
OldArchetype oldArchetype,
RepositorySystem repositorySystem) {
this.archetypeArtifactManager = archetypeArtifactManager;
this.filesetGenerator = filesetGenerator;
this.oldArchetype = oldArchetype;
this.repositorySystem = repositorySystem;
}

private File getArchetypeFile(ArchetypeGenerationRequest request) throws ArchetypeException {
if (!isArchetypeDefined(request)) {
throw new ArchetypeNotDefined("The archetype is not defined");
Expand Down

0 comments on commit ffc3fc9

Please sign in to comment.