I tried to use JxRef as I thought it was a very useful tool for knowing about our own environment. But I ran across this issue when I did try to generate reports:
runk\JavaSource\org\unch\webcis\core\session\HistoryContainer.java
[jxref] Unsupported or non-existent classpath entry provided: C:\RAD\webcist
runk\JavaSource\org\unch\webcis\core\session\PatientRecordAuxContainer.java
[jxref] Parsed input classes
[jxref] Executing report org.jxref.report.ant.MethodXref
[methodXref] Executing MethodXref and writing results.
[methodXref] Opening new File: methodXref.xml
[methodXref] Opening new File: methodXref.html
[methodXref] Done.
[jxref] Executing report org.jxref.report.ant.UnusedMethod
[unusedMethod] Executing UnusedMethod and writing results.
[unusedMethod] Opening new File: unusedMethods.xml
[unusedMethod] Opening new File: unusedMethods.html
[unusedMethod] Done.
[jxref] Executing report org.jxref.report.ant.UnusedClass
[unusedClass] Executing UnusedMethod and writing results.
[unusedClass] Opening new File: unusedClasses.xml
[unusedClass] Opening new File: unusedClasses.html
[unusedClass] Done.
[jxref] Executing report org.jxref.report.ant.SequenceFlow
[sequenceFlow] Executing SequenceFlow and writing results.
[sequenceFlow] Opening new File: sequenceFlow.xml
[sequenceFlow] Opening new File: sequenceFlow.html
[sequenceFlow] Done.
[jxref] Executing report org.jxref.report.ant.Complexity
[complexity] Executing Complexity and writing results.
I removed complexity tag and build seems to be successful....but empty report is generated. This is the error I see for all the java files when I build...
[jxref] Unsupported or non-existent classpath entry provided: C:\RAD\webcist
runk\JavaSource\org\unch\webcis\xml\notes\Item.java
Lemme know if this is a classpath issue? Thanks for any help.
Rekha
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I tried to use JxRef as I thought it was a very useful tool for knowing about our own environment. But I ran across this issue when I did try to generate reports:
runk\JavaSource\org\unch\webcis\core\session\HistoryContainer.java
[jxref] Unsupported or non-existent classpath entry provided: C:\RAD\webcist
runk\JavaSource\org\unch\webcis\core\session\PatientRecordAuxContainer.java
[jxref] Parsed input classes
[jxref] Executing report org.jxref.report.ant.MethodXref
[methodXref] Executing MethodXref and writing results.
[methodXref] Opening new File: methodXref.xml
[methodXref] Opening new File: methodXref.html
[methodXref] Done.
[jxref] Executing report org.jxref.report.ant.UnusedMethod
[unusedMethod] Executing UnusedMethod and writing results.
[unusedMethod] Opening new File: unusedMethods.xml
[unusedMethod] Opening new File: unusedMethods.html
[unusedMethod] Done.
[jxref] Executing report org.jxref.report.ant.UnusedClass
[unusedClass] Executing UnusedMethod and writing results.
[unusedClass] Opening new File: unusedClasses.xml
[unusedClass] Opening new File: unusedClasses.html
[unusedClass] Done.
[jxref] Executing report org.jxref.report.ant.SequenceFlow
[sequenceFlow] Executing SequenceFlow and writing results.
[sequenceFlow] Opening new File: sequenceFlow.xml
[sequenceFlow] Opening new File: sequenceFlow.html
[sequenceFlow] Done.
[jxref] Executing report org.jxref.report.ant.Complexity
[complexity] Executing Complexity and writing results.
BUILD FAILED
C:\RAD\webcistrunk\build.xml:42: java.lang.ArrayIndexOutOfBoundsException: 0
I have added the below to my build file:
<property environment="env"/>
<import file="${env.JXREF_HOME}/jxref-ant.xml"/>
<!-- Generate sample reports -->
<target name="samples" >
<jxref format="xml" label="This is a sample label">
<fileset dir="JavaSource">
<include name="**/*.java"/>
</fileset>
<methodXref>
<exclude className="java.*"/>
<exclude className="javax.*"/>
</methodXref>
<unusedMethod/>
<unusedClass/>
<sequenceFlow/>
<complexity/>
</jxref>
</target>
Line 42 seems to be this line <jxref format="xml" label="This is a sample label">
Can you please tell me if I have missing anything. I greatly appreciate your help!
Regards
Rekha
I removed complexity tag and build seems to be successful....but empty report is generated. This is the error I see for all the java files when I build...
[jxref] Unsupported or non-existent classpath entry provided: C:\RAD\webcist
runk\JavaSource\org\unch\webcis\xml\notes\Item.java
Lemme know if this is a classpath issue? Thanks for any help.
Rekha