I have a java code which makes an api call which has parameters inside it. I have passed the parameters as arguments which needed to be passed while I build the jar. I run my jar file in this way-> jarname args[0] args[1] args[2] args[3] args[4]
Now, I need a way where can I pass empty argument for PR while building the jar..is there any way possible for it?..I want PR argument to be optional.
String token = args[0];
String ProjectName = args[1];
String Branch = args[2];
String Language= args[3];
int PR = args[4];
URL IssuesTotalcountURL = new URL("sonarurl/api/issues/search?pageSize=500&componentKeys="+ProjectName+"&branch="+Branch+"&severities="+ list.get(i)+"&pullrequest=+PR+");