| 
 | org.netbeans.modules.project.ant/1 1.12.31 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.spi.project.support.ant.ReferenceHelper.RawReference
public static final class ReferenceHelper.RawReference
A raw reference descriptor representing a link to a foreign project
 and some build artifact used from it.
 This class corresponds directly to what it stored in project.xml
 to refer to a target in a foreign project.
 See AntArtifact for the precise meaning of several of the fields in this class.
| Constructor Summary | |
|---|---|
| ReferenceHelper.RawReference(String foreignProjectName,
                             String artifactType,
                             String newScriptLocation,
                             String targetName,
                             String cleanTargetName,
                             String artifactID,
                             Properties props)Create a raw reference descriptor. | |
| ReferenceHelper.RawReference(String foreignProjectName,
                             String artifactType,
                             URI scriptLocation,
                             String targetName,
                             String cleanTargetName,
                             String artifactID)Create a raw reference descriptor. | |
| Method Summary | |
|---|---|
|  String | getArtifactType()Get the type of the foreign project's build artifact. | 
|  String | getCleanTargetName()Get the Ant target name to clean the artifact. | 
|  String | getForeignProjectName()Get the name of the foreign project as referred to from this project. | 
|  String | getID()Get the ID of the foreign project's build artifact. | 
|  Properties | getProperties() | 
|  URI | getScriptLocation()Deprecated. use getScriptLocationValue()instead; may return null now | 
|  String | getScriptLocationValue()Get absolute path location of the foreign project's build script. | 
|  String | getTargetName()Get the Ant target name to build the artifact. | 
|  AntArtifact | toAntArtifact(ReferenceHelper helper)Attempt to convert this reference to a live artifact object. | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public ReferenceHelper.RawReference(String foreignProjectName, String artifactType, URI scriptLocation, String targetName, String cleanTargetName, String artifactID) throws IllegalArgumentException
foreignProjectName - the name of the foreign project (usually its code name)artifactType - the type of the build artifactscriptLocation - the relative URI to the build script from the project directorytargetName - the Ant target namecleanTargetName - the Ant clean target nameartifactID - the ID of the build artifact
IllegalArgumentException - if the script location is given an absolute URIpublic ReferenceHelper.RawReference(String foreignProjectName, String artifactType, String newScriptLocation, String targetName, String cleanTargetName, String artifactID, Properties props) throws IllegalArgumentException
foreignProjectName - the name of the foreign project (usually its code name)artifactType - the type of the build artifactnewScriptLocation - absolute path to the build script; can contain Ant-like propertiestargetName - the Ant target namecleanTargetName - the Ant clean target nameartifactID - the ID of the build artifactprops - optional properties to be used for target execution; never null
IllegalArgumentException - if the script location is given an absolute URI| Method Detail | 
|---|
public String getForeignProjectName()
public String getArtifactType()
JavaProjectConstants.ARTIFACT_TYPE_JAR.
public URI getScriptLocation()
getScriptLocationValue() instead; may return null now
public String getScriptLocationValue()
public String getTargetName()
public String getCleanTargetName()
public String getID()
AntArtifact.getID().
public Properties getProperties()
public AntArtifact toAntArtifact(ReferenceHelper helper)
Note that non-key attributes of the returned artifact (i.e. type, script location, and clean target name) might not match those in this raw reference.
Acquires read access.
helper - an associated reference helper used to resolve the foreign
               project location
public String toString()
| 
 | org.netbeans.modules.project.ant/1 1.12.31 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||