jfrog / jenkins-jfrog-plugin

Easy integration between Jenkins and the JFrog Platform.
https://github.com/jfrog/jenkins-jfrog-plugin
Apache License 2.0
39 stars 17 forks source link

Improve arguments splitting algorithm #45

Closed yahavi closed 1 year ago

yahavi commented 1 year ago

Fix #41

Split arguments by whitespace, except for arguments that contain double quotes. For example:

mvn -Dmaven.test.failure.ignore=true clean install -Ddeploy.testProperty=\"Test Property\"

Results

  1. mvn
  2. -Dmaven.test.failure.ignore=true
  3. clean
  4. install
  5. -Ddeploy.testProperty=\"Test Property\"