1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361
|
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="antlib:org.apache.tools.ant"
name="abcl-master" default="abcl.wrapper" basedir=".">
<description>Compiling, testing, and packaging Armed Bear Common Lisp</description>
<target name="abcl" depends="abcl.wrapper,abcl-contrib.jar"/>
<target name="help">
<echo>
Main Ant targets:
abcl.wrapper
-- [default] create executable wrapper for ABCL.
abcl.compile
-- compile ABCL to ${build.classes.dir}.
abcl.jar
-- create packaged ${abcl.jar.path}.
abcl.source.zip abcl.source.tar
-- create source distributions in ${dist.dir}.
abcl.clean
-- remove ABCL intermediate files
</echo>
<echo>
For help on the automatic tests available, use the Ant target 'help.test'.
</echo>
</target>
<!-- Behavior of the build system can be customized via setting
properties in the 'abcl.properties' file. -->
<property file="abcl.properties"/>
<property name="build.dir"
value="${basedir}/build"/>
<property name="build.classes.dir"
value="${build.dir}/classes"/>
<property name="src.dir"
value="${basedir}/src"/>
<property name="dist.dir"
value="${basedir}/dist"/>
<property name="abcl.jar.path"
value="${dist.dir}/abcl.jar"/>
<property name="abcl-aio.jar.path"
value="${dist.dir}/abcl-aio.jar"/>
<property name="abcl.ext.dir"
value="${basedir}/ext"/>
<property name="abcl.runtime.jar.path"
value="${abcl.jar.path}"/>
<!-- TODO verify me -->
<fail message="Please build using Ant 1.7.1 or higher.">
<condition>
<not>
<antversion atleast="1.7.1"/>
</not>
</condition>
</fail>
<!-- Deprecated. Checks if JSR-223 support is available. Should always be true. Unused. D -->
<available property="abcl.jsr-223.p"
classname="javax.script.ScriptEngine"/>
<patternset id="abcl.source.java">
<include name="org/armedbear/lisp/*.java"/>
<include name="org/armedbear/lisp/util/*.java"/>
<include name="org/armedbear/lisp/protocol/*.java"/>
<include name="org/armedbear/lisp/java/**/*.java"/>
<include name="org/armedbear/lisp/scripting/*.java" />
<include name="org/armedbear/lisp/scripting/util/*.java" />
<include name="org/armedbear/Main.java"/>
<include name="org/abcl/**/*.java"/>
</patternset>
<patternset id="abcl.source.lisp">
<include name="org/armedbear/lisp/*.lisp"/>
<include name="org/armedbear/lisp/java/**/*.lisp"/>
<include name="org/armedbear/lisp/tests/*.lisp"/>
<exclude name="org/armedbear/lisp/j.lisp"/>
<include name="org/armedbear/lisp/scripting/lisp/*.lisp"/>
</patternset>
<!-- Lisp files required at runtime -->
<patternset id="abcl.source.lisp.dist">
<include name="org/armedbear/lisp/boot.lisp"/>
<include name="org/armedbear/lisp/scripting/lisp/*.lisp" />
<include if="abcl.compile.lisp.skip"
name="**/*.lisp" />
</patternset>
<patternset id="abcl.objects">
<!-- "system.lisp" is dynamically created by COMPILE-fSYSTEM -->
<include name="org/armedbear/lisp/system.lisp"/>
<include name="org/armedbear/lisp/**/*.class"/>
<include name="org/armedbear/lisp/**/*.cls"/>
<include name="org/armedbear/lisp/**/*.abcl"/>
<include name="org/abcl/util/*.class"/>
<include name="org/armedbear/lisp/version"/>
<include name="org/armedbear/lisp/scripting/*.class"/>
<include name="org/armedbear/lisp/scripting/util/*.class"/>
<patternset refid="abcl.source.lisp.dist"/>
<include name="abcl.rdf"/>
<include name="abcl.asd"/>
<include name="README"/>
<include name="build.xml"/>
<include name="abcl.properties.in"/>
<include name="abcl.in"/>
<include name="abcl.bat.in"/>
</patternset>
<path id="abcl.classpath.dist">
<pathelement location="${abcl.jar.path}"/>
</path>
<path id="abcl.classpath.build">
<pathelement location="${build.classes.dir}"/>
</path>
<target name="abcl.compile" depends="abcl.clean.maybe,abcl.compile.lisp">
<echo>Compiled ABCL with Java version: ${java.version}</echo>
</target>
<target name="abcl.clean.maybe" unless="abcl.build.incremental">
<echo>Cleaning all intermediate compilation artifacts.</echo>
<echo>Setting 'abcl.build.incremental' enables incremental compilation.</echo>
<antcall target="abcl.clean"/>
</target>
<target name="abcl.init">
<tstamp>
<format property="build" pattern="EEE MMM dd yyyy HH:mm:ss zzz"/>
</tstamp>
<tstamp>
<format property="build.stamp" pattern="yyyymmdd-HHmm"/>
</tstamp>
<property name="abcl.test.log.file"
value="abcl-test-${build.stamp}.log"/>
<property name="java.path"
value="${java.home}/bin/java"/>
<!-- Deprecated. Two main types of build environents: 'unix' or 'windows'. -->
<condition property="unix">
<or>
<os family="unix"/>
<os family="mac"/>
</or>
</condition>
<condition property="windows">
<os family="windows"/>
</condition>
<!-- Deprecated. -->
<available file="${src.dir}org/armedbear/lisp/Interpreter.java"
property="abcl.lisp.p"/>
<echo>java.version: ${java.version}</echo>
<condition property="abcl.java.version.p">
<!-- Unsupported as of abcl-1.5.0 due to lack of open jdk
<matches string="${java.version}"
pattern="1\.5"/>
-->
<or>
<!-- Don't use 1.6.0_09 or earlier. -->
<matches string="${java.version}"
pattern="1\.6\.0_[1-9][0-9]"/>
<!-- 1.7.0_04 works much better. -->
<matches string="${java.version}"
pattern="1\.7\.0_(0[4-9])|([1-9][0-9])"/>
<matches string="${java.version}"
pattern="1\.8\.0"/>
</or>
</condition>
</target>
<target name="abcl.java.warning"
depends="abcl.init"
unless="abcl.java.version.p">
<echo>WARNING: Use of Java version ${java.version} not recommended.</echo>
</target>
<!-- Deprecated. JSR-223 is always present -->
<target name="abcl.jsr-223.notice"
depends="abcl.init"
unless="abcl.jsr-223.p">
<echo>
Notice: JSR-223 support won't be built since it is not
supported, neither natively by your JVM nor by
libraries in the CLASSPATH.
</echo>
</target>
<!-- The Java compilation options are perhaps underspecified in
terms of the target JVM in order to support a developer who
simply wants to compile and run locally with least hassles.
When preparing ABCL binaries for wider distribution, the
values of the abcl.build.target.javac and
abcl.build.source.java become more important.
The 'abcl.properties.autoconfigure.*' targets use the
ci/create-build-properties.bash script to set these options
for various openjdk platforms.
-->
<target name="abcl.compile.java"
depends="abcl.init,abcl.java.warning">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes.dir}"/>
<javac destdir="${build.classes.dir}"
debug="true"
includeantruntime="false"
encoding="UTF-8"
failonerror="true">
<src path="${src.dir}"/>
<patternset refid="abcl.source.java"/>
</javac>
</target>
<!-- Additional artifacts to stage relative to Ant ${basedir} -->
<patternset id="abcl.stage">
<include name="README"/>
<include name="COPYING"/>
<include name="abcl.rdf"/>
<include name="abcl.asd"/>
<include name="build.xml"/>
<include name="abcl.properties.in"/> <!--TODO: massage into abcl.properties at build-time -->
<include name="abcl.in"/>
<include name="abcl.bat.in"/>
<include name="etc/ant/*.xml"/>
</patternset>
<target name="abcl.stage"
depends="abcl.copy.lisp">
<copy todir="${build.classes.dir}" preservelastmodified="yes"
verbose="true">
<fileset dir="${basedir}/">
<patternset refid="abcl.stage"/>
</fileset>
</copy>
</target>
<target name="abcl.copy.lisp">
<copy todir="${build.classes.dir}" preservelastmodified="yes">
<fileset dir="${src.dir}">
<patternset refid="abcl.source.lisp.dist"/>
</fileset>
</copy>
</target>
<!-- Adjust the patternset for ABCL source to use the much faster
Ant 'uptodate' task to check if we need to compile the system
fasls. Highly inter-dependent with the behavior specified in
'compile-system.lisp', i.e. files not listed in
there should NOT occur here. -->
<patternset id="abcl.source.lisp.fasls">
<patternset refid="abcl.source.lisp"/>
<exclude name="org/armedbear/lisp/scripting/**/*.lisp"/>
<exclude name="org/armedbear/lisp/boot.lisp"/>
<exclude name="org/armedbear/lisp/emacs.lisp"/>
<exclude name="org/armedbear/lisp/run-benchmarks.lisp"/>
</patternset>
<target name="abcl.fasls.uptodate">
<uptodate property="abcl.fasls.uptodate.p" value="true">
<srcfiles dir="${src.dir}">
<patternset refid="abcl.source.lisp.fasls"/>
</srcfiles>
<mapper type="glob" from="*.lisp" to="${build.classes.dir}/*.abcl"/>
</uptodate>
</target>
<path id="abcl.home.dir.path">
<path location="${src.dir}/org/armedbear/lisp/"/>
</path>
<pathconvert property="abcl.home.dir" refid="abcl.home.dir.path"/>
<path id="abcl.lisp.output.path"
location="${build.classes.dir}/org/armedbear/lisp/"/>
<pathconvert dirsep="/" property="abcl.lisp.output" refid="abcl.lisp.output.path"/>
<property name="system.lisp.file"
value="${build.classes.dir}/org/armedbear/lisp/system.lisp"/>
<target name="abcl.compile.lisp"
depends="abcl.stage,abcl.compile.java,abcl.system.update.maybe,abcl.fasls.uptodate"
unless="abcl.fasls.uptodate.p">
<abcl.compile.lisp/>
</target>
<macrodef name="abcl.compile.lisp">
<element name="additional.jvmarg" optional="true"/>
<sequential>
<echo>
Compiling Lisp system
from ${abcl.home.dir}
to ${abcl.lisp.output}</echo>
<!-- Not good if ${abcl.home.dir} == ${abcl.lisp.output} -->
<delete>
<fileset dir="${abcl.home.dir}" includes="**/*.abcl **/*.cls **/*._"/>
</delete>
<java classpath="${build.classes.dir}"
fork="true"
failonerror="true"
inputstring="(handler-case (compile-system :zip nil :quit t :output-path "${abcl.lisp.output}/") (t (x) (progn (format t "~A: ~A~%" (type-of x) x) (exit :status -1))))"
classname="org.armedbear.lisp.Main">
<jvmarg value="-Dabcl.home=${abcl.home.dir}${file.separator}"/>
<jvmarg value="-Dabcl.autoload.verbose=Y"/>
<additional.jvmarg/>
<arg value="--noinit"/>
<arg value="--nosystem"/>
<arg value="--eval"/>
<arg value="(setf *load-verbose* t)"/>
</java>
<concat destfile="${system.lisp.file}" append="true">
<fileset file="${abcl.startup.file}"/>
</concat>
</sequential>
</macrodef>
<property name="abcl.compile.lisp.debug.jvmarg"
value="-agentlib:jdwp=transport=dt_socket,server=y,address=6789,suspend=y"/>
<target name="abcl.compile.lisp.debug"
depends="abcl.stage,abcl.compile.java,abcl.system.update.maybe,abcl.fasls.uptodate"
unless="abcl.fasls.uptodate.p">
<echo>Debugging with jvmarg ${abcl.compile.lisp.debug.jvmarg}</echo>
<abcl.compile.lisp>
<additional.jvmarg>
<jvmarg value="${abcl.compile.lisp.debug.jvmarg}"/>
</additional.jvmarg>
</abcl.compile.lisp>
</target>
<property name="abcl.build.path"
value="${build.classes.dir}/org/armedbear/lisp/build"/>
<target name="abcl.stamp"
depends="abcl.compile,abcl.stamp.version,abcl.stamp.hostname">
<mkdir dir="${abcl.build.path}/.."/>
<loadfile property="abcl.version"
srcFile="${abcl.version.path}"/>
<echo message="${build}" file="${abcl.build.path}"/>
</target>
<!-- Environment variables may be accessed as ${env.NAME} -->
<property environment="env"/>
<!-- Can we derive an SVN version from the current build tree? -->
<condition property="abcl.version.svn.p">
<and>
<available
file="${basedir}/.svn"
type="dir"/>
<or>
<available
file="svnversion.exe"
filepath="${env.Path}"/>
<available
file="svnversion.exe"
filepath="${env.PATH}"/>
<available
file="svnversion"
filepath="${env.Path}"/>
<available
file="svnversion"
filepath="${env.PATH}"/>
</or>
</and>
</condition>
<target name="abcl.version.src" depends="abcl.version.src.3"/>
<target name="abcl.version.src.0" if="windows">
<exec
executable="svnversion.exe"
outputproperty="abcl.version.svn.raw"
failifexecutionfails="false"
searchpath="true" />
</target>
<target name="abcl.version.src.1" depends="abcl.version.src.0">
<exec
executable="svnversion"
outputproperty="abcl.version.svn.raw"
failifexecutionfails="false"
searchpath="true" />
</target>
<target name="abcl.version.src.2"
depends="abcl.version.src.1"
if="abcl.version.svn.p">
<!-- Transform all occurances of ":" ==> "-" in the version string -->
<tempfile property="version-tmp.path"/>
<echo message="${abcl.version.svn.raw}"
file="${version-tmp.path}"/>
<replace file="${version-tmp.path}"
token=":" value="-"/>
<loadfile property="abcl.version.svn" srcFile="${version-tmp.path}"/>
<delete file="${version-tmp.path}"/>
<echo>abcl.version.svn: ${abcl.version.svn}</echo>
<property name="abcl.version.src"
value="svn-${abcl.version.svn}"/>
</target>
<target name="abcl.version.src.3"
depends="abcl.version.src.2"
unless="abcl.version.svn.p">
<property name="abcl.version.src"
value=""/>
</target>
<property name="abcl.home.dir"
value="${src.dir}/org/armedbear/lisp/"/>
<property name="abcl.version.path"
value="${build.classes.dir}/org/armedbear/lisp/version"/>
<target name="abcl.clean.version">
<delete file="${abcl.version.path}"/>
</target>
<target name="abcl.stamp.version.uptodate">
<uptodate property="abcl.stamp.version.uptodate.p"
targetfile="${abcl.version.path}"
srcfile="${build.classes.dir}/org/armedbear/lisp/Version.class"/>
</target>
<!--
The usage of abcl.implementation.version is deprecated as not working.
The intention of this value was that if a given source tree could be
unidentified as being under source control by the presence of given
revision control system artifacts, the abcl.implementation.version
would contain a version derived from the revision control system.
To hack around the non-prescriptive nature of Ant, chains of
conditional targets had to be created that while might have once
worked for Subversion, were going to get increasingly hairy for
Mercurial and Git.
-->
<target name="abcl.stamp.version"
depends="abcl.version.src,abcl.stamp.version.1,abcl.stamp.version.2"
unless="abcl.stamp.version.uptodate.p">
<mkdir dir="${abcl.version.path}/.."/>
<echo>ABCL implementation version: ${abcl.implementation.version}</echo>
<echo file="${abcl.version.path}">${abcl.implementation.version}</echo>
</target>
<target name="abcl.stamp.version.generate"
depends="abcl.compile.java"
unless="abcl.stamp.version.uptodate.p">
<java fork="true"
classpath="${build.classes.dir}"
outputproperty="abcl.version"
classname="org.armedbear.lisp.Version"
logerror="yes"/> <!-- Don't catch stderr output -->
</target>
<target name="abcl.stamp.version.0"
depends="abcl.stamp.version.uptodate,abcl.stamp.version.generate">
</target>
<target name="abcl.stamp.version.1"
depends="abcl.stamp.version.0"
unless="abcl.version.svn.p">
<property name="abcl.implementation.version"
value="${abcl.version}"/>
</target>
<target name="abcl.stamp.version.2"
depends="abcl.stamp.version.0"
if="abcl.version.svn.p">
<property name="abcl.implementation.version"
value="${abcl.version}-${abcl.version.src}"/>
</target>
<target name="abcl.stamp.hostname" if="unix">
<exec executable="hostname" outputproperty="abcl.hostname"/>
<echo>abcl.hostname: ${abcl.hostname}</echo>
</target>
<target name="abcl.system.uptodate">
<condition property="abcl.system.needs-update.p">
<and>
<available file="${system.lisp.file}"/>
<available file="${abcl.startup.file}"/>
<uptodate
srcfile="${system.lisp.file}"
targetfile="${abcl.startup.file}"/>
</and>
</condition>
</target>
<target name="abcl.system.update.maybe" depends="abcl.system.uptodate"
if="abcl.system.needs-update.p">
<touch file="${src.dir}/org/armedbear/lisp/compile-system.lisp"/>
</target>
<target name="abcl.jar.uptodate" depends="abcl.compile,abcl.stamp">
<uptodate property="abcl.jar.uptodate.p" targetfile="${abcl.jar.path}">
<srcfiles dir="${build.classes.dir}">
<patternset refid="abcl.objects"/>
</srcfiles>
</uptodate>
</target>
<target name="abcl.jar" depends="abcl.jar.uptodate,abcl-contrib.jar"
unless="abcl.jar.uptodate.p">
<mkdir dir="${dist.dir}"/>
<jar destfile="${abcl.jar.path}"
compress="true"
update="true"
basedir="${build.classes.dir}">
<patternset refid="abcl.objects"/>
<manifest>
<attribute name="Main-Class" value="org.armedbear.lisp.Main"/>
<section name="org/armedbear/lisp">
<attribute name="Implementation-Title"
value="ABCL"/>
<attribute name="Implementation-Version"
value="${abcl.version}"/>
<attribute name="Implementation-Build"
value="${build}"/>
</section>
</manifest>
<metainf dir="${src.dir}/META-INF">
</metainf>
</jar>
</target>
<target name="abcl-aio.jar"
depends="abcl.jar.uptodate">
<mkdir dir="${dist.dir}"/>
<jar destfile="${abcl-aio.jar.path}"
compress="true"
update="true"
basedir="${build.classes.dir}">
<fileset dir="${src.dir}">
<patternset refid="abcl.objects"/>
<patternset refid="abcl.source.java"/>
<patternset refid="abcl.source.lisp"/>
</fileset>
<fileset dir="${basedir}">
<patternset refid="abcl.contrib.source"/>
</fileset>
<!-- According to <http://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html>
any attributes not specified are ignored, so we are free to make up new attributes if necessary. For now we just overload Implementation-Title and Implementation-Version.
-->
<manifest>
<attribute name="Main-Class" value="org.armedbear.lisp.Main"/>
<section name="org/armedbear/lisp">
<attribute name="Implementation-Title"
value="ABCL"/>
<attribute name="Implementation-Version"
value="${abcl.version}"/>
<attribute name="Implementation-Build"
value="${build}"/>
</section>
<section name="contrib">
<attribute name="Implementation-Title"
value="org.abcl-contrib"/>
<!-- FIXME: declare separate abcl-contrib version? -->
<attribute name="Implementation-Version"
value="${abcl.version}"/>
</section>
<section name="tools">
<attribute name="Implementation-Title"
value="org.abcl-tools"/>
</section>
<section name="src">
<attribute name="Implementation-Title"
value="org.abcl-source"/>
<attribute name="Implementation-Version"
value="${abcl.version}"/>
</section>
</manifest>
<metainf dir="${src.dir}/META-INF">
</metainf>
</jar>
</target>
<target name="abcl.wrapper"
depends="abcl.jar,abcl.contrib,abcl.wrapper.unix,abcl.wrapper.windows">
<description>
Creates in-place executable shell/batch invocation wrapper for ABCL in
'${abcl.wrapper.file}'
</description>
<!-- Set from commandline or in 'build.properties' -->
<property name="additional.jars" value=""/>
<path id="abcl.runtime.classpath">
<pathelement location="${abcl.runtime.jar.path}"/>
<pathelement path="${additional.jars}"/>
</path>
<!--
set via '-Djava.options=JAVA_OPTIONS' or in <file:abcl.properties>
See 'abcl.properties.autoconfigure.openjdk.*' targets for
creation of <file:abcl.properties> for a given JVM invocation.
-->
<property name="java.options" value=""/>
<copy file="${abcl.wrapper.in.file}" toFile="${abcl.wrapper.file}" overwrite="yes">
<filterset>
<filter token="JAVA"
value="${java.path}"/>
<filter token="ABCL_JAVA_OPTIONS"
value="${java.options}"/>
<filter token="ABCL_CLASSPATH"
value="${toString:abcl.runtime.classpath}"/>
</filterset>
</copy>
<chmod file="${abcl.wrapper.file}" perm="a+x"/>
<echo>Created an executable ABCL wrapper at</echo>
<echo/>
<echo> ${basedir}/${abcl.wrapper.file}</echo>
<echo/>
<echo>with the options</echo>
<echo/>
<echo> ${java.options}</echo>
<echo/>
<echo>N.b. This wrapper requires '${abcl.jar.path}' not be moved.</echo>
</target>
<target name="abcl.wrapper.unix" if="unix">
<property name="abcl.wrapper.file" value="abcl"/>
<property name="abcl.wrapper.in.file" value="abcl.in"/>
</target>
<target name="abcl.wrapper.windows" if="windows">
<property name="abcl.wrapper.file" value="abcl.bat"/>
<property name="abcl.wrapper.in.file" value="abcl.bat.in"/>
</target>
<patternset id="abcl.contrib.source">
<include name="**/*.asd"/>
<include name="**/*.lisp"/>
<include name="**/README.markdown"/>
</patternset>
<patternset id="abcl.contrib.docs">
<include name="**/README.markdown"/>
</patternset>
<property name="abcl-contrib.jar"
value="${dist.dir}/abcl-contrib.jar"/>
<condition property="abcl.contrib.uptodate.p">
<uptodate targetfile="${abcl-contrib.jar}">
<srcfiles dir="contrib">
<patternset refid="abcl.contrib.source"/>
</srcfiles>
</uptodate>
</condition>
<target name="abcl-contrib.jar" depends="abcl.contrib"/>
<target name="abcl.contrib" unless="abcl.contrib.uptodate.p">
<jar destfile="${abcl-contrib.jar}"
compress="true"
basedir="contrib">
<patternset refid="abcl.contrib.source"/>
</jar>
<echo>
Packaged contribs in ${abcl-contrib.jar}. To use contribs, ensure that
this file is in the same directory as 'abcl.jar', and then
CL-USER> (require 'abcl-contrib)
will place all the contribs in the ASDF registry.
To load a contrib, something like
CL-USER> (require 'jss)
will compile (if necessary) and load JSS.
</echo>
</target>
<target name="abcl.contrib.javadoc.jar">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/abcl-contrib-javadoc.jar" basedir="contrib">
<patternset refid="abcl.contrib.docs" />
</jar>
</target>
<target name="abcl.contrib.source.jar">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/abcl-contrib-sources.jar" basedir="contrib">
<patternset refid="abcl.contrib.source" />
</jar>
</target>
<target name="abcl.debug.jpda" depends="abcl.jar">
<description>Invoke ABCL with JPDA listener on port 6789</description>
<java fork="true"
classpathref="abcl.classpath.dist"
classname="org.armedbear.lisp.Main">
<jvmarg
value="-agentlib:jdwp=transport=dt_socket,address=6789,server=y"/>
</java>
<echo>JPDA listening on localhost:6789</echo>
</target>
<target name="abcl.build.debug.jpda" depends="abcl.compile.java">
<description>Invoke ABCL with JPDA listener on port 6789</description>
<java fork="true"
classpathref="abcl.classpath.build"
classname="org.armedbear.lisp.Main">
<jvmarg
value="-agentlib:jdwp=transport=dt_socket,address=6789,server=y"/>
<jvmarg value="-Dabcl.home=${abcl.home.dir}${file.separator}"/>
</java>
<echo>JPDA listening on localhost:6789</echo>
</target>
<target name="abcl.run" depends="abcl.jar">
<java fork="true"
classpathref="abcl.classpath.dist"
classname="org.armedbear.lisp.Main">
</java>
</target>
<target name="abcl.clean">
<delete dir="${build.dir}"/>
<delete file="${abcl.jar.path}"/>
<delete file="abcl"/>
<delete file="abcl.bat"/>
</target>
<property name="slime.fasls"
value="${user.home}/.slime/"/>
<property name="quicklisp.common-lisp.fasls"
value="${user.home}/.cache/common-lisp/"/>
<target name="abcl.clean.application.fasls">
<echo>Deleting ABCL SLIME fasls under ${slime.fasls}</echo>
<delete>
<fileset dir="${slime.fasls}" includes="**/*.abcl"/>
</delete>
<echo>Deleting ABCL Quicklisp fasls under ${quicklisp.common-lisp.fasls}</echo>
<delete>
<fileset dir="${quicklisp.common-lisp.fasls}" includes="**/*.abcl"/>
</delete>
</target>
<target name="abcl.dist" depends="abcl.jar">
<copy file="${abcl.jar.path}"
toFile="${dist.dir}/abcl-${abcl.version}.jar"/>
</target>
<target name="abcl.distclean" depends="abcl.clean">
<delete dir="${dist.dir}"/>
<delete file="abcl"/>
<delete file="abcl.bat"/>
</target>
<condition property="etags.executable"
value="etags"
else="c:/cygwin64/bin/ctags.exe">
<not>
<os family="windows"/>
</not>
</condition>
<target name="TAGS">
<delete file="TAGS"/>
<apply executable="${etags.executable}" parallel="true" verbose="true" maxparallel="300">
<arg value="--append"/>
<arg value="--regex=|[ \t]+//[ \t]+###[ \t]+\([^ \t]+\)|\1|"/>
<arg value='--regex=|[ \t]*@DocString([ \n\r\t]*name=\"\([^\"]*\)|\1|m'/>
<fileset dir="${src.dir}">
<patternset refid="abcl.source.java"/>
<patternset refid="abcl.source.lisp"/>
</fileset>
</apply>
</target>
<patternset id="abcl.dist.misc"
description="Additional includes in the source distributions relative to basedir">
<include name="abcl.rdf"/>
<include name="build.xml"/>
<include name="abcl.properties.in"/>
<include name="COPYING"/>
<include name="README"/>
<include name="CHANGES"/>
<include name="abcl.in"/>
<include name="abcl.bat.in"/>
<include name="abcl.asd"/>
<include name="examples/**"/>
<include name="contrib/**"/>
<include name="test/**"/>
<include name="build-from-lisp.bash"/>
<include name="build-abcl.lisp"/>
<include name="customizations.lisp.in"/>
<include name="etc/ant/*.xml"/>
<include name="doc/**/*"/>
<include name="ci/**/*"/>
<!-- FIXME: currently necessary to build from our source archives -->
<include name="nbproject/**/*"/>
</patternset>
<!-- TODO merge with artifacts from 'abcl.stage' -->
<patternset
id="abcl.source.misc"
description="Additional includes in the source distribution relative to source root">
<include name="org/armedbear/lisp/LICENSE"/>
<include name="manifest-abcl"/>
<include name="META-INF/services/javax.script.ScriptEngineFactory"/>
</patternset>
<target name="abcl.source.prepare" depends="abcl.stamp">
<property name="abcl.build.src.dir"
value="${build.dir}/abcl-src-${abcl.version}"/>
<mkdir dir="${abcl.build.src.dir}/src"/>
<copy todir="${abcl.build.src.dir}/src"
preservelastmodified="true">
<fileset dir="${src.dir}"
id="abcl.source.src">
<patternset refid="abcl.source.java"/>
<patternset refid="abcl.source.lisp"/>
<patternset refid="abcl.source.misc"/>
</fileset>
</copy>
<copy todir="${abcl.build.src.dir}"
preservelastmodified="true">
<fileset dir="${basedir}">
<patternset refid="abcl.dist.misc"/>
</fileset>
</copy>
</target>
<!-- Files in source distribution that always get LF EOL (aka
'unix') -->
<patternset id="abcl.dist.lf">
<include name="abcl.in"/>
</patternset>
<!-- Files in source distribution that always get CRLF EOL (aka
'dos') -->
<patternset id="abcl.dist.crlf">
<include name="abcl.bat.in"/>
</patternset>
<target name="abcl.source.unix" depends="abcl.source.prepare">
<fixcrlf srcdir="${abcl.build.src.dir}"
preservelastmodified="true"
eol="lf">
</fixcrlf>
<fixcrlf srcdir="${abcl.build.src.dir}"
preservelastmodified="true"
eol="crlf">
<patternset refid="abcl.dist.crlf"/>
</fixcrlf>
<fixcrlf srcdir="${abcl.build.src.dir}"
preservelastmodified="true"
eol="lf">
<patternset refid="abcl.dist.lf"/>
</fixcrlf>
</target>
<target name="abcl.source.tar" depends="abcl.source.unix">
<mkdir dir="${dist.dir}"/>
<tar destfile="${dist.dir}/abcl-src-${abcl.version}.tar.gz"
compression="gzip">
<tarfileset dir="${build.dir}">
<include name="abcl-src-${abcl.version}/**"/>
</tarfileset>
</tar>
</target>
<target name="abcl.source.windows" depends="abcl.source.prepare">
<fixcrlf srcdir="${abcl.build.src.dir}"
preservelastmodified="true"
eol="crlf">
</fixcrlf>
<fixcrlf srcdir="${abcl.build.src.dir}"
preservelastmodified="true"
eol="crlf">
<patternset refid="abcl.dist.crlf"/>
</fixcrlf>
<fixcrlf srcdir="${abcl.build.src.dir}"
preservelastmodified="true"
eol="lf">
<patternset refid="abcl.dist.lf"/>
</fixcrlf>
</target>
<target name="abcl.source.zip" depends="abcl.stamp,abcl.source.windows">
<mkdir dir="${dist.dir}"/>
<zip destfile="${dist.dir}/abcl-src-${abcl.version}.zip"
compress="true">
<zipfileset dir="${abcl.build.src.dir}" prefix="abcl-src-${abcl.version}"/>
</zip>
</target>
<target name="abcl.source.jar" depends="abcl.stamp,abcl.source.unix">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/abcl-${abcl.version}-sources.jar">
<metainf dir="${abcl.build.src.dir}">
<include name="COPYING"/>
</metainf>
<fileset dir="${abcl.build.src.dir}/src">
<include name="**/*.java"/>
<include name="**/*.lisp"/>
</fileset>
</jar>
</target>
<property name="abcl.javadoc.dir" value="${build.dir}/javadoc"/>
<target name="abcl.javadoc" depends="abcl.stamp">
<mkdir dir="${abcl.javadoc.dir}"/>
<javadoc destdir="${abcl.javadoc.dir}"
sourcepath="${src.dir}"/>
</target>
<target name="abcl.javadoc.jar" depends="abcl.stamp.version,abcl.javadoc">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/abcl-${abcl.version}-javadoc.jar">
<fileset dir="${abcl.javadoc.dir}"/>
</jar>
</target>
<target name="abcl.binary.prepare" depends="abcl.jar,abcl.contrib,abcl.documentation,abcl.stamp.version">
<property name="abcl.build.binary.dir"
value="${build.dir}/abcl-bin-${abcl.version}"/>
<mkdir dir="${abcl.build.binary.dir}"/>
<copy todir="${abcl.build.binary.dir}"
preservelastmodified="true">
<fileset dir="${basedir}/dist">
<patternset>
<include name="abcl.jar"/>
<include name="abcl-contrib.jar"/>
<include name="*.pdf"/>
</patternset>
</fileset>
<fileset dir="${basedir}">
<patternset>
<include name="README"/>
<include name="CHANGES"/>
</patternset>
</fileset>
</copy>
</target>
<target name="abcl.binary.tar" depends="abcl.binary.prepare">
<tar destfile="${dist.dir}/abcl-bin-${abcl.version}.tar.gz"
compression="gzip">
<tarfileset dir="${build.dir}">
<include name="abcl-bin-${abcl.version}/**"/>
</tarfileset>
</tar>
</target>
<target name="abcl.binary.zip" depends="abcl.binary.prepare">
<zip destfile="${dist.dir}/abcl-bin-${abcl.version}.zip"
compress="true">
<zipfileset dir="${abcl.build.binary.dir}" prefix="abcl-bin-${abcl.version}"/>
</zip>
</target>
<target name="help.test">
<echo>
The following Ant targets run various test suites:
abcl.test
-- Run all available tests.
abcl.test.java
-- Run the ABCL junit Java tests under ${basedir}/test/src/
abcl.test.lisp
-- Run the 'test.ansi.compiled', 'test.abcl', 'test.cl-bench' targets
test.ansi.compiled
-- Run the compiled version of the ANSI test suite
test.abcl
-- Run the Lisp RT tests collected in ${basedir}/test/lisp/abcl/
test.cl-bench
-- Run the cl-bench test suite.
The ANSI tests require that the [ANSI tests][1] be manually installed in
${basedir}/../ansi-test/.
[1]: git+https://gitlab.common-lisp.net/ansi-test/ansi-test.git
The CL-BENCH tests require that [cl-bench][2] be manually installed in
${basedir}/../cl-bench
[2]: http://www.chez.com/emarsden/downloads/cl-bench.tar.gz
</echo>
</target>
<property name="abcl.test.classes.dir"
value="${build.dir}/classes-test"/>
<property name="abcl.test.src.dir"
value="${basedir}/test/src"/>
<patternset id="abcl.test.source.java">
<include name="org/armedbear/lisp/**/*.java"/>
</patternset>
<property name="junit.path"
value="${abcl.ext.dir}/junit-4.8.1.jar"/>
<property name="maven.dist.name"
value="apache-maven-3.3.9-bin.zip"/>
<property name="maven.dist.uri"
value="http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/${maven.dist.name}"/>
<property name="maven.local.path"
value="${abcl.ext.dir}/${maven.dist.name}"/>
<path id="abcl.test.compile.classpath">
<pathelement location="${junit.path}"/>
<pathelement location="${build.classes.dir}"/>
</path>
<target name="abcl.test.pre-compile" depends="abcl.ext"/>
<target name="abcl.ext.p">
<!--XXX generalize over enumeration of all contributions to
abcl.ext if we get more of them. -->
<condition property="abcl.ext.p">
<and>
<available file="${junit.path}"/>
<available file="${maven.local.path}"/>
</and>
</condition>
</target>
<target name="abcl.ext" depends="abcl.ext.p" unless="abcl.ext.p">
<mkdir dir="${abcl.ext.dir}"/>
<get
src="https://repo1.maven.org/maven2/junit/junit/4.8.1/junit-4.8.1.jar"
usetimestamp="true"
dest="${junit.path}"/>
<get
src="${maven.dist.uri}"
usetimestamp="true"
dest="${maven.local.path}"/>
</target>
<target name="abcl.ext.maven" depends="abcl.ext">
<echo>Installing Maven for ABCL from ${maven.dist.uri}.</echo>
<unzip src="${maven.local.path}"
dest="${abcl.ext.dir}">
</unzip>
</target>
<target name="abcl.test.compile"
depends="abcl.test.pre-compile">
<mkdir dir="${abcl.test.classes.dir}"/>
<javac destdir="${abcl.test.classes.dir}"
classpathref="abcl.test.compile.classpath"
debug="true"
target="1.5">
<src path="${abcl.test.src.dir}"/>
<patternset refid="abcl.test.source.java"/>
</javac>
</target>
<path id="abcl.test.run.classpath">
<path refid="abcl.test.compile.classpath"/>
<pathelement location="${abcl.test.classes.dir}"/>
</path>
<target name="abcl.test"
depends="abcl.test.java,abcl.test.lisp"/>
<target name="abcl.test.java" depends="abcl.test.compile">
<java fork="true"
classpathref="abcl.test.run.classpath"
classname="org.junit.runner.JUnitCore">
<arg value="org.armedbear.lisp.PathnameTest"/>
<arg value="org.armedbear.lisp.StreamTest"/>
<arg value="org.armedbear.lisp.SeekableStringWriterTest"/>
<arg value="org.armedbear.lisp.UtilitiesTest"/>
<arg value="org.armedbear.lisp.serialization.SerializationTest"/>
<!-- currently hangs(!) the running process
<arg value="org.armedbear.lisp.util.HttpHeadTest"/>
-->
</java>
</target>
<target name="abcl.test.lisp"
depends="test.ansi.compiled,test.abcl,test.cl-bench"/>
<target name="test.ansi.interpreted" depends="abcl.jar">
<echo>Recording test output in ${abcl.test.log.file}.</echo>
<record name="${abcl.test.log.file}" emacsmode="true" action="start" append="yes"/>
<java fork="true" dir="${basedir}"
classpathref="abcl.classpath.dist"
classname="org.armedbear.lisp.Main">
<arg value="--noinit"/>
<arg value="--eval"/><arg value="(require (quote asdf))"/>
<arg value="--eval"/>
<arg value="(asdf:initialize-source-registry `(:source-registry (:directory ,*default-pathname-defaults*) :inherit-configuration)))"/>
<arg value="--eval"/><arg value="(asdf:test-system :abcl/test/ansi/interpreted)"/>
<arg value="--eval"/><arg value="(ext:exit)"/>
</java>
<record name="${abcl.test.log.file}" emacsmode="true" action="stop"/>
<echo>Finished recording test output in ${abcl.test.log.file}.</echo>
</target>
<target name="test.ansi.compiled" depends="abcl.jar">
<echo>Recording test output in ${abcl.test.log.file}.</echo>
<record name="${abcl.test.log.file}" emacsmode="true" action="start" append="yes"/>
<java fork="true" dir="${basedir}"
classpathref="abcl.classpath.dist"
classname="org.armedbear.lisp.Main">
<arg value="--noinit"/>
<arg value="--eval"/><arg value="(require (quote asdf))"/>
<arg value="--eval"/>
<arg value="(asdf:initialize-source-registry `(:source-registry (:directory ,*default-pathname-defaults*) :inherit-configuration)))"/>
<arg value="--eval"/><arg value="(asdf:test-system :abcl/test/ansi/compiled)"/>
<arg value="--eval"/><arg value="(ext:exit)"/>
</java>
<record name="${abcl.test.log.file}" emacsmode="true" action="stop"/>
<echo>Finished recording test output in ${abcl.test.log.file}.</echo>
</target>
<target name="test.abcl" depends="abcl.jar">
<echo>Recording test output in ${abcl.test.log.file}.</echo>
<record name="${abcl.test.log.file}" emacsmode="true" action="start" append="yes"/>
<java fork="true" dir="${basedir}"
classpathref="abcl.classpath.dist"
classname="org.armedbear.lisp.Main">
<arg value="--noinit"/>
<arg value="--eval"/><arg value="(require (quote asdf))"/>
<arg value="--eval"/>
<arg value="(asdf:initialize-source-registry `(:source-registry (:directory ,*default-pathname-defaults*) :inherit-configuration)))"/>
<arg value="--eval"/><arg value="(asdf:test-system :abcl)"/>
<arg value="--eval"/><arg value="(ext:exit)"/>
</java>
<record name="${abcl.test.log.file}" emacsmode="true" action="stop"/>
<echo>Finished recording test output in ${abcl.test.log.file}.</echo>
</target>
<target name="test.cl-bench" depends="abcl.jar">
<echo>Recording test output in ${abcl.test.log.file}.</echo>
<record name="${abcl.test.log.file}" emacsmode="true" action="start" append="yes"/>
<java fork="true" dir="${basedir}"
classpathref="abcl.classpath.dist"
classname="org.armedbear.lisp.Main">
<arg value="--noinit"/>
<arg value="--eval"/><arg value="(require (quote asdf))"/>
<arg value="--eval"/><arg value="(require (quote abcl-contrib))"/>
<arg value="--eval"/><arg value="(asdf:make :quicklisp-abcl)"/>
<arg value="--eval"/>
<arg value="(asdf:initialize-source-registry `(:source-registry (:directory ,*default-pathname-defaults*) :inherit-configuration))"/>
<arg value="--eval"/><arg value="(asdf:test-system :abcl/test/cl-bench)"/>
<arg value="--eval"/><arg value="(ext:exit)"/>
</java>
<record name="${abcl.test.log.file}" emacsmode="true" action="stop"/>
<echo>Finished recording test output in ${abcl.test.log.file}.</echo>
</target>
<target name="abcl.diagnostic"
description="Emit diagnostics describing available hosting JVM properties."
depends="abcl.build.diagnostic"/>
<!--
urn:org.abcl.build.ant.targets.diagnostic
"Possible JVM values from"
http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#getProperties
.
java.version Java Runtime Environment version
java.vendor Java Runtime Environment vendor
java.vendor.url Java vendor URL
java.home Java installation directory
java.vm.specification.version Java Virtual Machine specification version
java.vm.specification.vendor Java Virtual Machine specification vendor
java.vm.specification.name Java Virtual Machine specification name
java.vm.version Java Virtual Machine implementation version
java.vm.vendor Java Virtual Machine implementation vendor
java.vm.name Java Virtual Machine implementation name
java.specification.version Java Runtime Environment specification version
java.specification.vendor Java Runtime Environment specification vendor
java.specification.name Java Runtime Environment specification name
java.class.version Java class format version number
java.class.path Java class path
java.library.path List of paths to search when loading libraries
java.io.tmpdir Default temp file path
java.compiler Name of JIT compiler to use
java.ext.dirs Path of extension directory or directories
os.name Operating system name
os.arch Operating system architecture
os.version Operating system version
file.separator File separator ("/" on UNIX)
path.separator Path separator (":" on UNIX)
line.separator Line separator ("\n" on UNIX)
user.name User's account name
user.home User's home directory
user.dir
-->
<target name="abcl.build.diagnostic" description="Emit diagnostics describing available hosting JVM properties.">
<echo>
JVM System Properties
=====================
:java.version ${java.version}
:java.vendor ${java.vendor}
:java.vm.vendor ${java.vm.vendor}
:java.vm.name ${java.vm.name}
:os.name ${os.name}
:os.arch ${os.arch}
:os.version ${os.version}
:java.specification.version
${java.specification.version}
:java.vm.specification.version
${java.vm.specification.version}
</echo>
<echoproperties/>
</target>
<target name="abcl.release"
depends="abcl.clean,abcl.properties.autoconfigure.openjdk.8,abcl.binary.tar,abcl.source.tar,abcl.binary.zip,abcl.source.zip,abcl.wrapper">
<copy file="${abcl.jar.path}"
tofile="${dist.dir}/abcl-${abcl.version}.jar"/>
<copy file="${abcl-contrib.jar}"
tofile="${dist.dir}/abcl-contrib-${abcl.version}.jar"/>
</target>
<target name="abcl.documentation"
depends="abcl.stamp.version.generate,abcl.documentation.manual,abcl.documentation.asdf"/>
<target name="abcl.documentation.manual"
depends="abcl.stamp.version">
<echo>This target requires 'make' and a LaTeX installation to be on the PATH.</echo>
<exec
executable="make"
dir="${basedir}/doc/manual"/>
<copy file="doc/manual/abcl.pdf"
tofile="${dist.dir}/abcl-${abcl.version}.pdf"/>
</target>
<target name="abcl.documentation.asdf">
<echo>This target requires 'texi2pdf' to be on the PATH.</echo>
<exec
executable="texi2pdf"
dir="${basedir}/doc/asdf">
<arg value="asdf.texinfo"/>
</exec>
<copy file="doc/asdf/asdf.pdf"
tofile="${dist.dir}/asdf.pdf"/>
</target>
<target name="abcl.properties.autoconfigure.openjdk.6">
<exec executable="/usr/bin/env">
<arg value="bash"/>
<arg value="ci/create-abcl-properties.bash"/>
<arg value="openjdk6"/>
</exec>
</target>
<target name="abcl.properties.autoconfigure.openjdk.7">
<exec executable="/usr/bin/env">
<arg value="bash"/>
<arg value="ci/create-abcl-properties.bash"/>
<arg value="openjdk7"/>
</exec>
</target>
<target name="abcl.properties.autoconfigure.openjdk.8">
<exec executable="/usr/bin/env">
<arg value="bash"/>
<arg value="ci/create-abcl-properties.bash"/>
<arg value="openjdk8"/>
</exec>
</target>
<target name="abcl.properties.autoconfigure.openjdk.11">
<exec executable="/usr/bin/env">
<arg value="bash"/>
<arg value="ci/create-abcl-properties.bash"/>
<arg value="openjdk11"/>
</exec>
</target>
<target name="abcl.properties.autoconfigure.openjdk.14">
<exec executable="/usr/bin/env">
<arg value="bash"/>
<arg value="ci/create-abcl-properties.bash"/>
<arg value="openjdk14"/>
</exec>
</target>
<target name="abcl.properties.autoconfigure.openjdk.15">
<exec executable="/usr/bin/env">
<arg value="bash"/>
<arg value="ci/create-abcl-properties.bash"/>
<arg value="openjdk15"/>
</exec>
</target>
<target name="abcl.properties.autoconfigure.openjdk.16">
<exec executable="/usr/bin/env">
<arg value="bash"/>
<arg value="ci/create-abcl-properties.bash"/>
<arg value="openjdk16"/>
</exec>
</target>
<target name="abcl.properties.autoconfigure.openjdk.17">
<exec executable="/usr/bin/env">
<arg value="bash"/>
<arg value="ci/create-abcl-properties.bash"/>
<arg value="openjdk17"/>
</exec>
</target>
<target name="abcl.properties.autoconfigure.openjdk.18">
<exec executable="/usr/bin/env">
<arg value="bash"/>
<arg value="ci/create-abcl-properties.bash"/>
<arg value="openjdk18"/>
</exec>
</target>
<target name="abcl.properties.autoconfigure.openjdk.19">
<exec executable="/usr/bin/env">
<arg value="bash"/>
<arg value="ci/create-abcl-properties.bash"/>
<arg value="openjdk19"/>
</exec>
</target>
<import file="etc/ant/netbeans-build.xml"
optional="true"/>
<import file="etc/ant/build-snapshot.xml"
optional="true"/>
<import file="etc/ant/build-maven.xml"
optional="true"/>
</project>
|