Batch script that cleans up or sorts source files
Posted: Sun Jul 24, 2011 9:53 am
TextPad 5.4.2 generates batch files, and, class files from .java files, which are required to run the program.
It would be nice to have the option to generate a batch file which includes cleanup file operations, that I commonly have to run manually. This is done because I tend to organize sub-directories into:
/src ... source files
/bin ... executables
/other directories depending on the model of the program being designed
@echo off
del *.class
del *.bat //including the batch file tp*.bat generated by TextPad
del any other batch files created
The above batch file assumes that the user has placed all the source code and nothing else within the sub-directory where the source code is placed.
Alternatively, the files can be transferred to a /bin sub-directory.
This is common practice within other IDEs which read source java files from a /src sub-directory by default, for example, NetBeans 7.0 and Eclipse 5.x.
The files ending with .java would remain in place.
It would be nice to have the option to generate a batch file which includes cleanup file operations, that I commonly have to run manually. This is done because I tend to organize sub-directories into:
/src ... source files
/bin ... executables
/other directories depending on the model of the program being designed
@echo off
del *.class
del *.bat //including the batch file tp*.bat generated by TextPad
del any other batch files created
The above batch file assumes that the user has placed all the source code and nothing else within the sub-directory where the source code is placed.
Alternatively, the files can be transferred to a /bin sub-directory.
This is common practice within other IDEs which read source java files from a /src sub-directory by default, for example, NetBeans 7.0 and Eclipse 5.x.
The files ending with .java would remain in place.