forked from Cutieguwu/raven
Try to work on build some more.
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user