I am using the jalopy plugin via ant (version:
jalopy-ant-0.1-1.5rc3).
When it formats the java files within the src folder,
it removes all the imports from all the source files
(they are all being used). When I use the same
convention file via the eclipse and command line
plugins, formatting is done with no problems.
Anyone got any ideas?
Cheers in advance,
Niraj
Logged In: YES
user_id=723231
In eclipse the optimzation section (under printer->imports)
is ignored, in ant it is not.
For now simply uncheck the expand/collapse checkbox.
Logged In: YES
user_id=1543716
ooops, sorry just read the documentation :) -
http://jalopy.sourceforge.net/existing/imports.html
Although even through the ant plugin, should it remove the
imports altogether? As none of them were star imports, so no
optimisation was needed.
Logged In: YES
user_id=723231
Originator: NO
You likely have collapse single type imports or expand on-demand imports enabled.
In eclipse it ignores both of those flags when used in the ant task it attempts to verify your imports. This quick fix is to leave these unchecked.