Java Doc for Target.java in  » Build » ANT » org » apache » tools » ant » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Build » ANT » org.apache.tools.ant 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tools.ant.Target

Target
public class Target implements TaskContainer(Code)
Class to implement a target object with required parameters.



Constructor Summary
public  Target()
     Default constructor.
public  Target(Target other)
     Cloning constructor.

Method Summary
public  voidaddDataType(RuntimeConfigurable r)
     Adds the wrapper for a data type element to this target.
public  voidaddDependency(String dependency)
     Adds a dependency to this target.
public  voidaddTask(Task task)
     Adds a task to this target.
Parameters:
  task - The task to be added.
public  booleandependsOn(String other)
     Does this target depend on the named target?
Parameters:
  other - the other named target.
public  voidexecute()
     Executes the target if the "if" and "unless" conditions are satisfied.
public  EnumerationgetDependencies()
     Returns an enumeration of the dependencies of this target.
public  StringgetDescription()
     Returns the description of this target.
public  StringgetIf()
     Returns the "if" property condition of this target.
public  LocationgetLocation()
     Get the location of this target's definition.
public  StringgetName()
     Returns the name of this target.
public  ProjectgetProject()
     Returns the project this target belongs to.
public  Task[]getTasks()
     Returns the current set of tasks to be executed by this target.
public  StringgetUnless()
     Returns the "unless" property condition of this target.
final public  voidperformTasks()
     Performs the tasks within this target (if the conditions are met), firing target started/target finished messages around a call to execute.
 voidreplaceChild(Task el, RuntimeConfigurable o)
     Replaces all occurrences of the given task in the list of children with the replacement data type wrapper.
 voidreplaceChild(Task el, Task o)
     Replaces all occurrences of the given task in the list of children with the replacement task.
public  voidsetDepends(String depS)
     Sets the list of targets this target is dependent on. The targets themselves are not resolved at this time.
Parameters:
  depS - A comma-separated list of targets this targetdepends on.
public  voidsetDescription(String description)
     Sets the description of this target.
public  voidsetIf(String property)
     Sets the "if" condition to test on execution.
public  voidsetLocation(Location location)
     Sets the location of this target's definition.
public  voidsetName(String name)
     Sets the name of this target.
Parameters:
  name - The name of this target.
public  voidsetProject(Project project)
     Sets the project this target belongs to.
public  voidsetUnless(String property)
     Sets the "unless" condition to test on execution.
public  StringtoString()
     Returns the name of this target.


Constructor Detail
Target
public Target()(Code)
Default constructor.



Target
public Target(Target other)(Code)
Cloning constructor.
Parameters:
  other - the Target to clone.




Method Detail
addDataType
public void addDataType(RuntimeConfigurable r)(Code)
Adds the wrapper for a data type element to this target.
Parameters:
  r - The wrapper for the data type element to be added.Must not be null.



addDependency
public void addDependency(String dependency)(Code)
Adds a dependency to this target.
Parameters:
  dependency - The name of a target this target is dependent on.Must not be null.



addTask
public void addTask(Task task)(Code)
Adds a task to this target.
Parameters:
  task - The task to be added. Must not be null.



dependsOn
public boolean dependsOn(String other)(Code)
Does this target depend on the named target?
Parameters:
  other - the other named target. true if the target does depend on the named target
since:
   Ant 1.6



execute
public void execute() throws BuildException(Code)
Executes the target if the "if" and "unless" conditions are satisfied. Dependency checking should be done before calling this method, as it does no checking of its own. If either the "if" or "unless" test prevents this target from being executed, a verbose message is logged giving the reason. It is recommended that clients of this class call performTasks rather than this method so that appropriate build events are fired.
exception:
  BuildException - if any of the tasks fail or if a data typeconfiguration fails.
See Also:   Target.performTasks()
See Also:   Target.setIf(String)
See Also:   Target.setUnless(String)



getDependencies
public Enumeration getDependencies()(Code)
Returns an enumeration of the dependencies of this target. an enumeration of the dependencies of this target



getDescription
public String getDescription()(Code)
Returns the description of this target. the description of this target, or null if nodescription is available.



getIf
public String getIf()(Code)
Returns the "if" property condition of this target. the "if" property condition or null if no"if" condition had been defined.
since:
   1.6.2



getLocation
public Location getLocation()(Code)
Get the location of this target's definition. Location
since:
   1.6.2



getName
public String getName()(Code)
Returns the name of this target. the name of this target, or null if thename has not been set yet.



getProject
public Project getProject()(Code)
Returns the project this target belongs to. The project this target belongs to, or null ifthe project has not been set yet.



getTasks
public Task[] getTasks()(Code)
Returns the current set of tasks to be executed by this target. an array of the tasks currently within this target



getUnless
public String getUnless()(Code)
Returns the "unless" property condition of this target. the "unless" property condition or nullif no "unless" condition had been defined.
since:
   1.6.2



performTasks
final public void performTasks()(Code)
Performs the tasks within this target (if the conditions are met), firing target started/target finished messages around a call to execute.
See Also:   Target.execute()



replaceChild
void replaceChild(Task el, RuntimeConfigurable o)(Code)
Replaces all occurrences of the given task in the list of children with the replacement data type wrapper.
Parameters:
  el - The task to replace.Must not be null.
Parameters:
  o - The data type wrapper to replace el with.



replaceChild
void replaceChild(Task el, Task o)(Code)
Replaces all occurrences of the given task in the list of children with the replacement task.
Parameters:
  el - The task to replace.Must not be null.
Parameters:
  o - The task to replace el with.



setDepends
public void setDepends(String depS)(Code)
Sets the list of targets this target is dependent on. The targets themselves are not resolved at this time.
Parameters:
  depS - A comma-separated list of targets this targetdepends on. Must not be null.



setDescription
public void setDescription(String description)(Code)
Sets the description of this target.
Parameters:
  description - The description for this target.May be null, indicating that nodescription is available.



setIf
public void setIf(String property)(Code)
Sets the "if" condition to test on execution. This is the name of a property to test for existence - if the property is not set, the task will not execute. The property goes through property substitution once before testing, so if property foo has value bar, setting the "if" condition to ${foo}_x will mean that the task will only execute if property bar_x is set.
Parameters:
  property - The property condition to test on execution.May be null, in which caseno "if" test is performed.



setLocation
public void setLocation(Location location)(Code)
Sets the location of this target's definition.
Parameters:
  location - Location
since:
   1.6.2



setName
public void setName(String name)(Code)
Sets the name of this target.
Parameters:
  name - The name of this target. Should not be null.



setProject
public void setProject(Project project)(Code)
Sets the project this target belongs to.
Parameters:
  project - The project this target belongs to.Must not be null.



setUnless
public void setUnless(String property)(Code)
Sets the "unless" condition to test on execution. This is the name of a property to test for existence - if the property is set, the task will not execute. The property goes through property substitution once before testing, so if property foo has value bar, setting the "unless" condition to ${foo}_x will mean that the task will only execute if property bar_x isn't set.
Parameters:
  property - The property condition to test on execution.May be null, in which caseno "unless" test is performed.



toString
public String toString()(Code)
Returns the name of this target. the name of this target, or null if thename has not been set yet.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.