CyVis Command Interface

 

 

Running CyVis:

1.      Extract the zip file to the desired location. 

2.      Launch the command window and change to that directory\cyvis\

3.      Run the jar file with the usage given below.

Usage: java –jar cyvis-major.minor.jar [-options]

-?,--help            

: print this message

-V,--version         

: print the version information and exit

-h,--html <file>     

: use given file for html report

-p,--project <file>  

: use given file as the input

-t,--text <file>      

: use given file for txt report

-v,--verbose         

: shows all process information

-x,--xml <file>      

: use given file for xml dump

Note: If not options are provided then the Graphical Interface opens up.

 

 

Examples for creating reports:

 

Example: Jar file as input and creating HTML report

[CYVIS-HOME]\ java –jar cyvis-0.8.jar  -p a.jar -h aReport.html

 

Example: Class file as input and creating HTML report

[CYVIS-HOME]\ java –jar cyvis-0.8.jar  -p a.class -h aReport.html

 

Example: Jar file as input and creating TXT report

[CYVIS-HOME]\ java –jar cyvis-0.8.jar  -p a.jar -t aReport.txt

 

Example: Class file as input and creating TXT report

[CYVIS-HOME]\ java –jar cyvis-0.8.jar  -p a.class -t aReport.txt

 

Example: Jar file as input and creating XML Dump

[CYVIS-HOME]\ java –jar cyvis-0.8.jar  -p a.jar -x aReport.xml

 

Example: Class file as input and creating XML Dump

[CYVIS-HOME]\ java –jar cyvis-0.8.jar  -p a.class -x aReport.xml

 

 

Batch Processing:

 

In case you want to batch processing where you want to give multiple jars or classes or a combination of both, you can do it as follows,

 

Create a text file(*.txt) that contains the absolute paths of your files (jars and classes) in separate lines.  

Example: a.txt contains

C:\temp\cyvis.jar

C:\temp\cyvis\core\test\TestSuite.class

 

After text file is done you can create the report as shown below

 

Example: Text file as input and creating HTML report

[CYVIS-HOME]\ java –jar cyvis-0.8.jar  -p a.txt -h aReport.html

 

You can use this text file to generate text reports and XML dump.