Skip to content

Commit

Permalink
Logging for ACM Legacy Support
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuchss committed Aug 23, 2024
1 parent 9d103fa commit dcbb6bf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import java.util.List;
import java.util.SortedMap;

import org.slf4j.LoggerFactory;

import edu.kit.kastel.mcse.ardoco.core.data.DataRepository;
import edu.kit.kastel.mcse.ardoco.core.pipeline.agent.Informant;
import edu.kit.kastel.mcse.ardoco.core.pipeline.agent.PipelineAgent;
Expand Down Expand Up @@ -78,6 +80,8 @@ public static CodeConfiguration getCodeConfiguration(File inputCode) {
// Legacy Support for only ACM_FILE in a directory
// TODO: Maybe delete in the future
if (inputCode.isDirectory() && new File(inputCode, "codeModel.acm").exists()) {
var logger = LoggerFactory.getLogger(ArCoTLModelProviderAgent.class);
logger.error("Legacy support for only ACM_FILE in a directory. Please use the ACM_FILE directly.");
return new CodeConfiguration(new File(inputCode, "codeModel.acm"), CodeConfiguration.CodeConfigurationType.ACM_FILE);
}

Expand Down

0 comments on commit dcbb6bf

Please sign in to comment.