use of org.gradle.api.internal.tasks.DeclaredTaskInputFileProperty in project gradle by gradle.
the class CompileClasspathPropertyAnnotationHandler method visitPropertyValue.
@Override
public void visitPropertyValue(PropertyValue propertyValue, PropertyVisitor visitor, PropertySpecFactory specFactory, BeanPropertyContext context) {
DeclaredTaskInputFileProperty fileSpec = specFactory.createInputFileSpec(propertyValue, ValidationActions.NO_OP);
fileSpec.withPropertyName(propertyValue.getPropertyName()).withNormalizer(CompileClasspathNormalizer.class).optional(propertyValue.isOptional());
visitor.visitInputFileProperty(fileSpec);
}
use of org.gradle.api.internal.tasks.DeclaredTaskInputFileProperty in project gradle by gradle.
the class AbstractInputPropertyAnnotationHandler method visitPropertyValue.
@Override
public void visitPropertyValue(PropertyValue propertyValue, PropertyVisitor visitor, PropertySpecFactory specFactory, BeanPropertyContext context) {
PathSensitive pathSensitive = propertyValue.getAnnotation(PathSensitive.class);
final PathSensitivity pathSensitivity;
if (pathSensitive == null) {
pathSensitivity = PathSensitivity.ABSOLUTE;
} else {
pathSensitivity = pathSensitive.value();
}
DeclaredTaskInputFileProperty fileSpec = createFileSpec(propertyValue, specFactory);
fileSpec.withPropertyName(propertyValue.getPropertyName()).optional(propertyValue.isOptional()).withPathSensitivity(pathSensitivity).skipWhenEmpty(propertyValue.isAnnotationPresent(SkipWhenEmpty.class)).optional(propertyValue.isOptional());
visitor.visitInputFileProperty(fileSpec);
}
use of org.gradle.api.internal.tasks.DeclaredTaskInputFileProperty in project gradle by gradle.
the class ClasspathPropertyAnnotationHandler method visitPropertyValue.
@Override
public void visitPropertyValue(PropertyValue propertyValue, PropertyVisitor visitor, PropertySpecFactory specFactory, BeanPropertyContext context) {
DeclaredTaskInputFileProperty fileSpec = specFactory.createInputFileSpec(propertyValue, ValidationActions.NO_OP);
fileSpec.withPropertyName(propertyValue.getPropertyName()).withNormalizer(ClasspathNormalizer.class).optional(propertyValue.isOptional());
visitor.visitInputFileProperty(fileSpec);
}
Aggregations