home *** CD-ROM | disk | FTP | other *** search
- #!/LocalDeveloper/Executables/woperl --
- # -*-perl-*-
- # $Id: WOPerlDefaultApp,v 1.1 1996/07/26 05:15:12 pedja Exp $
- # Copyright 1996, TipTop Software.
- eval 'exec /LocalDeveloper/Executables/woperl $0 "$@"'
- if 0;
-
- #############################################################################
- # To run WOPerlDefaultApp:
- #
- # * Short form:
- #
- # WOPerlDefaultApp WOArgs
- #
- # where WOArgs := [-c] [-d DocumentRoot] [-v WebObjectsVersion]
- # [-n InstanceNumber] [-p PortNumber] [-] ApplicationName
- #
- # (see the WebObjects documentation "Serving WebObjects" for full
- # description of WOArgs).
- #
- # * Long form:
- #
- # woperl PerlArgs WOPerlDefaultApp WOArgs
- #
- # where PerlArgs := [-acdhnpPsSTuUvw] [-0[octal]] [-D[number/list]]
- # [-F regexp] [-i[extension]] [B<-ltdir<gt>>] [-l[octal]]
- # [-x[dir]]
- #
- # (see the perl(1) man page for full description of PerlArgs).
- #############################################################################
-
- use WOPerl;
-
- # WOApplicationAdaptor accesses NXArgc/NXArgv directly!
- # &kludge_argv sets NXArgc/NXArgv to the specified argument list.
- &WOPerl::kludge_argv($0,@ARGV);
-
- $pool=class('NSAutoreleasePool')->alloc->init;
- $adaptor=class('WOApplicationAdaptor')->alloc->init->autorelease;
- $WOApp=class('TTWOPerlApplication')->sharedInstance;
-
- print "Running WO app ",$WOApp->applicationName,": $0 @ARGV\n";
- $adaptor->runWithApplication_($WOApp);
- $pool->release;
-
- exit(0);
-
- # EOF
-