Update CreateServerMojo.java
removed configDirectory exist check
@@ -126,10 +126,8 @@ public class CreateServerMojo extends StartDebugMojoSupport {
configDocument.createElement("userDirectory", userDirectory);
configDocument.createElement("serverOutputDirectory", new File(outputDirectory, serverName));
configDocument.createElement("serverName", serverName);
-
- if (configDirectory != null && configDirectory.exists()) {
configDocument.createElement("configDirectory", configDirectory);
- }
+
if (getFileFromConfigDirectory("server.xml", configFile) != null) {
configDocument.createElement("configFile", getFileFromConfigDirectory("server.xml", configFile));
}
