There is no DBInstallerConsole update option.

This commit is contained in:
MobiusDevelopment
2021-02-05 00:03:21 +00:00
parent 5b8d3016f1
commit 9d64f4818b
21 changed files with 105 additions and 189 deletions

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();

View File

@@ -60,20 +60,16 @@ public class DBInstallerConsole implements DBOutputInterface
_con = connector.getConnection(); _con = connector.getConnection();
} }
System.out.print("(C)lean install, (U)pdate or (E)xit? "); System.out.print("(I)nstall or (E)xit? ");
final String resp = scn.next(); final String resp = scn.next();
if (resp.equalsIgnoreCase("c")) if (resp.equalsIgnoreCase("i"))
{ {
System.out.print("Do you really want to destroy your db (Y/N)?"); System.out.print("Do you really want to wipe your db (Y/N)?");
if (scn.next().equalsIgnoreCase("y")) if (scn.next().equalsIgnoreCase("y"))
{ {
rt = new RunTasks(this, db, dir); rt = new RunTasks(this, db, dir);
} }
} }
else if (resp.equalsIgnoreCase("u"))
{
rt = new RunTasks(this, db, dir);
}
} }
if (rt != null) if (rt != null)
@@ -95,7 +91,7 @@ public class DBInstallerConsole implements DBOutputInterface
* @param user the user name * @param user the user name
* @param pass the password * @param pass the password
* @param database the database name * @param database the database name
* @param mode the mode, c: Clean, u:update * @param mode the mode, c: Clean
* @throws Exception * @throws Exception
*/ */
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode) throws Exception
@@ -108,7 +104,7 @@ public class DBInstallerConsole implements DBOutputInterface
final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true); final MySqlConnect connector = new MySqlConnect(host, port, user, pass, currentDatabase, true);
_con = connector.getConnection(); _con = connector.getConnection();
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode))) if ((mode != null) && "i".equalsIgnoreCase(mode))
{ {
final RunTasks rt = new RunTasks(this, currentDatabase, dir); final RunTasks rt = new RunTasks(this, currentDatabase, dir);
rt.run(); rt.run();