01: /*******************************************************************************
02: * Copyright (c) 2004 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM - Initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.build.ant;
11:
12: public class TarFileSet extends ZipFileSet {
13:
14: /**
15: * @param dir
16: * @param file
17: * @param defaultexcludes
18: * @param includes
19: * @param includesfile
20: * @param excludes
21: * @param excludesfile
22: * @param prefix
23: * @param casesensitive
24: */
25: public TarFileSet(String dir, boolean file, String defaultexcludes,
26: String includes, String includesfile, String excludes,
27: String excludesfile, String prefix, String casesensitive,
28: String permission) {
29: super (dir, file, defaultexcludes, includes, includesfile,
30: excludes, excludesfile, prefix, casesensitive, null);
31: }
32:
33: protected void print(AntScript script) {
34: script.printTab();
35: script.print("<tarfileset"); //$NON-NLS-1$
36: if (file)
37: script.printAttribute("file", dir, false); //$NON-NLS-1$
38: else
39: script.printAttribute("dir", dir, false); //$NON-NLS-1$
40: script
41: .printAttribute(
42: "defaultexcludes", defaultexcludes, false); //$NON-NLS-1$
43: script.printAttribute("includes", includes, false); //$NON-NLS-1$
44: script.printAttribute("includesfile", includesfile, false); //$NON-NLS-1$
45: script.printAttribute("excludes", excludes, false); //$NON-NLS-1$
46: script.printAttribute("excludesfile", excludesfile, false); //$NON-NLS-1$
47: script.printAttribute("casesensitive", casesensitive, false); //$NON-NLS-1$
48: if (file)
49: script.printAttribute("fullpath", prefix, false); //$NON-NLS-1$
50: else
51: script.printAttribute("prefix", prefix, false); //$NON-NLS-1$
52:
53: if (file)
54: script.printAttribute("filemode", permission, false); //$NON-NLS-1$
55: else
56: script.printAttribute("dirmode", permission, false); //$NON-NLS-1$
57:
58: script.println("/>"); //$NON-NLS-1$
59: }
60: }
|