title: MarkLogic - setting PATH variable for Gradle tasks
body: <p>MarkLogic version - 9.0-6.2
  Gradle version - 4.5.1</p>
  
  <p>We have a linux batch server where data hub, mlcp, gradle are deployed.</p>
  
  <p>Location of datahub folder is /path1/data-hub. This is where I have data hub components (plugins, user-config etc. along with gradle files like gradlew, gradle.bat etc)</p>
  
  <p>Location of my bash scripts is /path1/scripts/data-hub</p>
  
  <p>Location where gradle is unpacked is /path2/gradle/gradle-4.5.1. This is where the bin directory is located that has gradle and gradle.bat files (gradlew does not exist under bin)</p>
  
  <p>I have a PATH variable created at '/path2/gradle/gradle-4.5.1/bin' and also at /path1/data-hub (where data hub is setup and gradlew file exists) </p>
  
  <p>When I execute below code from a bash script placed at /path1/data-hub, the harmonization flow is running fine.</p>
  
  <pre><code>./gradlew hubRunFlow -PentityName="test" -PflowName="test-harmonize- 
  process" -PflowType="harmonize" -PenvironmentName=dev
  </code></pre>
  
  <p>However, when I place the exact same script at /data/scripts/data-hub, the flow is not running. </p>
  
  <pre><code> ./gradlew: No such file or directory.
  </code></pre>
  
  <p>I tried running the code by removing ./ before gradlew but still getting error 'gradlew command not found'</p>
  
  <p>Any help is highly appreciated.</p>