UnixStartScriptGeneratorTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Support Java modules in Java application start scripts

  1. … 15 more files in changeset.
Support Java modules in Java application start scripts

  1. … 15 more files in changeset.
Support Java modules in Java application start scripts

  1. … 15 more files in changeset.
Support Java modules in Java application start scripts

  1. … 16 more files in changeset.
Fix number of line to expect from start script

  1. … 1 more file in changeset.
Fix number of line to expect from start script

  1. … 1 more file in changeset.
Fix number of line to expect from start script

Update tests for the extra lines in start scripts

The unit tests are hard-coded to the number of lines in the start scripts

generated by the Application Plugin. This commit updates the tests for the

new number of lines in those scripts due to the addition of a licence.

  1. … 1 more file in changeset.
Allow double quotes to be used inside start script arguments

The new argument handling in start scripts introduced with Gradle 3.2

(#621) uses double quotes (") to escape arguments. This breaks the usage

of double quotes inside of an argument. E.g.: `'-DFOO="bar < baz"'`

This is fixed by checking if either (") or (') is already used and

using the corresponding other character for escaping. The solution is

adopted from: www.etalabs.net/sh_tricks.html (Working with arrays)

Issue: #865

  1. … 5 more files in changeset.
Allow double quotes to be used inside start script arguments

The new argument handling in start scripts introduced with Gradle 3.2

(#621) uses double quotes (") to escape arguments. This breaks the usage

of double quotes inside of an argument. E.g.: `'-DFOO="bar < baz"'`

This is fixed by checking if either (") or (') is already used and

using the corresponding other character for escaping. The solution is

adopted from: www.etalabs.net/sh_tricks.html (Working with arrays)

Issue: #865

  1. … 5 more files in changeset.
Unix Start Script: do not escape VM options which are read from properties (and are therefore already escaped strings)

+review REVIEW-6235

  1. … 2 more files in changeset.
Corrected expected line count in start script tests

+review REVIEW-6235

  1. … 1 more file in changeset.
Limit ourselves to /bin/sh (#621)

+review REVIEW-6235

  1. … 3 more files in changeset.
fix number of lines for updated unix script

Change the expected number of lines in the unix startup script.

+review REVIEW-5845

[GRADLE-2799] Replace Bash redirect operator >&- with more standard >/dev/null

  1. … 2 more files in changeset.
GRADLE-2673: Don't corrupt JAVA_HOME on cygwin

  1. … 2 more files in changeset.
Simplify start script generation and fix a few problems.

Most notably, we no longer hold readers open eagerly.

+review REVIEW-5416

  1. … 20 more files in changeset.
Turned JavaAppStartScriptGeneratorDetails into an interface and made implementation immutable.

+review REVIEW-5416

    • -13
    • +13
    ./UnixStartScriptGeneratorTest.groovy
  1. … 7 more files in changeset.
Use concrete type instead of parameterizing the generators.

+review REVIEW-5416

  1. … 11 more files in changeset.
Moved classes to different package.

+review REVIEW-5416

  1. … 18 more files in changeset.
Moved class to public API so it can be used with custom implementations of ScriptGenerator.

+review REVIEW-5416

  1. … 6 more files in changeset.
Renamed class to better represent purpose.

+review REVIEW-5416

  1. … 6 more files in changeset.
Allow for setting template reader for a template-based script generator. That will allow users of the application plugin to easily set the reader for the default implementation if they want to customize the template.

+review REVIEW-5416

  1. … 5 more files in changeset.
Minor cleanup.

+review REVIEW-5416

  1. … 2 more files in changeset.
Use Reader data type as representation for template for more flexbility.

+review REVIEW-5416

  1. … 8 more files in changeset.
Broke out template engine to allow users to set a different implementation.

+review REVIEW-5416

  1. … 7 more files in changeset.
Better naming and typing.

+review REVIEW-5416

  1. … 5 more files in changeset.
Broke out script generation in preparation for providing custom implementations for application plugin.

    • -0
    • +146
    ./UnixStartScriptGeneratorTest.groovy
  1. … 9 more files in changeset.