Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
titleOn This Page
Table of Contents
indent2em
stylenone
typelist
separatorpipe

Java App Dev Framework

Checking out a project

In eclipse, go to the SVN Repositories window and:

  1. Go to idd-svn > projectyouwant > trunk
  2. Right-click trunk and select Check out

You will then need to configure the project's local site settings:

  1. Create a new directory called site under the project's top level
  2. Copy the files in site-template into it
  3. Edit site/ApplicationLocal.properties
    1. Change the authentication.user to your kerbname
    2. Set sf2_passwd value to your cert public key string:
      1. In your browser, go to https://mortar-dev-mit-edu.ezproxyberklee.flo.org/getcert.html
      2. Copy the text just after ----BEGINCERTIFICATE--- until you reach the last ---ENDCERTIFICATE----
      3. Paste this as the value for sf2_passwd (this is your cert public key)
    3. Change c:/dev in r3props to your workspace directory, e.g. c:/workspace/mortar/tools/GlobalResources.properties
  4. Edit site/log4j.properties; Log4j will output to your eclipse console and to a file
    1. 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

...