mirror of https://github.com/apache/lucene.git
LUCENE-9438: moved eclipse template files under corresponding gradle's script.
This commit is contained in:
parent
4a2a2da462
commit
66eb9f7f3d
|
@ -57,5 +57,11 @@ allprojects {
|
||||||
propertyOrEnvOrDefault = { propName, envName, defValue ->
|
propertyOrEnvOrDefault = { propName, envName, defValue ->
|
||||||
return propertyOrDefault(propName, envOrDefault(envName, defValue));
|
return propertyOrDefault(propName, envOrDefault(envName, defValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Locate script-relative resource folder. This is context-sensitive so pass
|
||||||
|
// the right buildscript (top-level).
|
||||||
|
scriptResources = { buildscript ->
|
||||||
|
return file(buildscript.sourceFile.absolutePath.replaceAll('.gradle$', ""))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
import org.gradle.plugins.ide.eclipse.model.SourceFolder
|
import org.gradle.plugins.ide.eclipse.model.SourceFolder
|
||||||
import org.gradle.plugins.ide.eclipse.model.ClasspathEntry
|
import org.gradle.plugins.ide.eclipse.model.ClasspathEntry
|
||||||
|
|
||||||
|
def resources = scriptResources(buildscript)
|
||||||
|
|
||||||
configure(rootProject) {
|
configure(rootProject) {
|
||||||
apply plugin: "eclipse"
|
apply plugin: "eclipse"
|
||||||
|
|
||||||
|
@ -73,7 +75,7 @@ configure(rootProject) {
|
||||||
eclipseJdt {
|
eclipseJdt {
|
||||||
doLast {
|
doLast {
|
||||||
project.sync {
|
project.sync {
|
||||||
from rootProject.file("dev-tools/eclipse/dot.settings")
|
from rootProject.file("${resources}/dot.settings")
|
||||||
into rootProject.file(".settings")
|
into rootProject.file(".settings")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue