]
Nick Boldt commented on JBIDE-23475:
------------------------------------
I've updated the python script so that changes are applied to the fragment files, then
merged to ide-config.properties.
Also added support for commenting/uncommenting blocks when required, so that we don't
get conflicts between staging and released content.
Added doc on how to run in the three modes:
{code}
# 1. release a dev milestone:
git checkout src/main/ide-config.*properties ide-config.properties
mvn clean install -DbuildType=development
# 2. release a stable GA:
mvn clean install -DbuildType=stable
# 3. stage a milestone:
mvn clean install -DbuildType=staging \
-Dversion_jbt_PREV=4.4.2.Final -Dversion_jbt=4.4.3.AM1 -Dversion_jbt_NEXT=4.4.3.AM2 \
-Dversion_ds_PREV=10.2.0.GA -Dversion_ds=10.3.0.AM1 -Dversion_ds_NEXT=10.3.0.AM2
{code}
split ide-config.properties into multiple files
-------------------------------------------------
Key: JBIDE-23475
URL:
https://issues.jboss.org/browse/JBIDE-23475
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: build, central, central-update
Affects Versions: 4.4.2.AM3
Reporter: Nick Boldt
Assignee: Nick Boldt
Fix For: 4.4.2.Final
I'd like to split the contents of the current ide-config.properties file into
multiple files so the content is easier to maintain via code generation.
So, rather than 1 big file [1] we could split this into 5 files:
* ide-config_4.4.snapshots.properties - contains the properties needed for jbosstools and
devstudio CI builds (currently 4.4.2.Final and 10.2.0.GA)
* ide-config_4.4.staging.properties - contains the properties needed for the latest
jbosstools and devstudio staging build (currently 4.4.2.AM3 and 10.2.0.AM3)
* ide-config_4.4.development.properties - contains the properties needed for the latest
jbosstools and devstudio development build (currently 4.4.2.AM2 and 10.1.0.GA)
* ide-config_4.4.stable.properties - contains the properties needed for the latest
jbosstools and devstudio stable build (currently 4.4.1.Final and 10.1.0.GA)
* ide-config.properties - contains all the other properties for 4.3.x and earlier
releases
[1]
https://github.com/jbosstools/jbosstools-download.jboss.org/blob/master/j...
By splitting this into smaller files, the contents that need to be changed every 3 weeks
when we stage or release a build could be generated destructively, rather than having to
worry about making changes w/ sed and not accidentally pushing in an invalid URL or
value.
From the central side of things, we would just want to treat all ide-config*.properties
files as if they were pieces of a single file, and load them all into the same hash of
properties we currently have from the single file.