зеркало из https://github.com/Azure/YCSB.git
[scripts] self documenting refactoring in bin/ycsb
This commit is contained in:
Родитель
b92c57303d
Коммит
f157205db1
7
bin/ycsb
7
bin/ycsb
|
@ -138,11 +138,12 @@ def is_distribution():
|
|||
# presumes maven can run, so should only be run on source checkouts
|
||||
# will invoke the 'package' goal for the given binding in order to resolve intra-project deps
|
||||
# presumes maven properly handles system-specific path separators
|
||||
def get_classpath_from_maven(database):
|
||||
# Given module is full module name eg. 'core' or 'couchbase-binding'
|
||||
def get_classpath_from_maven(module):
|
||||
try:
|
||||
debug("Running 'mvn -pl com.yahoo.ycsb:"+database+" -am package -DskipTests "
|
||||
debug("Running 'mvn -pl com.yahoo.ycsb:" + module + " -am package -DskipTests "
|
||||
"dependency:build-classpath -DincludeScope=compile -Dmdep.outputFilterFile=true'")
|
||||
mvn_output = subprocess.check_output(["mvn", "-pl", "com.yahoo.ycsb:" + database,
|
||||
mvn_output = subprocess.check_output(["mvn", "-pl", "com.yahoo.ycsb:" + module,
|
||||
"-am", "package", "-DskipTests",
|
||||
"dependency:build-classpath",
|
||||
"-DincludeScope=compile",
|
||||
|
|
Загрузка…
Ссылка в новой задаче