|
552 | 552 | <get src="${archive_url}" dest="${archive_file}" verbose="true" ignoreerrors="true" />
|
553 | 553 | </target>
|
554 | 554 |
|
555 |
| - <!-- Ensure that the tool is downloaded and test checksums, if everything's ok unzip it on the tools folder --> |
556 |
| - <target name="untar" depends="untar-unzip-download" unless="${archive_file}_installed"> |
| 555 | + <target name="untar-unzip-checksum" depends="untar-unzip-download"> |
557 | 556 | <echo>Testing checksum of "${archive_file}"</echo>
|
558 | 557 | <checksum file="${archive_file}" algorithm="sha" fileext=".sha" verifyproperty="checksum.matches"/>
|
559 | 558 | <condition property="checksum.matches.fail">
|
|
564 | 563 | File ${archive_file} failed checksum.
|
565 | 564 | Please remove "${archive_file}" to download it again.
|
566 | 565 | </fail>
|
| 566 | + </target> |
567 | 567 |
|
568 |
| - <!-- Unzip tool to the destination folder --> |
| 568 | + <!-- Ensure that the tool is downloaded and test checksums, if everything's ok unzip it on the tools folder --> |
| 569 | + <target name="untar" depends="untar-unzip-checksum" unless="${archive_file}_installed"> |
569 | 570 | <echo>Unzipping into folder ${dest_folder}</echo>
|
570 | 571 | <exec executable="tar">
|
571 | 572 | <arg value="xfz"/>
|
|
574 | 575 | </exec>
|
575 | 576 | </target>
|
576 | 577 |
|
577 |
| - <target name="unzip" depends="untar-unzip-download" unless="${archive_file}_installed"> |
578 |
| - <echo>Testing checksum of "${archive_file}"</echo> |
579 |
| - <checksum file="${archive_file}" algorithm="sha" fileext=".sha" verifyproperty="checksum.matches"/> |
580 |
| - <condition property="checksum.matches.fail"> |
581 |
| - <equals arg1="${checksum.matches}" arg2="false"/> |
582 |
| - </condition> |
583 |
| - <fail if="checksum.matches.fail">Checksum failed. |
584 |
| - |
585 |
| - File ${archive_file} failed checksum. |
586 |
| - Please remove "${archive_file}" to download it again. |
587 |
| - </fail> |
588 |
| - |
589 |
| - <!-- Unzip tool to the destination folder --> |
| 578 | + <target name="unzip" depends="untar-unzip-checksum" unless="${archive_file}_installed"> |
590 | 579 | <echo>Unzipping into folder ${dest_folder}</echo>
|
591 | 580 | <mkdir dir="${dest_folder}" />
|
592 | 581 | <exec executable="unzip">
|
|
0 commit comments