1

I have a large project containing both sources and resources under the same directories. Something like:

src  
|_ com  
  |_ package
    |_ JavaClass.java
    |_ a_resource.extension

I would like to separate the resources and move them all to a different root directory, retaining the same directory-package structure, like that:

src  
|_ com  
  |_ package
    |_ JavaClass.java
resources  
|_ com  
  |_ package
    |_ a_resource.extension

Is there an automatic tool for such a refactor?

9
  • What operating system should it run on?
    – user46
    Commented Jan 27, 2016 at 15:15
  • Does it matter? I only need to run it once, so either windows / linux / mac solution would do.
    – Elist
    Commented Jan 27, 2016 at 15:25
  • ... and you presumably want it to patch all the references so it still runs? How big is the code base (SLOC)?
    – Ira Baxter
    Commented Jan 28, 2016 at 5:13
  • I want to move them to resources dir already defined in my IDE project and build tools. My project's SLOC ~ 500K.
    – Elist
    Commented Jan 28, 2016 at 7:27
  • Which version of Java?
    – Ira Baxter
    Commented Feb 11, 2016 at 2:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.