Batch script that cleans up or sorts source files

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply

What do you think?

Poll ended at Sun Jul 31, 2011 9:53 am

Good idea?
0
No votes
I prefer to keep the .class files after compiling (not a good idea)
1
100%
 
Total votes: 1

User avatar
jon80
Posts: 24
Joined: Thu May 28, 2009 10:03 am

Batch script that cleans up or sorts source files

Post by jon80 »

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.
Jon
User avatar
Drxenos
Posts: 209
Joined: Mon Jul 07, 2003 8:38 pm

Post by Drxenos »

TextPad is not an IDE, and I'd rather it not turn into one. TextPad is a small, fast text editor. There are many other chooses if someone wants a full-blown IDE.
User avatar
jon80
Posts: 24
Joined: Thu May 28, 2009 10:03 am

Post by jon80 »

Drxenos wrote:TextPad is not an IDE, and I'd rather it not turn into one. TextPad is a small, fast text editor. There are many other chooses if someone wants a full-blown IDE.
I did not mean to ask you to turn it into an IDE, it's excellent at meeting the advanced text editing functions, I just pointed out what would have saved me the headache of clearing up .class files after compiling them, especially when the source code is split amongst various source (.java) files. I just stated my opinion :)
Jon
Post Reply