Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-04-2003, 04:04 PM
jdavidi jdavidi is online now
Registered User
 
Join Date: 10-27-2003
Posts: 38
Unhappy All of my build rules are being ignored...?

Hi all,

I'm attempting to work with some build rules, but I can't get any to fail. No matter what conditions I apply, even to the sample projects, all steps are always attempted. Here's where I started:

Essentially, I have a macro, %VERSION%, which can have the value "8.02" or "8.01" (minus the quotes). I want to to perform a particular step only if the version equals "8.01". I input %VERSION% into the 'Build Only If...' field and set the dropdown to 'is equal to' and set the value to 8.01 . The step continues to work however, whether my %VERSION% macro evaluates to 8.01, 8.02, ZEBRA, or kj984731hkdsk. I just can't get it to fail...

I tried playing with the sample projects, Advanced.bld in particular. I reset the value of %FILETOFIND% to something bogus ("C:\WINNT\WIN.INIF"), but even this build step is still attempted (it fails because it can't find that file of course), but if I'm reading the documentation right the build attempt shouldn't have been made.

Am I just flat out missing something here? Or do I have some weird setting enabled that disables build rules somehow?

Thanks in advance!

--JDAVIDI
Reply With Quote
  #2  
Old 11-04-2003, 04:09 PM
jdavidi jdavidi is online now
Registered User
 
Join Date: 10-27-2003
Posts: 38
Sorry, forgot to mention that I'm on version 5.0
Reply With Quote
  #3  
Old 11-04-2003, 05:33 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
How are you building the step(s)? If you're using Rebuild Selected (Ctrl+F7), build rules (and completion status) are ignored and the step is built unconditionally. This functionality is an ad hoc feature to allow rules to be explicitly bypassed.

You need to use one of the regular build methods in order for build rules to be evaluated. See http://www.visualbuild.com/Manual/?m...ofbuilding.htm for a description of the available build methods; this thread also describes some of them: http://www.kinook.com/Forum/showthread.php?threadid=170
Reply With Quote
  #4  
Old 11-13-2003, 09:20 AM
jdavidi jdavidi is online now
Registered User
 
Join Date: 10-27-2003
Posts: 38
Smile

That's exactly was I was doing (running the Rebuild Selected and Test commands).
Thanks so much for pointing that out!
Reply With Quote
  #5  
Old 09-06-2007, 09:11 AM
wellilein wellilein is online now
Registered User
 
Join Date: 11-30-2005
Posts: 53
Does anyone want this?

I really spent 2 hours on this today! Is there really a customer who wants that rebuilding a step ignores the conditional rules? This is amazingly unexpected behaviour.

Why isn't there an explicit command in the context menu "Rebuild selected (ignoring rules)"? Maybe the existing entry could be renamed so that users are warned...

When a build fails, I sometimes completed it by selecting all of the remaining steps, calling "Rebuild selected". Well, this could be the reason why we sometimes have had releases which really didn't work well! We probably spent thousands of € not knowing about this "feature", wondering why the last build was quite good and this build is as erroneuos as never before.

Yes, of course: it is mentioned in the help file. It is my own fault not reading all that stuff...

BTW: The button "Test" also performs a "REBUILD selected", although the tooltip says "Saves the changes and BUILDs the step". It has exactly the same problem. It's also described in the help file...

So now after all my frustration here are my final questions: how can I execute a single step WITH rules? How can I execute multiple selected steps WITH rules?
Reply With Quote
  #6  
Old 09-06-2007, 10:43 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Use Build | Start (F7) to continue a failed build or Build Next Step (F10) to build only the next step.

To start building at a specific step, use Build From Cursor (Alt+F7) or Start From Cursor (Alt+F10), and then use F10 to build step-by step, or Build To Cursor (Ctrl+F10), or set a breakpoint and use F7 to build to the breakpoint.

You can also build or rebuild an individual group of steps (the selected step and all children) via Build Step Group (Alt+F8) or Rebuild Step Group (Shift+F8).

The purpose of Rebuild Selected is to allow explicitly rebuilding steps that might already be completed, are unchecked, or whose build rule evaluates false. Comparable to rebuilding your project being recompiling even if up-to-date, while building in Visual Build is akin to building your project (only what has changed/not complete yet).
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 04:20 AM.


Copyright © 1999-2023 Kinook Software, Inc.