Changed the default vm for target and source to 1.2. Having 1.1 would yield the error
[javac] javac: invalid source release: 1.1 when compiling in JDK1.5.
This commit is contained in:
parent
c16f633ecf
commit
5d99c0ce7f
1 changed files with 2 additions and 3 deletions
|
@ -141,8 +141,8 @@ Contributor(s): ______________________________________.
|
||||||
<!-- Set this to 1.2 if you want J2SDK 1.4's default. 1.1 gives us
|
<!-- Set this to 1.2 if you want J2SDK 1.4's default. 1.1 gives us
|
||||||
more compatibility, but maybe there will be a performance hit
|
more compatibility, but maybe there will be a performance hit
|
||||||
or something. -->
|
or something. -->
|
||||||
<property name="target.jvm" value="1.1"/>
|
<property name="target.jvm" value="1.2"/>
|
||||||
<property name="source.jvm" value="1.1"/>
|
<property name="source.jvm" value="1.2"/>
|
||||||
|
|
||||||
<!-- Only the tt-servlet-compile target changes this. Humans
|
<!-- Only the tt-servlet-compile target changes this. Humans
|
||||||
shouldn't mess with this. -->
|
shouldn't mess with this. -->
|
||||||
|
@ -1170,7 +1170,6 @@ Contributor(s): ______________________________________.
|
||||||
<fail message="Can't find the file '${source}/${my.included.source.file}' to compile it! Don't worry about forward vs. backward slashes, by the way--Ant is smart about those."
|
<fail message="Can't find the file '${source}/${my.included.source.file}' to compile it! Don't worry about forward vs. backward slashes, by the way--Ant is smart about those."
|
||||||
unless="found.file.to.compile"/>
|
unless="found.file.to.compile"/>
|
||||||
|
|
||||||
|
|
||||||
<javac destdir="${mybin}" debug="${javacdashg}" target="${target.jvm}" source="${source.jvm}">
|
<javac destdir="${mybin}" debug="${javacdashg}" target="${target.jvm}" source="${source.jvm}">
|
||||||
<classpath refid="${our.javac.classpathref}"/>
|
<classpath refid="${our.javac.classpathref}"/>
|
||||||
<src path="${source}"/>
|
<src path="${source}"/>
|
||||||
|
|
Loading…
Reference in a new issue