Browse Source

Whitespace / contants / javadoc

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@396465 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 19 years ago
parent
commit
7529971b89
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      src/main/org/apache/tools/ant/types/ArchiveFileSet.java

+ 8
- 5
src/main/org/apache/tools/ant/types/ArchiveFileSet.java View File

@@ -36,6 +36,8 @@ import org.apache.tools.zip.UnixStat;
*/ */
public abstract class ArchiveFileSet extends FileSet { public abstract class ArchiveFileSet extends FileSet {


private static final int BASE_OCTAL = 8;

/** /**
* Default value for the dirmode attribute. * Default value for the dirmode attribute.
* *
@@ -158,6 +160,7 @@ public abstract class ArchiveFileSet extends FileSet {


/** /**
* Get the archive file from which entries will be extracted. * Get the archive file from which entries will be extracted.
* @return the archive in case the archive is a file, null otherwise.
*/ */
public File getSrc() { public File getSrc() {
if (src instanceof FileResource) { if (src instanceof FileResource) {
@@ -165,7 +168,7 @@ public abstract class ArchiveFileSet extends FileSet {
} }
return null; return null;
} }
/** /**
* Prepend this prefix to the path for each archive entry. * Prepend this prefix to the path for each archive entry.
* Prevents both prefix and fullpath from being specified * Prevents both prefix and fullpath from being specified
@@ -190,7 +193,7 @@ public abstract class ArchiveFileSet extends FileSet {
} }
return prefix; return prefix;
} }
/** /**
* Set the full pathname of the single entry in this fileset. * Set the full pathname of the single entry in this fileset.
* Prevents both prefix and fullpath from being specified * Prevents both prefix and fullpath from being specified
@@ -215,7 +218,7 @@ public abstract class ArchiveFileSet extends FileSet {
} }
return fullpath; return fullpath;
} }
/** /**
* Creates a scanner for this type of archive. * Creates a scanner for this type of archive.
*/ */
@@ -300,7 +303,7 @@ public abstract class ArchiveFileSet extends FileSet {
* @param octalString a <code>String</code> value * @param octalString a <code>String</code> value
*/ */
public void setFileMode(String octalString) { public void setFileMode(String octalString) {
integerSetFileMode(Integer.parseInt(octalString, 8));
integerSetFileMode(Integer.parseInt(octalString, BASE_OCTAL));
} }


/** /**
@@ -348,7 +351,7 @@ public abstract class ArchiveFileSet extends FileSet {
* @param octalString a <code>String</code> value * @param octalString a <code>String</code> value
*/ */
public void setDirMode(String octalString) { public void setDirMode(String octalString) {
integerSetDirMode(Integer.parseInt(octalString, 8));
integerSetDirMode(Integer.parseInt(octalString, BASE_OCTAL));
} }


/** /**


Loading…
Cancel
Save