azkaban-aplcache

Move execute-as-user c program to its own module (#1450) This

9/11/2017 3:00:46 PM

Details

diff --git a/az-exec-util/build.gradle b/az-exec-util/build.gradle
new file mode 100644
index 0000000..a024f97
--- /dev/null
+++ b/az-exec-util/build.gradle
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2017 LinkedIn Corp.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+apply plugin: 'c'
+model {
+    components {
+        main(NativeExecutableSpec) {
+            sources {
+                c {
+                    source {
+                        srcDir "src/main"
+                        include "**/*.c"
+                    }
+                }
+            }
+        }
+    }
+}
diff --git a/azkaban-common/build.gradle b/azkaban-common/build.gradle
index 02d2fde..c7e3e14 100644
--- a/azkaban-common/build.gradle
+++ b/azkaban-common/build.gradle
@@ -12,25 +12,8 @@
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations under
  * the License.
- *
  */
 
-apply plugin: 'c'
-model {
-    components {
-        main(NativeExecutableSpec) {
-            sources {
-                c {
-                    source {
-                        srcDir "src/main"
-                        include "**/*.c"
-                    }
-                }
-            }
-        }
-    }
-}
-
 dependencies {
     compile project(':azkaban-spi')
     compile project(':azkaban-db')

settings.gradle 2(+1 -1)

diff --git a/settings.gradle b/settings.gradle
index 492133d..6a0f593 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -12,11 +12,11 @@
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations under
  * the License.
- *
  */
 
 rootProject.name = 'azkaban'
 
+include 'az-exec-util'
 include 'azkaban-spi'
 include 'azkaban-db'
 include 'azkaban-common'