The following pages might be of use:
about:copyright
URLS specially. One facility on the copyrigth page is the ability
to expand all the model, .html files and .pdf files on
the various demonstration pages. This allows us to
verify that all the resources are present in the tree.
about:copyright
is an essential part of testing each release.
about:copyright
to test the Web Start release.
make checkjunk
and adding files as appropriate to the makefiles
$PTII/util/testsuite/chkjava
on the java files and fix problems
if (foo == bar) return;Right:
if (foo == bar) { return; }The reason this is important is because if one does
if (foo == bar) System.out.println("About to return"); return;then the return is not part of the if statement.
We indent using Jalopy to add braces and then reindent using jindent or Eclipse
To set up Jalopy:
http://jalopy.sourceforge.net/download.html
bin
, docs
and lib
in the current
directory, so be sure to unzip it inside an empty directory.
http://jalopy.sourceforge.net/plugin-console.html
bin/preferences.sh
c:/Program: not foundYou may need to edit
bin/preferences.sh
and put double
quotes around JAVACMD
in the last line:
"$JAVACMD" -classpath "$LOCALCLASSPATH" de.hunsicker.jalopy.swing.SettingsDialog
c:/Documents and Settings/username/.jalopy
If things get confusing, you may want to remove that directory
and start bin/preferences.sh
over again
- In the "Jalopy Settings" window, under Printer -> Braces
-> Misc, click all the boxes in the Insert braces section
- Disable sorting: under Printer -> Sorting -> Declarations.
uncheck "Sort class elements"
If sorting is not disabled, then the fields will be before the methods
- Change the wrapping so we wrap before operators:
under Printer -> Wrapping, in the Policy section, select
"Wrap before operators"
- Close the Jalopy Settings window, you are now ready to indent
$PTII/util/testsuite/jindent
on the java files and indent the files to the Ptolemy II
coding standard.
$PTII/adm/copyright/fixcopyrights
(not shipped with
the release) and update the copyrights on the .java
, .tcl
and makefiles
$PTII/adm/copyright/chkcopyright
on all the files.
find . -type f -print > ~/tmp/ff sh ~ptII/adm/copyright/chkcopyright `cat ~/tmp/ff | grep -v .class | grep -v codeDoc | grep -v xml | grep -v alljtests.tcl | grep -v .htm | grep -v qcf | grep -v .dtd | grep -v gif`
cd $PTII make clean make -k JAVAC=gcj34 JFLAGS="-O2 -Wunused -Wextraneous-semicolon -Wno-deprecated -C" all >& make.out &
To make a branch for 4.0-beta, use the following command:
cd $PTII cvs tag -b rel-4-0-betaThen check out the release branch with
cd ~/src cvs co -r rel-4-0-beta ptII mv ptII ptII4.0-beta
Last Updated: $Date: 2004/11/15 21:00:45 $