< prev index next >

## build/build.xml

Print this page

    *** 289,298 ****
    --- 289,301 ----
                     srcdir="${src.dir}"
                     sourcepath=""
                     destdir="${build.classes}"
                     classpath="${jdk14.classpath}:${jcommjar}">
                  <patternset refid="javatest.packages"/>
    +             <compilerarg value="-version"/>
    +             <compilerarg value="-Xlint:rawtypes"/>
    +             <compilerarg value="-Xlint:cast"/>
              </javac>
              <copy todir="${build.classes}">
                  <fileset dir="${legal.dir}">
                      <include name="copyright.txt"/>
                  </fileset>
    *** 305,324 ****
    --- 308,333 ----
              <javac encoding="iso-8859-1" debug="true" source="1.7" target="1.7"
                     srcdir="${test.dir}"
                     destdir="${build.classes}"
                     classpath="${jdk14.classpath}">
                  <patternset refid="test.packages"/>
    +             <compilerarg value="-version"/>
    +             <compilerarg value="-Xlint:rawtypes"/>
    +             <compilerarg value="-Xlint:cast"/>
                      </javac>
              </target>

          <target name="compile.junit.classes" if="jar.junit.dependencies.present" depends="verify-dependencies, compile.classes,compile.junit.resources">
              <mkdir dir="${build.junit.classes}"/>
              <javac encoding="iso-8859-1" debug="true" source="1.7" target="1.7"
                     srcdir="${src.dir}"
                     destdir="${build.junit.classes}"
                     classpath="${jdk14.classpath}:${build.classes}:${asmjar}:${asmcommonsjar}:${junitlib}">
                  <patternset refid="javatest.junit.packages"/>
    +             <compilerarg value="-version"/>
    +             <compilerarg value="-Xlint:rawtypes"/>
    +             <compilerarg value="-Xlint:cast"/>
              </javac>

              <copy todir="${build.junit.classes}">
                  <fileset dir="${legal.dir}">
                      <include name="copyright.txt"/>
    *** 533,542 ****
    --- 542,554 ----
                     srcdir="${src.dir}"
                     destdir="${build.classes}">
                  <include name="com/sun/jct/utils/glossarygen/**"/>
                  <include name="com/sun/jct/utils/indexgen/**"/>
                  <include name="com/sun/jct/utils/mapmerge/**"/>
    +             <compilerarg value="-version"/>
    +             <compilerarg value="-Xlint:rawtypes"/>
    +             <compilerarg value="-Xlint:cast"/>
              </javac>
          </target>

          <!-- ********** examples ********************************************** -->
          <target name="build-examples" depends="build-tutorial"/>
    *** 548,557 ****
    --- 560,572 ----
              <mkdir dir="${build.examples}/demots/lib"/>

              <javac encoding="iso-8859-1" debug="true" source="1.6"
                     srcdir="${exam.dir}/tutorial/demoapi"
                     destdir="${build.tmp}/${exam.dir}/demoapi">
    +             <compilerarg value="-version"/>
    +             <compilerarg value="-Xlint:rawtypes"/>
    +             <compilerarg value="-Xlint:cast"/>
              </javac>
              <jar destfile="${build.examples}/demots/lib/demoapi.jar"
                   basedir="${build.tmp}/${exam.dir}/demoapi" index="false">
                  <manifest>
                      <attribute name="Built-By"   value="${user.name}"/>
    *** 565,574 ****
    --- 580,592 ----

              <javac encoding="iso-8859-1" debug="true" source="1.6"
                     srcdir="${exam.dir}/tutorial/simpleTags"
                     destdir="${build.tmp}/${exam.dir}/simpleTags"
                     classpath="${BUILD_DIR}/binaries/lib/javatest.jar:${build.examples}/demots/lib/demoapi.jar">
    +             <compilerarg value="-version"/>
    +             <compilerarg value="-Xlint:rawtypes"/>
    +             <compilerarg value="-Xlint:cast"/>
              </javac>
              <copy todir="${build.tmp}/${exam.dir}/simpleTags">
                  <fileset dir="${exam.dir}/tutorial/simpleTags/src">
                      <include name="**/moreInfo/**"/>
                      <include name="**/*.properties"/>
    *** 609,618 ****
    --- 627,639 ----

                  <javac encoding="iso-8859-1" debug="true"
                         srcdir="${exam.dir}/services_demo/src"
                         destdir="${build.tmp}/${exam.dir}/services_demo/classes"
                         classpath="${BUILD_DIR}/binaries/lib/javatest.jar">
    +                 <compilerarg value="-version"/>
    +                 <compilerarg value="-Xlint:rawtypes"/>
    +                 <compilerarg value="-Xlint:cast"/>
                  </javac>
                  <copy todir="${build.tmp}/${exam.dir}/services_demo/classes">
                      <fileset dir="${exam.dir}/services_demo/src">
                          <include name="**/moreinfo/**"/>
                          <include name="**/*.properties"/>

< prev index next >