Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-19-2015, 03:29 PM
deramor deramor is online now
Registered User
 
Join Date: 05-11-2011
Posts: 27
Process Files step -- fail if no matching files found?

Hello-

Is there a way to fail a process files step if there are no files found matching a given filter? I see that in the copy files step there is an option to fail the step if there are no files to copy. I am looking for a similar option for the process files step.

Example:

Given the following folder:
c:\temp\v1.0\bin

Process all files in the folder only including files matching *V1.0.dll
If there are no Dlls matching the filter, I would like the step to fail.

Currently, the step gets skipped along with all of its children steps.
Reply With Quote
  #2  
Old 03-19-2015, 04:23 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
You can't fail the Process Files step itself in that situation, but in the following sibling step, you could check the temporary macro PROCFILES_COUNT and fail the build if it is 0. See the attached project.
Attached Files
File Type: bld NoFiles.bld (1.4 KB, 2486 views)
Reply With Quote
  #3  
Old 07-09-2015, 09:22 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Implemented in v9.
http://www.kinook.com/VisBuildPro/Ma...ilesaction.htm
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 01:07 PM.


Copyright © 1999-2023 Kinook Software, Inc.