org.outerj.daisy.install
Class InstallHelper
java.lang.Object
org.outerj.daisy.install.InstallHelper
- public class InstallHelper
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstallHelper
public InstallHelper()
chooseDatabase
public static InstallHelper.DatabaseInfo chooseDatabase()
throws java.lang.Exception
- Throws:
java.lang.Exception
collectDatabaseParams
public static InstallHelper.DatabaseParams collectDatabaseParams(InstallHelper.DatabaseInfo dbInfo,
java.lang.String user,
java.lang.String password,
java.lang.String dbName)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkDatabaseVersion
public static void checkDatabaseVersion(InstallHelper.DatabaseParams dbParams)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRepoLocation
public static java.lang.String getRepoLocation()
getDaisyHome
public static java.io.File getDaisyHome()
throws java.lang.Exception
- Throws:
java.lang.Exception
isDistroDirectory
public static boolean isDistroDirectory(java.io.File daisyHome)
prompt
public static java.lang.String prompt(java.lang.String message)
throws java.lang.Exception
- Throws:
java.lang.Exception
prompt
public static java.lang.String prompt(java.lang.String message,
java.lang.String defaultInput)
throws java.lang.Exception
- Throws:
java.lang.Exception
promptYesNo
public static boolean promptYesNo(java.lang.String message,
boolean defaultInput)
throws java.lang.Exception
- Throws:
java.lang.Exception
waitPrompt
public static void waitPrompt()
throws java.lang.Exception
- Throws:
java.lang.Exception
printTitle
public static void printTitle(java.lang.String title)
generatePassword
public static java.lang.String generatePassword()
throws java.lang.Exception
- Throws:
java.lang.Exception
toHexString
public static java.lang.String toHexString(byte[] b)
loadDistroProperties
public static java.util.Properties loadDistroProperties(java.io.File daisyHome)
throws java.lang.Exception
- Throws:
java.lang.Exception
storeDistroProperties
public static void storeDistroProperties(java.util.Properties properties,
java.io.File daisyHome)
throws java.lang.Exception
- Throws:
java.lang.Exception
copyFile
public static void copyFile(java.io.File source,
java.io.File destination)
throws java.lang.Exception
- Throws:
java.lang.Exception
promptRepository
public static org.outerj.daisy.repository.Repository promptRepository()
throws java.lang.Exception
- Throws:
java.lang.Exception
backupFile
public static void backupFile(java.io.File file)
throws java.lang.Exception
- Throws:
java.lang.Exception
parseFile
public static org.w3c.dom.Document parseFile(java.io.File file)
throws java.lang.Exception
- Throws:
java.lang.Exception
saveDocument
public static void saveDocument(java.io.File file,
org.w3c.dom.Document document)
throws java.lang.Exception
- Throws:
java.lang.Exception
setElementValue
public static void setElementValue(org.w3c.dom.Element element,
java.lang.String value)
Copyright © -2005 . All Rights Reserved.