Java Code Examples for org.gradle.api.model.ObjectFactory#fileProperty()
The following examples show how to use
org.gradle.api.model.ObjectFactory#fileProperty() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PlayRun.java From playframework with Apache License 2.0 | 5 votes |
public PlayRun() { ObjectFactory objects = getProject().getObjects(); httpPort = objects.property(Integer.class).value(DEFAULT_HTTP_PORT); workingDir = objects.directoryProperty(); applicationJar = objects.fileProperty(); assetsJar = objects.fileProperty(); assetsDirs = getProject().files(); runtimeClasspath = getProject().files(); changingClasspath = getProject().files(); platform = objects.property(PlayPlatform.class); forkOptions = new BaseForkOptions(); }
Example 2
Source File: AspectJCompileOptions.java From gradle-plugins with MIT License | 5 votes |
@Inject public AspectJCompileOptions(ObjectFactory objectFactory) { inpath = objectFactory.fileCollection(); aspectpath = objectFactory.fileCollection(); outjar = objectFactory.fileProperty(); outxml = objectFactory.property(Boolean.class).convention(false); outxmlfile = objectFactory.property(String.class); sourceroots = objectFactory.fileCollection(); crossrefs = objectFactory.property(Boolean.class).convention(false); bootclasspath = objectFactory.fileCollection(); extdirs = objectFactory.fileCollection(); encoding = objectFactory.property(String.class); verbose = objectFactory.property(Boolean.class).convention(false); }
Example 3
Source File: AspectJCompileOptions.java From gradle-plugins with MIT License | 5 votes |
@Inject public AspectJCompileOptions(ObjectFactory objectFactory) { inpath = objectFactory.fileCollection(); aspectpath = objectFactory.fileCollection(); outjar = objectFactory.fileProperty(); outxml = objectFactory.property(Boolean.class).convention(false); outxmlfile = objectFactory.property(String.class); sourceroots = objectFactory.fileCollection(); crossrefs = objectFactory.property(Boolean.class).convention(false); bootclasspath = objectFactory.fileCollection(); extdirs = objectFactory.fileCollection(); encoding = objectFactory.property(String.class); verbose = objectFactory.property(Boolean.class).convention(false); }
Example 4
Source File: DownloadWebDriver.java From zap-extensions with Apache License 2.0 | 5 votes |
@Inject public DownloadWebDriver(WorkerExecutor workerExecutor) { this.workerExecutor = workerExecutor; ObjectFactory objects = getProject().getObjects(); this.browser = objects.property(Browser.class); this.version = objects.property(String.class); this.os = objects.property(OS.class); this.arch = objects.property(Arch.class); this.outputFile = objects.fileProperty(); }
Example 5
Source File: SymbolicLinkPreservingUntarTask.java From crate with Apache License 2.0 | 4 votes |
@Inject public SymbolicLinkPreservingUntarTask(final ObjectFactory objectFactory) { this.tarFile = objectFactory.fileProperty(); this.extractPath = objectFactory.directoryProperty(); this.transform = name -> Paths.get(name); }