support jdk11 remove config java.ext.dirs (#2070)

This commit is contained in:
青年 2023-01-04 23:16:31 +08:00 committed by GitHub
parent 2b2a980f91
commit d28f8f2d5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -436,6 +436,9 @@ public abstract class HugeElement implements Element, GraphType, Idfiable {
continue;
}
if (val == null) {
if (key.equals(T.label)) {
throw Element.Exceptions.labelCanNotBeNull();
}
throw Property.Exceptions.propertyDoesNotExist();
}

View File

@ -45,5 +45,7 @@ cd $TOP
echo "Dumping HugeGraph Config($conf)..."
exec $JAVA -cp $LIB/hugegraph-dist-*.jar -Djava.ext.dirs=$LIB/ \
dump_conf_ext_jar_path=$LIB/hugegraph-dist-*.jar
for i in $LIB/*.jar; do dump_conf_ext_jar_path=$dump_conf_ext_jar_path:$i; export dump_conf_ext_jar_path; done
exec $JAVA -cp dump_conf_ext_jar_path \
org.apache.hugegraph.cmd.ConfDumper $conf

View File

@ -45,5 +45,7 @@ cd $TOP
echo "Dumping HugeGraph Store($conf)..."
exec $JAVA -cp $LIB/hugegraph-dist-*.jar -Djava.ext.dirs=$LIB/ \
dump_store_ext_jar_path=$LIB/hugegraph-dist-*.jar
for i in $LIB/*.jar; do dump_store_ext_jar_path=$dump_store_ext_jar_path:$i; export dump_store_ext_jar_path; done
exec $JAVA -cp dump_store_ext_jar_path \
org.apache.hugegraph.cmd.StoreDumper $conf $2 $3 $4