Skip to content

Commit

Permalink
Fix to ask download-rt8
Browse files Browse the repository at this point in the history
It first checks if rt.jar is present before attempting to download it.
  • Loading branch information
sylvainhalle committed Sep 3, 2021
1 parent feac3d6 commit 81aefe0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
xmlns:jacoco="antlib:org.jacoco.ant">

<!-- The build script's version number. Do not edit! -->
<property name="antrun.version" value="1.7.1"/>
<property name="antrun.version" value="1.7.2"/>

<!-- Load project properties from XML file -->
<xmlproperty file="config.xml"/>
Expand Down Expand Up @@ -451,7 +451,10 @@
<!-- Target: download-rt8
Download boot classpath for Java 1.8 and put it in the root folder
-->
<target name="download-rt8">
<condition property="rt8.absent" value="false" else="true">
<available file="${build.rtlocation}"/>
</condition>
<target name="download-rt8" if="${rt8.absent}">
<get src="http://sylvainhalle.github.io/AntRun/dependencies/1.8.0_201/rt.jar" dest="${build.rtlocation}"/>
</target>

Expand Down

0 comments on commit 81aefe0

Please sign in to comment.