wt.tools.boot
Class MakeJar
java.lang.Object
wt.tools.boot.MakeJar
- public class MakeJar
- extends Object
Constructor Summary |
MakeJar(String jar_file_name,
MakeJar mj)
|
MakeJar(String jar_file_name,
String config_file_name,
MakeJar parent)
|
MakeJar(String jar_file_name,
String root_dir_name,
String config_file_name,
boolean verbose,
boolean recurse)
|
MakeJar(String jar_file_name,
String root_dir_name,
String config_file_name,
WTProperties wt_properties,
boolean verbose,
boolean recurse)
|
Method Summary |
boolean |
accept(String name)
|
private void |
addClassPathManifest(ZipOutputStream zos,
String class_path)
|
private boolean |
addFile(ZipOutputStream zos,
File file)
|
private boolean |
addFile(ZipOutputStream zos,
ZipEntry zipEntry)
|
private File[] |
expand(File root)
|
private void |
expand(File base,
String[] names,
Vector files,
Hashtable hashtable)
|
private void |
expand(Vector entries,
Hashtable entryToZipTable,
ZipFile jar)
|
private void |
gc()
|
static String |
getDefaultJarVersion()
|
static String |
getDefaultJarVersion(String vmVersion)
|
private static String[] |
getDefaultJarVersionComponents(String vmVersion)
|
static String |
getDefaultUpdateVersion()
|
private String |
getMessage(String format,
Object[] args)
|
private static String |
getVersionStringFromComponents(String[] versionComponents)
|
static String |
incrementDottedHex(String dottedHex,
String vmVersion)
|
private static void |
initDefaultJarVersionData()
|
private void |
localize()
|
static void |
main(String[] args)
|
static int |
processJarList(String codebasePath,
File[] jarList)
|
private boolean |
readConfigFile()
|
static int |
run_main(String[] args)
|
void |
run()
|
boolean |
trim(String name)
|
private void |
updateVersion(File jar)
|
void |
updateVersionOnly()
|
(package private) static void |
updateVersionOnly(File jar,
String updateVersion)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionID
private static final String versionID
- See Also:
- Constant Field Values
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
EXIT_OK
private static final int EXIT_OK
- See Also:
- Constant Field Values
EXIT_ERROR1
private static final int EXIT_ERROR1
- See Also:
- Constant Field Values
EXIT_ERROR2
private static final int EXIT_ERROR2
- See Also:
- Constant Field Values
FILESADDED
private String FILESADDED
FILESFOUND
private String FILESFOUND
SEARCHING
private String SEARCHING
CREATING
private String CREATING
PROCESSING
private String PROCESSING
CHECKING
private String CHECKING
ADDING
private String ADDING
DEFLATED
private String DEFLATED
INCREASEHEAP
private String INCREASEHEAP
JARUPDATED
private String JARUPDATED
NOCHANGE
private String NOCHANGE
jarFileName
private String jarFileName
rootDirName
private String rootDirName
configFileName
private String configFileName
configDirectives
private String[] configDirectives
configPatterns
private String[] configPatterns
configClassPath
private String configClassPath
verbose
private boolean verbose
recurse
private boolean recurse
updateVersion
private String updateVersion
done
private Vector done
files
private File[] files
libFiles
private ZipFile[] libFiles
libZipEntries
private Vector libZipEntries
entryToZipTable
private Hashtable entryToZipTable
buf
private byte[] buf
defaultUpdateVersion
private static String defaultUpdateVersion
defaultUpdateVersionLock
private static final Object defaultUpdateVersionLock
default13VersionComponents
private static String[] default13VersionComponents
default14VersionComponents
private static String[] default14VersionComponents
default13VersionString
private static String default13VersionString
default14VersionString
private static String default14VersionString
defaultVersionComponentsLock
private static final Object defaultVersionComponentsLock
MakeJar
public MakeJar(String jar_file_name,
String root_dir_name,
String config_file_name,
WTProperties wt_properties,
boolean verbose,
boolean recurse)
MakeJar
public MakeJar(String jar_file_name,
String root_dir_name,
String config_file_name,
boolean verbose,
boolean recurse)
MakeJar
public MakeJar(String jar_file_name,
String config_file_name,
MakeJar parent)
MakeJar
public MakeJar(String jar_file_name,
MakeJar mj)
main
public static void main(String[] args)
run_main
public static int run_main(String[] args)
processJarList
public static int processJarList(String codebasePath,
File[] jarList)
updateVersionOnly
public void updateVersionOnly()
run
public void run()
throws IOException
- Throws:
IOException
updateVersion
private void updateVersion(File jar)
updateVersionOnly
static void updateVersionOnly(File jar,
String updateVersion)
getDefaultUpdateVersion
public static final String getDefaultUpdateVersion()
initDefaultJarVersionData
private static void initDefaultJarVersionData()
getVersionStringFromComponents
private static String getVersionStringFromComponents(String[] versionComponents)
getDefaultJarVersionComponents
private static String[] getDefaultJarVersionComponents(String vmVersion)
getDefaultJarVersion
public static String getDefaultJarVersion()
getDefaultJarVersion
public static String getDefaultJarVersion(String vmVersion)
incrementDottedHex
public static String incrementDottedHex(String dottedHex,
String vmVersion)
readConfigFile
private boolean readConfigFile()
throws IOException
- Throws:
IOException
expand
private void expand(Vector entries,
Hashtable entryToZipTable,
ZipFile jar)
throws IOException
- Throws:
IOException
expand
private File[] expand(File root)
throws IOException
- Throws:
IOException
expand
private void expand(File base,
String[] names,
Vector files,
Hashtable hashtable)
throws IOException
- Throws:
IOException
addFile
private boolean addFile(ZipOutputStream zos,
ZipEntry zipEntry)
throws IOException
- Throws:
IOException
addFile
private boolean addFile(ZipOutputStream zos,
File file)
throws IOException
- Throws:
IOException
accept
public boolean accept(String name)
trim
public boolean trim(String name)
gc
private void gc()
addClassPathManifest
private void addClassPathManifest(ZipOutputStream zos,
String class_path)
throws IOException
- Throws:
IOException
localize
private void localize()
getMessage
private String getMessage(String format,
Object[] args)