org.apache.tools.ant.taskdefs.optional.windows

Class Attrib

public class Attrib extends ExecuteOn

Attrib equivalent for Win32 environments. Note: Attrib parameters /S and /D are not handled.

Since: Ant 1.6

Constructor Summary
Attrib()
Constructor for Attrib.
Method Summary
protected voidcheckConfiguration()
Check the attributes.
protected booleanisValidOs()
Check if the os is valid.
voidsetAddsourcefile(boolean b)
Add source file.
voidsetArchive(boolean value)
Set the Archive file attribute.
voidsetCommand(String e)
Set the executable.
voidsetExecutable(String e)
Set the executable.
voidsetFile(File src)
A file to be attribed.
voidsetHidden(boolean value)
Set the Hidden file attribute.
voidsetMaxParallel(int max)
Set max parallel.
voidsetParallel(boolean parallel)
Set parallel.
voidsetReadonly(boolean value)
Set the ReadOnly file attribute.
voidsetSkipEmptyFilesets(boolean skip)
Set skip empty file sets.
voidsetSystem(boolean value)
Set the System file attribute.

Constructor Detail

Attrib

public Attrib()
Constructor for Attrib.

Method Detail

checkConfiguration

protected void checkConfiguration()
Check the attributes.

isValidOs

protected boolean isValidOs()
Check if the os is valid. Always include windows

Returns: true if the os is valid.

setAddsourcefile

public void setAddsourcefile(boolean b)
Add source file. This is not allowed, and it always throws a BuildException.

Parameters: b ignored

UNKNOWN: ignore="true"

setArchive

public void setArchive(boolean value)
Set the Archive file attribute.

Parameters: value a boolean value

setCommand

public void setCommand(String e)
Set the executable. This is not allowed, and it always throws a BuildException.

Parameters: e ignored

UNKNOWN: ignore="true"

setExecutable

public void setExecutable(String e)
Set the executable. This is not allowed, and it always throws a BuildException.

Parameters: e ignored

UNKNOWN: ignore="true"

setFile

public void setFile(File src)
A file to be attribed.

Parameters: src a file

setHidden

public void setHidden(boolean value)
Set the Hidden file attribute.

Parameters: value a boolean value

setMaxParallel

public void setMaxParallel(int max)
Set max parallel. This is not allowed, and it always throws a BuildException.

Parameters: max ignored

UNKNOWN: ignore="true"

setParallel

public void setParallel(boolean parallel)
Set parallel. This is not allowed, and it always throws a BuildException.

Parameters: parallel ignored

UNKNOWN: ignore="true"

setReadonly

public void setReadonly(boolean value)
Set the ReadOnly file attribute.

Parameters: value a boolean value

setSkipEmptyFilesets

public void setSkipEmptyFilesets(boolean skip)
Set skip empty file sets. This is not allowed, and it always throws a BuildException.

Parameters: skip ignored

UNKNOWN: ignore="true"

setSystem

public void setSystem(boolean value)
Set the System file attribute.

Parameters: value a boolean value