I to add folder nesting in doxygen? - doxygen

I have multiple classes in my C# project
dir1
-folder1
-file1.cs
-file2.cs
-folder2
-file3.cs
dir2
-folder3
-file.cs
How to maintain this folder structure in doxygen also???
Because in Doxygen it is listing all classes under same folder 'Classes'
I have gone through all document but not found anything

Normally the folder structure can be found in the File Reference. See the red frame in this picture:

Use the #dir command to document a directory:
/**
* #dir src
* This is the top level directory of the source files.
* Here a more detailed description of the directory.
*/

Related

Github Repository Languages used not showing correct [duplicate]

GitHub search allows filtering repositories by language. How can I set a repository to a specific language?
You can also override certain files
$ cat .gitattributes
*.rb linguist-language=Java
Source
It is purely deduced from the code content.
As Pedro mentions:
Please note that we count the total bytes of each language's file (we check the extension) to decide the percentages.
This means that if you see your project reported a JavaScript, but you swear you use Ruby, you probably have a JS lib somewhere that is bigger than your Ruby code
As detailed in "GitHub changes repository to the wrong language", you can add a .gitattributes file in which you can:
ignore part of your project (not considered for language detection)
static/* linguist-vendored
consider part of your project as documentation:
docs/* linguist-documentation
indicate some files with specific extension (for instance *.rb) should be considered a specific language:
*.rb linguist-language=Java
You can also make some of the files vendor-ed. Just create a .gitattributes file in the main directory. If you want to exclude CSS from the language statistics write into the file something like this.
client/stylesheets/* linguist-vendored
This will hide all files in the client/stylesheets/ from the language statistics. In my case these are the .css files.
This solves your problem partly, because hides the most used language and choose the second one to be prime.
A bit brute-force, but I used this .gitattributes file:
* linguist-vendored
*.js linguist-vendored=false
It says to ignore all files except .js, so JavaScript becomes the only possible language. My project, https://github.com/aim12340/jQuery-Before-Ready, was listed as HTML and this changed it to JavaScript.
As VonC mentioned in the comments, you can put your libraries under "vendors" or "thirdparty" and the files won't be analysed by linguist, the tool GitHub uses to analyse the language in your code.
# Vendored dependencies
- third[-_]?party/
- 3rd[-_]?party/
- vendors?/
- extern(al)?/
Later, they added more folder names.
Create .gitattributes file in the root of your folder.
Suppose you want the language to be Java, just copy-paste
*.java linguist-detectable=true
*.js linguist-detectable=false
*.html linguist-detectable=false
*.xml linguist-detectable=false
in the .gitattributes file and push the file in the repository. Reload your GitHub page to see the language change.
For reference, use this GitHub repository.
Rename the name of the code files in your repository with the extension added.
For example:
change abc to abc.py for Python
abc to abc.java for Java files
abc to abc.html for HTML

Root file properties

I followed this help page to add folder to a features based product. In build.properties file I added:
root=iwrepo
'iwrepo' corresponds to a folder with sub-folders residing in a feature where the above mentioned properties file is. After the build, I get only folders under 'iwrepo' folder moved to Eclipse install directory (annogen,antlr, etc), not what I expected - 'iwrepo' folder with its sub-folders.
What am I doing wrong?
As per documentation
Similar to the "root" and "root." properties, except that instead of being copied into the root of the eclipse install, files and folders are instead copied into the given subfolder.
Instead of root=iwrepo, I need to use root.folder.iwrepo=iwrepo. This correctly subfolders folders under iwrepo.

Xcode - build setting "EXCLUDED_SOURCE_FILE_NAMES" not working

I am trying to exclude some .swift and .storyboard files from my project (Xcode9) for release build using EXCLUDED_SOURCE_FILE_NAMES.
But its not working for me.
Is it possible to give any folder name to exclude it completely?
How to give multiple files and folder name?
It is not working if I give path like ../ForlderName/*.
Folder is at the same level as my project.
Is it possible to exclude sub-folders files as well?
I am able to exclude if my hierarchy is
MyProject Folder
|_
MyProject Folder
|_FolderToBeExcluded
If I gave FolderToBeExcluded/* it is working but file in FolderToBeExcluded's subfolders are not getting excluded.
If my heirachy is like this (ie folder to be excluded and project folder both at same level)
FolderToBeExcluded
MyProject Folder
|_
MyProject Folder
If I give ../FolderToBeExcluded/
or $(SRCROOT)/../FolderToBeExcluded/
both are not working
If I give directly any one of the file name which is to be excluded it is getting exclude without giving full path.
Is it the limitation of EXCLUDED_SOURCE_FILE_NAMES?
If I gave FolderToBeExcluded/* it is working but file in FolderToBeExcluded's subfolders are not getting excluded.
The reason subfolders are not excluded is because of the /*. That tells it to look for files in FolderToBeExcluded. If you just give FolderToBeExcluded (no slash after) then it will exclude all files in that folder and all subfolders. At least that is what I found.
An important gotcha I ran into today is that you can't exclude files within a folder reference, but you can exclude an entire referenced folder.
When you add a folder to Xcode it will ask you if you want to create a group or create a folder reference. If you choose the second option, then you'll need to be aware that you can't exclude files within the folder, but you can exclude the entire folder.
For me it worked if I define the value of EXCLUDED_SOURCE_FILE_NAMES like this:
$(SRCROOT)/../FolderToBeExcluded/*.*
I am using Xcode 9.4.1
This seems to be the only solution:
Use groups without folders for every subfolder in excluded directory
Exclude ${PROJECT_DIR}/{Path to Excluded Folder}/* in EXCLUDED_SOURCE_FILE_NAMES settings

open file with full project path in eclipse

This should not be too hard: I've got the path of a file relative to my project root (e.g. copied from the console: src/main/java/org/hello/World.java) and want to open this file in eclipse. I can't find how to do this.
I can open a resource and give it "world.java", but I might have many world.java files and I already have the full path in my clipboard so why start searching again.
Use Ctrl+Shift+R and put */ in front of the path (i.e. type Ctrl+Shift+R*/Ctrl+V)

Eclipse: How to overwrite resources in src folder

I have a program that alters a file in my src/resources folder, but the file that gets selected is in the bin/resources directory. How can I tell Eclipse to modify the file in the src/ directory. I understand that the bytecode is executed from the bin/ directory and the file needs to be visible to that folder, but I would like to know if it is possible to reference the src/ file.
I am using:
File file = new File(MyClass.class.getResource("resources/test.xml").getPath());
to load my file, but I don't want the path to my bin/ directory.
The path is:
/C:/Users/Foo/workspace/MyProject/bin/resources/test.xml
If you add src/resources to Eclipse Build Path, the compiler will then copy the entire folder structure to your output directory (i.e. bin) in which case you refer to test.xml using the same code:
File file = new File(MyClass.class.getResource("resources/test.xml").getPath());