I'm using the following version of UltraEdit:
I'm trying to apply Artisitc Style Formatting to a list of java files/scripts via the command line.
The formatting settings that I'm trying to apply, are as follows:
When I click the Reformat button while having a java script open, it works as expected.
The command line options which are the result of the above setup are as follows (copied from the above screenshot):
The way I am trying to apply this formatting in bulk, is with a following batch file:
I'm changing the current directory to the folder with all the subfolder that contain the Java scripts.
Then I'm generating the list of files (FileList.txt) with the ".java" extension in the current directory with:
I use the timeout command to make sure that the file list is generated.
Then, using the information I found on UltraEdit online help I run the final command, which should open the new instance of UltraEdit (/fni) and apply to the files specified in a separate TXT file (/f FileList.txt) the prescribed formatting.
What happens is the instance of UltraEdit is opened, along with all the files specified in the FileList.txt file, however they are not being reformatted.
I'm trying to apply Artisitc Style Formatting to a list of java files/scripts via the command line.
The formatting settings that I'm trying to apply, are as follows:
When I click the Reformat button while having a java script open, it works as expected.
The command line options which are the result of the above setup are as follows (copied from the above screenshot):
Code: Select all
--style=java --mode=java -Y --convert-tabs --break-blocks --break-elseifs -j --break-after-logical --pad-oper --pad-header
Code: Select all
cd "C:\PathToFolderStructureWithJavaFiles"
dir/s/b *.java > FileList.txt
timeout 3
"C:\Program Files\IDM Computer Solutions\UltraEdit\uedit64.exe" /fni /f FileList.txt --style=java --mode=java -Y --convert-tabs --break-blocks --break-elseifs -j --break-after-logical --pad-oper --pad-header
Then I'm generating the list of files (FileList.txt) with the ".java" extension in the current directory with:
Code: Select all
dir/s/b *.java > FileList.txt
Then, using the information I found on UltraEdit online help I run the final command, which should open the new instance of UltraEdit (/fni) and apply to the files specified in a separate TXT file (/f FileList.txt) the prescribed formatting.
What happens is the instance of UltraEdit is opened, along with all the files specified in the FileList.txt file, however they are not being reformatted.