Hi Ben, If it is possible for you, why don't you simply rename/refactor the name of your pages, using some IDE. Eclipse, IntelliJIdea do this quite decently as well as many others. If it is not possible to use an IDE, here are some basic steps (untested however): 1) Use ant task ReplaceRegExp[1] to rename the reference of the packages in your source code (for example from import com.oldapp.NiceClass; to import com.newapp.NiceClass; ) like this <replaceregexp> <regexp pattern="com.oldapp."/> <substitution> expression="com.newapp."/> <fileset dir="${project.src}"> <includes="**/*.java"/> </fileset> </replaceregexp>
This is supposed to replace all ocurrences of com.oldapp. to com.newapp. 2) Now after you have updated thge packages names in your source files, you can simply rename their directories. I have used regular expression reqularly :)) some months ago and now I have forgotten them, so I advice you to check the above sample to not spoil your sources HTH Ivan [1]http://ant.apache.org/manual/OptionalTasks/replaceregexp.html --- Ben Gill <[EMAIL PROTECTED]> wrote: > Thanks Ivan, that is great... > > Re: the repackage - move certainly would be a start, > but I was looking > for a repackage task that would recurse from a point > (ie. '.') and move > all dirs/java sources/props files etc.. into a new > package structure... > > Ie. From com.oldapp to com.newapp .. > > But also, I would want it to rename any paths in the > files (ie. > Com/oldapp to com/newapp) and any package names / > import statements... > > I had to write something like this last week, it is > not quite generic > enough to make it an offering as an optional task as > yet... but I > wondered if there was anything else out there like > this.... I saw a > rename packages task on java.dev.net somewhere but > it did not seem to > work.. > > Ben > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]