Skip to content

Commit 38131bd

Browse files
brittneyqbrianchandotcom
authored andcommitted
LRCI-3899 Use generic tomcat dir for release
1 parent 6c64136 commit 38131bd

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

build-test.xml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6978,7 +6978,10 @@ go</echo>
69786978
</if>
69796979

69806980
<if>
6981-
<matches pattern="\d{4}.q\d+.\d+" string="@{liferay.portal.bundle}" />
6981+
<or>
6982+
<contains string="${env.JOB_NAME}" substring="test-portal-release" />
6983+
<matches pattern="\d{4}.q\d+.\d+" string="@{liferay.portal.bundle}" />
6984+
</or>
69826985
<then>
69836986
<var name="app.server.tomcat.dir" value="${app.server.parent.dir}/tomcat" />
69846987
<var name="app.server.tomcat.bin.dir" value="${app.server.parent.dir}/tomcat/bin" />
@@ -13857,6 +13860,32 @@ ANT_OPTS=${env.ANT_OPTS}</echo>
1385713860
</fileset>
1385813861
</chmod>
1385913862

13863+
<if>
13864+
<or>
13865+
<matches pattern="\d{4}.q\d+.\d+" string="${bundle.file.name}" />
13866+
<contains string="${env.JOB_NAME}" substring="test-portal-release" />
13867+
</or>
13868+
<then>
13869+
<dirset
13870+
dir="${app.server.parent.dir}"
13871+
id="tomcat.directory"
13872+
>
13873+
<include name="tomcat*" />
13874+
</dirset>
13875+
13876+
<property name="bundles.tomcat.dir" refid="tomcat.directory" />
13877+
13878+
<move
13879+
todir="${app.server.parent.dir}/tomcat"
13880+
>
13881+
<fileset
13882+
dir="${app.server.parent.dir}/${bundles.tomcat.dir}"
13883+
includes="**"
13884+
/>
13885+
</move>
13886+
</then>
13887+
</if>
13888+
1386013889
<delete dir="${app.server.parent.dir}/logs" />
1386113890

1386213891
<mkdir dir="${app.server.parent.dir}/logs" />

0 commit comments

Comments
 (0)