/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved.
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: Manifest.java,v 1.3 2009/02/17 18:41:41 kevinserwin Exp $
*/
static boolean verbose;
static char wildCard;
static boolean recursive;
boolean intoJar;
boolean intoWar;
static boolean overwrite;
public void setDefaultProperties() {
}
private void getProperties() {
if ((includePatternString != null) &&
includePattern = new LinkedList();
int offset = 0;
do{
} else{
}
}
break;
}
} while (true);
}
if ((excludePatternString!=null) &&
excludePattern = new LinkedList();
int offset = 0;
do{
} else{
}
}
break;
}
} while (true);
}
if (wildCardString != null) {
}
}
if (srcFilePath == null) {
return false;
}
this.srcFilePath = srcFilePath;
return false;
}
return true;
}
}
}
return digestResult.propertyNames();
}
}
private void writeDestFile() {
try {
if (destFile.isDirectory()) {
} else{
destFile, true));
} else{
parentFile.mkdirs();
}
destFile));
}
}
if (headerFilePath != null) {
}
}
} else {
// Create Date object.
//Specify the desired date format
//Create object of SimpleDateFormat and pass the desired date format.
}
} catch (IOException ex) {
} finally {
try {
} catch (IOException ignored) {
}
}
}
}
private void createManifest() {
digestResult = new Properties();
intoWar);
}
if (setSourceFile(srcFilePath) == false) {
return false;
}
if (verbose) {
if (destFilePath != null) {
} else {
}
}
if (destFilePath != null) {
this.destFilePath = destFilePath;
} else {
// Create Date object.
//Specify the desired date format
//Create object of SimpleDateFormat and pass the desired date format.
}
return true;
}
m.getProperties();
true, true);
}
/**
* Prints the usage for using the patch generation utility
*
*/
"=<latest zip file>\"");
"=<name of the entry which indicate version>\"");
"=<pattern of manifest file>\"");
"=<name of the manifest file in the resulting file>\"");
"=<char to be used as wildcard>\"");
DEFAULT_WILDCARD_CHAR + "].");
"=<properties file indicate version>\"");
"[Optional].");
"=<propeties file has the above directive defined>\"");
"[Optional].");
}
}