Skip to content

Commit

Permalink
LRQA-54968 Use clearer macro names
Browse files Browse the repository at this point in the history
  • Loading branch information
joshchong authored and brianchandotcom committed Feb 25, 2020
1 parent d0dbf40 commit 819740a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion build-test-batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ app.server.type=@{app.server.type}]]></echo>
</then>
</if>

<prepare-elasticsearch-configuration />
<prepare-portal-elasticsearch-osgi-configuration />

<lstopwatch action="start" name="prepare-test-build-dist.bundles.@{app.server.type}.compile-test" />

Expand Down
4 changes: 2 additions & 2 deletions build-test-elasticsearch6.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ xpack.security.sessionTimeout: 600000</echo>
</sequential>
</macrodef>

<macrodef name="configure-portal-elasticsearch-osgi-properties">
<macrodef name="configure-portal-remote-elasticsearch-osgi-properties">
<sequential>
<echo append="true" file="${liferay.home}/osgi/configs/com.liferay.portal.search.elasticsearch6.configuration.ElasticsearchConfiguration.config">${line.separator}operationMode="REMOTE"</echo>
</sequential>
Expand Down Expand Up @@ -768,7 +768,7 @@ xpack.monitoring.collection.enabled: true</echo>
</then>
</if>

<configure-portal-elasticsearch-osgi-properties />
<configure-portal-remote-elasticsearch-osgi-properties />

<get-testcase-property property.name="remote.elasticsearch.cluster.size" />

Expand Down
4 changes: 2 additions & 2 deletions build-test-elasticsearch7.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ xpack.security.sessionTimeout: 600000</echo>
</sequential>
</macrodef>

<macrodef name="configure-portal-elasticsearch-osgi-properties">
<macrodef name="configure-portal-remote-elasticsearch-osgi-properties">
<sequential>
<echo append="true" file="${liferay.home}/osgi/configs/com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration.config">${line.separator}operationMode="REMOTE"
remoteClusterConnectionId="remote"</echo>
Expand Down Expand Up @@ -911,7 +911,7 @@ xpack.monitoring.collection.enabled: true</echo>
</then>
</if>

<configure-portal-elasticsearch-osgi-properties />
<configure-portal-remote-elasticsearch-osgi-properties />

<get-testcase-property property.name="remote.elasticsearch.cluster.size" />

Expand Down
30 changes: 15 additions & 15 deletions build-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ module.framework.properties.osgi.console=11312</echo>
</sequential>
</macrodef>

<macrodef name="delete-default-elasticsearch-connection-config">
<sequential>
<delete file="${liferay.home}/osgi/configs/com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConnectionConfiguration-default.config" />
</sequential>
</macrodef>

<macrodef name="generate-gulp-user-config-json">
<attribute name="portlet.name" />

Expand Down Expand Up @@ -1809,19 +1815,6 @@ jdbc.default.password=${database.password}</echo>
</sequential>
</macrodef>

<macrodef name="prepare-elasticsearch-configuration">
<sequential>
<echo file="${liferay.home}/osgi/configs/com.liferay.portal.search.elasticsearch6.configuration.ElasticsearchConfiguration.config">logExceptionsOnly="false"</echo>
<echo file="${liferay.home}/osgi/configs/com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration.config">logExceptionsOnly="false"</echo>
</sequential>
</macrodef>

<macrodef name="prepare-elasticsearch-connection-config">
<sequential>
<delete file="${liferay.home}/osgi/configs/com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConnectionConfiguration-default.config" />
</sequential>
</macrodef>

<macrodef name="prepare-gecko-driver">
<sequential>
<stop-gecko-driver />
Expand Down Expand Up @@ -2047,6 +2040,13 @@ jdbc.default.password=${database.password}</echo>
</sequential>
</macrodef>

<macrodef name="prepare-portal-elasticsearch-osgi-configuration">
<sequential>
<echo file="${liferay.home}/osgi/configs/com.liferay.portal.search.elasticsearch6.configuration.ElasticsearchConfiguration.config">logExceptionsOnly="false"</echo>
<echo file="${liferay.home}/osgi/configs/com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration.config">logExceptionsOnly="false"</echo>
</sequential>
</macrodef>

<macrodef name="prepare-portal-legacy-properties">
<attribute default="portal-impl/src/portal-ext.properties" name="portal.ext.properties.file.path" />
<attribute name="portal.major.version" />
Expand Down Expand Up @@ -7693,7 +7693,7 @@ osb.lcs.portlet.oauth.consumer.secret=${osb.lcs.portlet.oauth.consumer.secret}</
</then>
</if>

<prepare-elasticsearch-configuration />
<prepare-portal-elasticsearch-osgi-configuration />
</target>

<target name="prepare-patching-tool">
Expand Down Expand Up @@ -12120,7 +12120,7 @@ module.framework.properties.blacklist.portal.profile.names=${blacklist.portal.pr
<equals arg1="${remote.elasticsearch.enabled}" arg2="true" />
</and>
<then>
<prepare-elasticsearch-connection-config />
<delete-default-elasticsearch-connection-config />
</then>
</if>

Expand Down

0 comments on commit 819740a

Please sign in to comment.