Logo

4.3.2 Importing Java and C/C++ using the inFamix external parser

inFamix is a parser for Java and C/C++ built by http://www.intooitus.com. The parser is based on the scalable inFusion platform. The parser is available as a free command line tool and it exports MSE .

The steps to follow are:

  1. Download the platform appropriate inFamix from: http://www.intooitus.com/products/infamix
  2. Unpack and launch it from the command line using the following syntax:

For example, on Linux and Mac, you can say:

./inFamix.sh -lang java -path YOUR_PATH -mse THE_MSE_FILE.mse

To obtain the best results, point to a folder that includes both the source code and the external jar libraries.

The exported MSE model only contains the pointer to the source code, but not the actual source. Thus, when loading into Moose, you need to tell Moose where the root folder is (see Section 4.5).

User Contributed Notes

steve.freeman (17 October 2011, 2:39 pm)

inFusion appears to change the .project file for its own purposes. This is not acceptable for a commercial system.

vonbecmann (17 July 2011, 3:10 am)

it would be nice if you can explain the structure of the project. for instance,

the project should be like this

/project

 /src - java sources

 /lib - all libraries

 

because i couldn't find that info, and i spent a lot of time importing a java project.

Add a Note