Yaniv Dary has uploaded a new change for review.

Change subject: packaging: added ant build for jars
......................................................................

packaging: added ant build for jars

Change-Id: I0c7c90065dc317f0aed7b1c51f5ca46eea857b8a
Signed-off-by: Yaniv Dary <yd...@redhat.com>
---
A build.properties
A build.xml
A ovirt-engine-dwh/advancedPersistentLookupLib/build.xml
A ovirt-engine-dwh/etltermination/build.xml
A ovirt-engine-dwh/historyETL/build.xml
A ovirt-engine-dwh/routines/build.xml
6 files changed, 180 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-dwh refs/changes/27/24127/1

diff --git a/build.properties b/build.properties
new file mode 100644
index 0000000..c133f01
--- /dev/null
+++ b/build.properties
@@ -0,0 +1 @@
+JAVA_DIR=/usr/share/java
diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..0a5fa14
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<project name="Data Warehouse" basedir="." default="build-all">
+    <property file="build.properties"/>
+
+       <target name="build-all" 
depends="build-routines,build-etltermination,build-advancedPersistentLookupLib,build-historyETL">
+       </target>
+
+       <target name="build-routines">
+               <ant dir="ovirt-engine-dwh/routines"/>
+    </target>
+
+       <target name="build-etltermination">
+               <ant dir="ovirt-engine-dwh/etltermination"/>
+    </target>
+
+       <target name="build-advancedPersistentLookupLib">
+               <ant dir="ovirt-engine-dwh/advancedPersistentLookupLib"/>
+    </target>
+
+       <target name="build-historyETL">
+               <ant dir="ovirt-engine-dwh/historyETL"/>
+    </target>
+
+       <target name="clean-all" 
depends="clean-routines,clean-etltermination,clean-advancedPersistentLookupLib,clean-historyETL">
+       </target>
+
+       <target name="clean-routines">
+               <ant dir="ovirt-engine-dwh/routines" target="clean"/>
+    </target>
+
+       <target name="clean-etltermination">
+               <ant dir="ovirt-engine-dwh/etltermination" target="clean"/>
+    </target>
+
+       <target name="clean-advancedPersistentLookupLib">
+               <ant dir="ovirt-engine-dwh/advancedPersistentLookupLib" 
target="clean"/>
+    </target>
+
+       <target name="clean-historyETL">
+               <ant dir="ovirt-engine-dwh/historyETL" target="clean"/>
+    </target>
+
+</project>
diff --git a/ovirt-engine-dwh/advancedPersistentLookupLib/build.xml 
b/ovirt-engine-dwh/advancedPersistentLookupLib/build.xml
new file mode 100644
index 0000000..a29c400
--- /dev/null
+++ b/ovirt-engine-dwh/advancedPersistentLookupLib/build.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<project name="Advanced Persistent Lookup Library" basedir="." 
default="build-jar">
+    <property name="src.dir" value="src"/>
+    <property name="build.dir" value="target"/>
+    <property name="lib.dir" value="../../lib"/>
+
+    <path id="java-dir">
+        <fileset dir="${JAVA_DIR}">
+            <include name="*.jar"/>
+        </fileset>
+        <pathelement path="${build.dir}"/>
+    </path>
+
+    <path id="lib-classpath">
+        <fileset dir="${lib.dir}">
+            <include name="*.jar"/>
+        </fileset>
+        <pathelement path="${build.dir}"/>
+    </path>
+
+    <target name="build" description="Compile source tree java files">
+        <mkdir dir="${build.dir}"/>
+        <javac destdir="${build.dir}">
+            <src path="${src.dir}"/>
+            <classpath refid="java-dir"/>
+            <classpath refid="lib-classpath"/>
+        </javac>
+    </target>
+
+       <target name="build-jar" description="The talend advanced persistent 
lookup library" depends="build">
+        <mkdir dir="${build.dir}"/>
+               <jar destfile="${lib.dir}/advancedPersistentLookupLib.jar"
+                        basedir="${build.dir}"
+                        includes="**">
+               </jar>
+       </target>
+ 
+    <target name="clean" description="Clean output directories">
+               <delete dir="${build.dir}"/>
+               <delete file="${lib.dir}/advancedPersistentLookupLib.jar"/>
+    </target>
+</project>
diff --git a/ovirt-engine-dwh/etltermination/build.xml 
b/ovirt-engine-dwh/etltermination/build.xml
new file mode 100644
index 0000000..185bdf3
--- /dev/null
+++ b/ovirt-engine-dwh/etltermination/build.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<project name="ETL Termination" basedir="." default="build-jar">
+    <property name="src.dir" value="src"/>
+    <property name="build.dir" value="target"/>
+    <property name="lib.dir" value="../../lib"/>
+
+    <target name="build" description="Compile source tree java files">
+        <mkdir dir="${build.dir}"/>
+        <javac destdir="${build.dir}">
+            <src path="${src.dir}"/>
+        </javac>
+    </target>
+
+       <target name="build-jar" description="Hook to all accepting java 
termination" depends="build">
+        <mkdir dir="${build.dir}"/>
+               <jar destfile="${lib.dir}/etltermination.jar"
+                        basedir="${build.dir}"
+                        includes="**">
+               </jar>
+       </target>
+ 
+    <target name="clean" description="Clean output directories">
+               <delete dir="${build.dir}"/>
+               <delete file="${lib.dir}/etltermination.jar"/>
+    </target>
+</project>
diff --git a/ovirt-engine-dwh/historyETL/build.xml 
b/ovirt-engine-dwh/historyETL/build.xml
new file mode 100644
index 0000000..8d3fa1c
--- /dev/null
+++ b/ovirt-engine-dwh/historyETL/build.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<project name="History's ETL Procedure" basedir="." default="build-jar">
+    <property name="src.dir" value="src"/>
+    <property name="build.dir" value="target"/>
+    <property name="lib.dir" value="../../lib"/>
+
+    <path id="lib-classpath">
+        <fileset dir="${lib.dir}">
+            <include name="*.jar"/>
+        </fileset>
+        <pathelement path="${build.dir}"/>
+    </path>
+
+    <target name="build" description="Compile source tree java files">
+        <mkdir dir="${build.dir}"/>
+        <javac destdir="${build.dir}">
+            <src path="${src.dir}"/>
+            <classpath refid="lib-classpath"/>
+        </javac>
+    </target>
+
+       <target name="build-jar" description="The oVirt Engine History DB ETL 
module" depends="build">
+        <mkdir dir="${build.dir}"/>
+               <jar destfile="${lib.dir}/historyETL.jar"
+                        basedir="${build.dir}"
+                        includes="**">
+               </jar>
+       </target>
+ 
+    <target name="clean" description="Clean output directories">
+               <delete dir="${build.dir}"/>
+               <delete file="${lib.dir}/historyETL.jar"/>
+    </target>
+</project>
diff --git a/ovirt-engine-dwh/routines/build.xml 
b/ovirt-engine-dwh/routines/build.xml
new file mode 100644
index 0000000..9c696f5
--- /dev/null
+++ b/ovirt-engine-dwh/routines/build.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<project name="Talend's Routines" basedir="." default="build-jar">
+    <property name="src.dir" value="src"/>
+    <property name="build.dir" value="target"/>
+    <property name="lib.dir" value="../../lib"/>
+
+    <path id="java-dir">
+        <fileset dir="${JAVA_DIR}">
+            <include name="*.jar"/>
+        </fileset>
+        <pathelement path="${build.dir}"/>
+    </path>
+
+    <target name="build" description="Compile source tree java files">
+        <mkdir dir="${build.dir}"/>
+        <javac destdir="${build.dir}">
+            <src path="${src.dir}"/>
+            <classpath refid="java-dir"/>
+        </javac>
+    </target>
+
+       <target name="build-jar" description="The talend routines required for 
etl jobs" depends="build">
+        <mkdir dir="${build.dir}"/>
+               <jar destfile="${lib.dir}/routines.jar"
+                        basedir="${build.dir}"
+                        includes="**">
+               </jar>
+       </target>
+ 
+    <target name="clean" description="Clean output directories">
+               <delete dir="${build.dir}"/>
+               <delete file="${lib.dir}/routines.jar"/>
+    </target>
+</project>


-- 
To view, visit http://gerrit.ovirt.org/24127
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0c7c90065dc317f0aed7b1c51f5ca46eea857b8a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-dwh
Gerrit-Branch: master
Gerrit-Owner: Yaniv Dary <yd...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to