User Tools

Site Tools


smelldetectioncaller

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
smelldetectioncaller [2017/09/06 03:25]
admin created
smelldetectioncaller [2017/11/06 13:07]
admin
Line 1: Line 1:
-Soon...+The detection of design smells (i.e., occurrences of anti-patterns and of their code smells) can be simply done in batch, programmaticallyThere are two possible ways. 
 + 
 +====== Standalone SmellDetectionCaller ​ ====== 
 + 
 +The standalone ''​SmellDetectionCaller''​ can be found on [[https://​github.com/​ptidejteam/​SmellDetectionCaller|GitHub]] or BitBucket. 
 + 
 +The Eclipse Java project ''​0 - SmellDetectionCaller''​ contains the Java, class, and JAR files needed to identify occurrences of code and design smells in Java source code, Java binary class-files,​ or C++ source code.  
 + 
 +The class ''​ptidej.sad.smelldetectioncaller.SmellDetectionCaller''​ must be modified to change the path to a folder or a JAR file in which is located the code of the program to be analysed. 
 + 
 +The remaining Eclipse Java projects are only used to regenerate the JAR files necessary to run the class ''​ptidej.sad.smelldetectioncaller.SmellDetectionCaller''​. These JAR files are in the ''​Ptidej.jar'',​ which contains the bare minimum code from Ptidej, and the JAR files in ''​Ptidej_lib'',​ which contains all the JAR supporting Ptidej. 
 + 
 +===== How to Build JAR Version ===== 
 + 
 +  - Execute once ''/​SmellDetectionCaller/​src/​ptidej/​sad/​smelldetectioncaller/​SmellDetectionCaller.java''​ as launch configuration ''​SmellDetectionCaller''​. 
 +  - Select ''/​SmellDetectionCaller/​src/​ptidej/​sad/​smelldetectioncaller/​SmellDetectionCaller.java''​. 
 +  - Export as "​Java/​Runnable JAR file"​ 
 +      - Select as launch configuration ''​SmellDetectionCaller''​. 
 +      - Select as export destination ''​0 - SmellDetectionCaller\Ptidej.jar''​. 
 +      - Select ''​Copy required libraries into a sub-folder next to the generated JAR''​. 
 +      - Check ''​Save as ANT script''​. 
 +      - Select as ANT script location ''​\0 - SmellDetectionCaller\Generate JARs.xml''​. 
 + 
 + 
 + 
 +====== Full Ptidej SmellDetectionCaller ====== 
smelldetectioncaller.txt · Last modified: 2017/11/06 13:12 by admin