Java Doc for AntArtifact.java in  » IDE-Netbeans » project.ant » org » netbeans » api » project » 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 » IDE Netbeans » project.ant » org.netbeans.api.project.ant 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.api.project.ant.AntArtifact

All known Subclasses:   org.netbeans.spi.project.support.ant.SimpleAntArtifact,
AntArtifact
abstract public class AntArtifact (Code)
Represents one artifact of an Ant build. For example, if a build script is known to generate a JAR of a certain name as a result of running a certain target, this object will name that JAR and point to the script and target responsible for creating it. You can use this information to add an <ant> task to another project which will generate that JAR as a dependency before using it.
See Also:   org.netbeans.spi.project.support.ant.SimpleAntArtifact
author:
   Jesse Glick



Constructor Summary
protected  AntArtifact()
     Empty constructor for use from subclasses.

Method Summary
final public  FileObjectgetArtifactFile()
     Convenience method to find the actual artifact, if it currently exists.
final public  FileObject[]getArtifactFiles()
     Convenience method to find the actual artifacts, if they currently exist. Uses AntArtifact.getScriptFile or AntArtifact.getScriptLocation and resolves AntArtifact.getArtifactLocations from it. Note that a project which has been cleaned more recently than it has been built will generally not have the build artifacts on disk and so this call may easily return empty array.
public  URIgetArtifactLocation()
     Get the location of the build artifact relative to the Ant script.
public  URI[]getArtifactLocations()
     Get the locations of the build artifacts relative to the Ant script. For example, dist/mylib.jar.
abstract public  StringgetCleanTargetName()
     Get the name of an Ant target that will delete this artifact.
public  StringgetID()
     Returns identifier of the AntArtifact which must be unique within one project.
public  ProjectgetProject()
     Find the project associated with this script, if any.
public  PropertiesgetProperties()
     Optional properties which are used for Ant target execution.
final public  FileObjectgetScriptFile()
     Convenience method to find the actual script file, if it currently exists.
abstract public  FilegetScriptLocation()
     Get a location for the Ant script that is able to produce this artifact.
abstract public  StringgetTargetName()
     Get the name of the Ant target that is able to produce this artifact. E.g.
abstract public  StringgetType()
     Get the type of the build artifact. This can refer to both the physical content type or format; and to the intended category of usage. Typically a given client (e.g.


Constructor Detail
AntArtifact
protected AntArtifact()(Code)
Empty constructor for use from subclasses.




Method Detail
getArtifactFile
final public FileObject getArtifactFile()(Code)
Convenience method to find the actual artifact, if it currently exists. See AntArtifact.getArtifactFiles . the artifact file on disk, or null if it could not be foundAntArtifact.getArtifactFiles



getArtifactFiles
final public FileObject[] getArtifactFiles()(Code)
Convenience method to find the actual artifacts, if they currently exist. Uses AntArtifact.getScriptFile or AntArtifact.getScriptLocation and resolves AntArtifact.getArtifactLocations from it. Note that a project which has been cleaned more recently than it has been built will generally not have the build artifacts on disk and so this call may easily return empty array. If you do not rely on the actual presence of the file but just need to refer to it abstractly, use AntArtifact.getArtifactLocations instead. the artifact files which exist on disk, or empty array if none could be found
since:
   1.5



getArtifactLocation
public URI getArtifactLocation()(Code)
Get the location of the build artifact relative to the Ant script. See AntArtifact.getArtifactLocations . a URI to the build artifact, resolved relative to AntArtifact.getScriptLocation;may be either relative, or an absolute file-protocol URIAntArtifact.getArtifactLocations



getArtifactLocations
public URI[] getArtifactLocations()(Code)
Get the locations of the build artifacts relative to the Ant script. For example, dist/mylib.jar. The method is not defined as abstract only for backward compatibility reasons. It must be overridden. The order is important and should stay the same unless the artifact was changed. an array of URIs to the build artifacts, resolved relative to AntArtifact.getScriptLocation;may be either relative, or an absolute file-protocol URI
since:
   1.5



getCleanTargetName
abstract public String getCleanTargetName()(Code)
Get the name of an Ant target that will delete this artifact. Typically this should be clean. The target may delete other build products as well. an Ant target name



getID
public String getID()(Code)
Returns identifier of the AntArtifact which must be unique within one project. By default it is target name which produces the artifact, but if your target produces more that one artifact then you must override this method and uniquely identify each artifact.



getProject
public Project getProject()(Code)
Find the project associated with this script, if any. The default implementation uses AntArtifact.getScriptLocation and FileOwnerQuery , but subclasses may override that to return something else. the associated project, or null if there is none or it could not be located



getProperties
public Properties getProperties()(Code)
Optional properties which are used for Ant target execution. Only properties necessary for customization of Ant target execution should be used. These properties are stored in project.xml of project using this artifact so care should be taken in defining what properties are used, e.g. never use absolute path like values
since:
   1.5



getScriptFile
final public FileObject getScriptFile()(Code)
Convenience method to find the actual script file, if it currently exists. Uses AntArtifact.getScriptLocation . The script must exist on disk (Ant cannot run scripts from NetBeans filesystems unless they are represented on disk). the Ant build script file, or null if it could not be found



getScriptLocation
abstract public File getScriptLocation()(Code)
Get a location for the Ant script that is able to produce this artifact. The name build.xml is conventional. the location of an Ant project file (might not currently exist)



getTargetName
abstract public String getTargetName()(Code)
Get the name of the Ant target that is able to produce this artifact. E.g. jar would be conventional for JAR artifacts. an Ant target name



getType
abstract public String getType()(Code)
Get the type of the build artifact. This can refer to both the physical content type or format; and to the intended category of usage. Typically a given client (e.g. superproject) will be interested in only a certain artifact type for a certain purpose, e.g. inclusion in a Java classpath.

Particular type identifiers should be agreed upon between providers and clients. For example, JavaProjectConstants.ARTIFACT_TYPE_JAR is defined for JAR outputs. Others may be defined as needed; for example, tag library JARs, WARs, EJB JARs, deployment descriptor fragments, etc. XXX format - NMTOKEN maybe the type (format or usage) of the build artifact




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.