code: private String generateMavenWrapperScriptContent(@Nonnull FilePath mvnExec, @Nonnull String mavenConfig) throws AbortException {
  
          boolean isUnix = Boolean.TRUE.equals(getComputer().isUnix());
  
          StringBuilder script = new StringBuilder();
  
          if (isUnix) { // Linux, Unix, MacOSX
              String lineSep = "\n";
              script.append("#!/bin/sh -e").append(lineSep);
              script.append("echo ----- withMaven Wrapper script -----").append(lineSep);
              script.append("\"" + mvnExec.getRemote() + "\" " + mavenConfig + " \"$@\"").append(lineSep);
  
          } else { // Windows
              String lineSep = "\r\n";
              script.append("@echo off").append(lineSep);
              script.append("echo ----- withMaven Wrapper script -----").append(lineSep);
              script.append("\"" + mvnExec.getRemote() + "\" " + mavenConfig + " %*").append(lineSep);
          }
  
          LOGGER.log(Level.FINER, "Generated Maven wrapper script: \n{0}", script);
          return script.toString();
      }
docs: Generates the content of the maven wrapper script
  
  @param mvnExec maven executable location
  @param mavenConfig config arguments added to the "mvn" command line
  @return wrapper script content
  @throws AbortException when problems creating content