org.apache.tools.ant
abstract public class: ProjectComponent [javadoc |
source]
java.lang.Object
org.apache.tools.ant.ProjectComponent
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
Reverse, JspC, UpToDate, SQLExec, BZip2Resource, LineTokenizer, MSVSSCHECKOUT, Javac, Size, Scale, Handler, IPlanetEjbcTask, Argument, CCMCheck, Script, Not, SendEmail, ModifiedSelector, MyTask, Text, DataType, PresentSelector, Input, Name, CompressedResource, FileTokenizer, WsdlToDotnet, Tar, PropertyResource, ArchiveResource, LibFileSet, TarResource, CCMCheckinDefault, Filter, AbstractCvsTask, P4Integrate, AbstractMetamataTask, DummyTaskPrivate, MimeMail, CCMReconfigure, ResourceCount, Touch, SchemaValidate, CvsTagDiff, SOSCheckin, FilterSet, Copy, Transform, CSharp, CovBase, NetRexxC, BCFileSet, VAJExport, RunnableAdapter, DeleteCharacters, XmlProperty, CovMerge, SOSLabel, ExecTask, Rename, P4Reopen, CCCheckin, SOS, ConditionTask, ManifestClassPath, JJTree, DummyTaskOk, FileSize, OrSelector, War, Matches, Truncate, Or, MacroDef, Get, MyTask, Classloader, PatternSet, RenameExtensions, IsReference, ChainableReaderFilter, ClearCase, StringTokenizer, Definer, ScriptDefBase, None, SignedSelector, Tstamp, Resource, SubAnt, MSVSSADD, Description, Symlink, RedirectorElement, Message, FileSet, CCMCheckout, DemuxOutputTask, DotnetCompile, DependSelector, Property, P4Have, DummyTaskWithoutDefaultConstructor, FilterChain, ZipResource, Date, FileResource, MatchingTask, TypeFound, BaseSelectorContainer, Javah, KeySubst, Copydir, ScriptMapper, WLRun, PropertyFile, Available, Dirname, ImplementationSpecificArgument, ArchiveFileSet, Sort, CVSPass, FTP, TaskAdapter, XSLTProcess, DefaultTest, DispatchTask, CvsVersion, CCCheckout, HasMethod, CallTarget, Depend, MyTask, Expand, P4Labelsync, Or, ExtensionSet, P4Submit, PathConvert, NestedContainer, Chgrp, Rpm, CCMklbtype, MyTask, CCMkattr, ResourceComparator, SyncTarget, Exists, SetProxy, ANTLR, Mapper, AndSelector, LoadFile, DepthSelector, WLStop, Replace, myFTP, Exec, BaseResourceCollectionWrapper, Typedef, DotnetBaseMatchingTask, Xor, EchoProperties, StarTeamCheckin, Compare, FileSystem, ScriptSelector, AntStarTeamCheckOut, Ant, Sync, IsReachable, Exit, Cvs, ImplementationSpecificArgument, AbstractJarSignerTask, NoneSelector, ChangeLogTask, StarTeamList, Service, JavaResource, ExtendSelector, ParserSupports, MyCopy, GZipResource, MyPath, TreeBasedTask, ExtensionAdapter, Ear, Jar, RExecTask, MyAddConfigured, Recorder, AbstractAccessTask, AntStructure, SoundTask, P4Delete, CCRmtype, PreSetDef, ZipFileSet, FixCRLF, MSVSSCHECKIN, VAJLoad, XMLCatalog, MakeUrl, GenerateKey, MacroInstance, IsFalse, AbstractSelectorContainer, DiagnosticsTask, BaseSelector, ConcatResource, Socket, Chown, ManifestTask, FileTokenizer, ServerDeploy, CovReport, GUnzip, JarLibManifestTask, SSHBase, Length, JJDoc, IContract, LoadResource, TempFile, Nice, Basename, CCLock, Provider, JlinkTask, NestedCondition, SizeLimitCollection, Tokens, Zip, P4Base, Rectangle, Apt, MParse, IsFileSelected, Delete, CCMkbl, Copyfile, JUnitTask, ImageOperation, Rmic, XMLResultAggregator, ContainsRegexpSelector, NonExistent, BZip2, Last, MSVSSCP, ContainsSelector, DummyTaskProtected, P4Resolve, Untar, DynamicTask, Task, StringTokenizer, DummyTaskAbstract, ContainsString, Deltree, P4Edit, Http, InvertedPatternSet, SOSCheckout, AntFilterReader, EchoXML, SignJar, DirSet, CCMkdir, EjbJar, BuildNumber, Sequential, CCUnlock, SizeSelector, SOSGet, Arc, Ejbc, P4Change, MSVSSGET, AntlibDefinition, Pack, StarTeamCheckout, Trim, JavaCC, ExtensionInfo, MSVSS, Javadoc, WhichResource, TypeSelector, Move, TextElement, JarLibAvailableTask, CCUnCheckout, MAudit, DocletInfo, CCMCreateTask, JDependTask, NotSelector, ExecuteOn, Path, StringResource, Draw, DefBase, P4Add, Cab, URLResource, JDBCTask, MMetrics, And, AntVersion, And, RasterizerTask, Ildasm, UnknownElement, CCMCheckin, VAJLoadProjects, P4Label, Scp, AntTypeTest, P4Revert, Union, MSVSSLABEL, Native2Ascii, Intersect, RegularExpression, ScriptFilter, P4Fstat, Files, P4Counter, DelegatedResourceComparator, BaseResourceCollectionContainer, Concat, WLJspc, ReplaceRegExp, IgnoreBlank, XMLValidateTask, IsSet, ScriptDef, XMLFragment, CCMkelem, ImportTypelib, TarFileSet, LoadProperties, Image, MyTask2, BaseExtendSelector, Taskdef, FilenameSelector, Patch, JSharp, Java, ImportTask, VisualBasicCompile, AbstractScriptComponent, MappingSelector, GZip, TarFileSet, Resources, Rotate, JarLibResolveTask, Parallel, Unpack, PropertySet, TelnetTask, FilterMapper, ReplaceString, First, ResourceSelectorContainer, P4Sync, VAJTask, SplashTask, Ilasm, ContainsRegex, Ellipse, WaitFor, AbstractFileSet, Majority, Restrict, MyFileSet, DifferentSelector, Type, DDCreator, CCMklabel, EmailTask, DependSet, CCUpdate, StarTeamLabel, BUnzip2, Content, Sleep, Coverage, DummyTaskWithoutPublicConstructor, Difference, StarTeamTask, Continuus, IsTrue, SSHExec, DateSelector, TagArgument, DefaultExcludes, Antlib, Mkdir, ImplementationSpecificArgument, Translate, Echo, Pvcs, StyleBook, Chmod, Assertions, MajoritySelector, TransformOperation, ConditionBase, FileUnion, Test, VerifyJar, BasicShape, Retry, ScriptCondition, MSVSSCREATE, IsSigned, FileList, Attrib, DummyTaskPackage, CopyPath, MSVSSHISTORY, VAJImport, ClassfileSet, ReplaceRegex, Substitution, JarLibDisplayTask, SelectSelector, BorlandGenerateClient, Checksum
Base class for components of a project, including tasks and data types.
Provides common facilities.
| Field Summary |
|---|
| protected Project | project | Project object of this component. |
| protected Location | location | Location within the build file of this task definition. |
| protected String | description | Description of this component, if any. |
| Method from org.apache.tools.ant.ProjectComponent Detail: |
public Object clone() throws CloneNotSupportedException {
ProjectComponent pc = (ProjectComponent) super.clone();
pc.setLocation(getLocation());
pc.setProject(getProject());
return pc;
}
|
public String getDescription() {
return description;
}
Returns the description of the current action. |
public Location getLocation() {
return location;
}
Returns the file/location where this task was defined. |
public Project getProject() {
return project;
}
Returns the project to which this component belongs. |
public void log(String msg) {
log(msg, Project.MSG_INFO);
}
Logs a message with the default (INFO) priority. |
public void log(String msg,
int msgLevel) {
if (getProject() != null) {
getProject().log(msg, msgLevel);
} else {
// 'reasonable' default, if the component is used without
// a Project ( for example as a standalone Bean ).
// Most ant components can be used this way.
if (msgLevel < = Project.MSG_INFO) {
System.err.println(msg);
}
}
}
Logs a message with the given priority. |
public void setDescription(String desc) {
description = desc;
}
Sets a description of the current action. This may be used for logging
purposes. |
public void setLocation(Location location) {
this.location = location;
}
Sets the file/location where this task was defined. |
public void setProject(Project project) {
this.project = project;
}
Sets the project object of this component. This method is used by
Project when a component is added to it so that the component has
access to the functions of the project. It should not be used
for any other purpose. |