org.sourcejammer.server.install
Class Install

java.lang.Object
  |
  +--org.sourcejammer.server.install.Install

public class Install
extends java.lang.Object

Title: $FileName: Install.java$

Version:
$VerNum: 16$
Author:
$AuthorName: Rob MacGrogan$

$Description: Interactive installation/conversion for SJ server.$
$KeyWordsOff: $

Field Summary
private static java.lang.String DEFAULT_WIN_SERVER_PATH
           
private static java.lang.String DEFAULT_X_SERVER_PATH
           
private static int DELETE
           
private static int OVERWRITE
           
private static java.lang.String PROMPT
           
private static java.lang.String QUIT
           
 
Constructor Summary
Install()
           
 
Method Summary
private static void backupFile(java.io.File dir, java.lang.String fileName)
           
private static boolean checkConvert(org.sourcejammer.util.CommandLine cmd)
           
private static void checkQuit(java.lang.String s)
           
private static boolean confirmConvert(org.sourcejammer.util.CommandLine cmd)
           
private static void copyFile(java.lang.String fileName, java.io.File fromDir, java.io.File toDir)
           
private static java.lang.String getConvertArchiveName(org.sourcejammer.util.CommandLine cmd)
           
private static java.io.File getFileResponse(org.sourcejammer.util.CommandLine cmd, boolean mustExist, boolean verify)
           
private static java.io.File getFileResponse(org.sourcejammer.util.CommandLine cmd, boolean mustExist, boolean verify, java.io.File defaultResponse)
           
private static java.io.File getPathToServletEngine(org.sourcejammer.util.CommandLine cmd)
           
private static java.io.File getPrevInstallPath(org.sourcejammer.util.CommandLine cmd)
           
private static java.lang.String getResponse(org.sourcejammer.util.CommandLine cmd)
           
private static java.io.File getServerDir(org.sourcejammer.util.CommandLine cmd)
           
private static java.lang.String getServerDirFromConf(java.io.File sjConfDir)
           
private static java.io.File getSJInstallPath(org.sourcejammer.util.CommandLine cmd)
           
private static java.io.File getWarFileLocation(org.sourcejammer.util.CommandLine cmd)
           
private static boolean getYNResponse(org.sourcejammer.util.CommandLine cmd)
           
static int installDirExistsAction(org.sourcejammer.util.CommandLine cmd)
           
private static boolean isServerDirSet(java.io.File sjConfDir)
           
private static boolean isWinOS()
           
static void main(java.lang.String[] args)
           
static void main2(java.lang.String[] args)
           
private static void moveExistingArchives(org.sourcejammer.util.CommandLine cmd, java.io.File serverDir, java.io.File sjConfDir)
           
private static void printIntro(org.sourcejammer.util.CommandLine cmd)
           
static void restoreBackedUpFile(java.io.File dir, java.lang.String fileName)
           
private static void setArchiveAndFileSysDirs(java.io.File serverDir, java.io.File sjConfDir)
           
private static boolean verifyInstallPath(org.sourcejammer.util.CommandLine cmd, java.io.File fl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUIT

private static final java.lang.String QUIT
See Also:
Constant Field Values

PROMPT

private static final java.lang.String PROMPT
See Also:
Constant Field Values

DEFAULT_WIN_SERVER_PATH

private static final java.lang.String DEFAULT_WIN_SERVER_PATH
See Also:
Constant Field Values

DEFAULT_X_SERVER_PATH

private static final java.lang.String DEFAULT_X_SERVER_PATH
See Also:
Constant Field Values

OVERWRITE

private static int OVERWRITE

DELETE

private static int DELETE
Constructor Detail

Install

public Install()
Method Detail

main2

public static void main2(java.lang.String[] args)

main

public static void main(java.lang.String[] args)

copyFile

private static void copyFile(java.lang.String fileName,
                             java.io.File fromDir,
                             java.io.File toDir)
                      throws java.io.IOException
java.io.IOException

getConvertArchiveName

private static java.lang.String getConvertArchiveName(org.sourcejammer.util.CommandLine cmd)
                                               throws java.io.IOException,
                                                      CancelException
java.io.IOException
CancelException

confirmConvert

private static boolean confirmConvert(org.sourcejammer.util.CommandLine cmd)
                               throws java.io.IOException,
                                      CancelException
java.io.IOException
CancelException

moveExistingArchives

private static void moveExistingArchives(org.sourcejammer.util.CommandLine cmd,
                                         java.io.File serverDir,
                                         java.io.File sjConfDir)
                                  throws java.io.IOException,
                                         CancelException,
                                         FileAccessException
java.io.IOException
CancelException
FileAccessException

isServerDirSet

private static boolean isServerDirSet(java.io.File sjConfDir)
                               throws java.io.IOException,
                                      org.xml.sax.SAXException,
                                      javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

getServerDirFromConf

private static java.lang.String getServerDirFromConf(java.io.File sjConfDir)
                                              throws java.io.IOException,
                                                     org.xml.sax.SAXException,
                                                     javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

setArchiveAndFileSysDirs

private static void setArchiveAndFileSysDirs(java.io.File serverDir,
                                             java.io.File sjConfDir)
                                      throws java.io.IOException,
                                             org.xml.sax.SAXException,
                                             javax.xml.parsers.ParserConfigurationException,
                                             javax.xml.transform.TransformerException
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException

backupFile

private static void backupFile(java.io.File dir,
                               java.lang.String fileName)

restoreBackedUpFile

public static void restoreBackedUpFile(java.io.File dir,
                                       java.lang.String fileName)

checkQuit

private static void checkQuit(java.lang.String s)
                       throws CancelException
CancelException

verifyInstallPath

private static boolean verifyInstallPath(org.sourcejammer.util.CommandLine cmd,
                                         java.io.File fl)
                                  throws CancelException,
                                         java.io.IOException
CancelException
java.io.IOException

getSJInstallPath

private static java.io.File getSJInstallPath(org.sourcejammer.util.CommandLine cmd)
                                      throws CancelException,
                                             java.io.IOException
CancelException
java.io.IOException

getResponse

private static java.lang.String getResponse(org.sourcejammer.util.CommandLine cmd)
                                     throws CancelException,
                                            java.io.IOException
CancelException
java.io.IOException

getFileResponse

private static java.io.File getFileResponse(org.sourcejammer.util.CommandLine cmd,
                                            boolean mustExist,
                                            boolean verify)
                                     throws CancelException,
                                            java.io.IOException
CancelException
java.io.IOException

getFileResponse

private static java.io.File getFileResponse(org.sourcejammer.util.CommandLine cmd,
                                            boolean mustExist,
                                            boolean verify,
                                            java.io.File defaultResponse)
                                     throws CancelException,
                                            java.io.IOException
CancelException
java.io.IOException

getYNResponse

private static boolean getYNResponse(org.sourcejammer.util.CommandLine cmd)
                              throws CancelException,
                                     java.io.IOException
CancelException
java.io.IOException

printIntro

private static void printIntro(org.sourcejammer.util.CommandLine cmd)

getPathToServletEngine

private static java.io.File getPathToServletEngine(org.sourcejammer.util.CommandLine cmd)
                                            throws java.io.IOException,
                                                   CancelException
java.io.IOException
CancelException

checkConvert

private static boolean checkConvert(org.sourcejammer.util.CommandLine cmd)
                             throws java.io.IOException,
                                    CancelException
java.io.IOException
CancelException

getPrevInstallPath

private static java.io.File getPrevInstallPath(org.sourcejammer.util.CommandLine cmd)
                                        throws java.io.IOException,
                                               CancelException
java.io.IOException
CancelException

getServerDir

private static java.io.File getServerDir(org.sourcejammer.util.CommandLine cmd)
                                  throws java.io.IOException,
                                         CancelException
java.io.IOException
CancelException

getWarFileLocation

private static java.io.File getWarFileLocation(org.sourcejammer.util.CommandLine cmd)
                                        throws java.io.IOException,
                                               CancelException
java.io.IOException
CancelException

installDirExistsAction

public static int installDirExistsAction(org.sourcejammer.util.CommandLine cmd)
                                  throws java.io.IOException,
                                         CancelException
java.io.IOException
CancelException

isWinOS

private static boolean isWinOS()


Copyright © 2003 Soucejammer project.