Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Avoid using internal class
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuschko committed Jun 2, 2016
1 parent 4adc5b4 commit 17603f7
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package com.bmuschko.gradle.tomcat.extension

import com.bmuschko.gradle.tomcat.embedded.TomcatUser
import org.gradle.util.ConfigureUtil

/**
* Defines Tomcat plugin extension.
Expand All @@ -42,11 +41,15 @@ class TomcatPluginExtension {
List<TomcatUser> users = []

def jasper(Closure closure) {
ConfigureUtil.configure(closure, jasper)
closure.resolveStrategy = Closure.DELEGATE_FIRST
closure.delegate = jasper
closure()
}

def users(Closure closure) {
ConfigureUtil.configure(closure, users)
closure.resolveStrategy = Closure.DELEGATE_FIRST
closure.delegate = users
closure()
}

def user(Closure closure) {
Expand Down

0 comments on commit 17603f7

Please sign in to comment.