Run metrics in line of command Eclipse 3.3?

Help
2008-07-09
2013-04-24
  • Luiz Valentim
    Luiz Valentim
    2008-07-09

    How to implement metrics with lines of command (ant) in Eclipse (Europe)?

    java -jar plugins\org.eclipse.equinox.launcher_1.0.0.v20070606.jar -application org.eclipse.ant.core.antRunner -buildfile exem.xml

    I'm running this way but in metrics.xml generated appears

    <?xml version="1.0" encoding="UTF-8"?>
    <Metrics scope="

    BUILD FAILED
    E:\eclipse\exem.xml:12: java.lang.NullPointerException

    Total time: 1 second
    Exception in thread "Metrics Calculator Thread" java.lang.NullPointerException
            at net.sourceforge.metrics.core.Log.logError(Log.java:23)
            at net.sourceforge.metrics.builder.MetricsBuilder$CalculatorThread.run(M
    etricsBuilder.java:731)

    exem.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <project name="xml" default="build" basedir=".">

        <target name="init">
           <tstamp/>
        </target>

        <target name="build" depends="init">
          <eclipse.refreshLocal resource="xml" depth="infinite"/>
          <metrics.enable projectName="xml"/>
          <eclipse.build ProjectName="xml" BuildType="full" errorOut="errors.xml" errorFormat="xml" failOnError="true"/>
          <metrics.export projectName="xml" file="metrics-${DSTAMP}-${TSTAMP}.xml"/>
        </target>

    </project>

    What this wrong?
    Help please!

     
    • Luiz Valentim
      Luiz Valentim
      2008-07-10

      Ninguem vai responder esta ***** nao é?!