James Allen
unread,May 7, 2009, 12:27:06 PM5/7/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to docu
Hi all,
I ran into a minor issue when running Docu for my project - at the end
of the generation process Docu moves some all files from the templates
directory (except those with .spark extension) to the output
directory:
foreach (string file in Directory.GetFiles(templatePath, "*",
SearchOption.AllDirectories))
{
if (Path.GetExtension(file) == ".spark") continue;
... move the files
}
But when you have docu in a directory under source control (e.g.
'tools') alongside your source code, you may also have a directory
called '.svn' (in the caser of SubVersion) in the templates directory
which will also be moved to the output, which is undesirable. What I
have done is to use this line instead:
if (Path.GetExtension(file) == ".spark" || file.Contains("svn"))
continue;
but this will vary depending on what source control you use for the
tools (if any). It may even be better to adopt a white-list approach
rather than a black-list?
Hope this helps!
James