Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
Java App Dev Framework
Checking out a project
In eclipse, go to the SVN Repositories window and:
- Go to idd-svn > projectyouwant > trunk
- Right-click trunk and select Check out
You will then need to configure the project's local site settings:
- Create a new directory called site under the project's top level
- Copy the files in site-template into it
- Edit site/ApplicationLocal.properties
- Change the authentication.user to your kerbname
- Set sf2_passwd value to your cert public key string:
- In your browser, go to https://mortar-dev-mit-edu.ezproxyberklee.flo.org/getcert.html
- Copy the text just after ----BEGINCERTIFICATE--- until you reach the last ---ENDCERTIFICATE----
- Paste this as the value for sf2_passwd (this is your cert public key)
- Change c:/dev in r3props to your workspace directory, e.g. c:/workspace/mortar/tools/GlobalResources.properties
- Edit site/log4j.properties; Log4j will output to your eclipse console and to a file
- Change the F1.File property to point to where you want your log file to go
...
Eclipse Project Structure
Projects are "dynamic web app" eclipse projects. They contain this structure:
src/ |
| source |
| edu.mit.appname.controller.action | where struts actions go |
| edu.mit.appname.controller.data | where struts forms go |
| edu.mit.appname.dao | where database methods go (for projects that use hibernate) |
| edu.mit.appname.model | where biz objects go that are passed to the front end |
| edu.mit.appname.proxy | where generated rfc call and data objects go (for sap projects) |
| edu.mit.appname.service | where the methods the actions call to get backend data converted to the model go |
| conf | used on the server for deploying the app to OAS (ignore this directory) |
WebContent/ |
| front end |
| css | contains app_layout.css, etc |
| js | contains app_specific.js, etc |
| WEB-INF/classes | where ApplicationResources.properties goes, etc |
site-template |
| a set of template files for your site dir |
site |
| where your local machine specific properties files go, initially copied from site-template |
| ApplicationLocal.properties | where you place props local to your machine, see below |
| build.properties | where you put build info local to your machine |
| log4j.properties | where you configure logging local to your machine |
build.xml |
| used only on the server to build and deploy the app |
...