Skip to content

Commit e46defe

Browse files
committed
ST6RI-836 Moved printing of API base path earlier in %load command impl.
1 parent 070a256 commit e46defe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

org.omg.sysml.interactive/src/org/omg/sysml/interactive/SysMLInteractive.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ protected String publish(String name) {
489489
* @return output of the command
490490
*/
491491
public String load(Map<String, String> parameters) {
492-
counter++;
492+
this.counter++;
493493

494494
if (parameters.containsKey(HELP_KEY)) {
495495
return SysMLInteractiveHelp.getLoadHelp();
@@ -503,6 +503,9 @@ public String load(Map<String, String> parameters) {
503503
return "ERROR:Branch name and id cannot be provided at the same time\n";
504504
}
505505

506+
System.out.println("API base path: " + apiBasePath);
507+
System.out.println();
508+
506509
final ProjectRepository repository = new ProjectRepository(apiBasePath);
507510
final RemoteProject project;
508511

@@ -541,8 +544,6 @@ private String load(RemoteBranch branch) {
541544
return "ERROR:Branch doesn't exist\n";
542545
}
543546

544-
System.out.println("API base path: " + apiBasePath);
545-
System.out.println();
546547
System.out.println("Selected branch " + branch.getName() + " (" + branch.getRemoteId().toString() + ")");
547548

548549
Revision headRevision = branch.getHeadRevision();

0 commit comments

Comments
 (0)