Properly distinguish main from test code, now that I know how
This commit is contained in:
parent
a56a3616dc
commit
afa982adf2
|
@ -1,8 +1,9 @@
|
||||||
plugins {
|
plugins {
|
||||||
|
id 'com.github.hauner.jarTest' version '1.0.1'
|
||||||
id 'de.undercouch.download' version '3.3.0'
|
id 'de.undercouch.download' version '3.3.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets.main.java.srcDir 'src'
|
sourceSets.test.java.srcDir 'src'
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -30,4 +31,4 @@ clean {
|
||||||
delete downloadJLex.dest.parent
|
delete downloadJLex.dest.parent
|
||||||
}
|
}
|
||||||
|
|
||||||
compileJava.dependsOn verifyJLex
|
compileTestJava.dependsOn verifyJLex
|
||||||
|
|
|
@ -1,13 +1,17 @@
|
||||||
sourceSets.main.java.srcDir 'src'
|
plugins {
|
||||||
|
id 'com.github.hauner.jarTest' version '1.0.1'
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets.test.java.srcDir 'src'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':com.ibm.wala.cast')
|
testCompile 'junit:junit:4.11'
|
||||||
compile project(':com.ibm.wala.cast.java')
|
testCompile 'org.eclipse.core:org.eclipse.core.runtime:3.10.0.v20140318-2214'
|
||||||
compile project(':com.ibm.wala.core')
|
testCompile 'org.osgi:org.osgi.core:4.2.0'
|
||||||
compile project(':com.ibm.wala.core.tests')
|
testCompile project(':com.ibm.wala.cast')
|
||||||
compile project(':com.ibm.wala.shrike')
|
testCompile project(':com.ibm.wala.cast.java')
|
||||||
compile project(':com.ibm.wala.util')
|
testCompile project(':com.ibm.wala.core')
|
||||||
compile 'junit:junit:4.11'
|
testCompile project(':com.ibm.wala.shrike')
|
||||||
compile 'org.eclipse.core:org.eclipse.core.runtime:3.10.0.v20140318-2214'
|
testCompile project(':com.ibm.wala.util')
|
||||||
compile 'org.osgi:org.osgi.core:4.2.0'
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.core.tests')
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main.java.srcDirs = ['src', 'tests']
|
main.java.srcDir 'src'
|
||||||
|
test.java.srcDir 'tests'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':com.ibm.wala.util')
|
|
||||||
compile project(':com.ibm.wala.cast')
|
compile project(':com.ibm.wala.cast')
|
||||||
compile project(':com.ibm.wala.cast.js')
|
compile project(':com.ibm.wala.cast.js')
|
||||||
compile project(':com.ibm.wala.cast.js.rhino.test')
|
compile project(':com.ibm.wala.util')
|
||||||
compile project(':com.ibm.wala.cast.test')
|
|
||||||
compile project(':com.ibm.wala.cast.js.test')
|
|
||||||
compile project(':com.ibm.wala.core.tests')
|
|
||||||
compile 'nu.validator.htmlparser:htmlparser:1.4'
|
compile 'nu.validator.htmlparser:htmlparser:1.4'
|
||||||
}
|
|
||||||
|
|
||||||
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.cast.js.rhino.test')
|
||||||
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.cast.js.test')
|
||||||
|
testCompile project(':com.ibm.wala.cast.test')
|
||||||
|
testCompile project(':com.ibm.wala.core.tests')
|
||||||
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
sourceSets.main {
|
sourceSets.test {
|
||||||
java.srcDir 'src'
|
java.srcDir 'src'
|
||||||
resources.srcDir 'testdata'
|
resources.srcDir 'testdata'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':com.ibm.wala.cast.js.nodejs')
|
testCompile 'junit:junit:4.11'
|
||||||
compile project(':com.ibm.wala.core')
|
testCompile project(':com.ibm.wala.cast.js.nodejs')
|
||||||
compile 'junit:junit:4.11'
|
testCompile project(':com.ibm.wala.core')
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,18 @@
|
||||||
sourceSets.main.java.srcDir 'harness-src'
|
plugins {
|
||||||
|
id 'com.github.hauner.jarTest' version '1.0.1'
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets.test.java.srcDir 'harness-src'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':com.ibm.wala.cast.js.rhino')
|
testCompile 'junit:junit:4.11'
|
||||||
compile project(':com.ibm.wala.shrike')
|
testCompile project(':com.ibm.wala.cast')
|
||||||
compile project(':com.ibm.wala.util')
|
testCompile project(':com.ibm.wala.cast.js')
|
||||||
compile project(':com.ibm.wala.cast')
|
testCompile project(':com.ibm.wala.cast.js.rhino')
|
||||||
compile project(':com.ibm.wala.core')
|
testCompile project(':com.ibm.wala.core')
|
||||||
compile project(':com.ibm.wala.core.tests')
|
testCompile project(':com.ibm.wala.shrike')
|
||||||
compile project(':com.ibm.wala.cast.js')
|
testCompile project(':com.ibm.wala.util')
|
||||||
compile project(':com.ibm.wala.cast.js.test')
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.cast.js.test')
|
||||||
compile project(':com.ibm.wala.cast.test')
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.cast.test')
|
||||||
compile 'junit:junit:4.11'
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.core.tests')
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,19 @@
|
||||||
sourceSets.main.java.srcDir 'harness-src'
|
plugins {
|
||||||
|
id 'com.github.hauner.jarTest' version '1.0.1'
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets.test.java.srcDir 'harness-src'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':com.ibm.wala.cast.js.rhino')
|
testCompile 'junit:junit:4.11'
|
||||||
compile project(':com.ibm.wala.util')
|
testCompile project(':com.ibm.wala.cast')
|
||||||
compile project(':com.ibm.wala.cast')
|
testCompile project(':com.ibm.wala.cast.js')
|
||||||
compile project(':com.ibm.wala.core')
|
testCompile project(':com.ibm.wala.cast.js.rhino')
|
||||||
compile project(':com.ibm.wala.cast.test')
|
testCompile project(':com.ibm.wala.core')
|
||||||
compile project(':com.ibm.wala.core.tests')
|
testCompile project(':com.ibm.wala.shrike')
|
||||||
compile project(':com.ibm.wala.cast.js')
|
testCompile project(':com.ibm.wala.util')
|
||||||
compile project(':com.ibm.wala.shrike')
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.cast.test')
|
||||||
compile 'junit:junit:4.11'
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.core.tests')
|
||||||
}
|
}
|
||||||
|
|
||||||
processTestResources.dependsOn tasks.getByPath(':com.ibm.wala.cast.js.test.data:unversionAjaxslt')
|
processTestResources.dependsOn tasks.getByPath(':com.ibm.wala.cast.js.test.data:unversionAjaxslt')
|
||||||
|
|
|
@ -4,11 +4,11 @@ sourceSets.main {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':com.ibm.wala.util')
|
|
||||||
compile project(':com.ibm.wala.core')
|
|
||||||
compile project(':com.ibm.wala.shrike')
|
|
||||||
compile project(':com.ibm.wala.core.tests')
|
|
||||||
compile project(':com.ibm.wala.cast')
|
compile project(':com.ibm.wala.cast')
|
||||||
|
compile project(':com.ibm.wala.core')
|
||||||
|
// compile project(':com.ibm.wala.core.tests')
|
||||||
|
compile project(':com.ibm.wala.shrike')
|
||||||
|
compile project(':com.ibm.wala.util')
|
||||||
compile 'commons-io:commons-io:2.4'
|
compile 'commons-io:commons-io:2.4'
|
||||||
compile 'net.htmlparser.jericho:jericho-html:3.2'
|
compile 'net.htmlparser.jericho:jericho-html:3.2'
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
sourceSets.main.java.srcDir 'harness-src/java'
|
plugins {
|
||||||
|
id 'com.github.hauner.jarTest' version '1.0.1'
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets.test.java.srcDir 'harness-src/java'
|
||||||
// TODO: hook up harness-src/c somehow
|
// TODO: hook up harness-src/c somehow
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':com.ibm.wala.cast')
|
testCompile 'junit:junit:4.11'
|
||||||
compile project(':com.ibm.wala.core')
|
testCompile project(':com.ibm.wala.cast')
|
||||||
compile project(':com.ibm.wala.core.tests')
|
testCompile project(':com.ibm.wala.core')
|
||||||
compile project(':com.ibm.wala.util')
|
testCompile project(':com.ibm.wala.util')
|
||||||
compile 'junit:junit:4.11'
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.core.tests')
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,5 @@ dependencies {
|
||||||
compile project(':com.ibm.wala.util')
|
compile project(':com.ibm.wala.util')
|
||||||
compile project(':com.ibm.wala.shrike')
|
compile project(':com.ibm.wala.shrike')
|
||||||
compile project(':com.ibm.wala.core')
|
compile project(':com.ibm.wala.core')
|
||||||
compile project(':com.ibm.wala.core.tests')
|
|
||||||
compile 'commons-io:commons-io:2.4'
|
compile 'commons-io:commons-io:2.4'
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
sourceSets.main.java.srcDir 'src'
|
sourceSets.test.java.srcDir 'src'
|
||||||
|
|
|
@ -1,15 +1,19 @@
|
||||||
sourceSets.main {
|
plugins {
|
||||||
|
id 'com.github.hauner.jarTest' version '1.0.1'
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets.test {
|
||||||
java.srcDir 'src'
|
java.srcDir 'src'
|
||||||
resources.srcDir 'dat'
|
resources.srcDir 'dat'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':com.ibm.wala.core')
|
testCompile 'junit:junit:4.11'
|
||||||
compile project(':com.ibm.wala.shrike')
|
testCompile 'org.apache.ant:ant:1.8.2'
|
||||||
compile project(':com.ibm.wala.util')
|
testCompile 'org.eclipse.core:org.eclipse.core.runtime:3.10.0.v20140318-2214'
|
||||||
compile 'junit:junit:4.11'
|
testCompile 'org.hamcrest:hamcrest-core:1.3'
|
||||||
compile 'org.apache.ant:ant:1.8.2'
|
testCompile 'org.osgi:org.osgi.core:4.2.0'
|
||||||
compile 'org.eclipse.core:org.eclipse.core.runtime:3.10.0.v20140318-2214'
|
testCompile project(':com.ibm.wala.core')
|
||||||
compile 'org.hamcrest:hamcrest-core:1.3'
|
testCompile project(':com.ibm.wala.shrike')
|
||||||
compile 'org.osgi:org.osgi.core:4.2.0'
|
testCompile project(':com.ibm.wala.util')
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
sourceSets.main {
|
sourceSets.test {
|
||||||
java.srcDir 'source'
|
java.srcDir 'source'
|
||||||
resources.srcDir 'data'
|
resources.srcDir 'data'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':com.ibm.wala.core')
|
testCompile 'com.google.android.tools:dx:1.7'
|
||||||
compile project(':com.ibm.wala.core.tests')
|
testCompile 'junit:junit:4.11'
|
||||||
compile project(':com.ibm.wala.dalvik')
|
testCompile 'org.osgi:org.osgi.core:4.2.0'
|
||||||
compile project(':com.ibm.wala.shrike')
|
testCompile project(':com.ibm.wala.core')
|
||||||
compile project(':com.ibm.wala.util')
|
testCompile project(':com.ibm.wala.dalvik')
|
||||||
compile 'com.google.android.tools:dx:1.7'
|
testCompile project(':com.ibm.wala.shrike')
|
||||||
compile 'junit:junit:4.11'
|
testCompile project(':com.ibm.wala.util')
|
||||||
compile 'org.osgi:org.osgi.core:4.2.0'
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.core.tests')
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
sourceSets.main {
|
sourceSets.test {
|
||||||
java.srcDir 'source'
|
java.srcDir 'source'
|
||||||
resources.srcDir 'testdata'
|
resources.srcDir 'testdata'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':com.ibm.wala.cast')
|
testCompile 'junit:junit:4.11'
|
||||||
compile project(':com.ibm.wala.cast.java')
|
testCompile 'org.eclipse.core:org.eclipse.core.runtime:3.10.0.v20140318-2214'
|
||||||
compile project(':com.ibm.wala.cast.java.ecj')
|
testCompile 'org.eclipse.jdt:org.eclipse.jdt.core:3.13.50'
|
||||||
compile project(':com.ibm.wala.cast.java.test')
|
testCompile 'org.eclipse.platform:org.eclipse.core.runtime:3.13.0'
|
||||||
compile project(':com.ibm.wala.core')
|
testCompile project(':com.ibm.wala.cast')
|
||||||
compile project(':com.ibm.wala.core.tests')
|
testCompile project(':com.ibm.wala.cast.java')
|
||||||
compile project(':com.ibm.wala.ide')
|
testCompile project(':com.ibm.wala.cast.java.ecj')
|
||||||
compile project(':com.ibm.wala.ide.jdt')
|
testCompile project(':com.ibm.wala.core')
|
||||||
compile project(':com.ibm.wala.ide.tests')
|
testCompile project(':com.ibm.wala.ide')
|
||||||
compile project(':com.ibm.wala.shrike')
|
testCompile project(':com.ibm.wala.ide.jdt')
|
||||||
compile project(':com.ibm.wala.util')
|
testCompile project(':com.ibm.wala.shrike')
|
||||||
compile 'junit:junit:4.11'
|
testCompile project(':com.ibm.wala.util')
|
||||||
compile 'org.eclipse.core:org.eclipse.core.runtime:3.10.0.v20140318-2214'
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.cast.java.test')
|
||||||
compile 'org.eclipse.jdt:org.eclipse.jdt.core:3.13.50'
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.core.tests')
|
||||||
compile 'org.eclipse.platform:org.eclipse.core.runtime:3.13.0'
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.ide.tests')
|
||||||
runtime 'org.eclipse.platform:org.eclipse.osgi:3.12.50'
|
testRuntime 'org.eclipse.platform:org.eclipse.osgi:3.12.50'
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
sourceSets.main.java.srcDir 'src'
|
sourceSets.test.java.srcDir 'src'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':com.ibm.wala.cast')
|
testCompile 'junit:junit:4.11'
|
||||||
compile project(':com.ibm.wala.cast.js')
|
testCompile 'org.eclipse.core:org.eclipse.core.runtime:3.10.0.v20140318-2214'
|
||||||
compile project(':com.ibm.wala.cast.js.rhino')
|
testCompile 'org.eclipse.platform:org.eclipse.core.runtime:3.13.0'
|
||||||
compile project(':com.ibm.wala.core')
|
testCompile 'org.eclipse.platform:org.eclipse.equinox.common:3.9.0'
|
||||||
compile project(':com.ibm.wala.ide.jsdt')
|
testCompile 'org.eclipse.platform:org.eclipse.osgi:3.12.50'
|
||||||
compile project(':com.ibm.wala.ide.tests')
|
testCompile 'org.eclipse.wst.jsdt:core:1.0.201.v2010012803'
|
||||||
compile project(':com.ibm.wala.util')
|
testCompile 'org.osgi:org.osgi.core:4.2.0'
|
||||||
compile 'junit:junit:4.11'
|
testCompile project(':com.ibm.wala.cast')
|
||||||
compile 'org.eclipse.core:org.eclipse.core.runtime:3.10.0.v20140318-2214'
|
testCompile project(':com.ibm.wala.cast.js')
|
||||||
compile 'org.eclipse.platform:org.eclipse.core.runtime:3.13.0'
|
testCompile project(':com.ibm.wala.cast.js.rhino')
|
||||||
compile 'org.eclipse.platform:org.eclipse.equinox.common:3.9.0'
|
testCompile project(':com.ibm.wala.core')
|
||||||
compile 'org.eclipse.platform:org.eclipse.osgi:3.12.50'
|
testCompile project(':com.ibm.wala.ide.jsdt')
|
||||||
compile 'org.eclipse.wst.jsdt:core:1.0.201.v2010012803'
|
testCompile project(':com.ibm.wala.util')
|
||||||
compile 'org.osgi:org.osgi.core:4.2.0'
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.ide.tests')
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +1,22 @@
|
||||||
sourceSets.main.java.srcDir 'src'
|
plugins {
|
||||||
|
id 'com.github.hauner.jarTest' version '1.0.1'
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets.test.java.srcDir 'src'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':com.ibm.wala.core')
|
testCompile 'org.eclipse.core:org.eclipse.core.runtime:3.10.0.v20140318-2214'
|
||||||
compile project(':com.ibm.wala.core.tests')
|
testCompile 'org.eclipse.platform:org.eclipse.core.resources:3.12.0'
|
||||||
compile project(':com.ibm.wala.ide')
|
testCompile 'org.eclipse.platform:org.eclipse.core.runtime:3.13.0'
|
||||||
compile project(':com.ibm.wala.util')
|
testCompile 'org.eclipse.platform:org.eclipse.equinox.common:3.9.0'
|
||||||
compile 'org.eclipse.core:org.eclipse.core.runtime:3.10.0.v20140318-2214'
|
testCompile 'org.eclipse.platform:org.eclipse.jface:3.13.1'
|
||||||
compile 'org.eclipse.platform:org.eclipse.core.resources:3.12.0'
|
testCompile 'org.eclipse.platform:org.eclipse.osgi:3.12.50'
|
||||||
compile 'org.eclipse.platform:org.eclipse.core.runtime:3.13.0'
|
testCompile 'org.eclipse.platform:org.eclipse.ui.ide:3.13.1'
|
||||||
compile 'org.eclipse.platform:org.eclipse.equinox.common:3.9.0'
|
testCompile 'org.eclipse.platform:org.eclipse.ui.workbench:3.110.1'
|
||||||
compile 'org.eclipse.platform:org.eclipse.jface:3.13.1'
|
testCompile 'org.osgi:org.osgi.core:4.2.0'
|
||||||
compile 'org.eclipse.platform:org.eclipse.osgi:3.12.50'
|
testCompile project(':com.ibm.wala.core')
|
||||||
compile 'org.eclipse.platform:org.eclipse.ui.ide:3.13.1'
|
testCompile project(':com.ibm.wala.ide')
|
||||||
compile 'org.eclipse.platform:org.eclipse.ui.workbench:3.110.1'
|
testCompile project(':com.ibm.wala.util')
|
||||||
compile 'org.osgi:org.osgi.core:4.2.0'
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.core.tests')
|
||||||
runtime project(':com.ibm.wala.ide.jdt')
|
testRuntime project(':com.ibm.wala.ide.jdt')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue