Skip to content

Commit cab65e8

Browse files
authored
Fix asset directories (#107)
1 parent e8c27e3 commit cab65e8

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

servers/jak/android/app/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ ext {
2828

2929
SHARED_DIR = "${ROOT_DIR}/shared"
3030
ETC_DIR = "${ROOT_DIR}/etc"
31+
ASSETS_ROOT = "${ROOT_DIR}/../../dataset/server"
32+
BLOB_ASSETS_DIR = "${ASSETS_ROOT}/blobs"
3133

3234
REPORTS_DIR = "${buildDir}/reports"
3335

@@ -42,7 +44,7 @@ def USE_LOCAL_MAVEN = COUCHBASE_LITE_VERSION.endsWith("SNAPSHOT")
4244

4345
def DATASET_VERSION = project.hasProperty("datasetVersion") ? datasetVersion : ""
4446
if (!(DATASET_VERSION =~ /^\d{1,2}\.\d{1,2}/)) { throw new InvalidUserDataException ("!!! Bad dataset version: ${DATASET_VERSION}") }
45-
def ASSETS_DIR = "${ROOT_DIR}/../../dataset/server/${DATASET_VERSION}"
47+
def DB_ASSETS_DIR = "${ASSETS_ROOT}/dbs/${DATASET_VERSION}"
4648

4749
println "Building test server ${SERVER_VERSION}@${SERVER_BUILD} for CBL Android ${COUCHBASE_LITE_VERSION} with ${DATASET_VERSION} data"
4850

@@ -104,7 +106,8 @@ android {
104106
"${SHARED_DIR}/server/main/java"
105107
]
106108
assets.srcDirs = [
107-
ASSETS_DIR,
109+
DB_ASSETS_DIR,
110+
BLOB_ASSETS_DIR,
108111
"${SHARED_DIR}/assets"
109112
]
110113
}

servers/jak/desktop/app/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ ext {
3636
ASSETS_DIR = "${ROOT_DIR}/../../dataset/server"
3737
SHARED_DIR = "${ROOT_DIR}/shared"
3838
ETC_DIR = "${ROOT_DIR}/etc"
39+
ASSETS_ROOT = "${ROOT_DIR}/../../dataset/server"
40+
BLOB_ASSETS_DIR = "${ASSETS_ROOT}/blobs"
41+
3942

4043
REPORTS_DIR = "${buildDir}/reports"
4144

@@ -49,7 +52,7 @@ def USE_LOCAL_MAVEN = COUCHBASE_LITE_VERSION.endsWith("SNAPSHOT")
4952

5053
def DATASET_VERSION = project.hasProperty("datasetVersion") ? datasetVersion : ""
5154
if (!(DATASET_VERSION =~ /^\d{1,2}\.\d{1,2}/)) { throw new InvalidUserDataException ("!!! Bad dataset version: ${DATASET_VERSION}") }
52-
def ASSETS_DIR = "${ROOT_DIR}/../../dataset/server/${DATASET_VERSION}"
55+
def DB_ASSETS_DIR = "${ASSETS_ROOT}/dbs/${DATASET_VERSION}"
5356

5457
// Set -Pverbose to get full console logs for tests
5558
def VERBOSE = project.hasProperty("verbose")
@@ -76,7 +79,8 @@ java {
7679
"${SHARED_DIR}/server/main/java"
7780
]
7881
resources.srcDirs = [
79-
ASSETS_DIR,
82+
DB_ASSETS_DIR,
83+
BLOB_ASSETS_DIR,
8084
"${SHARED_DIR}/assets"
8185
]
8286
}

servers/jak/webservice/app/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ ext {
3535

3636
SHARED_DIR = "${ROOT_DIR}/shared"
3737
ETC_DIR = "${ROOT_DIR}/etc"
38+
ASSETS_ROOT = "${ROOT_DIR}/../../dataset/server"
39+
BLOB_ASSETS_DIR = "${ASSETS_ROOT}/blobs"
40+
3841

3942
REPORTS_DIR = "${buildDir}/reports"
4043

@@ -48,7 +51,7 @@ def USE_LOCAL_MAVEN = COUCHBASE_LITE_VERSION.endsWith("SNAPSHOT")
4851

4952
def DATASET_VERSION = project.hasProperty("datasetVersion") ? datasetVersion : ""
5053
if (!(DATASET_VERSION =~ /^\d{1,2}\.\d{1,2}/)) { throw new InvalidUserDataException ("!!! Bad dataset version: ${DATASET_VERSION}") }
51-
def ASSETS_DIR = "${ROOT_DIR}/../../dataset/server/${DATASET_VERSION}"
54+
def DB_ASSETS_DIR = "${ASSETS_ROOT}/dbs/${DATASET_VERSION}"
5255

5356
// Set -Pverbose to get full console logs for tests
5457
def VERBOSE = project.hasProperty("verbose")
@@ -74,7 +77,8 @@ java {
7477
"${SHARED_DIR}/jvm/main/java"
7578
]
7679
resources.srcDirs = [
77-
ASSETS_DIR,
80+
DB_ASSETS_DIR,
81+
BLOB_ASSETS_DIR,
7882
"${SHARED_DIR}/assets"
7983
]
8084
}

0 commit comments

Comments
 (0)