Skip to content

Commit c1bfd57

Browse files
committed
Restructured war-plugin
1 parent ade6d53 commit c1bfd57

File tree

5 files changed

+4
-36
lines changed

5 files changed

+4
-36
lines changed

war-plugin/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

war-plugin/appveyor.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

war-plugin/gradle.properties

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
package com.github.jrubygradle.war
22

3-
import org.gradle.api.Task
4-
import org.gradle.api.tasks.*
3+
54
import org.gradle.api.tasks.bundling.War
65
import org.gradle.testfixtures.ProjectBuilder
7-
import org.junit.Test
8-
import spock.lang.*
9-
10-
11-
import static org.gradle.api.logging.LogLevel.LIFECYCLE
12-
import static org.junit.Assert.assertTrue
6+
import spock.lang.Specification
137

148
/**
159
* @author R. Tyler Croy
@@ -27,7 +21,7 @@ class JRubyWarPluginSpec extends Specification {
2721

2822
def "Basic sanity check"() {
2923
expect:
30-
project.tasks.jrubyWar.group == 'JRuby'
31-
project.tasks.jrubyWar instanceof War
24+
project.tasks.jrubyWar.group == 'JRuby'
25+
project.tasks.jrubyWar instanceof War
3226
}
3327
}

war-plugin/src/test/groovy/com/github/jrubygradle/war/JRubyWarSpec.groovy

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ import static org.gradle.api.logging.LogLevel.*
99
*
1010
*/
1111
class JRubyWarSpec extends Specification {
12-
static final File TEST_SCRIPT_DIR = new File( System.getProperty('TEST_SCRIPT_DIR') ?: 'src/test/resources/scripts')
13-
static final File TESTROOT = new File(System.getProperty('TESTROOT') ?: 'build/tmp/test/unittests')
1412
static final String TASK_NAME = 'WarWarTask'
1513

1614
def project
1715
def warTask
1816

1917
void setup() {
2018
project = ProjectBuilder.builder().build()
21-
project.buildDir = TESTROOT
2219
project.apply plugin: 'com.github.jruby-gradle.war'
2320
warTask = project.task(TASK_NAME, type: JRubyWar)
2421
}

0 commit comments

Comments
 (0)