Doco HomeTutorial Home
Tutorial steps: 1, 2 and 3,
4 and 5, 6 and 7, 8
The slice1.tar content is generated from the slice0.tar by running
newapp timesheet cd timesheet make -sstarting in the parent directory of the application root directory. (Note: the
-s
option to make
could be left off - but it
suppresses some verbiage that just clutters the screen, IMHO.)
At this stage, the developer has to configure the Makefiles, and mark up the HTML files with ID attributes in tags, and create files required by the Makefile system.
Optionally, the developer may also convert the HTML prototypes into m4. This allows common structures - such as the HEAD section, and page headers and footers - to be captured in a single m4_include file.
The script confpres
in platypus bin does a lot of the
this work for the developer ... but isn't quite polished. It must be
configured by editing the script. Use it if you wish.
applicationName
to the name. confpres
does this.
confpres
creates these directories, and puts Makefile stubs
into them. However, the Makefiles need some hand editing.
confpres
creates these
directories, and puts Makefile stubs into them. However, the Makefiles need
some hand editing. Note that the BDO classes aren't even stubbed in the
Makefiles.
confpres
does this.
config.xmlc
file, or
alter .html
to .po
in the prototype HTML were
necessary. If you have subdirectories, you should use regexps in
config.xmlc
. .html
to
.po
in the prototype HTML, you need to create an empty
config.xmlc
file because the Makefile system assumes it exists
- and uses it as a dependency in the rule for running XMLC.
dev.conf
file in the application root
directory. This file is described here.
confpres
will create a dev.conf file, and
put in the CORE.PO section.
ROOT
variable is given an incorrect value here. It
should be "../../..
". (Currently, it is generated with the value "../..
".)
make -s
. This will invoke DODS and generates code into
the applicationName/data
area. During this process, the
code is also compiled into the classes
directory.
confpres
does this.mkdir -p classes/$APP_NAME/util mkdir -p classes/$APP_NAME/data mkdir -p classes/$APP_NAME/business mkdir -p classes/$APP_NAME/presentation
The slice2.tar contains the marked up prototypes, hand-edited from the slice1.tar content.