Code Location: git://github.com/egonw/cdk.gitmaster
Browse
/
Download File
pmd-migrating.xml
<?xml version="1.0"?>
<project name="CDK" default="pmd" basedir=".">

    <property name="lib" value="develjar" />
    <property name="build" value="build" />
    <property name="src" value="src" />
    <property name="reports.tests" value="reports" />

    <path id="pmd.classpath">
        <pathelement location="${build}"/>
        <fileset dir="${lib}">
          <include name="asm-3.2.jar"/>
          <include name="junit-4.4.jar"/>
          <include name="pmd-5.0.1.jar"/>
          <include name="jaxen-1.1.1.jar"/>
        </fileset>
    </path>

    <target name="compileRenderer" id="compileRenderer">
        <javac srcdir="pmd" destdir="${build}"
               includes="net/sourceforge/pmd/renderers/SummaryVBHTMLRenderer.java">
            <classpath refid="pmd.classpath" />
        </javac>
    </target>

    <taskdef name="pmd" id="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpathref="pmd.classpath"/>

    <target name="pmd" id="pmd">
      <!-- the data classes modules -->
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="data"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="datadebug"/></antcall>
      <!-- the other modules -->
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="interfaces"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="core"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="cip"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="standard"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="atomtype"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="io"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="extra"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="formula"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="render"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="renderbasic"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="renderawt"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="renderextra"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="reaction"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="libiocml"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="builder3d"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="smiles"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="smarts"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="tautomer"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="pcore"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="forcefield"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="qsar"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="qsaratomic"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="qsarbond"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="qsarmolecular"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="qsarprotein"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="structgen"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="valencycheck"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="charges"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="diff"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="smsd"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="signature"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating-qm"/><param name="module" value="qm"/></antcall>
      <!-- the test modules -->
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-core"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-cip"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-interfaces"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-data"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-datadebug"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-atomtype"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-extra"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-forcefield"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-io"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-reaction"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-smiles"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-standard"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-tautomer"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-valencycheck"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-charges"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-pcore"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-qsar"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-qsaratomic"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-qsarbond"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-qsarmolecular"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-qsarprotein"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-diff"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-qm"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-smsd"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-signature"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-render"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-renderbasic"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-renderawt"/></antcall>
      <antcall target="test-module"><param name="pmd.test" value="migrating"/><param name="module" value="test-renderextra"/></antcall>
    </target>

    <target id="test-module" name="test-module"
            description="Checks for migrating code updates in the given CDK module.">

      <echo message="Checking for migrating code updates in CDK's ${module} module." />

      <mkdir dir="${reports.tests}/pmd-migrating"/>
      
      <pmd shortFilenames="true" rulesetfiles="pmd/${pmd.test}.xml">
        <formatter type="xml" toFile="${reports.tests}/pmd-migrating/${module}.xml"/>
        <fileset dir="${src}/main">
          <includesfile name="${build}/${module}.javafiles"/>
        </fileset>
        <fileset dir="${src}/test">
          <includesfile name="${build}/${module}.javafiles"/>
        </fileset>
      </pmd>
      <xslt basedir="${reports.tests}/pmd-migrating" destdir="${reports.tests}/pmd"
            includes="${module}.xml"
            extension=".html" style="pmd/wz-pmd-report.xslt"/>
    </target>

</project>