Ajout de la structure de base du projet Bake avec les fichiers principaux.

Première ébauche du projet
This commit is contained in:
2025-02-04 10:18:26 +01:00
parent e466bda000
commit 2d7f69f02e
9 changed files with 265 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package fr.monlouyan.bakefile;
import java.util.List;
public class BakeEngine {
private BakeCLI cli;
private BakefileParser parser;
private DependencyResolver resolver;
private CommandExecutor executor;
public BakeEngine(BakeCLI cli) {
this.cli = cli;
this.parser = new BakefileParser("Bakefile");
this.resolver = new DependencyResolver();
this.executor = new CommandExecutor(cli.isDebug());
}
public void run() {
List<Target> targets = parser.parse();
List<Target> targetsToBuild = resolver.resolve(targets, cli.getTargets());
for (Target target : targetsToBuild) {
executor.execute(target);
}
}
}