About 6 years have passed since I was supposed to be engaged in programming in Java, and even longer, since I had to do any noticeable amount of programming in Java. As long as I remember the language, I was always weak in all other things, such as all tools for creating programs, etc. In fact, I forgot more than I remember - and first of all I was taught on my own.
In the past, I based my code organization on what I saw in some open source projects, so I had directories created using something like com / mybiz / util and com / mybiz / network, etc. I would put the source code for the classes in the appropriate directory and make sure that it was in the package that corresponds to this path. Then, if I had to change the code (for example, to fix errors or add a new procedure to an existing class), it was easy for me to change it and recompile the class. As far as I remember, the import for classes in the root directory for my project (all this was connected) for using these classes did not cause problems with this installation.
Then someone told me about Eclipse, but the biggest thing I remember is refactoring. Until that moment, my IDE was a console window and a text editor.
So, I still have many classes in this hierarchy - com / mybiz / util (and so on). But now I use this code for personal libraries, so it is in com / tango / util and com / tango / network, etc. I need to make changes here and there to make the code more universal and remove things that were specific to the business for one reason or another.
I want to use these classes as libraries for my projects in Eclipse. I would rather not just compile and put them in a jar, as many of the classes are still well tuned and need to be recompiled. I would just like to say to Eclipse: "Use this source code kit in the" com / tango ... "directory tree and then just use something like" import com.tango.util.FileUtils "in my source code.
Moreover, I would like to indicate this as a library or some available source code or resource in Eclipse, so that it easily adds (or adds by default) to every project that I create.
Can I do it? Or should I look at something else or another way to handle this? Again, I would rather just include the source code as it is still changing and recompiling.