Publishing

HaQuery automatically copy files from pages and components support folders. But often we need to copy not only them. To specify additional folders/files to copy you can use publish.xml file.

publish.xml file format:

<publish>
    <dir src="path_related_to_current_folder" 
        [ dest="path_related_to_bin_folder" ]
        [ include="regex" ]
        [ exclude="regex" ]
        [ platform="neko|php" ]
        [ if="define" ]
        [ if-all="define1 !define2 ..." ]
        [ if-any="define1 !define2 ..." ]
    />

    <file src="path_to_file_related_to_current_folder"
        [ dest="path_to_file_related_to_bin_folder" ]
        [ platform="neko|php" ]
        [ if="define" ]
        [ if-all="define1 !define2 ..." ]
        [ if-any="define1 !define2 ..." ]
    />
</publish>

Example:

<publish>
    <dir src="images" />
    <dir src="data" />
    <file src="favicon.ico" />
    <file src="robots.txt" />
</publish>

You can have one publish.xml file in every classpath folder (for example, in the src).

version #240, modified 2015-07-04 02:08:39 by yar3333