Try to work on build some more.

This commit is contained in:
Cutieguwu
2026-02-15 12:25:03 -05:00
parent a9fb52d8d7
commit 0fad1b74bc
5 changed files with 114 additions and 7 deletions

View File

@@ -139,6 +139,24 @@ impl WorkspaceHandler {
// This is the naive build
pub fn build(&mut self) -> crate::Result<()> {
let mut targets = vec![];
for (_name, mut handler) in self.packages.clone() {
targets.append(&mut handler.get_update_targets()?);
}
let compiler = java::compiler::CompilerBuilder::new()
.class_path(Self::DIR_TARGET)
.class_path(Self::DIR_TARGET)
.build();
for target in targets {
// Possibly come up with a source file handler for this?
if let Ok(_) = compiler.clone().compile(target) {
// No, this does not run O(1)
}
}
Ok(())
}