Skip to content

Commit

Permalink
fix buidl for java 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
blagoev committed May 25, 2015
1 parent 15c6f5b commit e451e61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/project-template/custom_rules.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="custom_logic_for_metadata_generation" default="-post-compile">

<condition property="version1.7">
<condition property="supportedJavaVersion">
<or>
<equals arg1="1.7" arg2="${ant.java.version}"/>
<equals arg1="1.8" arg2="${ant.java.version}"/>
</or>
</condition>

<fail message="Java 1.7 required. Check if the JAVA_HOME environment variable points to JDK 1.7" unless="version1.7"/>
<fail message="Java 1.7 or newer is required. Check if the JAVA_HOME environment variable points to JDK 1.7 or newer" unless="supportedJavaVersion"/>

<property name="path_to_metadata" value="./assets/metadata"/>
<property name="ns.project.lib" value="../../lib/Android" />
Expand Down

0 comments on commit e451e61

Please sign in to comment.