Is there an easy way to reorder imports in all * .java files in a project?
for example:
import java.util.Calendar; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat;
will become
import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar;
we have about 200 source files and they should have the import in order.
What would be the best way to approach this? I am open to a perl / python / groovy script that would do this ...
jamie
source share