...
Note 1: Any older version than that mentioned in the results will not function correctly for our needs.
Note 2: I have written some example only Perl code that looks for Web-INF/classes directories and
then generates a bash script that runs Emma and generates a metadata file, one per Webapp
Assuming you are running from a *NIX environment and the now standard bash environment and the target Sakai server has been shutdown.
Code Block |
---|
java emma instr -ix - -ip {$SAKAI_HOME}/webapps/{$EMMA_INST}/WEB-INF/classes -m overwrite
-out= {$EMMA_REPORT_HOME}/{$EMMA_INST}.em
|
Variable | Description |
SAKAI_HOME | File location of the root of your Sakai Server |
EMMA_REPORT_HOME | File location for root dir for report generation |
EMMA_INST | Webapp to instrument. E.G.: sakai-login-tool |
Result: The code for the sakai-login-tool is now instrumented and a metadata file sakai-login-tool.em has been created in the report directory.
Otherwise, you will need to expand the variables and add the full paths.