Menu

ImportScrubber / News: Recent posts

v1.1.9 fixes a bug....

....that allowed java.lang classes to slip through. Thanks to Paul Holser for finding this. There are also some minor performance enhancements, refactoring, etc.

Posted by Tom Copeland 2001-06-29

v1.1.8 fixes a bug...

...that cropped up when a Class is used as a method parameter. Thanks to several people for noticing this bug.

Posted by Tom Copeland 2001-06-25

v1.1.7 fixes another bug...

...which excluded imports from java.lang subpackages (thanks to Paul Holser for finding this).

Posted by Tom Copeland 2001-06-20

v1.1.6 fixes a bug....

....which would skip imports of static inner classes. Thanks to Brad Johnson for reporting this bug.

Walton Channing also fine-tuned the package break logic.

Posted by Tom Copeland 2001-06-20

v1.1.5 has minor performance enhancements...

...writing the files should be slightly faster now. There are also some internal design changes - i.e., refactoring.

Posted by Tom Copeland 2001-06-18

v1.1.4 adds some functionality...

...suggested and implemented by Walton Channing.

Import statements are now sorted without respect to case, and a blank line is place between packages from different vendors - i.e., between java.nnn and com.nnn.

Posted by Tom Copeland 2001-06-13

Importscrubber now works in Java Web Start....

...just install Java Web Start (if you haven't already) from here:

http://java.sun.com/products/javawebstart/

and click on the JNLP link on the Importscrubber homepage:

http://importscrubber.sourceforge.net/

Posted by Tom Copeland 2001-06-08

v1.1.3 fixes another bug...

...which would interpret certain strings as class references.

Posted by Tom Copeland 2001-06-06

v1.1.2 improves performance...

...by replacing my clumsily written bubble sort with Collections.sort(). Hooray for java.util!

Posted by Tom Copeland 2001-06-01

v1.1.1 fixes a bug...

...that would include packages from java.lang.

Posted by Tom Copeland 2001-05-30

v1.1 is out....

....and uses the BCEL bytecode parser. More info on this excellent piece of code can be found here - http://bcel.sourceforge.net - and a big thank you to Markus for his work!

So, no need to run over to Alphaworks any more before using Importscrubber... which is nice.

Posted by Tom Copeland 2001-05-28

BCEL is here....

...http://bcel.sourceforge.net. As soon as I get importscrubber converted over I'll send the fellow an email and get appended to the long list of BCEL users.

It's LGPL, too, so no need to the separate CFParse download. Which is nice.

Tom

Posted by Tom Copeland 2001-05-27

It seems to work fine with BCEL...

...but I'll wait until I can run it on some more complicated files before I do another release.

Posted by Tom Copeland 2001-05-26

And release 1.0.1 is out there...

...after a brief but puzzling pause. In the next release, I should probably do some more refactoring and perhaps neaten up the GUI a bit.

Posted by Tom Copeland 2001-05-26

I'd like to do another release...

...but for some odd reason the zip file isn't showing up as part of the release. Strange. Maybe it'll work later...

Posted by Tom Copeland 2001-05-25

After a long hiatus... a functional product emerges...

...the GUI works, inner classes are handled correctly, and generally, things are in decent shape.

As always, feedback is welcome at tomcopeland@users.sourceforge.net.

Posted by Tom Copeland 2001-05-24

And the source code is check in at last...

...it all comes together, finally.

Furthermore, I was able to do some refactoring, which should make things a bit easier to follow.

I was thinking a bit about a GUI for importscrubber. Perhaps a JFrame with a JFileChooser to pick the file/directory, a button to say "Go", a progress bar for reading/formatting the files, and a text area for showing some text output - i.e., "now processing Blah.java".... read more

Posted by Tom Copeland 2001-02-09

First release done...

...ah, the joys of 0.1! :-)

Anyhow, there it is - complete with Ant build script and a batch file that runs a short demo. Next big things to do are 1) write some unit tests and 2) find a GPL bytecode parser. Onwards and upwards!

Posted by Tom Copeland 2001-02-06

CVS still down, so I'll try to release a jar file...

...of the source code. Not sure if this is possible, but I'll give it a shot. The current importscrubber incarnation gets most things - but not everything.

Posted by Tom Copeland 2001-02-05

CVS problems preventing the first source drop...

...I've submitted a tech support request. I made some more changes to the way importscrubber figures out which files its supposed to clean up; now it's a tad more flexible. Next step is to allow it to clean up all the files under a given root node.

If you want to see the source so far, email me at tom@roku.com and I'll send you a jar file.

Also, it's JDK 1.1 compliant - for now. Not sure that's desirable or important.

Posted by Tom Copeland 2001-02-02

A first draft

I wrote a first draft using CFParse. It seems to work pretty well and is fast enough - about 300 ms to process a source file with 18 import statements. I'll do an Ant build script for it and check it in as soon as I can figure out how to use CVS. :-)

Posted by Tom Copeland 2001-02-01

Some project mgmt stuff

These are more "notes for Tom" than anything else.

I'd like to use Ant for building.
Need to set up a Ant-like directory structure -
/src
the code
/docs
readme & such
/lib
cfparse (if we can use it), ant, junit
/bin
scripts & such
/etc
?
/build
ant should put finished jars here
how to make "executable jars"?

Posted by Tom Copeland 2001-01-24

And so it begins...

Well, today is day one of this project. Hopefully this project will be useful and fun.

I was considering using the Alphaworks CFParse library to parse the class files. This sure would make things a lot easier. However, the Alphaworks license says that I have to delete CFParse 90 days after downloading it. I emailed the auther to see if there is any way around this... if not, I may have to roll my own .class file parser. Actually, that's probably wouldn't be such a bad thing for me personally, but it would slow down the project a but while I figured all that stuff out.... read more

Posted by Tom Copeland 2001-01-24