33
33
34
34
//Import the required Cataphract APIs
35
35
import Cataphract .API .IOStreams ;
36
+ import Cataphract .API .Astaroth .Calendar ;
37
+ import Cataphract .API .Astaroth .Time ;
36
38
import Cataphract .API .Minotaur .Cryptography ;
37
39
import Cataphract .API .Anvil ;
38
40
import Cataphract .API .Build ;
@@ -87,10 +89,10 @@ public static void main(String[] args)throws Exception
87
89
throw new Exception ();
88
90
89
91
case "astaroth" :
90
- IOStreams .println (String .valueOf (new Cataphract . API . Astaroth . Time ().getUnixEpoch ()));
91
- IOStreams .println (String .valueOf (new Cataphract . API . Astaroth . Time ().getDateTimeUsingSpecifiedFormat ("dd-MMMM-yyyy \n EEEE HH:mm:ss" )));
92
- new Cataphract . API . Astaroth . Calendar ().printCalendar (0 ,0 );
93
- new Cataphract . API . Astaroth . Calendar ().printCalendar (8 , 2077 );
92
+ IOStreams .println (String .valueOf (new Time ().getUnixEpoch ()));
93
+ IOStreams .println (String .valueOf (new Time ().getDateTimeUsingSpecifiedFormat ("dd-MMMM-yyyy \n EEEE HH:mm:ss" )));
94
+ new Calendar ().printCalendar (0 ,0 );
95
+ new Calendar ().printCalendar (8 , 2077 );
94
96
System .exit (0 );
95
97
break ;
96
98
@@ -594,7 +596,7 @@ protected Setup()
594
596
*/
595
597
private void displaySetupProgress ()
596
598
{
597
- Cataphract . API . Build .viewBuildInfo ();
599
+ Build .viewBuildInfo ();
598
600
IOStreams .println ("[ -- Program Setup Checklist -- ]" );
599
601
IOStreams .println ("[*] Show Program Prerequisites : " + (prereqInfoStatus ?"COMPLETED" :"PENDING" ));
600
602
IOStreams .println ("[*] Initialize Directories : " + (initDirs ?"COMPLETED" :"PENDING" ));
@@ -614,12 +616,12 @@ boolean setupCataphract()throws Exception
614
616
boolean returnValue = false ;
615
617
616
618
//A brief introduction to Cataphract and why it is being setup //
617
- Cataphract . API . Build .clearScreen ();
619
+ Build .clearScreen ();
618
620
619
621
/**
620
622
* Display a message to give a brief introduction to Cataphract and the reason why it is being setup
621
623
*/
622
- String oobeIntroduction = Cataphract . API . Build ._Branding + """
624
+ String oobeIntroduction = Build ._Branding + """
623
625
624
626
Welcome to Cataphract!
625
627
@@ -635,7 +637,7 @@ boolean setupCataphract()throws Exception
635
637
636
638
If the current user is a System Administrator,\u00A0 """ ;
637
639
638
- Cataphract . API . IOStreams .confirmReturnToContinue (oobeIntroduction , ".\n Setup> " );
640
+ IOStreams .confirmReturnToContinue (oobeIntroduction , ".\n Setup> " );
639
641
640
642
//User needs to accept EULA
641
643
showAndAcceptEULA ();
@@ -654,7 +656,7 @@ boolean setupCataphract()throws Exception
654
656
655
657
//Show the set of actions undertaken to the user before restarting
656
658
displaySetupProgress ();
657
- Cataphract . API . IOStreams .confirmReturnToContinue ("Setup complete! " , ".\n Setup> " );
659
+ IOStreams .confirmReturnToContinue ("Setup complete! " , ".\n Setup> " );
658
660
659
661
660
662
returnValue = prereqInfoStatus & initAdminAccount & initDB & initDirs & initPolicies ;
@@ -769,7 +771,7 @@ private void initializeDatabase()
769
771
catch (Exception e )
770
772
{
771
773
//Catch any exceptions caught during runtime and pass it on to the ExceptionHandler class
772
- new Cataphract . API . ExceptionHandler ().handleException (e );
774
+ new ExceptionHandler ().handleException (e );
773
775
}
774
776
775
777
//Update the Database Initialization to COMPLETE or failed
0 commit comments