<%--
  ~ Copyright 2000-2010 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="props" tagdir="/WEB-INF/tags/props" %>
<%@ taglib prefix="forms" tagdir="/WEB-INF/tags/forms" %>
<%@ taglib prefix="l" tagdir="/WEB-INF/tags/layout" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<jsp:useBean id="propertiesBean" scope="request" type="jetbrains.buildServer.controllers.BasePropertiesBean"/>


<l:settingsGroup title="Make parameters">
  <tr>
    <th>
      <c:set var="onclick">
        if (this.checked) {
        $('make.file').focus();
        }
      </c:set>
    
      <label for="custom1">Makefile:</label>
    </th>
    <td>
      <props:textProperty name="make.file" style="width:30em;" maxlength="256"/>
      <span class="error" id="error_make.file"></span>
      <span class="smallNote">Enter Makefile path if you don't want to use the default one. Path should be relative to the checkout directory.</span>
    </td>
  </tr>
  <forms:workingDirectory />
  <tr>
  	<th><label for="make.targets">Targets:</label></th>
	<td><props:textProperty name="make.targets" style="width:30em;" maxlength="256"/>
      <span class="smallNote">Enter targets, separated by spaces, otherwise the 'default' target will be used.</span>
    </td>
  </tr>
  <tr>
    <th><label for="make.additional-parameters">Additional Make command line parameters: </label></th>
    <td><props:textProperty name="make.additional-parameters" style="width:30em;" maxlength="256"/>
      <span class="smallNote">These parameters will be added to the 'make' command line.</span>
    </td>
  </tr>
</l:settingsGroup>

<l:settingsGroup title="Make location">

  <tr>
    <th><label for="make.location">Path to executable: </label></th>
    <td><props:textProperty name="make.location" className="longField"/>
      <span class="error" id="error_make.location"></span>
      <span class="smallNote">Path to 'make' executable. For example, '/usr/bin/make'</span>
    </td>
  </tr>

</l:settingsGroup>