Commit cba71c6b authored by Lonca Emmanuel's avatar Lonca Emmanuel

CSP3 solver output may now be turned into competition output.

Competition output is made of "c", "s", "o" and "v" lines (just like SAT
competition output). Competition output is enabled when the
"CompetitonOutput" JVM property is set.
parent 49b6b50d
Pipeline #183 passed with stage
in 9 minutes and 6 seconds
......@@ -40,7 +40,9 @@ public class CSPLauncher extends AbstractLauncher {
private boolean shouldOnlyDisplayEncoding = false;
public CSPLauncher() {
bufferizeLog();
if(System.getProperty("CompetitionOutput") != null) {
bufferizeLog();
}
}
/*
......
......@@ -100,7 +100,10 @@ public enum ECSPFormat {
if(shouldOnlyDisplayEncoding) {
return pw;
}
XMLCommentPrintWriter commentPrintWriter = new XMLCommentPrintWriter(pw);
if(System.getProperty("CompetitionOutput") != null) {
return pw;
}
final XMLCommentPrintWriter commentPrintWriter = new XMLCommentPrintWriter(pw);
commentPrintWriter.addDncPrefix("v ");
return commentPrintWriter;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment