Project : Java File Name Converter By Class Name

* Period : 2003.05.12(1 Day)

* Why ?

I have kept my java chatting sources with CD.

I made it when I was beginner at making CD.

So when I checked it recently, I could see the sources saved as all UPPERCASE file name.

I would like to rebuild the java sources but I couldn't it because the name of the java source

was different with class name within the file.

Oops, I need to convert mismatched file names to correct class file names.

 

This program will change java files' name to class file name within them

doing recursive directory searching

 

For example,

ConvertFilter.java(Original java file name) ---> CONVERTFILTER.JAVA(Incorrect java file name changed by some reason)

This "ConvertFilter.java" file's content is same as following;

 

import java.io.*;

 

public class ConvertFilter

{

}

 

This program searches a line starting with "public class"

and replace java file name to a word nearby "public class".

 

* Environment: above JDK 1.1.7

* »ç¿ë¹ý : java RenameBy <directory>

* ¿¹ : java RenameBy .

¼Ò½º ÆÄÀÏ º¸±â

°ü·Ã ÆÄÀÏ ¹Þ±â