You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, the cdn location will be picked up as a priority if it exists in the asset definition, then jar, etc.
Dandelion must log if none of the locations declared in the above property is mentioned in the asset definition.
Syntax: %VARIABLE% will be used instead of ${VARIABLE} in order to avoid any conflict with Maven or any other build tool that use ${} to perform resource filtering.
Profile activation
The activation of a profile will be done using the following system property : -Ddandelion.profile.active=prod
Once the profile is retrieved at initialization, the right properties file will be loaded, i.e. dandelion_prod.properties in the example.
The profile name must be case-insensitive.
Only one profile can be activated at a time.
The text was updated successfully, but these errors were encountered:
* The StandardConfigurationLoader has been updated in order to be able to load different properties files depending on the active profile.
* A profile is activated using the -Ddandelion.profile.active system property
* Some reserved words are used to load preconfigured sets of configurations
* "", "dev", "development" => each DandelionConfig entry is configured using the default dev value
* "prod", "production" => each DandelionConfig entry is configured using the default prod value
* Any custom profile name can be used. All configurations that are not specified in the corresponding properties file will be initialized with default dev values.
* Plenty of configuration points have been renamed or added (toolAssetPrettyPrintingEnabled, toolBundleGraphEnabled, assetCachingEnabled, ...) for more consistency
Regarding #36, it only lacks variables substitution and corresponding tests obviously.
* Added new utilities method allowing to perform variable substitution
* At startup, a new finalization step is executed during the filling of the BundleStorage to perform variable substitution in asset locations
* Asset names are now stored lowercase when deducted from the asset location (fixing a regression in bundles/assets exclusions)
* Code cleaning (new comments, useless checks, ...)
Closes#36
... in order to address the problematics of different environments (dev, qa, prod).
Requirements
It should be possible to declare multiple locations for each asset of a bundle. For example:
Profile definition
Then, for each different profile, a properties file will be needed.
For example :
Naming scheme:
dandelion_[profileName].properties
In each profile, it will be possible :
In this example, the
cdn
location will be picked up as a priority if it exists in the asset definition, thenjar
, etc.Dandelion must log if none of the locations declared in the above property is mentioned in the asset definition.
As a consequence, it will be possible to declare the following kind of asset location:
Syntax:
%VARIABLE%
will be used instead of${VARIABLE}
in order to avoid any conflict with Maven or any other build tool that use${}
to perform resource filtering.Profile activation
The activation of a profile will be done using the following system property :
-Ddandelion.profile.active=prod
Once the profile is retrieved at initialization, the right properties file will be loaded, i.e.
dandelion_prod.properties
in the example.The profile name must be case-insensitive.
Only one profile can be activated at a time.
The text was updated successfully, but these errors were encountered: