Skip to content

Commit fc38cfd

Browse files
committed
avoid including the same archive twice
1 parent 2a5c046 commit fc38cfd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/java/src/ant_plugin.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@ impl AntPlugin {
4545
// TODO: check for updates
4646
pub fn copy_tmc_junit_runner(dest_path: &Path) -> Result<(), JavaError> {
4747
log::debug!("copying TMC Junit runner");
48-
const JUNIT_RUNNER_ARCHIVE: &[u8] = include_bytes!("../deps/tmc-junit-runner-0.2.8.jar");
4948

5049
let runner_dir = dest_path.join("lib").join("testrunner");
5150
let runner_path = runner_dir.join("tmc-junit-runner.jar");
5251

5352
// TODO: don't traverse symlinks
5453
if !runner_path.exists() {
5554
log::debug!("writing tmc-junit-runner to {}", runner_path.display());
56-
file_util::write_to_file(JUNIT_RUNNER_ARCHIVE, &runner_path)?;
55+
file_util::write_to_file(super::TMC_JUNIT_RUNNER_BYTES, &runner_path)?;
5756
} else {
5857
log::debug!("already exists");
5958
}

0 commit comments

Comments
 (0)