|
15 | 15 | -->
|
16 | 16 |
|
17 | 17 | <project name="ssl-tests Security Functional tests" default="build" basedir=".">
|
18 |
| - <taskdef resource="net/sf/antcontrib/antlib.xml" /> |
19 |
| - <description> |
20 |
| - ssl-tests Security Functional tests |
21 |
| - </description> |
| 18 | + <taskdef resource="net/sf/antcontrib/antlib.xml" /> |
| 19 | + <description> |
| 20 | + ssl-tests Security Functional tests |
| 21 | + </description> |
22 | 22 |
|
23 |
| - <!-- set global properties for this build --> |
24 |
| - <property name="DEST" value="${BUILD_ROOT}/functional/security/ssl-tests" /> |
| 23 | + <!-- set global properties for this build --> |
| 24 | + <property name="DEST" value="${BUILD_ROOT}/functional/security/ssl-tests" /> |
25 | 25 |
|
26 |
| - <!--Properties for this particular build--> |
27 |
| - <property name="src" location="./ssl-tests" /> |
| 26 | + <!--Properties for this particular build--> |
| 27 | + <property name="src" location="./ssl-tests" /> |
28 | 28 |
|
29 |
| - <target name="ssltests.check"> |
30 |
| - <condition property="ssltestsTestdir.exists"> |
31 |
| - <available file="ssl-tests" type="dir"/> |
32 |
| - </condition> |
33 |
| - </target> |
| 29 | + <target name="ssltests.check"> |
| 30 | + <condition property="ssltestsTestdir.exists"> |
| 31 | + <available file="ssl-tests" type="dir"/> |
| 32 | + </condition> |
| 33 | + </target> |
34 | 34 |
|
35 |
| - <if> |
36 |
| - <contains string="${SPEC}" substring="zos"/> |
37 |
| - <then> |
38 |
| - < property name= "GIT_REPO" value= "[email protected]:" /> |
39 |
| - </then> |
40 |
| - <else> |
41 |
| - <property name="GIT_REPO" value="https://github.com/" /> |
42 |
| - </else> |
43 |
| - </if> |
44 |
| - <target name="getSsltestsTest" depends="ssltests.check" unless="ssltestsTestdir.exists"> |
45 |
| - <exec executable="git" failonerror="true"> |
46 |
| - <arg value="clone" /> |
47 |
| - <arg value="${GIT_REPO}rh-openjdk/ssl-tests.git" /> |
48 |
| - </exec> |
49 |
| - </target> |
| 35 | + <if> |
| 36 | + <contains string="${SPEC}" substring="zos"/> |
| 37 | + <then> |
| 38 | + < property name= "GIT_REPO" value= "[email protected]:" /> |
| 39 | + </then> |
| 40 | + <else> |
| 41 | + <property name="GIT_REPO" value="https://github.com/" /> |
| 42 | + </else> |
| 43 | + </if> |
| 44 | + <target name="getSsltestsTest" depends="ssltests.check" unless="ssltestsTestdir.exists"> |
| 45 | + <exec executable="git" failonerror="true"> |
| 46 | + <arg value="clone" /> |
| 47 | + <arg value="${GIT_REPO}rh-openjdk/ssl-tests.git" /> |
| 48 | + </exec> |
| 49 | + </target> |
50 | 50 |
|
51 |
| - <target name="init"> |
52 |
| - <mkdir dir="${DEST}" /> |
53 |
| - </target> |
54 |
| - <if> |
55 |
| - <!-- versions 8-10, 12-16 --> |
56 |
| - <matches pattern="^([89]|1[02-6])$" string="${JDK_VERSION}"/> |
57 |
| - <then> |
58 |
| - <property name="jtregTar" value="jtreg_5_1_b01"/> |
59 |
| - </then> |
60 |
| - <elseif> |
61 |
| - <!-- versions 11, 17 --> |
62 |
| - <matches pattern="^1[17]$" string="${JDK_VERSION}"/> |
63 |
| - <then> |
64 |
| - <property name="jtregTar" value="jtreg_6_1"/> |
65 |
| - </then> |
66 |
| - </elseif> |
67 |
| - <elseif> |
68 |
| - <!-- version 21, 22 --> |
69 |
| - <matches pattern="^2[12]$" string="${JDK_VERSION}"/> |
70 |
| - <then> |
71 |
| - <property name="jtregTar" value="jtreg_7_3_1_1"/> |
72 |
| - </then> |
73 |
| - </elseif> |
74 |
| - <else> |
75 |
| - <fail message="Unsupported JDK version: ${JDK_VERSION}"/> |
76 |
| - </else> |
77 |
| - </if> |
78 |
| - <if> |
79 |
| - <or> |
80 |
| - <equals arg1="${JDK_IMPL}" arg2="ibm" /> |
81 |
| - <equals arg1="${JDK_IMPL}" arg2="openj9" /> |
82 |
| - </or> |
83 |
| - <then> |
84 |
| - <property name="openj9jtregtimeouthandler" value=",tohandler_simple"/> |
85 |
| - </then> |
86 |
| - <else> |
87 |
| - <property name="openj9jtregtimeouthandler" value=""/> |
88 |
| - </else> |
89 |
| - </if> |
90 |
| - <property name="LIB" value="${jtregTar}${openj9jtregtimeouthandler}"/> |
| 51 | + <target name="init"> |
| 52 | + <mkdir dir="${DEST}" /> |
| 53 | + </target> |
91 | 54 |
|
92 |
| - <import file="${TEST_ROOT}/TKG/scripts/getDependencies.xml"/> |
93 |
| - <target name="getJtreg"> |
94 |
| - <mkdir dir="${DEST}"/> |
95 |
| - <if> |
96 |
| - <not> |
97 |
| - <available file="${LIB_DIR}/${jtregTar}.tar.gz" /> |
98 |
| - </not> |
99 |
| - <then> |
100 |
| - <if> |
101 |
| - <available file="custom_jtreg.tar.gz"/> |
102 |
| - <then> |
103 |
| - <echo message="Using custom_jtreg.tar.gz"/> |
104 |
| - <copy file="custom_jtreg.tar.gz" tofile="${jtregTar}.tar.gz"/> |
105 |
| - </then> |
106 |
| - </if> |
107 |
| - </then> |
108 |
| - <else> |
109 |
| - <copy file="${LIB_DIR}/${jtregTar}.tar.gz" tofile="${jtregTar}.tar.gz"/> |
110 |
| - </else> |
111 |
| - </if> |
112 |
| - <exec executable="gzip" failonerror="true"> |
113 |
| - <arg line="-df ${jtregTar}.tar.gz" /> |
114 |
| - </exec> |
115 |
| - <if> |
116 |
| - <contains string="${SPEC}" substring="zos" /> |
117 |
| - <then> |
118 |
| - <exec executable="tar" failonerror="true"> |
119 |
| - <arg line="xfo ${jtregTar}.tar -C ${DEST}" /> |
120 |
| - </exec> |
121 |
| - </then> |
122 |
| - <else> |
123 |
| - <exec executable="sh" failonerror="true"> |
124 |
| - <arg line="-c 'cat ${jtregTar}.tar | (cd ${DEST} && tar xof -)'" /> |
125 |
| - </exec> |
126 |
| - </else> |
127 |
| - </if> |
128 |
| - </target> |
| 55 | + <import file="${TEST_ROOT}/TKG/scripts/getDependencies.xml"/> |
| 56 | + |
| 57 | + <target name="dist" depends="getJtreg,getSsltestsTest" description="generate the distribution"> |
| 58 | + <copy todir="${DEST}"> |
| 59 | + <fileset dir="${src}" includes="*.xml,*.mk" /> |
| 60 | + </copy> |
| 61 | + </target> |
129 | 62 |
|
130 |
| - <target name="dist" depends="getDependentLibs,getJtreg,getSsltestsTest" description="generate the distribution"> |
131 |
| - <copy todir="${DEST}"> |
132 |
| - <fileset dir="${src}" includes="*.xml,*.mk" /> |
133 |
| - </copy> |
134 |
| - </target> |
| 63 | + <target name="clean" depends="dist" description="clean up"> |
| 64 | + <!-- Delete the ${build} directory trees --> |
| 65 | + <delete dir="${build}" /> |
| 66 | + </target> |
135 | 67 |
|
136 |
| - <target name="clean" depends="dist" description="clean up"> |
137 |
| - <!-- Delete the ${build} directory trees --> |
138 |
| - <delete dir="${build}" /> |
139 |
| - </target> |
140 |
| - |
141 |
| - <target name="build" > |
142 |
| - <antcall target="clean" inheritall="true" /> |
143 |
| - </target> |
| 68 | + <target name="build" > |
| 69 | + <antcall target="clean" inheritall="true" /> |
| 70 | + </target> |
144 | 71 | </project>
|
145 | 72 |
|
0 commit comments