forked from Cutieguwu/raven
forked 6ad82c3339 and refactored to combine prey.toml with nest.toml. The WorkspaceHandler.discover_packages() function is very broken
This commit is contained in:
0
crates/java/src/compilation_scheduler.rs
Normal file
0
crates/java/src/compilation_scheduler.rs
Normal file
@@ -50,7 +50,7 @@ pub struct Compiler {
|
||||
}
|
||||
|
||||
impl Compiler {
|
||||
pub fn compile<P: AsRef<Path>>(self, path: P) -> Result<bool> {
|
||||
pub fn compile<P: AsRef<Path>>(self, paths: Vec<P>) -> Result<bool> {
|
||||
Ok(Exec::cmd(JAVA_BIN_COMPILER)
|
||||
.args(
|
||||
self.flags
|
||||
@@ -58,7 +58,7 @@ impl Compiler {
|
||||
.into_iter()
|
||||
.flat_map(|f| Into::<Vec<String>>::into(f)),
|
||||
)
|
||||
.arg(path.as_ref().with_extension(JAVA_EXT_SOURCE))
|
||||
.args(paths.into_iter().map(|p| p.as_ref().with_extension(JAVA_EXT_SOURCE)))
|
||||
.stdout(Redirection::Pipe)
|
||||
.detached()
|
||||
.start()?
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
pub mod compiler;
|
||||
pub mod error;
|
||||
pub mod runtime;
|
||||
mod compilation_scheduler;
|
||||
|
||||
use std::str::FromStr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user