[brailleblaster] push by john.bo...@xxxxxxxxxxxxxxxxx - Fixed problem with creating application directories, started integrati... on 2012-03-13 11:48 GMT

  • From: brailleblaster@xxxxxxxxxxxxxx
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Tue, 13 Mar 2012 11:49:42 +0000

Revision: 17f47466f0f2
Author:   John Boyer <john.boyer@xxxxxxxxxxxxxxxxx>
Date:     Tue Mar 13 04:47:41 2012
Log: Fixed problem with creating application directories, started integrating UTDML.
http://code.google.com/p/brailleblaster/source/detail?r=17f47466f0f2

Modified:
 /src/main/org/brailleblaster/BBIni.java
 /src/main/org/brailleblaster/Subcommands.java

=======================================
--- /src/main/org/brailleblaster/BBIni.java     Mon Mar 12 12:15:52 2012
+++ /src/main/org/brailleblaster/BBIni.java     Tue Mar 13 04:47:41 2012
@@ -57,6 +57,7 @@

 private static boolean debug = false;
 private static boolean gotGui = true;
+private static boolean utd = false;
 private static Logger logger;
 private static Display display = null;
 private static String BBVersion;
@@ -87,8 +88,6 @@
 platformName = SWT.getPlatform();
 String userHome = System.getProperty ("user.home");
 String BBHome;
-nativeLibraryPath = brailleblasterPath + fileSep + "native" + fileSep +
-"lib" + fileSep + "liblouisutdml" + nativeLibrarySuffix;
 programDataPath = brailleblasterPath + fileSep + "programData";
 helpDocsPath = brailleblasterPath + fileSep + "helpDocs";
 if (platformName.equals("win32")) {
@@ -103,14 +102,16 @@
 BBHome = userHome + fileSep + BBID;
 nativeLibrarySuffix = ".so";
 }
+nativeLibraryPath = brailleblasterPath + fileSep + "native" + fileSep +
+"lib" + fileSep + "liblouisutdml" + nativeLibrarySuffix;
 settingsPath = BBHome + fileSep + "settings";
 File settings = new File (settingsPath);
 if (!settings.exists())
-settings.mkdir();
+settings.mkdirs();
 tempFilesPath = BBHome + fileSep + "temp";
 File temps = new File (tempFilesPath);
 if (!temps.exists())
-temps.mkdir();
+temps.mkdirs();
 logger = Logger.getLogger ("org.brailleblaster");
 try {
 logFile = new FileHandler
@@ -130,6 +131,12 @@
 else if (args[i].equals ("-nogui")) {
 gotGui = false;
 }
+else if (args[i].equals ("-utd")) {
+utd = true;
+}
+else {
+System.out.println ("Bad option " + args[i]);
+}
 i++;
 }
 }
@@ -247,5 +254,8 @@
 return logger;
 }

+public static boolean useUtd () {
+  return utd;
 }

+}
=======================================
--- /src/main/org/brailleblaster/Subcommands.java       Mon Mar 12 11:20:08 2012
+++ /src/main/org/brailleblaster/Subcommands.java       Tue Mar 13 04:47:41 2012
@@ -83,7 +83,7 @@
 else {
 Display display = BBIni.getDisplay ();
 if (display == null) {
-  System.out.println ("Bad command line");
+  System.out.println ("Incorrect options or subcommand");
   return;
   }
 new WPManager (subcommand);

Other related posts:

  • » [brailleblaster] push by john.bo...@xxxxxxxxxxxxxxxxx - Fixed problem with creating application directories, started integrati... on 2012-03-13 11:48 GMT - brailleblaster