a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* The contents of this file are subject to the terms
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* of the Common Development and Distribution License
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* (the License). You may not use this file except in
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* compliance with the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* You can obtain a copy of the License at
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* https://opensso.dev.java.net/public/CDDLv1.0.html or
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* See the License for the specific language governing
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* permission and limitations under the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* When distributing Covered Code, include this CDDL
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* Header Notice in each file and include the License file
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* If applicable, add the following below the CDDL Header,
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* with the fields enclosed by brackets [] replaced by
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* your own identifying information:
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* "Portions Copyrighted [year] [name of copyright owner]"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster* $Id: FilesDigester.java,v 1.2 2008/09/04 22:26:12 kevinserwin Exp $
f948ca04a28ccfeed9633bf4b0fb0d2c59c37478David Lunapublic class FilesDigester implements ManifestConstants {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * FileDigester constructor
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @param includePattern A list of patterns of file name should be included.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @param excludePattern A list of patterns of file name should be excluded.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @param wildCard The wildcard character which is used in the pattern.
return null;
if (recursive) {
intoJar);
byte[] digestedbyte){