Ant symlink windows
Certainly, you need to change the destination path. One thing that distinguishes Symlink from Shortcut or the Alias Folder is that a Symlink will be treated like the original file. Symlink can be accessed through Terminal and can also be added to any GUI application. In SublimeText, for instance, you can add the Symlink, instead of the original source as a Project.
We would not be able for doing so with a Shortcut and an Alias folder. Aside from creating a Symlink folder, we can also use Apache Alias. That way you can also access folders through the localhost address — as if it is stored inside the Apache DocumentRoot. Remove the hash sign at the beginning of the following line:.
At the same time, add this line at the very bottom of httpd. Below is one complete example. In this case, Antora preserves the path of the symlink, then appends the path to the file from that point. As far as Antora is concerned, the file lives inside the directory represented by the symlink, as though the symlink were a real directory.
The takeaway here is that by using symlinks, you can convince Antora that a file or directory is in a different location than it actually is.
In order to make them available to Antora, you need to remap them into the Antora hierarchy. What we want to do is include the source file MyClass. Symlinks to the rescue! Start by creating the examples folder under the ROOT module where the symlink will live. Start by switching to that directory in your terminal. You can now include the source file in the index. You may find it tedious to have to create a symlink for every file you want to include.
You can create a symlink to a directory, which effectively grafts that hierarchy into the Antora hierarchy. Again, start by switching to the examples directory. You can create symlinks for any type of resource, including examples, partials, pages, images, and so forth. Although the target of the symlink is usually outside of the Antora hierarchy, a symlink can point to a location within the Antora hierarchy if the intent is to duplicate the file or directory.
The target of the symlink must exist. The target of the symlink should be relative. Creating a symlink that targets an absolute path has undefined or non-portable behavior. Doing so adds extra processing for Antora that can slow down your build.
Will build fail? Or this task will be ignored on windows platform? Or in case of NTFS drive, it will even work? I'm running Win7 and I tried it. Since I have Mingw installed it used ln. Ln seemed just to copy everything. Since a normal Windows installation does not have ln, it would fail there. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 10 years, 5 months ago. Active 3 years, 11 months ago. Viewed 3k times. Dmytro Zavalkin Dmytro Zavalkin 5, 1 1 gold badge 28 28 silver badges 34 34 bronze badges. Add a comment.
0コメント