All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.redline_rpm.ant.EmptyDir Maven / Gradle / Ivy

Go to download

Redline is a pure Java library for manipulating RPM Package Manager packages.

There is a newer version: 1.2.10
Show newest version
package org.redline_rpm.ant;

import org.apache.tools.zip.UnixStat;
/**
 * Object describing an ampty dir
 * to be added to the rpm without the
 * needing to exist beforehand.
 */
public class EmptyDir {

    protected String path;
    protected String username;
    protected String group;
    protected int filemode = -1;
    protected int dirmode = -1;

    public String getPath() {
        return this.path;
    }
    public void setPath( String path) {
        this.path = path;
    }
    public String getUsername() {
        return this.username;
    }
    public void setUsername( String username) {
        this.username = username;
    }
    public String getGroup() {
        return this.group;
    }
    public void setGroup( String group) {
        this.group = group;
    }
    public int getFilemode() {
        return this.filemode;
    }
    public void setFilemode( String filemode) {
        this.filemode = UnixStat.FILE_FLAG | Integer.parseInt(filemode, 8);
    }
    public int getDirmode() {
        return this.dirmode;
    }
    public void setDirmode( String dirmode) {
        this.dirmode = UnixStat.DIR_FLAG | Integer.parseInt(dirmode, 8);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy