<%--
  ~ Copyright 2000-2012 JetBrains s.r.o.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  --%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="props" tagdir="/WEB-INF/tags/props" %>
<jsp:useBean id="propertiesBean" scope="request" type="jetbrains.buildServer.controllers.BasePropertiesBean"/>

<props:viewWorkingDirectory />

<div class="parameter">
  Manifest file: <props:displayValue name="manifest-file" emptyValue="not specified"/>
</div>

<div class="parameter">
  Sources directories: <props:displayValue name="sources-dirs" showInPopup="true" emptyValue="not specified"/>
</div>

<div class="parameter">
  Resources directories: <props:displayValue name="resources-dirs" showInPopup="true" emptyValue="not specified"/>
</div>

<div class="parameter">
  Assets directory: <props:displayValue name="assets-dir" emptyValue="not specified"/>
</div>

<div class="parameter">
  Native libraries directories: <props:displayValue name="libs-dirs" showInPopup="true" emptyValue="not specified"/>
</div>

<div class="parameter">
  Output file: <props:displayValue name="output-file" emptyValue="not specified"/>
</div>

<c:set var="isReleaseBuild" value="${propertiesBean.properties['release-build'] eq 'true'}"/>

<div class="parameter">
  Build mode: <strong><c:choose><c:when test="${isReleaseBuild}">Release</c:when><c:otherwise>Debug</c:otherwise></c:choose></strong>
</div>

<c:if test="${propertiesBean.properties['use-advanced-params'] eq 'true'}">
  <div class="parameter">
    Aapt additional options for packaging resources: <props:displayValue name="aapt-packaging-additional-options" emptyValue="not specified"/>
  </div>

  <div class="parameter">
    Aapt additional options for generating R.java: <props:displayValue name="aapt-r-generating-additional-options" emptyValue="not specified"/>
  </div>

  <div class="parameter">
    Javac additional options: <props:displayValue name="javac-additional-options" emptyValue="not specified"/>
  </div>

  <div class="parameter">
    Dx additional options: <props:displayValue name="dx-additional-options" emptyValue="not specified"/>
  </div>

  <div class="parameter">
    Jarsigner additional options: <props:displayValue name="jarsigner-additional-options" emptyValue="not specified"/>
  </div>

  <div class="parameter">
    Zipalign additional options: <props:displayValue name="zipalign-additional-options" emptyValue="not specified"/>
  </div>
</c:if>

<div class="parameter">
  Android SDK home path: <props:displayValue name="android-sdk-home" emptyValue="not specified"/>
</div>

<c:set var="useCustomTargetPath" value="${propertiesBean.properties['use-custom-target-path'] eq 'true'}"/>

<div class="parameter">
  Android target home path: <c:choose><c:when test="${useCustomTargetPath}"><props:displayValue name="android-target-home" emptyValue="not specified"/></c:when><c:otherwise><strong>Latest target path</strong></c:otherwise></c:choose>
</div>

<props:viewJavaHome/>