• Andy Wilkinson's avatar
    Ignore non-JavaExec run task when finding application's main class · 1043239d
    Andy Wilkinson authored
    Previously, FindMainClassTask would look for a property named main
    on any class named run. This was based on the assumption that the
    run task would be a JavaExec task (typically provided by the
    application plugin). If the run task was not a JavaExec task (more
    accurately, if it did not have a main property) this would result in
    a build failure due to trying to read a non-existent property.
    
    This commit updates FindMainClassTask to only use the main property
    of the run task if the task is a JavaExec task. This guarantees that
    the property will exist on the task, and unlike using any property
    named main on a task named run, also guarantee that its value will
    refer to a Java class with a main method.
    
    Closes gh-5501
    1043239d
Name
Last commit
Last update
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...