@@ -71,25 +71,27 @@ public static void getAllFMWReleases(String userId, String password) throws IOEx
71
71
/**
72
72
* Download the latest WLS patches(PSU) for the release
73
73
*
74
- * @param release release number
74
+ * @param version release number
75
75
* @param userId userid for support account
76
76
* @param password password for support account
77
77
* @throws IOException when failed to access the aru api
78
78
*/
79
- public static void getLatestWLSPSU (String release , String userId , String password ) throws IOException {
80
- getLatestPSU ("wls" , release , userId , password );
79
+ public static void getLatestWLSPSU (String version , String userId , String password ) throws IOException {
80
+ String releaseNumber = getReleaseNumber ("wls" , version , userId , password );
81
+ getLatestPSU ("wls" , releaseNumber , userId , password );
81
82
}
82
83
83
84
/**
84
85
* Download the latest FMW patches(PSU) for the release
85
86
*
86
- * @param release release number
87
+ * @param version version number 12.2.1.3.0
87
88
* @param userId userid for support account
88
89
* @param password password for support account
89
90
* @throws IOException when failed to access the aru api
90
91
*/
91
- public static void getLatestFMWPSU (String release , String userId , String password ) throws IOException {
92
- getLatestPSU ("fmw" , release , userId , password );
92
+ public static void getLatestFMWPSU (String version , String userId , String password ) throws IOException {
93
+ String releaseNumber = getReleaseNumber ("wls" , version , userId , password );
94
+ getLatestPSU ("fmw" , releaseNumber , userId , password );
93
95
}
94
96
95
97
/**
@@ -188,7 +190,7 @@ private static Document getAllReleases(String category, String userId, String p
188
190
}
189
191
190
192
doc .appendChild (element );
191
- XPathUtil .prettyPrint (doc );
193
+ // XPathUtil.prettyPrint(doc);
192
194
193
195
return doc ;
194
196
@@ -285,7 +287,7 @@ private static String getReleaseNumber(String category, String version, String u
285
287
}
286
288
287
289
public static void main (String args []) throws Exception {
288
- ARUUtil .
getLatestWLSPSU (
"600000000073715 " ,
"[email protected] " ,
"iJCPiUah7jdmLk1E" );
290
+ ARUUtil .
getLatestWLSPSU (
"12.2.1.3.0 " ,
"[email protected] " ,
"iJCPiUah7jdmLk1E" );
289
291
}
290
292
291
293
0 commit comments