public class AntArtifactQuery extends Object
AntArtifactQueryImplementation
Modifier and Type | Method and Description |
---|---|
static AntArtifact |
findArtifactByID(Project p,
String id)
Try to find a particular build artifact according to the Ant target producing it.
|
static AntArtifact |
findArtifactFromFile(File file)
Try to find an Ant artifact object corresponding to a given file on disk.
|
static AntArtifact[] |
findArtifactsByType(Project p,
String type)
Try to find build artifacts of a certain type in a project.
|
public static AntArtifact findArtifactFromFile(File file)
AntArtifactQueryImplementation
providers are asked.file
- a file which might be built by some Ant targetpublic static AntArtifact findArtifactByID(Project p, String id)
p
- a project (should have AntArtifactProvider
in lookup
in order for this query to work)id
- a desired ID
public static AntArtifact[] findArtifactsByType(Project p, String type)
p
- a project (should have AntArtifactProvider
in lookup
in order for this query to work)type
- a desired artifact type