Java Code Examples for org.gradle.api.model.ObjectFactory#directoryProperty()

The following examples show how to use org.gradle.api.model.ObjectFactory#directoryProperty() . 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 vote down vote up
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: CMakeExtension.java    From native-samples with Apache License 2.0 5 votes vote down vote up
@Inject
public CMakeExtension(ProjectLayout projectLayout, ObjectFactory objectFactory) {
    binary = objectFactory.property(String.class);
    includeDirectory = objectFactory.directoryProperty();
    projectDirectory = objectFactory.directoryProperty();
    projectDirectory.set(projectLayout.getProjectDirectory());
    includeDirectory.set(projectDirectory.dir("include"));
}
 
Example 3
Source File: AutotoolsExtension.java    From native-samples with Apache License 2.0 5 votes vote down vote up
@Inject
public AutotoolsExtension(ObjectFactory objectFactory) {
    binary = objectFactory.property(String.class);
    includeDirectory = objectFactory.directoryProperty();
    sourceDirectory = objectFactory.directoryProperty();
    configureArguments = objectFactory.listProperty(String.class).empty();
    makeArguments = objectFactory.listProperty(String.class).empty();
}
 
Example 4
Source File: CMakeExtension.java    From native-samples with Apache License 2.0 5 votes vote down vote up
@Inject
public CMakeExtension(ProjectLayout projectLayout, ObjectFactory objectFactory) {
    binary = objectFactory.property(String.class);
    includeDirectory = objectFactory.directoryProperty();
    projectDirectory = objectFactory.directoryProperty();
    projectDirectory.set(projectLayout.getProjectDirectory());
    includeDirectory.set(projectDirectory.dir("include"));
}
 
Example 5
Source File: AutotoolsExtension.java    From native-samples with Apache License 2.0 5 votes vote down vote up
@Inject
public AutotoolsExtension(ObjectFactory objectFactory) {
    binary = objectFactory.property(String.class);
    includeDirectory = objectFactory.directoryProperty();
    sourceDirectory = objectFactory.directoryProperty();
    configureArguments = objectFactory.listProperty(String.class).empty();
    makeArguments = objectFactory.listProperty(String.class).empty();
}
 
Example 6
Source File: CMakeExtension.java    From native-samples with Apache License 2.0 5 votes vote down vote up
@Inject
public CMakeExtension(ProjectLayout projectLayout, ObjectFactory objectFactory) {
    binary = objectFactory.property(String.class);
    includeDirectory = objectFactory.directoryProperty();
    projectDirectory = objectFactory.directoryProperty();
    projectDirectory.set(projectLayout.getProjectDirectory());
    includeDirectory.set(projectDirectory.dir("include"));
}
 
Example 7
Source File: AutotoolsExtension.java    From native-samples with Apache License 2.0 5 votes vote down vote up
@Inject
public AutotoolsExtension(ObjectFactory objectFactory) {
    binary = objectFactory.property(String.class);
    includeDirectory = objectFactory.directoryProperty();
    sourceDirectory = objectFactory.directoryProperty();
    configureArguments = objectFactory.listProperty(String.class).empty();
    makeArguments = objectFactory.listProperty(String.class).empty();
}
 
Example 8
Source File: CMakeExtension.java    From native-samples with Apache License 2.0 5 votes vote down vote up
@Inject
public CMakeExtension(ProjectLayout projectLayout, ObjectFactory objectFactory) {
    binary = objectFactory.property(String.class);
    includeDirectory = objectFactory.directoryProperty();
    projectDirectory = objectFactory.directoryProperty();
    projectDirectory.set(projectLayout.getProjectDirectory());
    includeDirectory.set(projectDirectory.dir("include"));
}
 
Example 9
Source File: AutotoolsExtension.java    From native-samples with Apache License 2.0 5 votes vote down vote up
@Inject
public AutotoolsExtension(ObjectFactory objectFactory) {
    binary = objectFactory.property(String.class);
    includeDirectory = objectFactory.directoryProperty();
    sourceDirectory = objectFactory.directoryProperty();
    configureArguments = objectFactory.listProperty(String.class).empty();
    makeArguments = objectFactory.listProperty(String.class).empty();
}
 
Example 10
Source File: Sample.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@Inject
public Sample(String name, ObjectFactory objectFactory) {
    this.name = name;
    this.sampleDir = objectFactory.directoryProperty();
}
 
Example 11
Source File: SymbolicLinkPreservingUntarTask.java    From crate with Apache License 2.0 4 votes vote down vote up
@Inject
public SymbolicLinkPreservingUntarTask(final ObjectFactory objectFactory) {
    this.tarFile = objectFactory.fileProperty();
    this.extractPath = objectFactory.directoryProperty();
    this.transform = name -> Paths.get(name);
}