Skip to content

Commit

Permalink
Update build.xml (#3270)
Browse files Browse the repository at this point in the history
  • Loading branch information
yinggzz authored Jan 24, 2022
1 parent 1eb0b1b commit c152839
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions openjdk/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -304,21 +304,19 @@
<if>
<isset property="OPENJDK_SHA_ISSET"/>
<then>
<echo message="git clone -q ${defaultBranch} ${regressionRepo}" />
<echo message="git clone -q ${defaultBranch} ${regressionRepo} openjdk-jdk" />
<exec executable="git" failonerror="true">
<arg line="clone -q ${defaultBranch} ${regressionRepo}" />
<arg line="clone -q ${defaultBranch} ${regressionRepo} openjdk-jdk" />
</exec>
<move file="${jdkName}" tofile="openjdk-jdk"/>
<exec executable="git" failonerror="true" dir="openjdk-jdk">
<arg line="checkout ${env.OPENJDK_SHA}" />
</exec>
</then>
<else>
<echo message="git clone --depth 1 -q ${defaultBranch} ${regressionRepo}" />
<echo message="git clone --depth 1 -q ${defaultBranch} ${regressionRepo} openjdk-jdk" />
<exec executable="git" failonerror="true">
<arg line="clone --depth 1 -q ${defaultBranch} ${regressionRepo}" />
<arg line="clone --depth 1 -q ${defaultBranch} ${regressionRepo} openjdk-jdk" />
</exec>
<move file="${jdkName}" tofile="openjdk-jdk"/>
</else>
</if>
</else>
Expand All @@ -342,4 +340,4 @@
<target name="build" >
<antcall target="dist" inheritall="true" />
</target>
</project>
</project>

0 comments on commit c152839

Please sign in to comment.