Fix wrong HTML entity replacement in tool task

This commit is contained in:
ljacqu
2016-12-17 13:51:44 +01:00
parent 811ceaf7ff
commit cb64e83988
3 changed files with 15 additions and 21 deletions
@@ -11,7 +11,6 @@ import tools.utils.AutoToolTask;
import tools.utils.ToolsConstants;
import java.io.File;
import java.util.Scanner;
/**
* Generates the commands.yml file that corresponds to the default in the code.
@@ -20,11 +19,6 @@ public class GenerateCommandsYml implements AutoToolTask {
private static final String COMMANDS_YML_FILE = ToolsConstants.MAIN_RESOURCES_ROOT + "commands.yml";
@Override
public void execute(Scanner scanner) {
executeDefault();
}
@Override
public void executeDefault() {
File file = new File(COMMANDS_YML_FILE);
@@ -45,6 +45,6 @@ public class AddJavaDocToMessageEnumTask implements AutoToolTask {
return configuration.getString(key.getKey())
.replaceAll("&[0-9a-f]", "")
.replace("&", "&")
.replace("<", "&gt;");
.replace("<", "&lt;");
}
}