Skip to content

Commit

Permalink
LRCI-783 Get correct module base dir based on subrepository name
Browse files Browse the repository at this point in the history
  • Loading branch information
yichenroy authored and brianchandotcom committed Nov 14, 2019
1 parent 518fba5 commit ca879b0
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions build-test.xml
Expand Up @@ -661,10 +661,6 @@ jdbc.counter.connectionProperties=oracle.jdbc.ReadTimeout=0;oracle.net.CONNECT_T
<sequential>
<var name="module.base.dir" unset="true" />

<antelope:stringutil property="subrepository.name" string="@{subrepository.name}">
<antelope:replace regex="(.+)-private" replacement="$1" />
</antelope:stringutil>

<for param="gitrepo.file">
<fileset
dir="${project.dir}/modules"
Expand All @@ -674,18 +670,11 @@ jdbc.counter.connectionProperties=oracle.jdbc.ReadTimeout=0;oracle.net.CONNECT_T
<include name="**/.gitrepo" />
</fileset>
<sequential>
<local name="gitrepo.file.content" />

<loadfile
property="gitrepo.file.content"
srcfile="@{gitrepo.file}"
/>

<if>
<or>
<contains string="${gitrepo.file.content}" substring="git@github.com:liferay/${subrepository.name}.git" />
<contains string="${gitrepo.file.content}" substring="git@github.com:liferay/${subrepository.name}-private.git" />
</or>
<resourcecontains
resource="@{gitrepo.file}"
substring="git@github.com:liferay/@{subrepository.name}.git"
/>
<then>
<antelope:stringutil property="module.base.dir" string="@{gitrepo.file}">
<antelope:replace regex="\\" replacement="/" />
Expand Down

0 comments on commit ca879b0

Please sign in to comment.