Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs122-19wi
nanodb-base
Commits
973f6576
Commit
973f6576
authored
6 years ago
by
Donald H. (Donnie) Pinkston, III
Browse files
Options
Download
Plain Diff
Merge branch 'master' of gitlab.caltech.edu:cs122-19wi/nanodb-base
parents
b44d39dd
155cf487
master
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
nanodb
+11
-1
nanodb
ndbc
+11
-1
ndbc
ndbs
+11
-1
ndbs
with
33 additions
and
3 deletions
+33
-3
nanodb
View file @
973f6576
...
...
@@ -4,10 +4,20 @@
NANODB_SERVER_JAR
=
`
ls
target/nanodb-server-
*
.jar 2>/dev/null
`
if
[
-z
"
$NANODB_SERVER_JAR
"
]
then
echo
"Can't find NanoDB server JAR file. Run 'mvn package' to build the project."
echo
"
ERROR:
Can't find NanoDB server JAR file. Run 'mvn package' to build the project."
exit
1
fi
# Check if the sources are out of date and warn the user to rerun 'mvn package'.
{
SOURCE_LAST_MODIFIED
=
"
$(
find src
-type
f
-exec
stat
\{\}
--printf
=
'%Y\n'
\;
|
sort
-n
-r
|
head
-n
1
)
"
JAR_LAST_MODIFIED
=
"
$(
stat
$NANODB_SERVER_JAR
--printf
'%Y\n'
)
"
if
[
-n
"
$SOURCE_LAST_MODIFIED
"
-a
"
$SOURCE_LAST_MODIFIED
"
-gt
"
$JAR_LAST_MODIFIED
"
]
;
then
echo
"WARNING: Your jar file is out of date. Please re-run 'mvn package' to rebuild the project."
fi
}
2>/dev/null
JAVA_OPTS
=
"-Dlog4j.configurationFile=log4j2.properties"
# Server properties can be specified as system-property arguments. Examples:
...
...
This diff is collapsed.
Click to expand it.
ndbc
View file @
973f6576
...
...
@@ -4,10 +4,20 @@
NANODB_SERVER_JAR
=
`
ls
target/nanodb-server-
*
.jar 2>/dev/null
`
if
[
-z
"
$NANODB_SERVER_JAR
"
]
then
echo
"Can't find NanoDB server JAR file.
Have you
buil
t
the project
?
"
echo
"
ERROR:
Can't find NanoDB server JAR file.
Run 'mvn package' to
buil
d
the project
.
"
exit
1
fi
# Check if the sources are out of date and warn the user to rerun 'mvn package'.
{
SOURCE_LAST_MODIFIED
=
"
$(
find src
-type
f
-exec
stat
\{\}
--printf
=
'%Y\n'
\;
|
sort
-n
-r
|
head
-n
1
)
"
JAR_LAST_MODIFIED
=
"
$(
stat
$NANODB_SERVER_JAR
--printf
'%Y\n'
)
"
if
[
-n
"
$SOURCE_LAST_MODIFIED
"
-a
"
$SOURCE_LAST_MODIFIED
"
-gt
"
$JAR_LAST_MODIFIED
"
]
;
then
echo
"WARNING: Your jar file is out of date. Please re-run 'mvn package' to rebuild the project."
fi
}
2>/dev/null
# To set the page-size to use, add "-Dnanodb.pagesize=2048" to JAVA_OPTS.
# To enable transaction processing, add "-Dnanodb.txns=on" to JAVA_OPTS.
JAVA_OPTS
=
"-Dlog4j.configurationFile=log4j2.properties"
...
...
This diff is collapsed.
Click to expand it.
ndbs
View file @
973f6576
...
...
@@ -4,10 +4,20 @@
NANODB_SERVER_JAR
=
`
ls
target/nanodb-server-
*
.jar 2>/dev/null
`
if
[
-z
"
$NANODB_SERVER_JAR
"
]
then
echo
"Can't find NanoDB server JAR file.
Have you
buil
t
the project
?
"
echo
"Can't find NanoDB server JAR file.
Run 'mvn package' to
buil
d
the project
.
"
exit
1
fi
# Check if the sources are out of date and warn the user to rerun 'mvn package'.
{
SOURCE_LAST_MODIFIED
=
"
$(
find src
-type
f
-exec
stat
\{\}
--printf
=
'%Y\n'
\;
|
sort
-n
-r
|
head
-n
1
)
"
JAR_LAST_MODIFIED
=
"
$(
stat
$NANODB_SERVER_JAR
--printf
'%Y\n'
)
"
if
[
-n
"
$SOURCE_LAST_MODIFIED
"
-a
"
$SOURCE_LAST_MODIFIED
"
-gt
"
$JAR_LAST_MODIFIED
"
]
;
then
echo
"WARNING: Your jar file is out of date. Please re-run 'mvn package' to rebuild the project."
fi
}
2>/dev/null
# To set the page-size to use, add "-Dnanodb.pagesize=2048" to JAVA_OPTS.
# To enable transaction processing, add "-Dnanodb.txns=on" to JAVA_OPTS.
JAVA_OPTS
=
"-Dlog4j.configurationFile=log4j2.properties"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help