org.fraid.utils
Class InstallUtils
java.lang.Object
org.fraid.utils.InstallUtils
public class InstallUtils
- extends java.lang.Object
Field Summary |
protected static java.lang.String |
sJarFileName
|
Method Summary |
static void |
copyFile(java.lang.String aFileName,
java.lang.String aDirName)
|
static void |
createBatchFile(java.lang.String aFraidPath,
java.lang.String aClassPath)
|
static java.io.File |
createDir(java.lang.String aDirPath,
java.io.PrintStream aOut)
|
static void |
createDirectoryStructure(java.lang.String aInstallPath,
java.io.PrintStream aOut,
java.lang.String aExecJarName)
|
static void |
createShellScript(java.lang.String aFraidPath,
java.lang.String aClassPath)
|
static void |
doMain(java.io.File aInstallDir,
java.lang.String aExecJarName)
|
static java.lang.String |
getFileNameOnly(java.lang.String aPath)
|
static java.io.File |
getInstallDir(java.lang.String[] args)
|
static java.lang.String |
getInstallJarName()
|
static int |
inflateFiles(java.lang.String aJarFileName,
java.lang.String aFileNamePattern,
java.lang.String aInstallDirName,
java.io.PrintStream aOut)
|
static void |
inflateJarDir(java.lang.String aJarFileName,
java.lang.String aDirToInflate,
java.lang.String aInstallDirName,
java.io.PrintStream aOut)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sJarFileName
protected static java.lang.String sJarFileName
InstallUtils
public InstallUtils()
getInstallJarName
public static java.lang.String getInstallJarName()
throws java.lang.Exception
- Throws:
java.lang.Exception
getInstallDir
public static java.io.File getInstallDir(java.lang.String[] args)
createShellScript
public static void createShellScript(java.lang.String aFraidPath,
java.lang.String aClassPath)
throws java.io.IOException
- Throws:
java.io.IOException
createBatchFile
public static void createBatchFile(java.lang.String aFraidPath,
java.lang.String aClassPath)
throws java.io.IOException
- Throws:
java.io.IOException
createDir
public static java.io.File createDir(java.lang.String aDirPath,
java.io.PrintStream aOut)
throws java.io.IOException
- Throws:
java.io.IOException
createDirectoryStructure
public static void createDirectoryStructure(java.lang.String aInstallPath,
java.io.PrintStream aOut,
java.lang.String aExecJarName)
throws java.io.IOException
- Throws:
java.io.IOException
copyFile
public static void copyFile(java.lang.String aFileName,
java.lang.String aDirName)
throws java.io.IOException
- Throws:
java.io.IOException
inflateJarDir
public static void inflateJarDir(java.lang.String aJarFileName,
java.lang.String aDirToInflate,
java.lang.String aInstallDirName,
java.io.PrintStream aOut)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
getFileNameOnly
public static java.lang.String getFileNameOnly(java.lang.String aPath)
inflateFiles
public static int inflateFiles(java.lang.String aJarFileName,
java.lang.String aFileNamePattern,
java.lang.String aInstallDirName,
java.io.PrintStream aOut)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
doMain
public static void doMain(java.io.File aInstallDir,
java.lang.String aExecJarName)
throws java.lang.Exception
- Throws:
java.lang.Exception
Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.