@@ -250,15 +250,15 @@ private void updateDevonProperties() {
250
250
devonPropertiesPath = devonPropertiesPath .getParent ();
251
251
}
252
252
253
- for (Path file_path : pathList ) {
254
- if (!Files .exists (file_path )) {
253
+ for (Path filePath : pathList ) {
254
+ if (!Files .exists (filePath )) {
255
255
continue ;
256
256
}
257
- Path target = file_path .getParent ().resolve ("ide.properties" );
257
+ Path target = filePath .getParent ().resolve ("ide.properties" );
258
258
Properties devonProperties = new Properties ();
259
259
devonProperties .put ("IDE_VARIABLE_SYNTAX_LEGACY_SUPPORT_ENABLED" , "false" );
260
260
try {
261
- List <String > readLines = Files .readAllLines (file_path );
261
+ List <String > readLines = Files .readAllLines (filePath );
262
262
String [] split ;
263
263
for (String line : readLines ) {
264
264
if (!line .contains ("#" ) && !line .isEmpty ()) {
@@ -283,7 +283,7 @@ private void updateDevonProperties() {
283
283
throw new RuntimeException (e );
284
284
}
285
285
286
- if (context .getFileAccess ().findFirst (file_path .getParent (), path -> path .getFileName ().toString ().equals ("ide.properties" ), false ) != null ) {
286
+ if (context .getFileAccess ().findFirst (filePath .getParent (), path -> path .getFileName ().toString ().equals ("ide.properties" ), false ) != null ) {
287
287
try {
288
288
List <String > readLines = Files .readAllLines (target );
289
289
String [] split ;
@@ -319,9 +319,9 @@ private void updateDevonProperties() {
319
319
}
320
320
}
321
321
322
- this .context .success ("Successfully merged and updated ide.properties: " + file_path );
322
+ this .context .success ("Successfully merged and updated ide.properties: " + filePath );
323
323
324
- Files .delete (file_path );
324
+ Files .delete (filePath );
325
325
326
326
} catch (IOException e ) {
327
327
throw new RuntimeException (e );
@@ -345,20 +345,20 @@ private void updateDevonProperties() {
345
345
+ "\n "
346
346
+ "# In case you are sitting behind a proxy these JVM options may help:\n "
347
347
+ "#export JAVA_OPTS=-Dhttp.proxyHost=myproxy.com -Dhttp.proxyPort=8080\n " ;
348
- Files .write (file_path , comment .getBytes ());
348
+ Files .write (filePath , comment .getBytes ());
349
349
for (Entry <Object , Object > set : devonProperties .entrySet ()) {
350
350
if (set .getValue () instanceof String ) {
351
- Files .write (file_path , ("\n " + set .getKey ().toString () + "=" + set .getValue ().toString ()).getBytes (), StandardOpenOption .APPEND );
351
+ Files .write (filePath , ("\n " + set .getKey ().toString () + "=" + set .getValue ().toString ()).getBytes (), StandardOpenOption .APPEND );
352
352
}
353
353
if (set .getValue () instanceof String []) {
354
354
String [] values = (String []) set .getValue ();
355
- Files .write (file_path , ("\n " + values [0 ] + " " + set .getKey ().toString () + "=" + values [1 ]).getBytes (), StandardOpenOption .APPEND );
355
+ Files .write (filePath , ("\n " + values [0 ] + " " + set .getKey ().toString () + "=" + values [1 ]).getBytes (), StandardOpenOption .APPEND );
356
356
}
357
357
}
358
- Files .move (file_path , target );
359
- this .context .success ("Updated file name: " + file_path + "\n -> " + target + "and updated variables" );
358
+ Files .move (filePath , target );
359
+ this .context .success ("Updated file name: " + filePath + "\n -> " + target + "and updated variables" );
360
360
} catch (IOException e ) {
361
- this .context .error ("Error updating file name: " + file_path , e );
361
+ this .context .error ("Error updating file name: " + filePath , e );
362
362
}
363
363
}
364
364
}
0 commit comments