Hello, > >unused import statments all over the place. I don't like the > >import blah.* format either. I was curious if there is an > automated way to > >check this in particular using ant, or an add in to ant? I > have tried using > >checkstyle, but it doesn't appear to work with 1.4. > > There is however one reliable solution: I do a pseudo-compile using > the KOPI compiler, > > http://www.dms.at/kopi/
[SNIP] > However, KOPI accepts the "*" if more than 4 (or 5?) classes from the > same package get imported. But since KOPI is open source, there might > be a way to tweak the sources to remove this limit. It's not actually related to Ant and an answer to the original question, but Eclipse (http://www.eclipse.org) has an option to organize the imports the way you want. You can configure how you want imports to be grouped and you can configure how many separate classes you need to use before it falls back to importing the complete package. My current settings: Sort order of import statements: java.* javax.* org.xml.* org.w3c.* org.* com.* Number of imports before .* is used: 5 Ringo -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
