Adding attribute "target=1.5" to all javac invocations that don't have such an attribute yet as recommended by http://ant.apache.org/manual/CoreTasks/javac.html.
This commit is contained in:
tobi42 2009-08-17 09:23:03 +00:00
parent 78e274c2ee
commit 6c61fd5d60
11 changed files with 12 additions and 8 deletions

View File

@ -27,7 +27,7 @@
<target name="compile">
<echo>------ Compiling webApp</echo>
<mkdir dir="${build.dir}"/>
<javac srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
<javac target="1.5" srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
<classpath refid="project.class.path"/>
</javac>
</target>

View File

@ -52,7 +52,7 @@
<target name="compile" depends="makedir">
<!-- compile the java code from ${src} into ${build.dir} -->
<javac fork="true" destdir="${build.dir}" deprecation="on" debug="on" memoryinitialsize="512m" memorymaximumsize="512m">
<javac target="1.5" fork="true" destdir="${build.dir}" deprecation="on" debug="on" memoryinitialsize="512m" memorymaximumsize="512m">
<src path="${src}"/>
<src path="${looksSrc}"/>
<src path="../glassfishfacet/src"/>

View File

@ -63,7 +63,7 @@
<!-- =========================================== -->
<target name="clientCompile" depends="clientMakedir">
<!-- compile the java code from ${src} into ${build.dir} -->
<javac srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
<javac target="1.5" srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
<classpath refid="project.class.path"/>
</javac>
<!-- copy all image & sound files from src to the build directory -->

View File

@ -47,7 +47,7 @@
<target name="compile" depends="makedir">
<!-- compile the java code from ${src} into ${build.dir} -->
<javac srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
<javac target="1.5" srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
<classpath refid="project.class.path"/>
</javac>
<!-- copy all image & sound files from src to the build directory -->

View File

@ -61,7 +61,7 @@
<!-- ======================================================= -->
<target name="installCompile" depends="installInit">
<!-- compile the java code from ${src} into ${build.dir} -->
<javac srcdir="${src}" destdir="${compile.dir}" deprecation="on" debug="on">
<javac target="1.5" srcdir="${src}" destdir="${compile.dir}" deprecation="on" debug="on">
<classpath refid="project.class.path"/>
</javac>
<!-- copy all image & sound files from src to the build directory -->

View File

@ -46,7 +46,7 @@
<target name="looksCompile" depends="makedir">
<!-- compile the java code from ${src} into ${build.dir} -->
<javac srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
<javac target="1.5" srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
<classpath refid="project.class.path"/>
</javac>
<!-- copy all image & sound files from src to the build directory -->

View File

@ -51,6 +51,7 @@
</path>
<javac
target="1.5"
destdir="${build.war.dir}"
debug="on"
deprecation="off"

View File

@ -62,6 +62,7 @@
<!-- Compile all -->
<javac
target="1.5"
destdir="${build.classes.dir}"
debug="on"
deprecation="off"

View File

@ -67,7 +67,7 @@
<!-- ============================================= -->
<target name="toolsCompile" depends="toolsInit" unless="jars.uptodate">
<!-- compile the java code from ${src} into ${build.dir}S -->
<javac srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
<javac target="1.5" srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
<classpath refid="project.class.path" />
</javac>
<!-- copy all image & sound files from src to the build directory -->

View File

@ -47,6 +47,7 @@
</path>
<javac
target="1.5"
destdir="${build.war.dir}"
debug="on"
deprecation="off"

View File

@ -45,7 +45,8 @@
<target name="compile" depends="clean" description="Compile Java sources">
<mkdir dir="${classes.dir}"/>
<javac srcdir="WEB-INF/src"
<javac target="1.5"
srcdir="WEB-INF/src"
destdir="${classes.dir}"
debug="${compile.debug}"
deprecation="${compile.deprecation}"