Remember that HTML Executable adds files from the project’s source folder itself thanks to the powerful Source File List Update option. But you can still add files to your publication from other locations.
In the File Manager, click Add:
Then select an option: you may add single or multiple files, entire folders, virtual folders and custom wild cards. Just select the appropriate action when you have just clicked the Add button:
Add Source Wildcard
For example, selecting “Add Wildcard” will open this window:
You can enter a path and specify which files should be added using a mask: in the situation shown on the screenshot only .html files from c: my documents heexample will be added.
Or you may rather add entire folders (including their sub-folders or not) using the “Add Folder” command.
When added files are not in the source folder or one of its children, you need to specify the publication path (called virtual path) which should be used to access these files once they are compiled in the publication. HTML Executable lets you determine these “virtual” directories thanks to the following window (which is automatically shown when adding files):
The real paths appear on the left; on the right you can determine the related virtual path (a.k.a publication path).
By default, HTML Executable automatically tries to find the best virtual paths. But you can change this yourself: just select one or more files, then click “Modify Path”. You will be prompted to enter the new virtual path and confirm your changes.
Once you have clicked OK, HTML Executable adds them to the publication’s file list and this is the result:
You can see that the virtual paths “moreinfo” and “headers” appear as children of the Publication Root, although the files that were added do not belong to the source folder.
This option is powerful because you can actually add files from any folder and determine virtual paths yourself. The main advantage is that you do not need to copy the different source files to the source folder first in order to have them be compiled.
Copyright G.D.G. Software 2016. All rights reserved