aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Android_Studio/Tango.DAL/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Android_Studio/Tango.DAL/build.gradle')
-rw-r--r--Software/Android_Studio/Tango.DAL/build.gradle15
1 files changed, 14 insertions, 1 deletions
diff --git a/Software/Android_Studio/Tango.DAL/build.gradle b/Software/Android_Studio/Tango.DAL/build.gradle
index efd90c7c5..86c71c619 100644
--- a/Software/Android_Studio/Tango.DAL/build.gradle
+++ b/Software/Android_Studio/Tango.DAL/build.gradle
@@ -49,6 +49,7 @@ dependencies {
compile globalDependencies.logging
compile globalDependencies.storage
+ compile globalDependencies.joda
compile group: 'commons-io', name: 'commons-io', version: '2.4'
}
@@ -60,4 +61,16 @@ task copyFiles(type: Copy) {
rename ('Tango.db', 'tangodb')
}
-preBuild.dependsOn(copyFiles) \ No newline at end of file
+//Generate DAL Entities.
+task generateEntities(type: Exec, description: 'Generate DAL Entities') {
+
+ commandLine '..\\Visual_Studio\\Build\\Debug\\dbobgen.exe', 'src\\main\\java\\com\\twine\\tango\\dal', '-java',
+
+ ext.output = {
+ return standardOutput.toString()
+ }
+}
+
+preBuild.dependsOn(copyFiles)
+
+preBuild.dependsOn(generateEntities) \ No newline at end of file