Methods Summary |
---|
private void | addArg(boolean sign, java.lang.String attribute)
createArg().setValue(getSignString(sign) + attribute);
haveAttr = true;
|
protected void | checkConfiguration()Check the attributes.
if (!haveAttr()) {
throw new BuildException("Missing attribute parameter",
getLocation());
}
super.checkConfiguration();
|
private static java.lang.String | getSignString(boolean attr)
return (attr ? SET : UNSET);
|
private boolean | haveAttr()
return haveAttr;
|
protected boolean | isValidOs()Check if the os is valid.
Always include windows
return Os.isFamily("windows") && super.isValidOs();
|
public void | setAddsourcefile(boolean b)Add source file.
This is not allowed, and it always throws a BuildException.
throw new BuildException(getTaskType()
+ " doesn\'t support the addsourcefile attribute", getLocation());
|
public void | setArchive(boolean value)Set the Archive file attribute.
addArg(value, ATTR_ARCHIVE);
|
public void | setCommand(java.lang.String e)Set the executable.
This is not allowed, and it always throws a BuildException.
throw new BuildException(getTaskType()
+ " doesn\'t support the command attribute", getLocation());
|
public void | setExecutable(java.lang.String e)Set the executable.
This is not allowed, and it always throws a BuildException.
throw new BuildException(getTaskType()
+ " doesn\'t support the executable attribute", getLocation());
|
public void | setFile(java.io.File src)A file to be attribed.
FileSet fs = new FileSet();
fs.setFile(src);
addFileset(fs);
|
public void | setHidden(boolean value)Set the Hidden file attribute.
addArg(value, ATTR_HIDDEN);
|
public void | setMaxParallel(int max)Set max parallel.
This is not allowed, and it always throws a BuildException.
throw new BuildException(getTaskType()
+ " doesn\'t support the maxparallel attribute",
getLocation());
|
public void | setParallel(boolean parallel)Set parallel.
This is not allowed, and it always throws a BuildException.
throw new BuildException(getTaskType()
+ " doesn\'t support the parallel attribute",
getLocation());
|
public void | setReadonly(boolean value)Set the ReadOnly file attribute.
addArg(value, ATTR_READONLY);
|
public void | setSkipEmptyFilesets(boolean skip)Set skip empty file sets.
This is not allowed, and it always throws a BuildException.
throw new BuildException(getTaskType() + " doesn\'t support the "
+ "skipemptyfileset attribute",
getLocation());
|
public void | setSystem(boolean value)Set the System file attribute.
addArg(value, ATTR_SYSTEM);
|