|
@@ -19,12 +19,12 @@
|
|
package com.l2jserver.cli.command;
|
|
package com.l2jserver.cli.command;
|
|
|
|
|
|
import java.io.File;
|
|
import java.io.File;
|
|
-import java.nio.file.Files;
|
|
|
|
|
|
|
|
import org.eclipse.jgit.api.Git;
|
|
import org.eclipse.jgit.api.Git;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
|
|
+import com.l2jserver.cli.L2JServerCLI;
|
|
import com.l2jserver.cli.model.CloneType;
|
|
import com.l2jserver.cli.model.CloneType;
|
|
import com.l2jserver.cli.util.LoggerProgressMonitor;
|
|
import com.l2jserver.cli.util.LoggerProgressMonitor;
|
|
|
|
|
|
@@ -47,10 +47,6 @@ public class CodeCommand extends AbstractCommand {
|
|
private static final String DEFAULT_GAME_REPO = "https://bitbucket.org/l2jserver/l2j-server-game.git";
|
|
private static final String DEFAULT_GAME_REPO = "https://bitbucket.org/l2jserver/l2j-server-game.git";
|
|
private static final String DEFAULT_DATAPACK_REPO = "https://bitbucket.org/l2jserver/l2j-server-datapack.git";
|
|
private static final String DEFAULT_DATAPACK_REPO = "https://bitbucket.org/l2jserver/l2j-server-datapack.git";
|
|
|
|
|
|
- private static final String DEFAULT_LOGIN_DIR = "./l2j/git/l2j-server-login";
|
|
|
|
- private static final String DEFAULT_GAME_DIR = "./l2j/git/l2j-server-game";
|
|
|
|
- private static final String DEFAULT_DATAPACK_DIR = "./l2j/git/l2j-server-datapack";
|
|
|
|
-
|
|
|
|
@Option(names = "--login-repository", defaultValue = DEFAULT_LOGIN_REPO, description = "Login repository")
|
|
@Option(names = "--login-repository", defaultValue = DEFAULT_LOGIN_REPO, description = "Login repository")
|
|
private String loginRepository = DEFAULT_LOGIN_REPO;
|
|
private String loginRepository = DEFAULT_LOGIN_REPO;
|
|
@Option(names = "--game-repository", defaultValue = DEFAULT_GAME_REPO, description = "Game repository")
|
|
@Option(names = "--game-repository", defaultValue = DEFAULT_GAME_REPO, description = "Game repository")
|
|
@@ -58,12 +54,12 @@ public class CodeCommand extends AbstractCommand {
|
|
@Option(names = "--datapack-repository", defaultValue = DEFAULT_DATAPACK_REPO, description = "Datapack repository")
|
|
@Option(names = "--datapack-repository", defaultValue = DEFAULT_DATAPACK_REPO, description = "Datapack repository")
|
|
private String datapackRepository = DEFAULT_DATAPACK_REPO;
|
|
private String datapackRepository = DEFAULT_DATAPACK_REPO;
|
|
|
|
|
|
- @Option(names = "--login-directory", defaultValue = DEFAULT_LOGIN_DIR, description = "Login directory")
|
|
|
|
- private File loginDirectory = new File(DEFAULT_LOGIN_DIR);
|
|
|
|
- @Option(names = "--game-directory", defaultValue = DEFAULT_GAME_DIR, description = "Game directory")
|
|
|
|
- private File gameDirectory = new File(DEFAULT_GAME_DIR);
|
|
|
|
- @Option(names = "--datapack-directory", defaultValue = DEFAULT_DATAPACK_DIR, description = "DataPack directory")
|
|
|
|
- private File datapackDirectory = new File(DEFAULT_DATAPACK_DIR);
|
|
|
|
|
|
+ @Option(names = "--login-directory", defaultValue = L2JServerCLI.DEFAULT_LOGIN_SOURCE_DIR, description = "Login directory")
|
|
|
|
+ private File loginDirectory = new File(L2JServerCLI.DEFAULT_LOGIN_SOURCE_DIR);
|
|
|
|
+ @Option(names = "--game-directory", defaultValue = L2JServerCLI.DEFAULT_GAME_SOURCE_DIR, description = "Game directory")
|
|
|
|
+ private File gameDirectory = new File(L2JServerCLI.DEFAULT_GAME_SOURCE_DIR);
|
|
|
|
+ @Option(names = "--datapack-directory", defaultValue = L2JServerCLI.DEFAULT_DATAPACK_SOURCE_DIR, description = "DataPack directory")
|
|
|
|
+ private File datapackDirectory = new File(L2JServerCLI.DEFAULT_DATAPACK_SOURCE_DIR);
|
|
|
|
|
|
@Option(names = "--clone", defaultValue = "ALL", description = "Clone ALL|LOGIN|GAME|DATAPACK")
|
|
@Option(names = "--clone", defaultValue = "ALL", description = "Clone ALL|LOGIN|GAME|DATAPACK")
|
|
private CloneType cloneType = CloneType.ALL;
|
|
private CloneType cloneType = CloneType.ALL;
|