org.redline_rpm.ant.EmptyDir Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redline Show documentation
Show all versions of redline Show documentation
Redline is a pure Java library for manipulating RPM Package Manager packages.
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);
}
}