projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos-mapd: Use command line to pass map directory in
[fw/altos]
/
map-server
/
altos-mapd
/
AltosMapd.java
diff --git
a/map-server/altos-mapd/AltosMapd.java
b/map-server/altos-mapd/AltosMapd.java
index cfa1ef3592dd038ce7ff05212570aa52de8bfb62..9c39adb17fc589ea6cb3036c16abf6952a5b140e 100644
(file)
--- a/
map-server/altos-mapd/AltosMapd.java
+++ b/
map-server/altos-mapd/AltosMapd.java
@@
-35,7
+35,12
@@
public class AltosMapd {
AltosPreferences.init(new AltosMapdPreferences());
AltosPreferences.init(new AltosMapdPreferences());
- AltosPreferences.mapdir = new File("/home/keithp/misc/rockets/flights/maps");
+ if (args.length < 1) {
+ System.out.printf("usage: altos-mapd <map-directory>\n");
+ System.exit(1);
+ }
+
+ AltosPreferences.mapdir = new File(args[0]);
for (;;) {
Socket client = server.accept();
for (;;) {
Socket client = server.accept();