private String getTaskPrefixedProperty(Task task, String propertyName) { String suffix = '.' + propertyName; String value = System.getProperty(task.getPath() + suffix); if (value == null) { return System.getProperty(task.getName() + suffix); } return value; }
private void configureCheck(final Project project) { Task checkTask = project.getTasks().add(CHECK_TASK_NAME); checkTask.setDescription("Runs all checks."); checkTask.setGroup(VERIFICATION_GROUP); }