Modify

Ticket #7275 (new enhancement)

Opened 4 months ago

Last modified 4 months ago

Allow restart plugin to restart via the CL in Windows

Reported by: rickmastfan67 Owned by: Upliner
Priority: normal Component: Plugin restart
Version: latest Keywords:
Cc:

Description

Is it possible to allow the restart plugin to restart JOSM via the CL in Windows?

I currently start JOSM with this command: "C:\Program Files\Java\jre6\bin\java.exe" -Xmx3072M -jar josm-tested.jar. If I were to attempt to use the restart plugin to restart JOSM, it then bypasses the original way that I started JOSM and directly loads the *.jar file for JOSM. Because of that, I don't get the Command Line Window that shows up telling me what JOSM has done and any conflicts (like with shortcuts) that happen.

Is there anyway that you might be able to change this behavior on Windows? I mean, if I started the *.jar file directly and then used the restart command, I would expect it just restart the jar file. But if I use the CL way, I expect the restart to be with the CL, not the jar directly.

Thanks.

Attachments

Change History

comment:1 in reply to: ↑ description Changed 4 months ago by skyper

Replying to rickmastfan67:

Is it possible to allow the restart plugin to restart JOSM via the CL in Windows?

I currently start JOSM with this command: "C:\Program Files\Java\jre6\bin\java.exe" -Xmx3072M -jar josm-tested.jar. If I were to attempt to use the restart plugin to restart JOSM, it then bypasses the original way that I started JOSM and directly loads the *.jar file for JOSM. Because of that, I don't get the Command Line Window that shows up telling me what JOSM has done and any conflicts (like with shortcuts) that happen.

Is there anyway that you might be able to change this behavior on Windows? I mean, if I started the *.jar file directly and then used the restart command, I would expect it just restart the jar file. But if I use the CL way, I expect the restart to be with the CL, not the jar directly.

Only work around I see, is to add a script josm.exe in a path with higher priority. This script should start cmd and execute your starting command.

See also #5635 and #6344.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from Upliner. Next status will be 'new'
Next status will be 'needinfo'The owner will change to rickmastfan67
as duplicate The resolution will be set to duplicate. Next status will be 'closed'The specified ticket will be cross-referenced with this ticket
The owner will be changed from Upliner to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.