public final class MavenArtifact.TemporaryFile extends Object implements Closeable
finally-block.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
File |
getFile()
Gets the artifact as a local file, perhaps creating a temporary copy as needed.
|
jenkins.util.VirtualFile |
getVirtualFile()
Gets the artifact from whatever storage mechanism is appropriate.
|
@Nonnull public jenkins.util.VirtualFile getVirtualFile()
File specifically.@Nonnull public File getFile() throws IOException
close() it when finished; do not delete the result file yourself.IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016–2017. All rights reserved.