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:
Michael Bayne
2001-11-20 00:21:41 +00:00
parent 2c686e8431
commit 21ed644984
3 changed files with 309 additions and 64 deletions
+3 -3
View File
@@ -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
}