Skip to content

Commit

Permalink
Another go at startup problem
Browse files Browse the repository at this point in the history
Ignoring application responses did not seem to work, after all. (The
problem is difficult to reproduce.)

Let's try to increase timeout.
  • Loading branch information
stisti committed Jul 6, 2012
1 parent 8cda079 commit 23e32ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ on run
display dialog "Found an already-running Jenkins and adopted that." with title "Jenkins" with icon path_to_icon buttons {"OK"}
else
try
ignoring application responses
activate
with timeout of 300 seconds
display dialog "Do you want to customize Jenkins startup?" & return & "(Automatic startup in 15 seconds.)" buttons {"Use defaults", "Change defaults"} default button "Change defaults" with title "Jenkins" with icon path_to_icon giving up after 15
if button returned of the result is equal to "Change defaults" then
display dialog "Use these arguments for JVM:" & return & "(e.g. -Xmx2G É It is OK to leave it empty too.)" default answer java_command_args with title "Jenkins" with icon path_to_icon
Expand All @@ -170,7 +171,7 @@ on run
display dialog "Run Jenkins with these arguments:" & return & "(e.g. --httpPort=N --prefix=/jenkins ... It is OK to leave it empty too.)" default answer jenkins_command_args with title "Jenkins" with icon path_to_icon
set jenkins_command_args to (text returned of the result)
end if
end ignoring
end timeout

tell utils
set jenkins_url to create_jenkins_url from jenkins_command_args
Expand Down

0 comments on commit 23e32ab

Please sign in to comment.