[Mondrian] RE: Cron <jhyde at marmalade> nice bash --login /home/jhyde/open2/mondrian/bin/megatest --nightly
Julian Hyde
jhyde at pentaho.com
Mon Sep 15 12:48:55 EDT 2008
Use the script //open/util/bin/checkFile. It is a bash script, so requires
Unix/Linux/Cygwin. Put it on your path and type 'checkFile --opened' and it
will check all files that you have open for edit.
Julian
_____
From: Luis F. Canals [mailto:luisf.canals at gmail.com] On Behalf Of Luis F.
Canals
Sent: Monday, September 15, 2008 1:31 AM
To: jhyde at pentaho.com
Cc: mondrian at pentaho.org
Subject: Re: Cron <jhyde at marmalade> nice bash --login
/home/jhyde/open2/mondrian/bin/megatest --nightly
Hi Julian,
p4 didn't add correctly the new class, even when it claims me everything's
ok!
Now it's fixed: getting a clear copy of repository and adding again.
Please, how can I test code conventions locally, without commiting changes
and waiting for notifications?
Thanks a lot, Julian.
- Luis F. Canals
CISM
luis.canals at stratebi.com
On 15/09/2008, at 9:00, Julian Hyde wrote:
Luis,
Your last change introduced a build error (a reference to the non-existent
class MemberNoCacheHelper). Please fix asap.
compile.java:
[javac] Compiling 519 source files to /home/jhyde/open2/mondrian/classes
[javac]
/home/jhyde/open2/mondrian/src/main/mondrian/rolap/RolapCubeHierarchy.java:7
65: cannot find symbol
[javac] symbol : class MemberNoCacheHelper
[javac] location: class
mondrian.rolap.RolapCubeHierarchy.NoCacheRolapCubeHierarchyMemberReader
[javac] new MemberNoCacheHelper();
[javac] ^
[javac]
/home/jhyde/open2/mondrian/src/main/mondrian/rolap/RolapCubeHierarchy.java:7
71: cannot find symbol
[javac] symbol : class MemberNoCacheHelper
[javac] location: class
mondrian.rolap.RolapCubeHierarchy.NoCacheRolapCubeHierarchyMemberReader
[javac] new MemberNoCacheHelper());
[javac] ^
It fixed some of the coding style violations (thanks), but left some:
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 86:
if/while/for/switch/synchronized/catch/do must be followed by space
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 89: if followed by
statement on same line
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 89:
if/while/for/switch/synchronized/catch/do must be followed by space
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 144: Line ends in
space
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 145: Line ends in
space
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 152: Line ends in
space
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 174: Line ends in
space
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 176: Line ends in
space
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 186: if followed by
statement on same line
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 190: if followed by
statement on same line
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 192: Line ends in
space
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 262: Line ends in
space
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 373: Line ends in
space
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 376: Line ends in
space
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 384: Line ends in
space
./testsrc/main/mondrian/rolap/HighDimensionsTest.java: 391: Line ends in
space
By the way, the coding standard is to treat assert like an operator, not a
function. For example:
assert (x > 0); // WRONG (parentheses not necessary)
assert x > 0; // RIGHT
assert(x > 0 || y < 0) && z != null; // WRONG (no space before paren)
assert (x > 0 || y < 0) && z != null; // RIGHT
Julian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20080915/070cb6b9/attachment.html
More information about the Mondrian
mailing list