aboutsummaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
Diffstat (limited to 'files')
-rw-r--r--files/ant/build.xml14
1 files changed, 13 insertions, 1 deletions
diff --git a/files/ant/build.xml b/files/ant/build.xml
index e47c3fe..05dfdec 100644
--- a/files/ant/build.xml
+++ b/files/ant/build.xml
@@ -188,6 +188,17 @@
<!-- properties for packaging -->
<property name="build.packaging.nocrunch" value="true" />
+ <!-- whether we need to fork javac.
+ This is only needed on Windows when running Java < 7 -->
+ <condition else="false" property="need.javac.fork">
+ <and>
+ <matches pattern="1\.[56]" string="${java.specification.version}"/>
+ <not>
+ <os family="unix"/>
+ </not>
+ </and>
+ </condition>
+
<!-- ******************************************************* -->
<!-- ************************ Macros *********************** -->
<!-- ******************************************************* -->
@@ -657,7 +668,8 @@
bootclasspathref="android.target.classpath"
verbose="${verbose}"
classpath="${extensible.classpath}"
- classpathref="jar.libs.ref">
+ classpathref="jar.libs.ref"
+ fork="${need.javac.fork}">
<src path="${source.absolute.dir}" />
<src path="${gen.absolute.dir}" />
<classpath>