Source:
<code>public void execute() throws MojoExecutionException, MojoFailureException { if (skip) { getLog().debug("Skipping commands execution"); return; } if (offline) { getLog().debug("Executing offline CLI scripts"); try (StandardOutputStream out = StandardOutputStream.parse(stdout, false)) { <START> String[] opts = javaOpts.split("[\\n\\s]+"); <END> final int exitCode = offlineCLIExecutor.execute(jbossHome, getCommands(), getLog(), out, systemProperties, opts); if (exitCode != 0) { final StringBuilder msg = new StringBuilder("Failed to execute commands: "); out.flush(); switch (out.getTarget()) { case COLLECTING: msg.append(out); break; case FILE: final Path stdoutPath = out.getStdoutPath(); msg.append("See ").append(stdoutPath).append(" for full details of failure.").append(System.lineSeparator()); final List<String> lines = Files.readAllLines(stdoutPath); lines.subList(Math.max(lines.size() - 4, 0), lines.size()) .forEach(line -> msg.append(line).append(System.lineSeparator())); break; case SYSTEM_ERR: case SYSTEM_OUT: msg.append("See previous messages for failure messages."); break; default: msg.append("Reason unknown"); } throw new MojoExecutionException(msg.toString()); } } catch (IOException e) { throw new MojoFailureException("Failed to execute scripts.", e); } } else { final Properties currentSystemProperties = System.getProperties(); try { getLog().debug("Executing commands"); final Properties newSystemProperties = new Properties(currentSystemProperties); if (propertiesFiles != null) { for (File file : propertiesFiles) { parseProperties(file, newSystemProperties); } } if (systemProperties != null) { newSystemProperties.putAll(systemProperties); } System.setProperties(newSystemProperties); try (ModelControllerClient client = createClient()) { commandExecutor.execute(client, jbossHome, getCommands()); } catch (IOException e) { throw new MojoExecutionException("Could not execute commands.", e); } } catch (IOException e) { throw new MojoFailureException("Failed to parse properties.", e); } finally { System.setProperties(currentSystemProperties); } } }</code><technical_language>\s matches \n</technical_language>

Target:
public void execute() throws MojoExecutionException, MojoFailureException { if (skip) { getLog().debug("Skipping commands execution"); return; } if (offline) { getLog().debug("Executing offline CLI scripts"); try (StandardOutputStream out = StandardOutputStream.parse(stdout, false)) { String[] opts = null; if (javaOpts != null) { opts = javaOpts.split("[\\n\\s]+"); } final int exitCode = offlineCLIExecutor.execute(jbossHome, getCommands(), getLog(), out, systemProperties, opts); if (exitCode != 0) { final StringBuilder msg = new StringBuilder("Failed to execute commands: "); out.flush(); switch (out.getTarget()) { case COLLECTING: msg.append(out); break; case FILE: final Path stdoutPath = out.getStdoutPath(); msg.append("See ").append(stdoutPath).append(" for full details of failure.").append(System.lineSeparator()); final List<String> lines = Files.readAllLines(stdoutPath); lines.subList(Math.max(lines.size() - 4, 0), lines.size()) .forEach(line -> msg.append(line).append(System.lineSeparator())); break; case SYSTEM_ERR: case SYSTEM_OUT: msg.append("See previous messages for failure messages."); break; default: msg.append("Reason unknown"); } throw new MojoExecutionException(msg.toString()); } } catch (IOException e) { throw new MojoFailureException("Failed to execute scripts.", e); } } else { final Properties currentSystemProperties = System.getProperties(); try { getLog().debug("Executing commands"); final Properties newSystemProperties = new Properties(currentSystemProperties); if (propertiesFiles != null) { for (File file : propertiesFiles) { parseProperties(file, newSystemProperties); } } if (systemProperties != null) { newSystemProperties.putAll(systemProperties); } System.setProperties(newSystemProperties); try (ModelControllerClient client = createClient()) { commandExecutor.execute(client, jbossHome, getCommands()); } catch (IOException e) { throw new MojoExecutionException("Could not execute commands.", e); } } catch (IOException e) { throw new MojoFailureException("Failed to parse properties.", e); } finally { System.setProperties(currentSystemProperties); } } }