File tree Expand file tree Collapse file tree
hugegraph-commons/hugegraph-common/src/main/resources
hugegraph-server/hugegraph-dist/src/assembly/travis Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313# See the License for the specific language governing permissions and
1414# limitations under the License.
1515
16+ # When updating the version, Version can be read from the pom file.
17+ # When hugegraph-common is updated, hugegraph-commons.version in the pom file needs to be updated,
18+ # and VersionInBash needs to be updated in this file.
1619Version =${revision}
1720ApiVersion =0.71
1821ApiCheckBeginVersion =1.0
1922ApiCheckEndVersion =1.7
23+ VersionInBash =1.5
Original file line number Diff line number Diff line change 1818set -ev
1919
2020HOME_DIR=$( pwd)
21- source $HOME_DIR /hugegraph-commons/hugegraph-common/src/main/resources/version.properties
22- PD_DIR=$HOME_DIR /hugegraph-pd/apache-hugegraph-pd-incubating-${Version}
21+
22+ PROPERTIES_FILE=" $HOME_DIR /hugegraph-commons/hugegraph-common/src/main/resources/version.properties"
23+ if [ -f " $PROPERTIES_FILE " ]; then
24+ export $( grep -v ' ^#' " $PROPERTIES_FILE " | xargs)
25+ else
26+ echo " Error: properties file not found at $PROPERTIES_FILE "
27+ exit 1
28+ fi
29+
30+ PD_DIR=$HOME_DIR /hugegraph-pd/apache-hugegraph-pd-incubating-$VersionInBash
2331
2432pushd $PD_DIR
2533. bin/start-hugegraph-pd.sh
Original file line number Diff line number Diff line change 1818set -ev
1919
2020HOME_DIR=$( pwd)
21- source $HOME_DIR /hugegraph-commons/hugegraph-common/src/main/resources/version.properties
22- STORE_DIR=$HOME_DIR /hugegraph-store/apache-hugegraph-store-incubating-${Version}
21+
22+ PROPERTIES_FILE=" $HOME_DIR /hugegraph-commons/hugegraph-common/src/main/resources/version.properties"
23+ if [ -f " $PROPERTIES_FILE " ]; then
24+ export $( grep -v ' ^#' " $PROPERTIES_FILE " | xargs)
25+ else
26+ echo " Error: properties file not found at $PROPERTIES_FILE "
27+ exit 1
28+ fi
29+
30+ STORE_DIR=$HOME_DIR /hugegraph-store/apache-hugegraph-store-incubating-$VersionInBash
2331
2432pushd $STORE_DIR
2533. bin/start-hugegraph-store.sh
You can’t perform that action at this time.
0 commit comments