The following statement
$VERSION = '$Rev$';
breaks the plugin code with
unknown-a871928:0: XInclude error : failed build URL
When I try to run the XmlQueryPluginRecipe5 example on the Plugin home page.
This is because, at line 1490 the statement
$xmldir .= "/$VERSION"; # ensure that the XML generated per topic is versioned
causes a bad URL to be generated - one that includes colons and spaces.
--
TWiki:Main/DipuDeshmukh - 2011-06-02
What is the best way to refer to the plugin revision for this purpose?
--
TWiki:Main.DipuDeshmukh - 2011-06-02
Once checked-in, the value of
$VERSION
becomes something like
$Rev: 19215 (2010-07-10) $
, representing the SVN number and date.
You could either change the
$VERSION
of this plugin to a hand coded string, such as
"2011-06-02"
, or sanitize the string before using it as a directory name (filter string to keep only characters that are valid by the OS).
--
TWiki:Main.PeterThoeny - 2011-06-02
I have decided to go the string sanitation route. Thanks for the suggestions.I have fixed the problem and uploaded the files into SVN and released it.
--
TWiki:Main.DipuDeshmukh - 2011-06-02