excluding directories
- roedygr
- Rank V - Professional
- Posts: 367
- Joined: Fri Feb 17, 2006 5:22 am
- Location: Victoria BC Canada
- Contact:
excluding directories
I have a large directory tree to validate. Each directory has a /foot directory
Is there a way to tersely avoid all the /foot directories, like you can in SVN?
Is there a way to tersely avoid all the /foot directories, like you can in SVN?
- Albert Wiersch
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
- Contact:
Re: excluding directories
Hello,
You can load the target list and then go to the 'Target List Options' tab and use this in the 'Don't process these targets' option: */foot/*
Or you may have to use (with backslash instead of forward slash): *\foot\*
You can load the target list and then go to the 'Target List Options' tab and use this in the 'Don't process these targets' option: */foot/*
Or you may have to use (with backslash instead of forward slash): *\foot\*
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
- roedygr
- Rank V - Professional
- Posts: 367
- Joined: Fri Feb 17, 2006 5:22 am
- Location: Victoria BC Canada
- Contact:
Re: excluding directories
I tried both with \ and /. It is ignored.Albert Wiersch wrote:Hello,
Or you may have to use (with backslash instead of forward slash): *\foot\*
See attached screenshot
- Attachments
-
- screen shot of setting option
- shot.png (1.66 KiB) Viewed 7611 times
- roedygr
- Rank V - Professional
- Posts: 367
- Joined: Fri Feb 17, 2006 5:22 am
- Location: Victoria BC Canada
- Contact:
Re: excluding directories
I foot etc are names of directories. Should I be using file names?
- Albert Wiersch
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
- Contact:
Re: excluding directories
Hello,
It looks like you're putting it in the wrong place. Please try moving it to 'Don't process these targets' instead of 'Don't check these links'.
It looks like you're putting it in the wrong place. Please try moving it to 'Don't process these targets' instead of 'Don't check these links'.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
- roedygr
- Rank V - Professional
- Posts: 367
- Joined: Fri Feb 17, 2006 5:22 am
- Location: Victoria BC Canada
- Contact:
Re: excluding directories
Great! it is working now. Your help says:
Strings separated by semicolons; targets that match are NOT processed.
I suggest this:
Strings separated by semicolons; targets that match are NOT processed. e.g. */include/* to avoid processing all directories named include.
similarly for the link exclude. I doubt anyone ever uses this feature simply for lack of an example. There are so many wildcard schemes out there.
Strings separated by semicolons; targets that match are NOT processed.
I suggest this:
Strings separated by semicolons; targets that match are NOT processed. e.g. */include/* to avoid processing all directories named include.
similarly for the link exclude. I doubt anyone ever uses this feature simply for lack of an example. There are so many wildcard schemes out there.
- Albert Wiersch
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
- Contact:
Re: excluding directories
Great! I'm glad it's working.
Rather than try to squeeze too much information in the help hint, I just added "Press F1 for more information.". If you press F1, then it should take you to a help page with detailed information (and some examples) on the options.
Rather than try to squeeze too much information in the help hint, I just added "Press F1 for more information.". If you press F1, then it should take you to a help page with detailed information (and some examples) on the options.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
- roedygr
- Rank V - Professional
- Posts: 367
- Joined: Fri Feb 17, 2006 5:22 am
- Location: Victoria BC Canada
- Contact:
Re: excluding directories
oops I spoke too soonroedygr wrote:Great! it is working now..
*\foot\*;*\include\*;*\snippet\*;*\embellishment\*
is letting through files of the form the E:\mindprod\book\foot\9781449311520.html
I think it looked like it was working because the cache mechanism was filtering out the foot files.
My script looks like this:
<?xml version="1.0"?>
<csebatchwizardtargetlist version="8">
<options htmlreportfilename="C:\temp\batchreport.html" functionsfilename="E:\env\htmlval\cache.script" excludestrings="*\foot\*;*\include\*;*\snippet\*;*\embellishment\*" />
<target flags="1069547546" target="E:\mindprod" />
</csebatchwizardtargetlist>
- Albert Wiersch
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
- Contact:
Re: excluding directories
I see the problem. The cache code was overriding those exclusions.
I've updated the "caching code" here:
http://www.htmlvalidator.com/CSEForum/v ... 9021#p9021
Please update to that. I added this line:
So if the target's default is to not process the target because you have excluded it, then the cache code will not override it.
I've updated the "caching code" here:
http://www.htmlvalidator.com/CSEForum/v ... 9021#p9021
Please update to that. I added this line:
Code: Select all
if !$otca_add return;
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
- roedygr
- Rank V - Professional
- Posts: 367
- Joined: Fri Feb 17, 2006 5:22 am
- Location: Victoria BC Canada
- Contact:
Re: excluding directories
S U C C E S S
both the problem with the missing "luke" cache files is fixed, and so is *\foot\*.
Thank you. It is so fast! I afford to validate everything much more frequently.
both the problem with the missing "luke" cache files is fixed, and so is *\foot\*.
Thank you. It is so fast! I afford to validate everything much more frequently.
- Albert Wiersch
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
- Contact:
Re: excluding directories
You're very welcome!roedygr wrote:Thank you. It is so fast! I afford to validate everything much more frequently.
I knew we'd get everything ironed out sooner or later.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial