Hi All
I have a requirement to add JAVA_OPTS conditionally.
Today In Maven I achieve this by using below in maven unix template
if ["$3"= “PROD”]; then
JAVA_OPTS=$JAVA_OPTS -Dadent=abc
else
JAVA_OPTS=$JAVA_OPTS -Dadent=xyz
fi
#$3 is the 3rd command line arg to the maven generated script.
How do I achieve this in gradle createStartScript?