示例#1
0
 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;
 }
示例#2
0
 private void configureCheck(final Project project) {
   Task checkTask = project.getTasks().add(CHECK_TASK_NAME);
   checkTask.setDescription("Runs all checks.");
   checkTask.setGroup(VERIFICATION_GROUP);
 }