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 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532
|
<!--///////////////////////////////////////////////////////////////////////////
//
// JTOpen (IBM Toolbox for Java - OSS version)
//
// Filename: buildEclipse.xml
//
// This will build the jar files using the source in the eclipse projects as
// source. This is a modified version of build.xml.
//
// The source code contained herein is licensed under the IBM Public License
// Version 1.0, which has been approved by the Open Source Initiative.
// Copyright (C) 1997-2012 International Business Machines Corporation and
// others. All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////
//
// Getting Started
//
//
// Pre-requisites:
// - JDK 1.4.1 (or higher)
// - JDK 1.5 (for JTOpenLite)
// - JDK 1.6 (for java6 version)
// - Apache Ant 1.5
// - CVS client (to download source)
//
// 1. In this file, change the value of the "build" property to be the directory
// where you want the JTOpen files to be downloaded and built to. It
// defaults to "/jtopen_build" (which is C:\jtopen_build on Windows).
//
// 2. Make sure Ant is installed and in your CLASSPATH, and you are familiar
// with how to run builds using Ant.
// See http://ant.apache.org to download and read up on it.
// For those with less time on their hands, get the binary from:
// http://jakarta.apache.org/builds/jakarta-ant/release/v1.5/bin/
// Once installed, add the ant.jar to your CLASSPATH.
// To run a build:
// java org.apache.tools.ant.Main target1 target2 target3 ...
// This assumes that a "build.xml" file (such as this one) exists in your
// current directory. Override this by using the -file flag.
//
// 3. In order to download the source, you need a CVS client installed and in
// your path. If you don't, Ant will not be able to automatically
// download the JTOpen source repository... you will have to do it by hand.
// Most distributions of Linux ship a 'cvs' client. See http://www.wincvs.org
// for a Windows version.
// (Make sure that cvs.exe is in your PATH when you run Ant.
// If you get an "access method is not installed on this system" error,
// try moving cvs.exe to a different directory than where build.xml is located.)
//
// 4. Run the "source" target for this build. This will download the
// additional Ant tasks that are required, and set up the initial
// directory structure. Ironically, this file will get downloaded in
// this step... so if you're reading this, you've already done that,
// or you've just overwritten your own build.xml with this one. :)
//
// 5. Obtain the necessary include files from the list of requisite jars and
// place them in the "/jtopen_build/include" directory. Also obtain the
// necessary executables and place them in the "/jtopen_build/bin" directory.
// See below for these lists. Note that the "clean" target of this build
// does not remove anything in the "/jtopen_build/include" or
// "/jtopen_build/build" directories.
//
// 6. Add the "/jtopen_build/build" directory to your CLASSPATH. This is so
// the Ant build can pick up the tasks it needs to create the PCML files.
//
// 7. Run any of the targets in this file. To build JTOpen cleanly, it is
// suggested that you run it like this:
//
// java org.apache.tools.ant.Main clean clean-source source all
//
// 8. Output files will appear in the "/jtopen_build/dist" directory, as well as
// "/jtopen_build/javadoc" and the various "/jtopen_build/output*" directories.
//
///////////////////////////////////////////////////////////////////////////////
//
// Requisite jars and packages
//
// The following is a list of jar files and the URLs from which they can be
// obtained. These jar files are required in order to build JTOpen. We cannot
// include these jar files in the JTOpen CVS repository due to licensing issues.
// These files needs to be placed in the /jtopen_build/include directory after
// they are downloaded.
//
// *** Required under JDK 1.4: ***
//
//
// Filename: servlet.jar
// Location: http://java.sun.com/products/servlet/archive.html
// Description: JSDK 2.1 Servlet APIs needed for the com.ibm.as400.util.servlet package.
// Extract the servlet.jar from the jsdk zip file after download.
//
//
// Filename: midpapi10.jar
// Location: http://java.sun.com/products/sjwtoolkit/
// Description: J2ME Wireless Toolkit MIDP APIs needed for the com.ibm.as400.micro package.
// Note: The J2ME Wireless Toolkit can only be installed on Windows or Linux.
// (The midpapi10.jar file can be found in C:\WTKxx\lib after the install, where "xx" is the J2ME WTK version number.)
//
//
// Filename: cldcapi10.jar
// Location: http://java.sun.com/products/sjwtoolkit/
// Description: J2ME Wireless Toolkit CLDC APIs needed for the com.ibm.as400.micro package.
// Note: The J2ME Wireless Toolkit can only be installed on Windows or Linux.
// (The cldcapi10.jar file can be found in C:\WTKxx\lib after the install, where "xx" is the J2ME WTK version number.)
//
///////////////////////////////////////////////////////////////////////////////
//
// Requisite executables
//
//
// Filename: preverify or preverify.exe
// Location: http://java.sun.com/products/sjwtoolkit/
// Description: J2ME Wireless Toolkit preverification tool required to build the
// jt400Micro.jar. This file needs to be in the /jtopen_build/bin directory.
// Note: The J2ME Wireless Toolkit can only be installed on Windows or Linux.
// (The preverify.exe file can be found in C:\WTKxx\bin after the install, where "xx" is the J2ME WTK version number.)
//
//
// Filename: preverify1.1 or preverify1.1.exe
// Location: http://java.sun.com/products/sjwtoolkit/
// Description: J2ME Wireless Toolkit preverification tool required to build the
// jt400Micro.jar. This file needs to be in the /jtopen_build/bin directory.
// Note: The J2ME Wireless Toolkit can only be installed on Windows or Linux.
// (The preverify1.1.exe file can be found in C:\WTKxx\bin after the install, where "xx" is the J2ME WTK version number.)
//
//
// Filename: cvs or cvs.exe
// Location: http://www.wincvs.org
// Description: Required to access the JTOpen CVS repository using the "source" target.
// This file must be in the PATH when this Ant script is run.
// It may need to be in a different directory than the build.xml file.
// Most versions of Linux already include a cvs executable.
// The location link is for Windows users to obtain a CVS client.
//
///////////////////////////////////////////////////////////////////////////////
//
// Useful targets
//
// usage - This is the default. Prints information on available targets.
// all - Builds everything (compile, jar, zip, javadoc...),
// assuming the source has been downloaded.
// clean - Removes all built files and javadoc. Does not remove the /include
// or /build subdirectories. This target is not a pre-requisite for any other
// targets.
// jar - Builds just the jars (and any pre-requisite targets, such as compile...).
// javadoc - Builds just the javadoc (assuming the source has been downloaded).
// micro - Builds just the jt400Micro.jar (including compiling and pre-verification).
// zip - Builds just the doc.zip and src.zip files, assuming the source has
// been downloaded and the javadoc has been built.
//
// Suggested build invocation:
//
// java org.apache.tools.ant.Main clean clean-source source all
//
// The resulting jar and zip files can be found in the "dist" subdirectory.
// The resulting class files can be found in the various "output" subdirectories.
// The resulting javadoc can be found in the "javadoc" subdirectory.
//
// Note: The xerces-4.0 target has been removed, since the JTOpen source code has been
// updated to use JAXP-compliant APIs.
//
// Note: The javadoc target can build the javadoc to the best of its ability. However,
// many warnings will appear for some of the files that have pre-requisites that are
// not required for compilation. Namely, these pre-requisites are:
//
// jui400.jar - A Graphical Toolbox jar file needed to generate javadoc for the
// AS400JDBCDataSourcePane classes in the com.ibm.as400.vaccess package.
// It is shipped in the main JTOpen download zip file, or as part of
// the IBM Toolbox for Java licensed program download.
// sslightx.zip - The SSLight code used by some of the AS400 connection infrastructure
// when Secure Sockets Layer encryption is used. This file is considered
// IBM-restricted and can be obtained from one of the various "CE" products
// on your system.
//
////////////////////////////////////////////////////////////////////////////-->
<project name="JTOpen" default="jar">
<!--///////////////////////////////////////////////////////////////////////////
// PROPERTIES
///////////////////////////////////////////////////////////////////////////-->
<!-- The "build" value is the root directory in which the JTOpen
files will get downloaded and built. All of the other
subdirectories required by this build stem off of this
directory. -->
<!-- This can be overridden on the ant command line using
-Dbuild=/build/JTOpen -->
<condition property="build" value="/jtopen_build">
<not>
<isset property="build"/>
</not>
</condition>
<!-- Set the properties for the JDKs used to compile the code -->
<property name="jdk14" value="/jdk1.4"/>
<property name="jdk15" value="/jdk1.5"/>
<property name="jdk16" value="/jdk1.6.0"/>
<!-- Set the id used to access cvs -->
<property name="cvsUserid" value="anonymous"/>
<property name="cvsPassword" value=""/>
<property name="userid" value="eberhard"/>
<property name="password" value="XXXXX"/>
<property name="v7r2server" value="eut72p1.rchland.ibm.com"/>
<property name="v7r1server" value="lp01ut18.rchland.ibm.com"/>
<property name="v6r1server1" value="fowgai2.rchland.ibm.com"/>
<property name="v6r1server2" value="rchaptf2.rchland.ibm.com"/>
<property name="v5r4server" value="lp03ut5.rchland.ibm.com"/>
<property name="linuxserver" value="lena6.rchland.ibm.com"/>
<property name="linuxuserid" value="jeber"/>
<property name="linuxpassword" value="XXXXXX"/>
<property name="jdk14home" value="C:/jdk1.4"/>
<property name="bin" value="${build}/bin"/>
<property name="source" value="${sourceroot}/src"/>
<property name="source-jdbc40" value="${sourceroot}/jdbc40"/>
<property name="source-java6" value="${build}/java6"/>
<property name="source-contrib" value="${sourceroot}/contrib"/>
<property name="source-android" value="${sourceroot}/android"/>
<property name="source-androidStubs" value="${sourceroot}/androidStubs"/>
<property name="source-micro" value="${sourceroot}/micro"/>
<property name="source-jtopenlite" value="${sourceroot}/jtopenlite"/>
<property name="source-include" value="${sourceroot}/include"/>
<property name="dist" value="${build}/dist14"/>
<property name="dist6" value="${build}/dist6"/>
<property name="include" value="${build}/include"/>
<property name="includecvs" value=""/>
<property name="stubs" value="${build}/stubs"/> <!-- stubs are classes we need for compiling, but we don't ship. -->
<property name="javadoc" value="${build}/javadoc"/>
<property name="javadoc6" value="${build}/javadoc6"/>
<property name="output" value="${build}/output14"/>
<property name="output6" value="${build}/output6"/>
<property name="output-android" value="${build}/output-android"/>
<property name="output-micro" value="${build}/output-micro"/>
<property name="output-jtopenlite" value="${build}/output-jtopenlite"/>
<property name="output-micro-verified" value="${build}/output-micro-verified"/>
<property name="build.sysclasspath" value="ignore"/>
<property name="doclink" value="http://download.oracle.com/javase/1.4.2/docs/api/"/>
<property name="doclink6" value="http://download.oracle.com/javase/6/docs/api/"/>
<property name="show-progress" value="false"/>
<property name="shadow-jtopenlite" value="J:\dev2000\as400\v7r1m0t.jacl\usr\cmvc\java.pgm\yjac.jacl\jars"/>
<property name="shadow2-jtopenlite" value="J:\"/>
<!-- These local socket optimizations are only beneficial when running
Java code on OS/400 that connects to localhost. They are not required. -->
<patternset id="exclude.local.socket.implementation">
<exclude name="com/ibm/as400/access/SocketContainerUnix.class"/>
<exclude name="com/ibm/as400/access/UnixSocket.class"/>
<exclude name="com/ibm/as400/access/UnixSocketImpl.class"/>
<exclude name="com/ibm/as400/access/UnixSocketInputStream.class"/>
<exclude name="com/ibm/as400/access/UnixSocketOutputStream.class"/>
<exclude name="com/ibm/as400/access/UnixSocketUser.class"/>
<exclude name="com/ibm/as400/access/SocketContainerUnix2.class"/>
<exclude name="com/ibm/as400/access/SocketContainerUnix2$1.class"/>
<exclude name="com/ibm/as400/access/SocketContainerUnix2$SCUInputStream.class"/>
<exclude name="com/ibm/as400/access/SocketContainerUnix2$SCUOutputStream.class"/>
</patternset>
<!-- These optimizations are for executing certain Toolbox functions on-thread and
in-process when running Java code on OS/400 that connects to localhost.
They use JNI calls instead of socket calls to the Client Access Host Servers.
They are not required for normal operations. -->
<patternset id="exclude.native.optimizations">
<exclude name="com/ibm/as400/access/AS400CertificateUsrPrfUtilImplNative.class"/>
<exclude name="com/ibm/as400/access/AS400CertificateUtilImplNative.class"/>
<exclude name="com/ibm/as400/access/AS400CertificateVldlUtilImplNative.class"/>
<exclude name="com/ibm/as400/access/AS400FileImplNative.class"/>
<exclude name="com/ibm/as400/access/AS400ImplNative.class"/>
<exclude name="com/ibm/as400/access/BaseDataQueueImplNative.class"/>
<exclude name="com/ibm/as400/access/BytesWithOffset.class"/>
<exclude name="com/ibm/as400/access/LocalIOFB.class"/>
<exclude name="com/ibm/as400/access/LocalOpenFeedback.class"/>
<exclude name="com/ibm/as400/access/MessageFBDataFormat.class"/>
<exclude name="com/ibm/as400/access/MessageFBFormat.class"/>
<exclude name="com/ibm/as400/access/NativeVersion.class"/>
<exclude name="com/ibm/as400/access/NLSImplNative.class"/>
<exclude name="com/ibm/as400/access/ProfileHandleImplNative.class"/>
<exclude name="com/ibm/as400/access/ProfileTokenImplNative.class"/>
<exclude name="com/ibm/as400/access/RemoteCommandImplNative.class"/>
<exclude name="com/ibm/as400/access/UserSpaceImplNative.class"/>
</patternset>
<!--///////////////////////////////////////////////////////////////////////////
// TARGETS
///////////////////////////////////////////////////////////////////////////-->
<!--///////////////////////////////////////////////////////////////////////////
// Target: all
///////////////////////////////////////////////////////////////////////////-->
<target name="all" depends="jar,javadoc,javadoc6,zip"/>
<!--///////////////////////////////////////////////////////////////////////////
// Target: clean
///////////////////////////////////////////////////////////////////////////-->
<target name="clean" depends="clean-javadoc,clean-dist,clean-output"/>
<target name="clean-dist">
<delete dir="${dist}"/>
</target>
<target name="clean-javadoc">
<delete dir="${javadoc}"/>
</target>
<target name="clean-output">
<delete dir="${output}"/>
<delete dir="${output-micro}"/>
<delete dir="${output-jtopenlite}"/>
<delete dir="${output-micro-verified}"/>
</target>
<target name="clean-dist6">
<delete dir="${dist6}"/>
</target>
<target name="clean-javadoc6">
<delete dir="${javadoc6}"/>
</target>
<target name="clean-output6">
<delete dir="${output6}"/>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: compile6
///////////////////////////////////////////////////////////////////////////-->
<target name="compile6" depends="source6">
<fail message="Not using JDK 1.6 or higher." unless="jdk16Exists"/>
<fail message="Can't find ${include}/servlet.jar." unless="servletJarExists"/>
<javac nowarn="on" srcdir="${source-java6}:${source-contrib}"
destdir="${output6}"
memoryMaximumSize="256m"
failonerror="true"
debug="on"
debuglevel="lines,source"
fork="true"
source="5"
target="5">
<classpath>
<pathelement path="${include}"/>
<pathelement location="${include}/servlet.jar"/> <!-- Need the JSDK classes to compile the com.ibm.as400.util.servlet package. -->
<pathelement location="${include}/jui400.jar"/> <!-- Need this for the AS400JDBCDataSourcePane in the com.ibm.as400.vaccess package. -->
<pathelement location="${stubs}"/>
</classpath>
</javac>
<copy file="${source}/utilities/INMRI.pro"
preservelastmodified="yes"
tofile="${output}/utilities/INMRI.properties"/>
<copy file="${source}/utilities/UTMRI.pro"
preservelastmodified="yes"
tofile="${output}/utilities/UTMRI.properties"/>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: compile
///////////////////////////////////////////////////////////////////////////-->
<target name="compile" depends="init">
<fail message="Can't find ${include}/servlet.jar." unless="servletJarExists"/>
<tstamp/>
<echo message="compiling jtopen on ${DSTAMP}"/>
<replaceregexp file="${source}/com/ibm/as400/access/Copyright.java"
match="built=[^ ]*"
replace="built=${DSTAMP}"
byline="true"
/>
<javac srcdir="${source}:${source-contrib}"
destdir="${output}"
memoryMaximumSize="256m"
failonerror="true"
debug="on"
debuglevel="lines,source"
fork="true"
encoding="iso-8859-1"
target="1.1"
executable="${jdk14}/bin/javac" >
<classpath>
<pathelement path="${include}"/>
<pathelement location="${include}/servlet.jar"/> <!-- Need the JSDK classes to compile the com.ibm.as400.util.servlet package. -->
<pathelement location="${include}/jui400.jar"/> <!-- Need this for the AS400JDBCDataSourcePane in the com.ibm.as400.vaccess package. -->
<pathelement location="${stubs}"/>
</classpath>
</javac>
<copy file="${source}/utilities/INMRI.pro"
preservelastmodified="yes"
tofile="${output}/utilities/INMRI.properties"/>
<copy file="${source}/utilities/UTMRI.pro"
preservelastmodified="yes"
tofile="${output}/utilities/UTMRI.properties"/>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: compile-android
///////////////////////////////////////////////////////////////////////////-->
<target name="compile-android" depends="source-android">
<tstamp/>
<echo message="compiling jtopen on ${DSTAMP}"/>
<replaceregexp file="${source-android}/com/ibm/as400/access/Copyright.java"
match="built=[^ ]*"
replace="built=${DSTAMP}"
byline="true"
/>
<javac srcdir="${source-android}:${source-androidStubs}"
destdir="${output-android}"
memoryMaximumSize="256m"
failonerror="true"
debug="on"
debuglevel="lines,source"
fork="true"
encoding="iso-8859-1"
target="1.1"
executable="${jdk14}/bin/javac"
>
</javac>
<copy file="${source}/utilities/INMRI.pro"
preservelastmodified="yes"
tofile="${output}/utilities/INMRI.properties"/>
<copy file="${source}/utilities/UTMRI.pro"
preservelastmodified="yes"
tofile="${output}/utilities/UTMRI.properties"/>
</target>
<target name="compile-micro" depends="init">
<fail message="Can't find ${include}/midpapi10.jar." unless="midpapiJarExists"/>
<fail message="Can't find ${include}/cldcapi10.jar." unless="cldcapiJarExists"/>
<javac srcdir="${source-micro}:${source}"
destdir="${output-micro}"
failonerror="true"
debug="on"
debuglevel="lines,source"
fork="true"
encoding="iso-8859-1"
target="1.1"
executable="${jdk14}/bin/javac" >
<include name="com/ibm/as400/micro/*.java"/>
<include name="java/sql/*.java"/>
<include name="java/math/*.java"/>
<include name="java/net/*.java"/>
<include name="java/util/*.java"/>
<!-- These classes only belong in the ME server, not the client. -->
<exclude name="com/ibm/as400/micro/ConnectionHandler.java"/>
<exclude name="com/ibm/as400/micro/JdbcMeService.java"/>
<exclude name="com/ibm/as400/micro/MEServer.java"/>
<exclude name="com/ibm/as400/micro/MicroDataInputStream.java"/>
<exclude name="com/ibm/as400/micro/MicroDataOutputStream.java"/>
<exclude name="com/ibm/as400/micro/ResourceBundleLoader_m.java"/>
<exclude name="com/ibm/as400/micro/ResultSetHandler.java"/>
<exclude name="com/ibm/as400/micro/Service.java"/>
<exclude name="com/ibm/as400/micro/StatementHandler.java"/>
<bootclasspath>
<pathelement path="${include}/midpapi10.jar:${include}/cldcapi10.jar:${source-include}"/>
</bootclasspath>
</javac>
</target>
<target name="compile-jtopenlite" depends="init">
<tstamp/>
<echo message="compiling jtopenlite on ${DSTAMP}"/>
<replaceregexp file="${source-jtopenlite}/com/ibm/jtopenlite/About.java"
match="INTERFACE_LEVEL=".*""
replace="INTERFACE_LEVEL="${DSTAMP}""
byline="true"
/>
<mkdir dir="${output-jtopenlite}"/>
<javac srcdir="${source-jtopenlite}"
destdir="${output-jtopenlite}"
failonerror="true"
debug="on"
debuglevel="lines,source"
fork="true"
encoding="iso-8859-1"
target="1.5"
executable="${jdk15}/bin/javac" >
<include name="com/ibm/jtopenlite/*.java"/>
<include name="com/ibm/jtopenlite/**/*.java"/>
</javac>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: init
///////////////////////////////////////////////////////////////////////////-->
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
<mkdir dir="${dist6}"/>
<mkdir dir="${javadoc}"/>
<mkdir dir="${javadoc6}"/>
<mkdir dir="${javadoc-jtopenlite}"/>
<!-- mkdir dir="${include}"/ -->
<mkdir dir="${output}"/>
<mkdir dir="${output6}"/>
<mkdir dir="${output-jtopenlite}"/>
<mkdir dir="${output-micro}"/>
<mkdir dir="${output-micro-verified}"/>
<mkdir dir="${output-android}"/>
<mkdir dir="${source-android}"/>
<mkdir dir="${bin}"/>
<condition property="servletJarExists">
<available file="${include}/servlet.jar" type="file"/>
</condition>
<condition property="midpapiJarExists">
<available file="${include}/midpapi10.jar" type="file"/>
</condition>
<condition property="cldcapiJarExists">
<available file="${include}/cldcapi10.jar" type="file"/>
</condition>
<condition property="javadocIncludesExist">
<and>
<available file="${include}/servlet.jar" type="file"/>
<available file="${include}/midpapi10.jar" type="file"/>
<available file="${include}/cldcapi10.jar" type="file"/>
<available file="${include}/jui400.jar" type="file"/>
<available file="${include}/sslightx.zip" type="file"/>
</and>
</condition>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: jar
///////////////////////////////////////////////////////////////////////////-->
<target name="jar" depends="jar-jt400,jar-jt400Micro,jar-jt400Native,jar-jt400Proxy,jar-jt400Servlet,jar-jt4006,jar-jt400Native6"/>
<!-- Note that the utilities package is now included in the jt400.jar. -->
<target name="jar-jt400" depends="init,compile,pcml,copyright">
<jar jarfile="${dist}/jt400.jar" manifest="jt400_manifest.txt">
<fileset dir="${output}">
<patternset refid="exclude.native.optimizations"/>
<patternset refid="exclude.local.socket.implementation"/>
<patternset>
<exclude name="com/ibm/as400/util/html/**"/>
<exclude name="com/ibm/as400/util/servlet/**"/>
</patternset>
</fileset>
<fileset dir="${include}"
includes="com/ibm/as400/**,utilities/**"
excludes="**/*.java">
<patternset refid="exclude.native.optimizations"/>
<patternset refid="exclude.local.socket.implementation"/>
</fileset>
<fileset dir="${source}"
includes="**/*.gif,**/*.ser,**/*.dtd,**/*.xsl,**/*.xsd"
excludes="com/ibm/as400/util/html/**,com/ibm/as400/util/servlet/**"/>
<fileset dir="${build}" includes="license.html"/>
</jar>
<checksum file="${dist}/jt400.jar"/>
</target>
<target name="shadow-jtopenlite" depends="jar-jtopenlite">
<copy file="${dist}/jtopenlite.jar" tofile="${shadow-jtopenlite}/jtopenlite.jar"/>
<copy file="${dist}/jtopenlite.jar" tofile="${shadow2-jtopenlite}/jtopenlite.jar"/>
</target>
<target name="jar-jtopenlite" depends="init,compile-jtopenlite">
<jar jarfile="${dist}/jtopenlite.jar">
<fileset dir="${output-jtopenlite}" />
<fileset dir="${build}" includes="license.html"/>
</jar>
<checksum file="${dist}/jtopenlite.jar"/>
</target>
<target name="jar-jt400android" depends="init,compile-android,pcml-android,copyright-android">
<jar jarfile="${dist}/jt400android.jar" manifest="${build}/build/jt400_manifest.txt">
<fileset dir="${output-android}">
<patternset refid="exclude.native.optimizations"/>
<patternset refid="exclude.local.socket.implementation"/>
</fileset>
<fileset dir="${source}"
includes="**/*.ser,**/*.dtd,**/*.xsl,**/*.xsd"
excludes="com/ibm/as400/util/html/**,com/ibm/as400/util/servlet/**"/>
<fileset dir="${build}" includes="license.html"/>
</jar>
<checksum file="${dist}/jt400android.jar"/>
</target>
<target name="jar-jt4006" depends="init,jar-jt400,compile6,pcml6,copyright6">
<jar jarfile="${dist6}/jt400.jar" manifest="jt400_manifest.txt">
<fileset dir="${output6}">
<patternset refid="exclude.native.optimizations"/>
<patternset refid="exclude.local.socket.implementation"/>
<patternset>
<!-- These are shipped in jt400Servlet.jar -->
<exclude name="com/ibm/as400/util/html/**"/>
<exclude name="com/ibm/as400/util/servlet/**"/>
</patternset>
</fileset>
<fileset dir="${include}"
includes="com/ibm/as400/**,utilities/**"
excludes="**/*.java">
<patternset refid="exclude.native.optimizations"/>
<patternset refid="exclude.local.socket.implementation"/>
</fileset>
<fileset dir="${source}"
includes="**/*.gif,**/*.ser,**/*.dtd,**/*.xsl,**/*.xsd"
excludes="com/ibm/as400/util/html/**,com/ibm/as400/util/servlet/**"/>
<fileset dir="${build}" includes="license.html"/>
<fileset dir="${build}/build" includes="META-INF/services/java.sql.Driver"/> <!-- jdbc 4.0 driver manifest -->
</jar>
<checksum file="${dist6}/jt400.jar"/>
</target>
<target name="jar-jt400Native6" depends="init,compile6,pcml6,copyright6">
<jar jarfile="${dist6}/jt400Native.jar" manifest="jt400Native_manifest.txt">
<fileset dir="${output6}">
<patternset>
<!-- Exclude everything in the 'utilities' package except the AboutToolbox class. -->
<exclude name="utilities/*Installer*"/>
<!-- <exclude name="utilities/*JarMaker*"/> -->
<!-- <exclude name="utilities/*JPing*"/> -->
<exclude name="utilities/*RunJava*"/>
<exclude name="utilities/*.properties"/>
<exclude name="com/ibm/as400/vaccess/**"/>
</patternset>
</fileset>
<fileset dir="${include}">
<patternset>
<include name="com/ibm/as400/**"/>
<exclude name="com/ibm/as400/vaccess/**"/>
<exclude name="**/*.java"/>
</patternset>
</fileset>
<fileset dir="${source}"
includes="**/*.gif,**/*.ser,**/*.dtd,**/*.xsl,**/*.xsd"
excludes="com/ibm/as400/vaccess/**"/>
<fileset dir="${build}" includes="license.html"/>
</jar>
<checksum file="${dist6}/jt400Native.jar"/>
</target>
<target name="jar-jt400Micro" depends="init,compile-micro,micro-preverify">
<jar jarfile="${dist}/jt400Micro.jar" manifest="jt400Micro_manifest.txt">
<fileset dir="${output-micro-verified}" includesfile="${basedir}/micro.includes"/>
<fileset dir="${build}" includes="license.html"/>
</jar>
<checksum file="${dist}/jt400Micro.jar"/>
</target>
<target name="jar-jt400Native" depends="init,compile,pcml,copyright">
<jar jarfile="${dist}/jt400Native.jar" manifest="jt400Native_manifest.txt">
<fileset dir="${output}">
<patternset>
<!-- Exclude everything in the 'utilities' package except the AboutToolbox class. -->
<exclude name="utilities/*Installer*"/>
<!-- <exclude name="utilities/*JarMaker*"/> -->
<!-- <exclude name="utilities/*JPing*"/> -->
<exclude name="utilities/*RunJava*"/>
<exclude name="utilities/*.properties"/>
<exclude name="com/ibm/as400/vaccess/**"/>
</patternset>
</fileset>
<fileset dir="${include}">
<patternset>
<include name="com/ibm/as400/**"/>
<exclude name="com/ibm/as400/vaccess/**"/>
<exclude name="**/*.java"/>
</patternset>
</fileset>
<fileset dir="${source}"
includes="**/*.gif,**/*.ser,**/*.dtd,**/*.xsl,**/*.xsd"
excludes="com/ibm/as400/vaccess/**"/>
<fileset dir="${build}" includes="license.html"/>
</jar>
<checksum file="${dist}/jt400Native.jar"/>
</target>
<target name="jar-jt400Proxy" depends="init,compile">
<jar jarfile="${dist}/jt400Proxy.jar" manifest="jt400Proxy_manifest.txt">
<fileset dir="${output}" includesfile="${basedir}/proxy.includes"/>
<fileset dir="${include}" includesfile="${basedir}/proxy.includes"/>
<fileset dir="${source}" includesfile="${basedir}/proxy.includes"/>
<fileset dir="${build}" includes="license.html"/>
</jar>
<checksum file="${dist}/jt400Proxy.jar"/>
</target>
<target name="jar-jt400Servlet" depends="init,compile">
<jar jarfile="${dist}/jt400Servlet.jar" manifest="jt400Servlet_manifest.txt">
<fileset dir="${output}">
<patternset>
<include name="com/ibm/as400/util/html/**"/>
<include name="com/ibm/as400/util/servlet/**"/>
<include name="com/ibm/as400/access/ResourceBundleLoader.class"/>
<include name="com/ibm/as400/access/ExtendedIllegalArgumentException.class"/>
<include name="com/ibm/as400/access/ExtendedIllegalStateException.class"/>
<include name="com/ibm/as400/access/ReturnCodeException.class"/>
<include name="com/ibm/as400/access/PasswordDialog.class"/>
<include name="com/ibm/as400/access/SystemProperties.class"/>
<include name="com/ibm/as400/access/Trace.class"/>
</patternset>
</fileset>
<fileset dir="${source}">
<patternset>
<include name="com/ibm/as400/util/html/*.gif"/>
<include name="com/ibm/as400/util/servlet/*.gif"/>
</patternset>
</fileset>
<fileset dir="${build}" includes="license.html"/>
</jar>
<checksum file="${dist}/jt400Servlet.jar"/>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: javadoc
///////////////////////////////////////////////////////////////////////////-->
<target name="javadoc" depends="init,checkJavadocIncludes">
<javadoc packagenames="com.*,utilities"
excludepackagenames="com.ibm.as400.security"
sourcepath="${source}:${source-contrib}:${source-jtopenlite}:${source-micro}:${include}"
destdir="${javadoc}"
use="false"
link="${doclink}"
maxmemory="256m"
failonerror="true"
additionalparam="-breakiterator"
executable="${jdk15}/bin/javadoc">
<classpath>
<!-- Include these if the user happens to have them, just so
javadoc generates without any extra warnings. -->
<pathelement path="${include}"/>
<pathelement location="${include}/sslightx.zip"/> <!-- Need this for SecureAS400 in the com.ibm.as400.access package. -->
<pathelement location="${include}/servlet.jar"/> <!-- Need the JSDK classes to compile the com.ibm.as400.util.servlet package. -->
<pathelement location="${include}/jui400.jar"/> <!-- Need this for the AS400JDBCDataSourcePane in the com.ibm.as400.vaccess package. -->
<pathelement location="${include}/midpapi10.jar"/> <!-- Need this for the server-side Micro Edition classes. -->
<pathelement location="${include}/cldcapi10.jar"/> <!-- Need this for the server-side Micro Edition classes. -->
</classpath>
<group title="Toolbox General API Packages" packages="com.ibm.as400.access,com.ibm.as400.access.list,com.ibm.as400.data,com.ibm.as400.resource,com.ibm.as400.security.auth,com.ibm.as400.vaccess"/>
<group title="Toolbox Utility Packages" packages="com.ibm.as400.util,com.ibm.as400.util.html,com.ibm.as400.util.servlet,com.ibm.as400.util.commtrace,utilities"/>
<group title="Toolbox Micro Edition Packages" packages="com.ibm.as400.micro"/>
<!-- We skip javadoc-ing the java.sql package, otherwise the regular JDBC classes in the
com.ibm.as400.access package will get erroneously linked to our stubs. -->
</javadoc>
</target>
<target name="checkJavadocIncludes" unless="javadocIncludesExist">
<echo>
WARNING: Generated javadoc will be missing some information.
Can't find one of:
${include}/servlet.jar
${include}/midpapi10.jar
${include}/cldcapi10.jar
${include}/jui400.jar
${include}/sslightx.zip
</echo>
</target>
<target name="javadoc6" depends="init,source6,checkJavadocIncludes">
<fail message="Not using JDK 1.6 or higher." unless="jdk16Exists"/> <!-- Sanity. -->
<javadoc packagenames="com.*,utilities"
excludepackagenames="com.ibm.as400.security"
sourcepath="${source-java6}:${source-contrib}:${include}"
destdir="${javadoc6}"
use="false"
link="${doclink}"
maxmemory="256m"
failonerror="true"
additionalparam="-breakiterator">
<classpath>
<!-- Include these if the user happens to have them, just so
javadoc generates without any extra warnings. -->
<pathelement path="${include}"/>
<pathelement location="${include}/sslightx.zip"/> <!-- Need this for SecureAS400 in the com.ibm.as400.access package. -->
<pathelement location="${include}/servlet.jar"/> <!-- Need the JSDK classes to compile the com.ibm.as400.util.servlet package. -->
<pathelement location="${include}/jui400.jar"/> <!-- Need this for the AS400JDBCDataSourcePane in the com.ibm.as400.vaccess package. -->
<pathelement location="${include}/midpapi10.jar"/> <!-- Need this for the server-side Micro Edition classes. -->
<pathelement location="${include}/cldcapi10.jar"/> <!-- Need this for the server-side Micro Edition classes. -->
</classpath>
<group title="Toolbox General API Packages" packages="com.ibm.as400.access,com.ibm.as400.access.list,com.ibm.as400.data,com.ibm.as400.resource,com.ibm.as400.security.auth,com.ibm.as400.vaccess"/>
<!-- We skip javadoc-ing the java.sql package, otherwise the regular JDBC classes in the
com.ibm.as400.access package will get erroneously linked to our stubs. -->
</javadoc>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: micro
///////////////////////////////////////////////////////////////////////////-->
<target name="micro" depends="init,jar-jt400Micro"/>
<target name="micro-preverify" depends="init,compile-micro">
<condition property="preverifyExeExists">
<or>
<and>
<available file="${bin}/preverify.exe" type="file"/> <!-- Windows. -->
<os family="windows"/>
</and>
<available file="${bin}/preverify" type="file"/> <!-- Linux/Unix. -->
</or>
</condition>
<fail message="Can't find ${include}/midpapi10.jar." unless="midpapiJarExists"/>
<fail message="Can't find ${include}/cldcapi10.jar." unless="cldcapiJarExists"/>
<fail message="Can't find ${bin}/preverify executable." unless="preverifyExeExists"/>
<echo>Pre-verifying Micro Edition classes</echo>
<exec dir="${bin}" executable="./preverify" failonerror="true" vmlauncher="false">
<!-- The preverify tool expects directories to be separted by ';' in its -classpath option. -->
<arg line="-d ${output-micro-verified} -classpath ${include}/midpapi10.jar;${include}/cldcapi10.jar ${output-micro}"/>
</exec>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: pcml
///////////////////////////////////////////////////////////////////////////-->
<target name="pcml" depends="init">
<condition property="pcmlRuntimeExists">
<and>
<available classname="java.nio.Buffer"/> <!-- JDK 1.4 and higher. -->
<available classname="com.ibm.as400.data.ProgramCallDocument" classpath="${output}:${include}:${source}"/>
</and>
</condition>
<fail message="Can't find PCML runtime." unless="pcmlRuntimeExists"/>
<taskdef name="pcml" classname="PCMLTask" classpath="."/>
<pcml srcdir="${source}"
destdir="${output}"
classpath="${output}:${include}:${source}"
includes="**/*.pcml"/>
<!-- Classpath:
Need "output" to run the com.ibm.as400.data.ProgramCallDocument class.
Need "include" for the ProgramCallDocument class to use the AS400 object.
Need JDK 1.4 or higher (XML) to parse the PCML.
Need "source" to find the pcml.dtd. -->
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: pcml
///////////////////////////////////////////////////////////////////////////-->
<target name="pcml6" depends="init">
<condition property="pcmlRuntimeExists">
<and>
<available classname="java.nio.Buffer"/> <!-- JDK 1.4 and higher. -->
<available classname="com.ibm.as400.data.ProgramCallDocument" classpath="${output}:${include}:${source}"/>
</and>
</condition>
<fail message="Can't find PCML runtime." unless="pcmlRuntimeExists"/>
<taskdef name="pcml" classname="PCMLTask" classpath="."/>
<pcml srcdir="${source}"
destdir="${output6}"
classpath="${output6}:${include}:${source}"
includes="**/*.pcml"/>
<!-- Classpath:
Need "output" to run the com.ibm.as400.data.ProgramCallDocument class.
Need "include" for the ProgramCallDocument class to use the AS400 object.
Need JDK 1.4 or higher (XML) to parse the PCML.
Need "source" to find the pcml.dtd. -->
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: pcml-android
///////////////////////////////////////////////////////////////////////////-->
<target name="pcml-android" depends="init">
<condition property="pcmlRuntimeExists">
<and>
<available classname="java.nio.Buffer"/> <!-- JDK 1.4 and higher. -->
<available classname="com.ibm.as400.data.ProgramCallDocument" classpath="${output}:${include}:${source}"/>
</and>
</condition>
<fail message="Can't find PCML runtime." unless="pcmlRuntimeExists"/>
<taskdef name="pcml" classname="PCMLTask"/>
<pcml srcdir="${source}"
destdir="${output-android}"
classpath="${output-android}:${include}:${source}"
includes="**/*.pcml"/>
<!-- Classpath:
Need "output" to run the com.ibm.as400.data.ProgramCallDocument class.
Need "include" for the ProgramCallDocument class to use the AS400 object.
Need JDK 1.4 or higher (XML) to parse the PCML.
Need "source" to find the pcml.dtd. -->
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: copyright
///////////////////////////////////////////////////////////////////////////-->
<target name="copyright" depends="init">
<taskdef name="copyright" classname="CopyrightInsertionTask" classpath="."/>
<copyright destdir="${output}"
includes="**/*.class"
verbose="${show-progress}"/>
</target>
<target name="copyright-android" depends="init">
<taskdef name="copyright" classname="CopyrightInsertionTask"/>
<copyright destdir="${output-android}"
includes="**/*.class"
verbose="${show-progress}"/>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: copyright6
///////////////////////////////////////////////////////////////////////////-->
<target name="copyright6" depends="init">
<taskdef name="copyright" classname="CopyrightInsertionTask" classpath="."/>
<copyright destdir="${output6}"
includes="**/*.class"
verbose="${show-progress}"/>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: jdbc40src
///////////////////////////////////////////////////////////////////////////-->
<target name="source-jdbc40" >
<taskdef name="jdbc40src" classname="Jdbc40Task" classpath="."/>
<jdbc40src destdir="${source-jdbc40}"
srcdir="${source}"
verbose="${show-progress}"
/>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: source-android
// Create a version of JTOpen that is suitable for use on Android.
// Interfaces and classes not available in Android are replaced by
// stub classes in the androidStubs module.
///////////////////////////////////////////////////////////////////////////-->
<target name="source-android" >
<!-- copy source files from source -->
<copy todir="${source-android}" >
<fileset dir="${build}/src" >
<include name="com/**/*.java" />
<!-- micro, vaccess, servlet, html and other GUI items are not available -->
<exclude name="com/ibm/as400/micro/*.java" />
<exclude name="com/ibm/as400/vaccess/**" />
<exclude name="com/ibm/as400/util/commtrace/**" />
<exclude name="com/ibm/as400/util/servlet/**" />
<exclude name="com/ibm/as400/util/html/**" />
<exclude name="com/ibm/as400/access/*View.java" />
<exclude name="com/ibm/as400/access/ToolboxSignonHandler.java"/>
<exclude name="com/ibm/as400/access/TunnelProxyServer.java" />
<exclude name="com/ibm/as400/access/AS400SignonTextField.java" />
<exclude name="com/ibm/as400/access/*Dialog.java" />
<exclude name="com/ibm/as400/access/AS400SignonDialogAdapter.java" />
<!-- javax.sql package with XA resources is not available -->
<exclude name="com/ibm/as400/access/AS400JDBCX*.java" />
<!-- org.ietf.jgss.GSSContext classes are not available -->
<exclude name="com/ibm/as400/access/TokenManager.java" />
<exclude name="com/ibm/as400/access/TokenManager2.java" />
</fileset>
</copy>
<!-- point non working references to use the jtopenstub classes -->
<replaceregexp flags="g" >
<regexp pattern="java.awt" />
<substitution expression="com.ibm.as400.jtopenstubs.javaawt" />
<fileset dir="${source-android}/com/ibm/as400" >
<include name="**/*BeanInfo.java" />
<include name="**/ToolboxSignonHandler.java" />
<include name="**/PresentationLoader.java" />
</fileset>
</replaceregexp>
<replaceregexp flags="g" >
<regexp pattern="javax.swing" />
<substitution expression="com.ibm.as400.jtopenstubs.javaxswing" />
<fileset dir="${source-android}/com/ibm/as400" >
<include name="**/ResourceBundleLoader.java" />
</fileset>
</replaceregexp>
<replaceregexp flags="g" >
<regexp pattern="java.beans" />
<substitution expression="com.ibm.as400.jtopenstubs.javabeans" />
<fileset dir="${source-android}/com/ibm/as400" >
<include name="**/*.java" />
</fileset>
</replaceregexp>
<replaceregexp flags="g" >
<regexp pattern="sun.misc" />
<substitution expression="com.ibm.as400.jtopenstubs.sunmisc" />
<fileset dir="${source-android}/com/ibm/as400" >
<include name="**/*Mlog.java" />
</fileset>
</replaceregexp>
<replaceregexp flags="g" >
<regexp pattern="sun.util" />
<substitution expression="com.ibm.as400.jtopenstubs.sunutil" />
<fileset dir="${source-android}/com/ibm/as400" >
<include name="**/*Calendar.java" />
</fileset>
</replaceregexp>
<replaceregexp flags="g" >
<regexp pattern="org.ietf.jgss" />
<substitution expression="com.ibm.as400.jtopenstubs.orgietfjgss" />
<fileset dir="${source-android}/com/ibm/as400" >
<include name="**/Token*.java" />
</fileset>
</replaceregexp>
<replaceregexp flags="g" >
<regexp pattern="javax.naming" />
<substitution expression="com.ibm.as400.jtopenstubs.javaxnaming" />
<fileset dir="${source-android}/com/ibm/as400" >
<include name="**/AS400JDBC*" />
</fileset>
</replaceregexp>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: source6
///////////////////////////////////////////////////////////////////////////-->
<target name="source6" depends="init, source-jdbc40">
<!-- copy all source to new dir, and then copy the new jdbc40 specific files replacing any pre-jdbc40 files -->
<copy todir="${source-java6}" preservelastmodified="yes">
<fileset dir="${source}"/>
</copy>
<copy todir="${source-java6}" preservelastmodified="yes">
<fileset dir="${source-jdbc40}"/>
</copy>
<!-- jdbc 4.0 driver manifest -->
<copy tofile="${build}/build/META-INF/services/java.sql.Driver"
overwrite="yes"
preservelastmodified="yes"
file="${sourceroot}/build/java.sql.Driver" />
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: usage
///////////////////////////////////////////////////////////////////////////-->
<target name="usage">
<echo>
Available Ant targets for the JTOpen build script include:
all
clean, clean-dist, clean-javadoc, clean-output
clean-source
compile
compile-micro
copyright
init
jar, jar-jt400, jar-jt400Micro, jar-jt400Native, jar-jt400Proxy, jar-jt400Servlet
javadoc, checkJavadocIncludes
micro, micro-preverify
pcml
source
usage
zip, zip-javadoc, zip-source
</echo>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: zip
///////////////////////////////////////////////////////////////////////////-->
<target name="zip" depends="zip-source,zip-javadoc"/>
<target name="zip-javadoc">
<zip zipfile="${dist}/doc.zip" update="false">
<zipfileset dir="${javadoc}"/>
<zipfileset dir="${build}" includes="license.html"/>
</zip>
<checksum file="${dist}/doc.zip"/>
</target>
<target name="zip-source">
<zip zipfile="${dist}/src.zip" update="false">
<zipfileset dir="${source}" excludes=".project"/>
<zipfileset dir="${source-contrib}" excludes=".project"/>
<zipfileset dir="${source-micro}" excludes=".project"/>
<zipfileset dir="${source-jtopenlite}" excludes=".project"/>
<zipfileset dir="${include}" excludes="**/*.zip,**/*.jar,.project"/>
<zipfileset dir="${build}/build" excludes="**/mypasswd"/>
<zipfileset dir="${build}" includes="license.html"/>
<zipfileset dir="${build}" includes="readme.html"/>
<zipfileset dir="${build}" includes="changes.html"/>
</zip>
<checksum file="${dist}/src.zip"/>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: ftpv7r2
//
// Note: depends="no" set because the dependency checking takes a
// null pointer exception in some circumstances.
///////////////////////////////////////////////////////////////////////////-->
<target name="ftpv7r2" depends="jar">
<!-- V7R2 server -->
<ftp server="${v7r2server}"
remotedir="/QIBM/proddata/OS400/jt400/lib/"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
<ftp server="${v7r2server}"
remotedir="/QIBM/proddata/OS400/jt400/lib/java6"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist6}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: ftpvlinux
//
// Note: depends="no" set because the dependency checking takes a
// null pointer exception in some circumstances.
///////////////////////////////////////////////////////////////////////////-->
<target name="ftplinux" depends="jar">
<!-- V7R1 server -->
<sftp server="${linuxserver}"
remotedir="/QIBM/proddata/OS400/jt400/lib/"
userid="${linuxuserid}"
password="${linuxpassword}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</sftp>
<sftp server="${linuxserver}"
remotedir="/QIBM/proddata/OS400/jt400/lib/java6"
userid="${linuxuserid}"
password="${linuxpassword}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist6}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</sftp>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: ftpv7r1
//
// Note: depends="no" set because the dependency checking takes a
// null pointer exception in some circumstances.
///////////////////////////////////////////////////////////////////////////-->
<target name="ftpv7r1" depends="jar">
<!-- V7R1 server -->
<ftp server="${v7r1server}"
remotedir="/QIBM/proddata/OS400/jt400/lib/"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
<include name="jt400Proxy.jar"/>
</fileset>
</ftp>
<ftp server="${v7r1server}"
remotedir="/QIBM/proddata/OS400/jt400/lib/java6"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist6}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: ftpv6r1
//
// Note: depends="no" set because the dependency checking takes a
// null pointer exception in some circumstances.
///////////////////////////////////////////////////////////////////////////-->
<target name="ftpv6r1" depends="jar">
<!-- V6R1 server -->
<ftp server="${v6r1server1}"
remotedir="/QIBM/ProdData/HTTP/Public/jt400/lib"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist}">
<include name="jt400.jar"/>
<include name="jt400Servlet.jar"/>
</fileset>
</ftp>
<ftp server="${v6r1server1}"
remotedir="/QIBM/proddata/OS400/jt400/lib"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist}">
<include name="jt400Native.jar"/>
</fileset>
</ftp>
<ftp server="${v6r1server1}"
remotedir="/QIBM/proddata/OS400/jt400/lib/java6"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist6}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
<ftp server="${v6r1server2}"
remotedir="/QIBM/ProdData/HTTP/Public/jt400/lib"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist}">
<include name="jt400.jar"/>
<include name="jt400Servlet.jar"/>
</fileset>
</ftp>
<ftp server="${v6r1server2}"
remotedir="/QIBM/proddata/OS400/jt400/lib"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist}">
<include name="jt400Native.jar"/>
</fileset>
</ftp>
<ftp server="${v6r1server2}"
remotedir="/QIBM/proddata/OS400/jt400/lib/java6"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist6}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: ftpv5r4
//
// Note: depends="no" set because the dependency checking takes a
// null pointer exception in some circumstances.
///////////////////////////////////////////////////////////////////////////-->
<target name="ftpv5r4" depends="jar">
<ftp server="${v5r4server}"
remotedir="/QIBM/ProdData/HTTP/Public/jt400/lib"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
<include name="jt400Servlet.jar"/>
</fileset>
</ftp>
<ftp server="${v5r4server}"
remotedir="/QIBM/proddata/OS400/jt400/lib/java6"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist6}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
</target>
<!--///////////////////////////////////////////////////////////////////////////
// Target: ftp
//
// Note: depends="no" set because the dependency checking takes a
// null pointer exception in some circumstances.
///////////////////////////////////////////////////////////////////////////-->
<target name="ftp" depends="jar">
<!-- V7R1 server -->
<ftp server="${v7r1server}"
remotedir="/QIBM/proddata/OS400/jt400/lib/"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
<ftp server="${v7r1server}"
remotedir="/QIBM/proddata/OS400/jt400/lib/java6"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist6}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
<ftp server="${v6r1server1}"
remotedir="/QIBM/ProdData/HTTP/Public/jt400/lib"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
<ftp server="${v6r1server1}"
remotedir="/QIBM/proddata/OS400/jt400/lib/java6"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist6}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
<ftp server="${v6r1server2}"
remotedir="/QIBM/ProdData/HTTP/Public/jt400/lib"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
<ftp server="${v6r1server2}"
remotedir="/QIBM/proddata/OS400/jt400/lib/java6"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist6}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
<ftp server="${v5r4server}"
remotedir="/QIBM/ProdData/HTTP/Public/jt400/lib"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
<ftp server="${v5r4server}"
remotedir="/QIBM/proddata/OS400/jt400/lib/java6"
userid="${userid}"
password="${password}"
passive="yes"
depends="no"
verbose="yes"
binary="yes">
<fileset dir="${dist6}">
<include name="jt400.jar"/>
<include name="jt400Native.jar"/>
</fileset>
</ftp>
</target>
</project>
|