/** * Set the full pathname of the single entry in this fileset. * Prevents both prefix and fullpath from being specified * * @param fullpath the full pathname of the single entry in this fileset. */ public void setFullpath(String fullpath) { checkArchiveAttributesAllowed(); if (!prefix.isEmpty() && !fullpath.isEmpty()) { throw new BuildException(ERROR_PATH_AND_PREFIX); } this.fullpath = fullpath; }
/** * Prepend this prefix to the path for each archive entry. * Prevents both prefix and fullpath from being specified * * @param prefix The prefix to prepend to entries in the archive file. */ public void setPrefix(String prefix) { checkArchiveAttributesAllowed(); if (!prefix.isEmpty() && !fullpath.isEmpty()) { throw new BuildException(ERROR_PATH_AND_PREFIX); } this.prefix = prefix; }
/** * A 3 digit octal string, specify the user, group and * other modes in the standard Unix fashion; * optional, default=0644 * @param octalString a <code>String</code> value */ public void setFileMode(String octalString) { checkArchiveAttributesAllowed(); integerSetFileMode(Integer.parseInt(octalString, BASE_OCTAL)); }
/** * A 3 digit octal string, specify the user, group and * other modes in the standard Unix fashion; * optional, default=0755 * @param octalString a <code>String</code> value */ public void setDirMode(String octalString) { checkArchiveAttributesAllowed(); integerSetDirMode(Integer.parseInt(octalString, BASE_OCTAL)); }
/** * Set the source Archive file for the archivefileset. Prevents both * "dir" and "src" from being specified. * * @param src The archive from which to extract entries. */ public void setSrcResource(Resource src) { checkArchiveAttributesAllowed(); if (hasDir) { throw new BuildException(ERROR_DIR_AND_SRC_ATTRIBUTES); } this.src = src; setChecked(false); }