Class Attrib
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.Task
- 
- org.apache.tools.ant.taskdefs.ExecTask
- 
- org.apache.tools.ant.taskdefs.ExecuteOn
- 
- org.apache.tools.ant.taskdefs.optional.windows.Attrib
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 
 public class Attrib extends ExecuteOn Attrib equivalent for Win32 environments. Note: Attrib parameters /S and /D are not handled.- Since:
- Ant 1.6
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.ExecuteOnExecuteOn.FileDirBoth
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.tools.ant.taskdefs.ExecuteOndestDir, filesets, mapper, mapperElement, srcFilePos, srcIsFirst, targetFilePos, type
 - 
Fields inherited from class org.apache.tools.ant.taskdefs.ExecTaskcmdl, failOnError, newEnvironment, redirector, redirectorElement
 - 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description Attrib()Constructor for Attrib.
 - 
Method SummaryModifier and Type Method Description 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(java.lang.String e)Set the executable.voidsetExecutable(java.lang.String e)Set the executable.voidsetFile(java.io.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.- 
Methods inherited from class org.apache.tools.ant.taskdefs.ExecuteOnadd, add, addDirset, addFilelist, addFileset, createHandler, createMapper, createSrcfile, createTargetfile, getCommandline, getCommandline, getDirs, getFiles, getFilesAndDirs, runExec, runParallel, setDest, setForce, setForwardslash, setIgnoremissing, setRelative, setType, setupRedirector, setVerbose
 - 
Methods inherited from class org.apache.tools.ant.taskdefs.ExecTaskaddConfiguredRedirector, addEnv, createArg, createWatchdog, execute, getOs, getOsFamily, getResolveExecutable, logFlush, maybeSetResultPropertyValue, prepareExec, resolveExecutable, runExecute, setAppend, setCommand, setDir, setError, setErrorProperty, setFailIfExecutionFails, setFailonerror, setInput, setInputString, setLogError, setNewenvironment, setOs, setOsFamily, setOutput, setOutputproperty, setResolveExecutable, setResultProperty, setSearchPath, setSpawn, setTimeout, setTimeout, setVMLauncher
 - 
Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
setFilepublic void setFile(java.io.File src) A file to be attribed.- Parameters:
- src- a file
 
 - 
setReadonlypublic void setReadonly(boolean value) Set the ReadOnly file attribute.- Parameters:
- value- a- booleanvalue
 
 - 
setArchivepublic void setArchive(boolean value) Set the Archive file attribute.- Parameters:
- value- a- booleanvalue
 
 - 
setSystempublic void setSystem(boolean value) Set the System file attribute.- Parameters:
- value- a- booleanvalue
 
 - 
setHiddenpublic void setHidden(boolean value) Set the Hidden file attribute.- Parameters:
- value- a- booleanvalue
 
 - 
checkConfigurationprotected void checkConfiguration() Check the attributes.- Overrides:
- checkConfigurationin class- ExecuteOn
 
 - 
setExecutablepublic void setExecutable(java.lang.String e) Set the executable. This is not allowed, and it always throws a BuildException.- Overrides:
- setExecutablein class- ExecTask
- Parameters:
- e- ignored
 
 - 
setCommandpublic void setCommand(java.lang.String e) Set the executable. This is not allowed, and it always throws a BuildException.- Parameters:
- e- ignored
 
 - 
setAddsourcefilepublic void setAddsourcefile(boolean b) Add source file. This is not allowed, and it always throws a BuildException.- Overrides:
- setAddsourcefilein class- ExecuteOn
- Parameters:
- b- ignored
 
 - 
setSkipEmptyFilesetspublic void setSkipEmptyFilesets(boolean skip) Set skip empty file sets. This is not allowed, and it always throws a BuildException.- Overrides:
- setSkipEmptyFilesetsin class- ExecuteOn
- Parameters:
- skip- ignored
 
 - 
setParallelpublic void setParallel(boolean parallel) Set parallel. This is not allowed, and it always throws a BuildException.- Overrides:
- setParallelin class- ExecuteOn
- Parameters:
- parallel- ignored
 
 - 
setMaxParallelpublic void setMaxParallel(int max) Set max parallel. This is not allowed, and it always throws a BuildException.- Overrides:
- setMaxParallelin class- ExecuteOn
- Parameters:
- max- ignored
 
 
- 
 
-