Skip to content

Commit

Permalink
Merge pull request #279 from akhikhl/develop
Browse files Browse the repository at this point in the history
#247: Could not find property 'main' on task ':run'.
  • Loading branch information
akhikhl authored Aug 5, 2016
2 parents 6646a6f + 1e76b52 commit 8926363
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions libs/gretty/src/main/groovy/org/akhikhl/gretty/GrettyPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ class GrettyPlugin implements Plugin<Project> {
debug = true
}

project.tasks.debug.dependsOn 'appRunDebug'

project.task('appStart', type: AppStartTask, group: 'gretty') {
description = 'Starts web-app inplace (stopped by \'appStop\').'
interactive = false
Expand Down Expand Up @@ -719,6 +717,18 @@ class GrettyPlugin implements Plugin<Project> {
if(!integrationTestTaskAssigned)
integrationTestTask null // default binding
}

if(!project.tasks.findByName('run') && project.hasProperty('gretty_runTask') && Boolean.valueOf(project.gretty_runTask))
project.task('run', group: 'gretty') {
description = 'Starts web-app inplace, in interactive mode. Same as appRun task.'
dependsOn 'appRun'
}

if(!project.tasks.findByName('debug') && project.hasProperty('gretty_debugTask') && Boolean.valueOf(project.gretty_debugTask))
project.task('debug', group: 'gretty') {
description = 'Starts web-app inplace, in debug and interactive mode. Same as appRunDebug task.'
dependsOn 'appRunDebug'
}
}
}

Expand Down Expand Up @@ -777,17 +787,6 @@ class GrettyPlugin implements Plugin<Project> {
tomcat8ServletApiVersion = Externalized.getString('tomcat8ServletApiVersion')
}

if(!project.tasks.findByName('run') && project.tasks.findByName('appRun'))
project.task('run', group: 'gretty') {
description = 'Starts web-app inplace, in interactive mode. Same as appRun task.'
dependsOn 'appRun'
}

if(!project.tasks.findByName('debug'))
project.task('debug', group: 'gretty') {
description = 'Starts web-app inplace, in debug and interactive mode. Same as appRunDebug task.'
}

addExtensions(project)
addConfigurations(project)

Expand Down

0 comments on commit 8926363

Please sign in to comment.