|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Attrib equivalent for Win32 environments. Note: Attrib parameters /S and /D are not handled.
Nested Class Summary |
Nested classes inherited from class org.apache.tools.ant.taskdefs.ExecuteOn |
ExecuteOn.FileDirBoth |
Field Summary |
Fields inherited from class org.apache.tools.ant.taskdefs.ExecuteOn |
destDir, filesets, mapper, mapperElement, srcFilePos, srcIsFirst, targetFilePos, type |
Fields inherited from class org.apache.tools.ant.taskdefs.ExecTask |
cmdl, failOnError, newEnvironment, redirector, redirectorElement |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
Attrib()
|
Method Summary | |
protected void |
checkConfiguration()
Check the configuration of this ExecuteOn instance. |
protected boolean |
isValidOs()
Is this the OS the user wanted? |
void |
setAddsourcefile(boolean b)
Set whether to send the source file name on the command line. |
void |
setArchive(boolean value)
set the Archive file attribute |
void |
setCommand(java.lang.String e)
|
void |
setExecutable(java.lang.String e)
Set the name of the executable program. |
void |
setFile(java.io.File src)
|
void |
setHidden(boolean value)
set the Hidden file attribute |
void |
setMaxParallel(int max)
Limit the command line length by passing at maximum this many sourcefiles at once to the command. |
void |
setParallel(boolean parallel)
Set whether to execute in parallel mode. |
void |
setReadonly(boolean value)
set the ReadOnly file attribute |
void |
setSkipEmptyFilesets(boolean skip)
Set whether empty filesets will be skipped. |
void |
setSystem(boolean value)
set the System file attribute |
Methods inherited from class org.apache.tools.ant.taskdefs.ExecuteOn |
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.ExecTask |
addConfiguredRedirector, addEnv, createArg, createWatchdog, execute, getResolveExecutable, logFlush, maybeSetResultPropertyValue, prepareExec, resolveExecutable, runExecute, setAppend, setCommand, setDir, setError, setErrorProperty, setFailIfExecutionFails, setFailonerror, setInput, setInputString, setLogError, setNewenvironment, setOs, setOutput, setOutputproperty, setResolveExecutable, setResultProperty, setSearchPath, setSpawn, setTimeout, setTimeout, setVMLauncher |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Attrib()
Method Detail |
public void setFile(java.io.File src)
public void setReadonly(boolean value)
public void setArchive(boolean value)
public void setSystem(boolean value)
public void setHidden(boolean value)
protected void checkConfiguration()
ExecuteOn
checkConfiguration
in class ExecuteOn
public void setExecutable(java.lang.String e)
ExecTask
setExecutable
in class ExecTask
e
- the name of the executable program.public void setCommand(java.lang.String e)
public void setAddsourcefile(boolean b)
ExecuteOn
Defaults to true
.
setAddsourcefile
in class ExecuteOn
b
- whether to add the source file to the command line.public void setSkipEmptyFilesets(boolean skip)
ExecuteOn
setSkipEmptyFilesets
in class ExecuteOn
skip
- whether to skip empty filesets.public void setParallel(boolean parallel)
ExecuteOn
setParallel
in class ExecuteOn
parallel
- whether to run in parallel.public void setMaxParallel(int max)
ExecuteOn
Set to <= 0 for unlimited - this is the default.
setMaxParallel
in class ExecuteOn
max
- int
maximum number of sourcefiles
passed to the executable.protected boolean isValidOs()
ExecTask
isValidOs
in class ExecTask
true
if the os under which Ant is running is
matches one os in the os attribute
or if the os attribute is nullfalse
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |