org.apache.ivy.plugins.resolver.packager

Class BuiltFileResource

public class BuiltFileResource extends Object implements Resource

Represents an artifact built by a PackagerResolver.
Field Summary
static StringBUILT_ARTIFACT_PATTERN
Where the build file should put built artifacts (relative to the build directory).
Constructor Summary
BuiltFileResource(File file)
BuiltFileResource(File dir, Artifact artifact)
Method Summary
Resourceclone(String name)
booleanexists()
longgetContentLength()
FilegetFile()
longgetLastModified()
StringgetName()
booleanisLocal()
InputStreamopenStream()
StringtoString()

Field Detail

BUILT_ARTIFACT_PATTERN

public static final String BUILT_ARTIFACT_PATTERN
Where the build file should put built artifacts (relative to the build directory). Value is: {@value }

Constructor Detail

BuiltFileResource

public BuiltFileResource(File file)

BuiltFileResource

public BuiltFileResource(File dir, Artifact artifact)

Method Detail

clone

public Resource clone(String name)

exists

public boolean exists()

getContentLength

public long getContentLength()

getFile

public File getFile()

getLastModified

public long getLastModified()

getName

public String getName()

isLocal

public boolean isLocal()

openStream

public InputStream openStream()

toString

public String toString()