Can I make a module read-only just to use for reference?
UPDATE: 29-Nov-2017: Please see my bottom-most post for my chosen solution. I copied the source tree of the stuff I wanted directly into the project directory (outside of IDEA). I then marked it to exclude it from compilation.
ORIGINAL POST:
I have two projects each with modules using completely different techniques. An old version, and a new version:
Project: Conway4, with Module: Conway4
Project: Conway5, with Module: Conway5 (This is a newer version, using entirely different java techniques)
Now *within* conway5 it's useful to have the old module (Conway4) around for backward reference only. I don't want it part of the current build, and I'd rather not be able to mess with it. Thus my Conway5 project would look like this:
Project: Conway5
with Module: Conway4 (for read-only)
and Module: Conway5 (current development)
Is this possible? Or should I simply open the Conway4 project in a new window for backward reference?
THANKS!!
Note: Guys, unless I'm doing something wrong, this is really an arcane forum editor. I can't seem to turn off paragraph mode: "normal text" still breaks things into paragraphs, and that's not how paragraph modes work in other forums. Was this a case of re-inventing an already established wheel?
Please sign in to leave a comment.
If you don't want to edit the module code, make it a library with the sources attached.
The forum here is a third-party product ZenDesk, you can leave feedback here: https://support.zendesk.com/hc/en-us/community/topics/200132066-Product-feedback .
Ah! Thanks!!
Can I add select files to a module as simply files for reference and outside of compilation?
You can add files to the source root of the module, if you don't want them to be compiled, exclude this directory from compilation: https://www.jetbrains.com/help/idea/excludes.html.
Excellent. Thanks!
Ok, in case anyone here is looking for what I found the most useful, I copied the package folder that was ((in this case, src/conway, copied external to IDEA in windows explorer) from the OLD project's module to the new one, but I did not put it into the src/ root of the module, but instead into the root of the module itself as PREVIOUS_VERSION/conway, and then, as you said, excluded it compilation.
Gives me a safe copy of the entire previous tree to peruse, and really seems easier to me than making things libraries and attaching sources. At least to me. YMMV.
The DOWNSIDE to this approach is that if I ctrl-leftclick on (say) a class name, it'll bring me to the current project's class name and not the one in the tree. So if this is a problem for you, then do as Serge suggests: Include it as a library and attach the sources (and then mark as exclude)---that might work.
Thanks for the tips!
Ah, but the my issue isn't with ZenDesk, it's with JetBrains deciding to use ZenDesk. Besides, looking into the ZenDesk site shows that there are more features available that maybe JetBrains disabled(?)
Either way, it's up to JetBrains I suppose. {shrug}