PAN-15 Created gradle tasks to start the persistence API and to start the API asynchronously

This commit is contained in:
dantanxiaotian
2019-03-10 19:58:04 -06:00
parent ffaf020b80
commit 46122cbafd
2 changed files with 32 additions and 5 deletions
+11
View File
@@ -3,6 +3,9 @@ plugins {
id 'java'
}
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.springframework.boot'
description = 'Provides database access and connectivity'
group 'edu.msudenver.tsp'
version '1.0'
@@ -50,3 +53,11 @@ task loadDb(type: Exec, group: 'Verification', description: 'Reloads the local d
commandLine=['cmd','/c','loaddb.bat']
}
}
task startPersistenceApi(type: JavaExec, description: 'Starts the Persistence API') {
dependsOn 'loadDb'
dependsOn 'build'
classpath = files('build/libs/persistence-1.0.jar')
classpath += sourceSets.main.runtimeClasspath
main = 'edu.msudenver.tsp.persistence.PersistenceApi'
}