Hi folks,

As part of our ongoing incubation process at Apache, we're going to be 
renaming the core wicket package from "wicket" to "org.apache.wicket" 
shortly (not quite sure when yet, but soon).

If you're developing against the subversion wicket-1.x branch, you'll 
need to change your imports accordingly.

If you're on a box with find and sed (i.e. Linux, MacOSX, BSD, etc.) 
then you should be able to execute this in your project's directory:

find . -name "*.java" -exec \
sed -i -e 's/import wicket\./import org.apache.wicket./' {} \;

If you use Eclipse you can do something like this(*):

  - Make sure your project is backed up, etc.
  - Select the project you wish to update in the navigator.
  - Go to the "Search" menu and click "File".
  - Type "import wicket." (without the quotes) into the
    "Containing text:" field.
  - Click "Replace..."
  - Set the "With:" field to "import org.apache.wicket."
  - Click "Replace All".

If someone feels like telling IDEA/NetBeans/ other IDE users how best to 
accomplish this, by all means tell us. :-)

You may need to fix some imports back if you use contrib modules from 
wicket-stuff or elsewhere.

Best regards,

Alastair

(*) I tried to cook up a refactoring script for this, but it seems 
that's not really supported in a project-independent way for package 
renames, which is a pity.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to