16
16
17
17
package org .springframework .boot .cli .command .run ;
18
18
19
- import java .awt .Desktop ;
20
19
import java .io .File ;
21
20
import java .util .List ;
22
21
import java .util .logging .Level ;
@@ -64,8 +63,6 @@ private static class RunOptionHandler extends CompilerOptionHandler {
64
63
65
64
private OptionSpec <Void > watchOption ;
66
65
67
- private OptionSpec <Void > editOption ;
68
-
69
66
private OptionSpec <Void > verboseOption ;
70
67
71
68
private OptionSpec <Void > quietOption ;
@@ -75,8 +72,6 @@ private static class RunOptionHandler extends CompilerOptionHandler {
75
72
@ Override
76
73
protected void doOptions () {
77
74
this .watchOption = option ("watch" , "Watch the specified file for changes" );
78
- this .editOption = option (asList ("edit" , "e" ),
79
- "Open the file with the default system editor" );
80
75
this .verboseOption = option (asList ("verbose" , "v" ),
81
76
"Verbose logging of dependency resolution" );
82
77
this .quietOption = option (asList ("quiet" , "q" ), "Quiet logging" );
@@ -99,10 +94,6 @@ protected synchronized void run(OptionSet options) throws Exception {
99
94
100
95
SourceOptions sourceOptions = new SourceOptions (options );
101
96
102
- if (options .has (this .editOption )) {
103
- Desktop .getDesktop ().edit (new File (sourceOptions .getSources ().get (0 )));
104
- }
105
-
106
97
List <RepositoryConfiguration > repositoryConfiguration = RepositoryConfigurationFactory
107
98
.createDefaultRepositoryConfiguration ();
108
99
repositoryConfiguration .add (0 , new RepositoryConfiguration ("local" , new File (
0 commit comments