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:
parent
78e274c2ee
commit
6c61fd5d60
|
@ -27,7 +27,7 @@
|
||||||
<target name="compile">
|
<target name="compile">
|
||||||
<echo>------ Compiling webApp</echo>
|
<echo>------ Compiling webApp</echo>
|
||||||
<mkdir dir="${build.dir}"/>
|
<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"/>
|
<classpath refid="project.class.path"/>
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
<target name="compile" depends="makedir">
|
<target name="compile" depends="makedir">
|
||||||
<!-- compile the java code from ${src} into ${build.dir} -->
|
<!-- 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="${src}"/>
|
||||||
<src path="${looksSrc}"/>
|
<src path="${looksSrc}"/>
|
||||||
<src path="../glassfishfacet/src"/>
|
<src path="../glassfishfacet/src"/>
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
<!-- =========================================== -->
|
<!-- =========================================== -->
|
||||||
<target name="clientCompile" depends="clientMakedir">
|
<target name="clientCompile" depends="clientMakedir">
|
||||||
<!-- compile the java code from ${src} into ${build.dir} -->
|
<!-- 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"/>
|
<classpath refid="project.class.path"/>
|
||||||
</javac>
|
</javac>
|
||||||
<!-- copy all image & sound files from src to the build directory -->
|
<!-- copy all image & sound files from src to the build directory -->
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
<target name="compile" depends="makedir">
|
<target name="compile" depends="makedir">
|
||||||
<!-- compile the java code from ${src} into ${build.dir} -->
|
<!-- 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"/>
|
<classpath refid="project.class.path"/>
|
||||||
</javac>
|
</javac>
|
||||||
<!-- copy all image & sound files from src to the build directory -->
|
<!-- copy all image & sound files from src to the build directory -->
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
<!-- ======================================================= -->
|
<!-- ======================================================= -->
|
||||||
<target name="installCompile" depends="installInit">
|
<target name="installCompile" depends="installInit">
|
||||||
<!-- compile the java code from ${src} into ${build.dir} -->
|
<!-- 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"/>
|
<classpath refid="project.class.path"/>
|
||||||
</javac>
|
</javac>
|
||||||
<!-- copy all image & sound files from src to the build directory -->
|
<!-- copy all image & sound files from src to the build directory -->
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
<target name="looksCompile" depends="makedir">
|
<target name="looksCompile" depends="makedir">
|
||||||
<!-- compile the java code from ${src} into ${build.dir} -->
|
<!-- 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"/>
|
<classpath refid="project.class.path"/>
|
||||||
</javac>
|
</javac>
|
||||||
<!-- copy all image & sound files from src to the build directory -->
|
<!-- copy all image & sound files from src to the build directory -->
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
<javac
|
<javac
|
||||||
|
target="1.5"
|
||||||
destdir="${build.war.dir}"
|
destdir="${build.war.dir}"
|
||||||
debug="on"
|
debug="on"
|
||||||
deprecation="off"
|
deprecation="off"
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
|
|
||||||
<!-- Compile all -->
|
<!-- Compile all -->
|
||||||
<javac
|
<javac
|
||||||
|
target="1.5"
|
||||||
destdir="${build.classes.dir}"
|
destdir="${build.classes.dir}"
|
||||||
debug="on"
|
debug="on"
|
||||||
deprecation="off"
|
deprecation="off"
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
<!-- ============================================= -->
|
<!-- ============================================= -->
|
||||||
<target name="toolsCompile" depends="toolsInit" unless="jars.uptodate">
|
<target name="toolsCompile" depends="toolsInit" unless="jars.uptodate">
|
||||||
<!-- compile the java code from ${src} into ${build.dir}S -->
|
<!-- 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" />
|
<classpath refid="project.class.path" />
|
||||||
</javac>
|
</javac>
|
||||||
<!-- copy all image & sound files from src to the build directory -->
|
<!-- copy all image & sound files from src to the build directory -->
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
<javac
|
<javac
|
||||||
|
target="1.5"
|
||||||
destdir="${build.war.dir}"
|
destdir="${build.war.dir}"
|
||||||
debug="on"
|
debug="on"
|
||||||
deprecation="off"
|
deprecation="off"
|
||||||
|
|
|
@ -45,7 +45,8 @@
|
||||||
|
|
||||||
<target name="compile" depends="clean" description="Compile Java sources">
|
<target name="compile" depends="clean" description="Compile Java sources">
|
||||||
<mkdir dir="${classes.dir}"/>
|
<mkdir dir="${classes.dir}"/>
|
||||||
<javac srcdir="WEB-INF/src"
|
<javac target="1.5"
|
||||||
|
srcdir="WEB-INF/src"
|
||||||
destdir="${classes.dir}"
|
destdir="${classes.dir}"
|
||||||
debug="${compile.debug}"
|
debug="${compile.debug}"
|
||||||
deprecation="${compile.deprecation}"
|
deprecation="${compile.deprecation}"
|
||||||
|
|
Loading…
Reference in New Issue