'dest/dir3/subsub_dir/file_Asubsub.txt' -> './././src/dir3/subsub_dir/file_Asubsub.txt' Mkdir: created directory 'dest/dir3/subsub_dir' recursive-symlink.sh src/ dest/ -name '*_A*' To show its usage, let's say I have the following files/dirs at the begining: ├── recursive-symlink.sh* It doesn't need to have the destination directory structure created. I created a short script to do this, with a nice output which should be easy check the results. This is not the case, the master still maintains automatic synchronisation. I had expected to run manual synchronisations of the master after edits to the sub-projects. It's a huge bonus that it works as well, if not better than I had anticipated. So, albeit a compromise I believe that this workaround for Netbeans is as clean a solution I could achieve today. I believe Eclipse has this feature in-built, though I do not have Eclipse. What I have now is a separate project defined for each of my own packages which show only the files for that package while maintaining the master project hierarchy.īy building separate package projects that use symlinks to my package files within the master project, I have effectively created what I believe to be the perfect solution where there doesn't seem to be one available within the Netbeans IDE in its current form.Įach sub-project does nothing but allow me to work on a subset of files relating only to itself which really makes my time at the keyboard more efficient. However in my current project this is very time consuming due to the large volume of files and directories involved. This allows me to easily find my own package files as I move around within the project. When I am building packages for a project I tend to name all of the associated files so that they have part of the file name in common. I perform the majority of my coding in Netbeans. I have now accepted a working answer and I want to share some context so that a similar use case might find a solution more easily. I have the directory structure setup in the destination to match the source, but it's just directories, so I don't mind deleting those if it's easier to write a command that for an empty destination. Here is what I have so far: ln -s find ~/path/to/src/ -name "*stringtomatch*" find ~/path/to/dest There is a known string in each of the filenames I wish to symlink. I am trying to symlink a set of specific files from a project I'm working on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |