public class ImageFactory
extends java.lang.Object
| Constructor and Description |
|---|
ImageFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.io.File |
getImageFile(org.gradle.api.Project project,
java.lang.Object data,
java.io.File dir,
java.lang.String format)
Get a file to an icon in the platform format if set or null if not set in the gradle script
|
public static java.io.File getImageFile(org.gradle.api.Project project,
java.lang.Object data,
java.io.File dir,
java.lang.String format)
throws java.io.IOException
project - current project for resolving the file locationsdata - the set valuesdir - directory for temporary build files if the file(s) need convertedformat - the platform format, currently "ico", "icns" and png<size>java.io.IOException - if an error occur on reading the image files