Skip to content

Commit 534f69c

Browse files
authored
Merge pull request #118 from rage/ant-check
use get_language_plugin to check for antplugin in prepare stub
2 parents f956f3d + b387e47 commit 534f69c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tmc-langs-util/src/task_executor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ pub fn prepare_stub(exercise_path: &Path, dest_path: &Path) -> Result<(), UtilEr
3434
submission_processing::prepare_stub(&exercise_path, dest_path)?;
3535

3636
// The Ant plugin needs some additional files to be copied over.
37-
if AntPlugin::is_exercise_type_correct(&exercise_path) {
37+
let plugin = get_language_plugin(&exercise_path)?;
38+
if let Plugin::Ant(..) = plugin {
3839
AntPlugin::copy_tmc_junit_runner(dest_path).map_err(|e| TmcError::Plugin(Box::new(e)))?;
3940
}
4041
Ok(())

0 commit comments

Comments
 (0)