Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Simplify property assignment example in readme #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ options including an example that demonstrates the use case:

On the command line provide a project project via `-PtargetBranch=master`.

In your build script, parse the provided project property and assign it to the task property:
In your build script, parse the provided project property and assign it to the task property (will default to `null` if the property cannot be located):

mergeBuiltPullRequests.targetBranch = project.hasProperty('targetBranch') ? project.getProperty('targetBranch') : null
mergeBuiltPullRequests.targetBranch = project.findProperty('targetBranch')

#### Using system properties

Expand Down