Added support for loading resources from named resource bundles which are
configured relative to an application root which must be provided to the resource manager at construct time or via the application.root system property. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@625 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
+3
-3
@@ -62,8 +62,8 @@ if (opendir(DIR, "$root/lib")) {
|
||||
closedir DIR;
|
||||
}
|
||||
|
||||
# specify our server root (this is for server code)
|
||||
my $rootarg = "-Droot=$root";
|
||||
# specify our application root (the resource manager needs this)
|
||||
my $rootarg = "-Dapplication.root=$root";
|
||||
|
||||
my $pid_file = undef;
|
||||
my $i = 0;
|
||||
@@ -86,7 +86,7 @@ for ($i = 0; $i < @ARGV; $i++) {
|
||||
$i -= 1; # decrement i so that things stay in sync
|
||||
|
||||
} elsif ($arg eq "-r") {
|
||||
$rootarg = "-Droot=" . $ARGV[$i+1];
|
||||
$rootarg = "-DDapplication.root=" . $ARGV[$i+1];
|
||||
splice(@ARGV, $i, 2);
|
||||
$i -= 1; # decrement i so that things stay in sync
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user