Menu

#497 Jalopy ant plugin removes all my imports

open
S
Plug-in Ant (8)
3
2007-03-20
2006-06-21
Wonker
No

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

Discussion

  • S

    S - 2006-06-21

    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.

     
  • Wonker

    Wonker - 2006-06-22
    • priority: 5 --> 3
     
  • S

    S - 2007-03-20
    • assigned_to: nobody --> notzippy
     
  • S

    S - 2007-03-20

    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.

     

Log in to post a comment.