Yuri Zelikov created WAVE-404:
---------------------------------

             Summary: Fix compilation warnings during the build and add -Werror
                 Key: WAVE-404
                 URL: https://issues.apache.org/jira/browse/WAVE-404
             Project: Wave
          Issue Type: Improvement
            Reporter: Yuri Zelikov
            Priority: Minor


Fix compilation warnings during the build and add -Werror compilation parameter 
in build-macros.xml

<macrodef name="buildjava">
    <attribute name="srcpattern" description="Pattern id describing files to 
build"
        default="default-src-pattern"/>
    <!--attribute name="srcdir" description="Source root directory"/-->
    <attribute name="destdir" description="Build root directory"/>
    <element name="javac-elements" description="Extra elements to pass to 
javac" implicit="true"/>
    <sequential>
      <patternset id="default-src-pattern">
        <include name="**/*.java"/>
      </patternset>
      <javac destdir="@{destdir}" debug="true">
        <exclude name="org/waveprotocol/pst/**"/>
        <patternset refid="@{srcpattern}"/>
        <!-- TODO(anorth): enable -Werror after fixing warnings. -->
        <compilerarg value="-Werror"/>
        <compilerarg value="-Xlint:all"/>
        <compilerarg value="-Xlint:-serial"/>
        <!-- Deprecation warnings are generated for .class files for some
             compilers, e.g. org.hamcrest.Matcher -> org.hamcrest.BaseMatcher. 
-->
        <compilerarg value="-Xlint:-deprecation"/>
        <!-- TODO(akaplanov): remove -Xlint:-static after protobuf issue  will 
be fixed
        issue  -->
        <compilerarg value="-Xlint:-static"/>
        <javac-elements/>
      </javac>
    </sequential>
  </macrodef>




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to