public static final class ReferenceHelper.RawReference extends Object
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 and Description |
---|
RawReference(String foreignProjectName,
String artifactType,
String newScriptLocation,
String targetName,
String cleanTargetName,
String artifactID,
Properties props)
Create a raw reference descriptor.
|
RawReference(String foreignProjectName,
String artifactType,
URI scriptLocation,
String targetName,
String cleanTargetName,
String artifactID)
Create a raw reference descriptor.
|
Modifier and Type | Method and Description |
---|---|
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()
Get an extra properties used for target execution.
|
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() |
public 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 artifactIllegalArgumentException
- if the script location is given an absolute URIpublic 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 nullIllegalArgumentException
- if the script location is given an absolute URIpublic String getForeignProjectName()
public String getArtifactType()
JavaProjectConstants.ARTIFACT_TYPE_JAR
.@Deprecated public URI getScriptLocation()
getScriptLocationValue()
instead; may return null nowpublic 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 locationBuilt on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.