Re: Application class in package?

Travis Cripps <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Will,

On Aug 16, 2006, Will Scheidegger wrote:

> I'm trying to place the Application class in a package so the full
> class name would the be my.package.Application. Now where do I
> specify the class name when it is not the default (Application)? I
> found a "WOApplicationClass" parameter in the web.xml for servlet
> deployment, but for standard wo deployment or for running the app out
> of Xcode I did not find the solution yet...


It's not too hard.  The trick, as always, is knowing where to look. ;)

1. On the left pane of the XCode window, find the Targets group.   
Turn it down to see the targets.

2. Double click the Target that has the name of your project.  That  
should open a target configuration window.

3.  Click the "Expert View" of the "Settings" section of the target  
configuration window.

4.  Scroll down the Build Settings and find "WOAPPLICATION_CLASS_NAME".

5. Enter the package path to your Application class:  
my.package.Application.

6.  Clean, and rebuild the project, and you should be in business.

I hope this helps you.

Travis
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.