-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStart.java
80 lines (73 loc) · 2.95 KB
/
Start.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* Start.java
* @author Frank Hildesheim, Leipzig 2013, 2014, 2015, 2016, 2017, 2018 (c), <[email protected]>
* Last change: 2018 Nov 01
* ==================================================================================================================================================
*/
import java.io.IOException;
//===================================================================================================================================================
// Klasse 'Start'
//===================================================================================================================================================
public class Start {
// Definiere neues Objekt
static Movie2Video m2v;
static Lists sl;
static String new_m2v;
static String version;
static String last_chg;
//===========================================================================================================================================
// Programm Start
//===========================================================================================================================================
public static void main(String[] args) throws IOException {
// New Instance
m2v = new Movie2Video();
sl = new Lists();
new_m2v = "";
version = "0.4.9.30";
last_chg = "2018-11-01";
//
System.out.println("|=====================================================================================");
System.out.println("|Movie2Video: Frank Hildesheim, Leipzig 2013 - 2018 <[email protected]> (c)");
System.out.println("|M2V-Version: " + version);
System.out.println("|Last Change: " + last_chg);
System.out.println("|Your System: " + System.getProperty("os.name").toLowerCase());
System.out.println("|=====================================================================================\n");
//
while (! new_m2v.equals(Lists.NO)) {
// Start Program new
newM2V();
}
// Program End
System.out.println("===============================================================================================\n");
System.out.println("Program finished!");
System.exit(0);
}
//===========================================================================================================================================
// Methode 'newM2V'
//===========================================================================================================================================
private static void newM2V() {
// Movie2Video
while (! sl.question.containsKey(new_m2v)) {
System.out.print("Start new M2V \t" + sl.question.values() + ": ");
new_m2v = m2v.cons.readLine();
}
// Movie2Video starts / restarts here
if (new_m2v.equals(Lists.YES)) {
try {
// Reset all Input Data
m2v.resetData();
// Read Console Input
m2v.dataInput();
// Execute Commands
m2v.execCommands();
} catch (Exception ex) {
ex.printStackTrace();
}
// Reset for new Session
new_m2v = "";
}
}
}
/*
* End Start.java
*/