Skip to content

Commit

Permalink
LPS-134921 Remove LCS build code
Browse files Browse the repository at this point in the history
  • Loading branch information
petershin authored and brianchandotcom committed Aug 4, 2021
1 parent 1a06233 commit f84c4b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 189 deletions.
69 changes: 0 additions & 69 deletions build-common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1665,75 +1665,6 @@ artifact.url=${remote.repository.cdn.url}/com/liferay/portal/com.liferay.${proce
</sequential>
</macrodef>

<macrodef name="setup-dxp-app">
<attribute name="dxp.app.name" />
<attribute name="dxp.app.version" />

<sequential>
<gradle-execute outputproperty="dxp.app.zip.file" setupbinariescache="false" task="printDependencyPath">
<arg value="--build-file=${project.dir}/modules/util.gradle" />
<arg value="--quiet" />
<arg value="-Dorg.gradle.internal.launcher.welcomeMessageEnabled=false" />
<arg value="-PdependencyNotation=com.liferay.portal:com.liferay.portal.dxp.apps.@{dxp.app.name}:@{dxp.app.version}" />
</gradle-execute>

<propertyregex
input="${dxp.app.zip.file}"
override="true"
property="dxp.app.zip.file"
regexp="(.*$)"
select="\1"
/>

<dirname file="${dxp.app.zip.file}" property="dxp.app.zip.dir" />

<if>
<not>
<uptodate>
<mapper
to="${project.dir}/modules/dxp/@{dxp.app.name}"
type="merge"
/>
<srcfiles dir="${dxp.app.zip.dir}" includes="com.liferay.portal.dxp.apps.@{dxp.app.name}-@{dxp.app.version}.zip" />
</uptodate>
</not>
<then>
<delete dir="${project.dir}/modules/.releng/dxp/apps/@{dxp.app.name}" />

<unzip
dest="${project.dir}/modules/.releng/dxp/apps"
src="${dxp.app.zip.dir}/com.liferay.portal.dxp.apps.@{dxp.app.name}-@{dxp.app.version}.zip"
>
<mapper
from="com.liferay.portal.dxp.apps.@{dxp.app.name}-@{dxp.app.version}/.releng/*"
to="@{dxp.app.name}/*"
type="glob"
/>
<patternset>
<include name="com.liferay.portal.dxp.apps.@{dxp.app.name}-@{dxp.app.version}/.releng/**" />
</patternset>
</unzip>

<delete dir="${project.dir}/modules/dxp/apps/@{dxp.app.name}" />

<unzip
dest="${project.dir}/modules/dxp/apps"
src="${dxp.app.zip.dir}/com.liferay.portal.dxp.apps.@{dxp.app.name}-@{dxp.app.version}.zip"
>
<mapper
from="com.liferay.portal.dxp.apps.@{dxp.app.name}-@{dxp.app.version}/apps/*"
to="@{dxp.app.name}/*"
type="glob"
/>
<patternset>
<include name="com.liferay.portal.dxp.apps.@{dxp.app.name}-@{dxp.app.version}/apps/**" />
</patternset>
</unzip>
</then>
</if>
</sequential>
</macrodef>

<macrodef name="setup-libs">
<sequential>
<gradle-execute task="setUpLibs">
Expand Down
120 changes: 0 additions & 120 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -822,126 +822,6 @@ This target has been renamed to "snapshot-bundle". Please call "snapshot-bundle"
</java>
</target>

<target name="publish-dxp-release">
<fail message="Please set the property &quot;dxp.dir.name&quot;.">
<condition>
<or>
<equals arg1="${dxp.dir.name}" arg2="" />
<not>
<isset property="dxp.dir.name" />
</not>
</or>
</condition>
</fail>

<antcall inheritAll="false" target="setup-profile-dxp" />

<delete dir="${user.home}/.m2/repository/com/liferay/portal/com.liferay.portal.dxp.apps.${dxp.dir.name}" />

<gradle-execute failonerror="false" forcedcacheenabled="true" outputproperty="dxp.zip.file" setupbinariescache="@{setupbinariescache}" task="printDependencyPath">
<arg value="--build-file=${project.dir}/modules/util.gradle" />
<arg value="--quiet" />
<arg value="-Dorg.gradle.internal.launcher.welcomeMessageEnabled=false" />
<arg value="-PdependencyNotation=com.liferay.portal:com.liferay.portal.dxp.apps.${dxp.dir.name}:latest.release" />
</gradle-execute>

<if>
<not>
<contains string="${dxp.zip.file.error}" substring="no versions of com.liferay.portal:com.liferay.portal.dxp.apps.${dxp.dir.name} are available" />
</not>
<then>
<propertyregex
input="${dxp.zip.file}"
override="true"
property="dxp.version.latest"
regexp=".*-([0-9\.]+)\.zip"
select="\1"
/>

<antelope:stringutil property="dxp.version.latest.index" string="${dxp.version.latest}">
<antelope:lastindexof string="." />
</antelope:stringutil>

<antelope:math
datatype="int"
operand1="${dxp.version.latest.index}"
operand2="1"
operation="+"
result="dxp.version.latest.index"
/>

<antelope:stringutil property="dxp.version.latest.prefix" string="${dxp.version.latest}">
<antelope:substring endindex="${dxp.version.latest.index}" />
</antelope:stringutil>

<antelope:stringutil property="dxp.version.latest.micro" string="${dxp.version.latest}">
<antelope:substring beginindex="${dxp.version.latest.index}" />
</antelope:stringutil>

<antelope:math
datatype="int"
operand1="${dxp.version.latest.micro}"
operand2="1"
operation="+"
result="dxp.version.latest.micro"
/>

<property name="dxp.version.current" value="${dxp.version.latest.prefix}${dxp.version.latest.micro}" />
</then>
<else>
<property name="dxp.version.current" value="${lp.version.major}.0" />
</else>
</if>

<property name="dxp.name" value="com.liferay.portal.dxp.apps.${dxp.dir.name}-${dxp.version.current}" />

<mkdir dir="${project.dir}/dist" />

<delete file="${project.dir}/dist/${dxp.name}.zip" />

<execute dir="${project.dir}/modules/dxp/apps/${dxp.dir.name}">
<![CDATA[
git clean -dfqx .
]]>
</execute>

<execute dir="${project.dir}">
<![CDATA[
git log --format=format:%H -n 1 > ${project.dir}/modules/dxp/apps/${dxp.dir.name}/git-commit-${dxp.dir.name}
]]>
</execute>

<zip
destfile="${project.dir}/dist/${dxp.name}.zip"
duplicate="preserve"
>
<zipfileset
dir="${project.dir}/modules/.releng/dxp/apps/${dxp.dir.name}"
prefix="${dxp.name}/.releng"
/>
<zipfileset
dir="${project.dir}/modules/dxp/apps/${dxp.dir.name}"
prefix="${dxp.name}/apps"
/>
</zip>

<delete file="${project.dir}/modules/dxp/apps/${dxp.dir.name}/git-commit-${dxp.dir.name}" />

<artifact:pom artifactId="com.liferay.portal.dxp.apps.${dxp.dir.name}" groupId="com.liferay.portal" id="dxp.${dxp.dir.name}.pom" packaging="zip" version="${dxp.version.current}" />

<artifact:writepom file="dist/dxp.${dxp.dir.name}.pom" pomRefId="dxp.${dxp.dir.name}.pom" />

<artifact:deploy file="dist/${dxp.name}.zip">
<pom file="dist/dxp.${dxp.dir.name}.pom" />
<remoteRepository url="https://repository-cdn.liferay.com/nexus/content/repositories/liferay-private-releases">
<authentication password="${sonatype.release.password}" username="${sonatype.release.username}" />
</remoteRepository>
</artifact:deploy>

<delete dir="${user.home}/.m2/repository/com/liferay/portal/com.liferay.portal.dxp.apps.${dxp.dir.name}" />
<delete file="${project.dir}/dist/dxp.${dxp.dir.name}.pom" />
</target>

<target name="publish-portal-release">
<ant dir="portal-impl" inheritAll="false" target="publish-portal-release" />
<ant dir="portal-kernel" inheritAll="false" target="publish-portal-release" />
Expand Down

0 comments on commit f84c4b5

Please sign in to comment.