The following pages might be of use:
$PTII/ptolemy/configs/doc/completeDemos.htm
cd $PTII/ptolemy/domains/wireless/demo/SmartParking $PTII/bin/copernicus -codeGenerator applet -targetPath ptolemy/domains/wireless/demo/SmartParking SmartParking.xmlThen add the
.htm
files to the makefile.
mv FooVergilApplet.htm FooApplet.htm
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 to get the indentation right.
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
- Change the continuation indent to 8 characters:
under Indentation -> Sizes, change the continuation indent to
8 characters.
- 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". Also, note that the line length should be
80 characters so that when we print out the software for review,
the lines print properly.
- Close the Jalopy Settings window, you are now ready to indent.
From within Eclipse, to format using Jalopy, go to the Java view,
open a file, right click and select "Format with Jalopy". The
keyboard short cut is Ctrl+Alt+F10.
# Check out a clean tree # Make sure empty directories are removed cvs update -P -d cd ptII adm/bin/ptIItxtfiles > /tmp/f egrep '*.java$' /tmp/f | grep -v /vendors/ >& /tmp/j # Edit /tmp/j and removed the derived files created by the parser # in data/expr # Remove: # Everything in ct/demo/corba/util # ./ptolemy/data/unit/UParserConstants.java # ./ptolemy/data/unit/UParser.java # ./ptolemy/data/unit/UParserTokenManager.java
$PTII/adm/bin/addtrailingnl
cat /tmp/f | xargs $PTII/util/testsuite/controlmUse dos2unix to fix the files.
cat /tmp/f | xargs cvs status >& /tmp/cv.outThen search /tmp/cv.out for
-kb
$PTII/util/testsuite/jindent
on the java files and indent the files to the Ptolemy II
coding standard.
When you run jindent, watch out for files that have the entire class body indented. If the class comment contains the word "extends" or "implements" then emacs sometimes indents the "public class" and the rest of the body. Search the output for "public class" and carefully examine any files where public class has leanding spaces.
$PTII/adm/copyright/fixcopyrights
(not shipped with
the release) and update the copyrights on the .java
, .tcl
and makefiles
$PTII/adm/copyright/fixsince
(not shipped with
the release) and update the @since tags
$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`
$PTII/util/testsuite/ptspell
.
cd $PTII make clean make -k JAVAC=gcj34 JFLAGS="-O2 -Wunused -Wextraneous-semicolon -Wno-deprecated -C" all >& make.out &
To make a branch for 5.0-beta, use the following command:
cd $PTII cvs tag -b rel-5-0-betaThen check out the release branch with
cd ~/src cvs co -r rel-5-0-beta ptII mv ptII ptII5.0-beta
Last Updated: $Date: 2005/05/02 20:30:17 $