Setting a build indicator to enable or disable a feature
First Claim
Patent Images
1. A method comprising:
- setting, in a system comprising a processor, a build indicator in a build environment to a set value for building a program code, the set value selected from a first value indicating that a feature of the program code is enabled, and a second value indicating that the feature is disabled;
in response to the set value of the build indicator being the first value, setting, by the system, a first variable to a value indicating that the feature is enabled;
in response to the set value of the build indicator being the second value, setting, by the system, the first variable to a value indicating that the feature is disabled;
building, by the system, the program code using the set value of the first variable;
in response to the set value of the build indicator being the first value, setting, by the system, a runtime variable to a value indicating that the feature is enabled, wherein the runtime variable being set to the value indicating that the feature is enabled causes a runtime check of the program code to use a portion of the program code that enables the feature; and
in response to the set value of the build indicator being the second value, setting, by the system, the runtime variable to a different value indicating that the feature is disabled, wherein the runtime variable being set to the different value indicating that the feature is disabled causes the runtime check of the program code to use a different portion of the program code with the feature disabled.
1 Assignment
0 Petitions
Accused Products
Abstract
A build indicator is set in a build environment to a set value for building a program code, the set value selected from a first value indicating that a feature of the program code is enabled, and a second value indicating that the feature is disabled. In response to the set value of the build indicator being the first value, a variable is set to a value indicating that the feature is enabled. The program code is built using the value of the variable.
-
Citations
18 Claims
-
1. A method comprising:
-
setting, in a system comprising a processor, a build indicator in a build environment to a set value for building a program code, the set value selected from a first value indicating that a feature of the program code is enabled, and a second value indicating that the feature is disabled; in response to the set value of the build indicator being the first value, setting, by the system, a first variable to a value indicating that the feature is enabled; in response to the set value of the build indicator being the second value, setting, by the system, the first variable to a value indicating that the feature is disabled; building, by the system, the program code using the set value of the first variable; in response to the set value of the build indicator being the first value, setting, by the system, a runtime variable to a value indicating that the feature is enabled, wherein the runtime variable being set to the value indicating that the feature is enabled causes a runtime check of the program code to use a portion of the program code that enables the feature; and in response to the set value of the build indicator being the second value, setting, by the system, the runtime variable to a different value indicating that the feature is disabled, wherein the runtime variable being set to the different value indicating that the feature is disabled causes the runtime check of the program code to use a different portion of the program code with the feature disabled. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system comprising:
-
a processor; and a non-transitory storage medium storing instructions executable on the processor to; receive, in a build environment, a command to set a build indicator to a first value or a second value, the first value indicating that a feature of a program code is enabled, and the second value indicating that the feature is disabled; promote the build indicator to a build tool variable and a runtime variable, wherein the promoting comprises; setting the build tool variable to a value indicating that the feature is enabled in response to the build indicator being set to the first value, and setting the build tool variable to a value indicating that the feature is disabled in response to the build indicator being set to the second value, setting the runtime variable to a value indicating that the feature is enabled in response to the build indicator being set to the first value, and setting the runtime variable to a value indicating that the feature is disabled in response to the build indicator being set to the second value, wherein the runtime variable being set to the value indicating that the feature is enabled is to cause a runtime check of the program code to use a portion of the program code that enables the feature, and wherein the runtime variable being set to the value indicating that the feature is disabled causes the runtime check of the program code to use a different portion of the program code with the feature disabled; and build the program code according to a value to which the build tool variable is set. - View Dependent Claims (12, 13, 14, 15)
-
-
16. A non-transitory machine-readable storage medium storing instructions that upon execution cause a system to:
-
set a build indicator in a build environment to a set value for building a program code, the set value selected from a first value indicating that a feature of the program code is enabled, and a second value indicating that the feature is disabled; in response to the set value of the build indicator being the first value, set a first variable to a value indicating that the feature is enabled; in response to the set value of the build indicator being the second value, set the first variable to a value indicating that the feature is disabled; build the program code using the set value of the first variable; in response to the set value of the build indicator being the first value, set a runtime variable to a value indicating that the feature is enabled, wherein the runtime variable being set to the value indicating that the feature is enabled causes a runtime check of the program code to use a portion of the program code that enables the feature; and in response to the set value of the build indicator being the second value, set the runtime variable to a different value indicating that the feature is disabled, wherein the runtime variable being set to the different value indicating that the feature is disabled causes the runtime check of the program code to use a different portion of the program code with the feature disabled. - View Dependent Claims (17, 18)
-
Specification