Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Work on production branch

Christian Bauer6a05a7397bc9
diff --git a/deployment/manager/build.gradle b/deployment/manager/build.gradle
deleted file mode 100644
index 376daaf0c..000000000
--- a/deployment/manager/build.gradle
+++ /dev/null
@@ -1,28 +0,0 @@
-// Checks each console directory and if it is a gradle project (i.e. has a build.gradle) this task assumes that it will
-// handle copying required files to the managerDeploymentDir itself; otherwise the entire console directory is copied.
-
-ext.isManagedConsole = {consoleDir ->
- return findProject("consoles:${consoleDir.path}") != null
-}
-
-task copyExcludingConsoles(type: Copy) {
- from '.'
- exclude 'build.gradle'
- exclude 'consoles'
- into managerDeploymentDir
-}
-
-task installDist(type: Copy) {
- dependsOn 'copyExcludingConsoles'
- from 'consoles'
- into managerDeploymentDir
- include {
- fileTreeElement ->
- def consoleDir = fileTreeElement.directory && fileTreeElement.relativePath.parent == RelativePath.EMPTY_ROOT
- // If it's a console directory check if it is self managed (i.e. has a build.gradle) if it is then don't
- // include it
- return !consoleDir || !isManagedConsole(fileTreeElement)
- }
-}
-
-
diff --git a/deployment/manager/consoles/customerA/build.gradle b/deployment/manager/consoles/customerA/build.gradle
index d4d00fb74..4cc73aee0 100644
--- a/deployment/manager/consoles/customerA/build.gradle
+++ b/deployment/manager/consoles/customerA/build.gradle
@@ -1,6 +1,3 @@
-task installDist(type: Copy) {
+task installDist {
dependsOn bowerPrune, bowerUpdate
- from 'consoles'
- into managerDeploymentDir
- exclude "build.gradle", "bower.json"
}
\ No newline at end of file
diff --git a/project.gradle b/project.gradle
index 49d64fe0c..1c439bd44 100644
--- a/project.gradle
+++ b/project.gradle
@@ -87,5 +87,4 @@ ext {
resolvePath = this.&resolvePath
resolveProject = this.&resolveProject
resolveTask = this.&resolveTask
- managerDeploymentDir = "${resolveProject(":manager").buildDir}/install/manager/deployment"
}
\ No newline at end of file