Okay so I had been compiling the .java files on command prompt via ant, it
created the .class files and the report was generated which gave me the
LINE_MISSED and LINE_COVERED as 0
Now, I compiled the classes in Eclipse itself and copied them to the point
where ant starts creating the jar using the .class files.
Surprisingly, the file created now has the line numbers mentioned correctly.
Why is this happening?
<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}"
includeantruntime="false">
<classpath>
<pathelement location="C:/JUnit/apache-ant-1.10.1/src"/>
<path refid="classpath"/>
</classpath>
<compilerarg value="-Xlint"/>
<compilerarg line="-Xmaxerrs 10000" />
</javac>
</target>
<target name="jar">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/${ant.project.name}.jar"
basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
</manifest>
</jar>
</target>
--
You received this message because you are subscribed to the Google Groups
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/280856b8-bfa6-417f-9581-e66a4846561d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.