You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Building org.lcsim software

To build the org.lcsim software you first need to have the following installed.

SLAC Unix

These tools are all pre-installed on SLAC unix. Just issue the command:

setenv JAVAVER 1.5

to make sure you get Java 1.5

The lcsim software consists of two packages, the geometry package, and the analysis and reconstruction package. You must obtain and build the geometry package first, since the analysis package depends on it.

Here are condensed instructions:

setenv CVSROOT :pserver:anonymous@cvs.freehep.org:/cvs/lcd
cvs login (just hit enter when prompted for password)
cvs co GeomConverter
cvs co lcsim
cd GeomConverter
maven
cd ../lcsim
maven

Testing the installation

Note that, by default, maven will also run the JUnit tests associated with this distribution.
Test reports are written to the

target/test-reports/

directory.

If you wish to build without testing, issue the following command, but do this at your own risk:

maven -Dmaven.test.skip=true

To execute a single test case (e.g. that for org.lcsim.recon.cluster.fixedcone.FixedConeClusterer):

maven test:single -Dtestcase=org.lcsim.recon.cluster.fixedcone.FixedConeClustererTest

Additional Component Tests

There are also other component tests for many of the org.lcsim classes. Until they can be ported to the JUnit structure they need to be manually executed. Do so with the following ant target:

ant -f ctest.xml

Building org.lcsim with NetBeans

In addition to the above you will need:

Installing mevenide

Download this small autoupdate module. To install, start Netbeans and select the "Update Center Wizard" option from the "Tools" menu. Select the "Install Manually Downloaded Modules (.nbm Files)." On the next page, select "Add..." from the "Modules to Install" panel and navigate to the location of the downloaded file. On the next page, transfer that file from the "Available Updates and New Modules:" panel to the "Include in install:" panel and click on the "Finish" button.

Once these are installed you can open the project folders in NetBeans and build using maven from inside netbeans.

  • No labels