From f68b0093bd3aa420d3cab4e3a0d9a749326d3292 Mon Sep 17 00:00:00 2001 From: Magesh Umasankar Date: Sat, 2 Feb 2002 08:06:45 +0000 Subject: [PATCH] Keep the constructor chain alive. PR: 4928 Submitted by: acl1@notes.ntrs.com git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271066 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tools/ant/types/ZipFileSet.java | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/main/org/apache/tools/ant/types/ZipFileSet.java b/src/main/org/apache/tools/ant/types/ZipFileSet.java index 275d01ae2..71798e0e4 100644 --- a/src/main/org/apache/tools/ant/types/ZipFileSet.java +++ b/src/main/org/apache/tools/ant/types/ZipFileSet.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2001 The Apache Software Foundation. All rights + * Copyright (c) 2001-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -9,7 +9,7 @@ * are met: * * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. + * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in @@ -17,15 +17,15 @@ * distribution. * * 3. The end-user documentation included with the redistribution, if - * any, must include the following acknowlegement: - * "This product includes software developed by the + * any, must include the following acknowlegement: + * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Ant", and "Apache Software * Foundation" must not be used to endorse or promote products derived - * from this software without prior written permission. For written + * from this software without prior written permission. For written * permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache" @@ -60,7 +60,7 @@ import org.apache.tools.ant.DirectoryScanner; import org.apache.tools.ant.Project; /** - * A ZipFileSet is a FileSet with extra attributes useful in the context of + * A ZipFileSet is a FileSet with extra attributes useful in the context of * Zip/Jar tasks. * * A ZipFileSet extends FileSets with the ability to extract a subset of the @@ -84,6 +84,14 @@ public class ZipFileSet extends FileSet { private String fullpath = ""; private boolean hasDir = false; + public ZipFileSet() { + super(); + } + + protected ZipFileSet(FileSet fileset) { + super(fileset); + } + /** * Set the directory for the fileset. Prevents both "dir" and "src" * from being specified. @@ -172,6 +180,6 @@ public class ZipFileSet extends FileSet { } else { return super.getDirectoryScanner(p); } - } - + } + }