Developers information

maven targets, profiles, variables

There are two main ways to install, either just compiling, running the simple tests and installing, or running the full testsuite which does integration tests by deploying some sample stuff into a jboss instance.
You can choose by using one of the following targets.


mvn install
mvn -Dfulltest install

To be able to run the full test suite, you need to include a profile in your maven local settings (.m2/settings.xml).


<settings>
<profiles>
<profile>
<id>dev-joachim</id>
<properties>
<!-- selenium properties-->
<firefox.path>firefox /usr/lib/firefox/firefox-bin</firefox.path>

<equanda.db.url>jdbc:firebirdsql:localhost/3050:/home/joachim/data/equanda.fdb</equanda.db.url>
<equanda.db.login>sysdba</equanda.db.login>
<equanda.db.password>masterkey</equanda.db.password>
<equanda.db.location>/home/joachim/data/equanda.fdb</equanda.db.location>
<equanda.db.empty>/home/joachim/data/equanda-empty.fdb</equanda.db.empty>
<equanda.cargo.wait>true</equanda.cargo.wait>
<!-- jboss properties-->
<equanda.jboss.home>/home/joachim/java/equandajboss</equanda.jboss.home>
<equanda.jboss.config>equanda</equanda.jboss.config>
<equanda.jboss.host>localhost</equanda.jboss.host>
<equanda.jboss.port>8080</equanda.jboss.port>
<equanda.jboss.jvmargs>
-server -Xms256m -Xmx382m -XX:MaxPermSize=128m -Dsun.net.inetaddr.ttl=15
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
</equanda.jboss.jvmargs>
<equanda.jboss.logging>medium</equanda.jboss.logging>

</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>dev-joachim</activeProfile>
</activeProfiles>

<pluginGroups>
<pluginGroup>org.equanda</pluginGroup>
</pluginGroups>

</settings>

Coding style

In equanda we use a coding style which prefers easy reading above displaying a lot of information. Most of the features should be clear in the following piece of code.


@Annotation( param1 = "value1", param2 = "value2" )
public class Foo
{
int[] x = new int[] { 1, 3, 5, 6, 7, 87, 1213, 2 };

public void foo( int x, int y )
{
for ( int i = 0; i < x ; i++ )
{
y += ( y ^ 0x123 ) << 2;
}
do
{
try
{
if ( 0 < x && x < 10 )
{
while ( x != y )
{
x = f( x * 3 + 5 );
}
}
else
{
synchronized ( this )
{
switch ( e.getCode() )
{
//...
}
}
}
}
catch ( MyException e )
{}
finally
{
int[] arr = (int[]) g( y );
x = y >= 0 ? arr[ y ] : -1;
}
}
while ( true );
}
}

The code is written with the right margin at 120 characters and lines should not be longer than that if possible.
An indentation is 4 spaces, tabs should not be used.
Class, method and variable names should follow the standard java naming convention.