public void path(Action<? super ExtraDirectoryParameters> action) {
    ExtraDirectoryParameters extraDirectory =
        project.getObjects().newInstance(ExtraDirectoryParameters.class, project);
    action.execute(extraDirectory);
    paths.add(extraDirectory);
  }
Adds a new extra directory configuration to the list.

@param action closure representing an extra directory configuration
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ExtraDirectoryParametersSpec.java