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">
|
||||
<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>
|
||||
|
|
|
@ -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"/>
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
</path>
|
||||
|
||||
<javac
|
||||
target="1.5"
|
||||
destdir="${build.war.dir}"
|
||||
debug="on"
|
||||
deprecation="off"
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
|
||||
<!-- Compile all -->
|
||||
<javac
|
||||
target="1.5"
|
||||
destdir="${build.classes.dir}"
|
||||
debug="on"
|
||||
deprecation="off"
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
</path>
|
||||
|
||||
<javac
|
||||
target="1.5"
|
||||
destdir="${build.war.dir}"
|
||||
debug="on"
|
||||
deprecation="off"
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue