Skip to content

Commit 03f050b

Browse files
Merge pull request #65 from fod-dev/5.0.1-doc-update
5.0.1 doc update
2 parents 04cee01 + 23f5730 commit 03f050b

1 file changed

Lines changed: 26 additions & 18 deletions

File tree

README.md

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
# fod-uploader-java
2-
Java utility for uploading packages to FoD
2+
Java utility for uploading code to Fortify on Demand
33

44
## Usage
55

66
### Current
77

8-
*Note*: Command line arguments have been reworked since 3.1.0. When moving from an older version to the latest version, make sure to adjust your arguments to the current format.
8+
**Note**: Command line arguments have been reworked since 3.1.0. When upgrading from an older version to the latest version, make sure to adjust your arguments to the current format.
99

10-
Arguments are named and can be in any order:
10+
The following table describes the FoDUploader arguments. Arguments are named and can be in any order:
1111

12-
```
13-
FodUpload.jar -ac <key> <secret> | -uc <username> <password> -rid <relID> | -bsi <token> -purl <purl> -aurl <aurl> -tc <tcode> -z <file> -ep <1|SingleScanOnly|2|SubscriptionOnly|3|SingleScanFirstThenSubscription|4|SubscriptionFirstThenSingleScan> -rp <0|RemediationScanIfAvailable|1|RemediationScanOnly|2|NonRemediationScanOnly> -pp <0|DoNotStartScan|1|CancelScanInProgress> [-purchase] [-b] [-I <minutes>] [-p <1|Standard|2|Express>] [-a <1|Manual|2|Automated>] [-P <proxyUrl> <username> <password> <ntDomain> <ntWorkstation>] [-itp] [-os] [-n] [-h] [-v]
14-
```
15-
16-
Each argument has a short and long name:
17-
18-
Short Name | Long Name | Required? | Description
19-
---------- | ---------------------- |:---------:| --------------------------------------------------------
12+
Short Name | Long Name | Required? | Description
13+
---------- | ---------------------- |--------- | --------------------------------------------------------
2014
-ac | -apiCredentials | Yes<sup>1</sup> | API credentials ("key:" does not need to be appended to `<key>`)
2115
-uc | -userCredentials | Yes<sup>1</sup> | User credentials (wrap each in quotations to avoid escaping characters in the CLI)
2216
-bsi | -bsiToken | Yes<sup>2</sup> | Build server token
@@ -27,24 +21,31 @@ Short Name | Long Name | Required? | Description
2721
-z | -zipLocation | Yes | Location of scan
2822
-ep | -entitlementPreferenceType | Yes | Whether to use a single scan or subscription assessment: 1/SingleScanOnly, 2/SubscriptionOnly, 3/SingleScanFirstThenSubscription, 4/SubscriptionFirstThenSingleScan
2923
-rp | -remediationScanPreferenceType| No | Whether to run a remediation scan: 0/RemediationScanIfAvailable, 1/RemediationScanOnly, 2/NonRemediationScanOnly (default)
30-
-pp | -inProgressScanActionType | No | Whether to cancel an in-progress scan and start a new scan or not start a scan: 0/DoNotStartScan (default), 1/CancelScanInProgress
24+
-pp | -inProgressScanActionType | No | If in-progress scan exists, whether to not start a scan, cancel in-progress scan and start a scan, or queue a scan: 0/DoNotStartScan (default), 1/CancelScanInProgress, 2/Queue
25+
-n | -notes | No | The notes about the scan
26+
-purchase | -purchaseEntitlement | No | Whether to purchase an entitlement (if available)
3127
-I | -pollingInterval | No | Interval between checking scan status in minutes
3228
-P | -proxy | No | Credentials for accessing the proxy
3329
-h | -help | No | Print help dialog
3430
-v | -version | No | Print jar version
35-
-purchase | -purchaseEntitlement | No | Whether to purchase an entitlement (if available)
36-
-n | -notes | No | The notes about the scan
3731

38-
<sup>1</sup>One of either apiCredentials or userCredentials is required.
32+
33+
34+
<sup>1</sup>Use either apiCredentials or userCredentials.
3935
<sup>2</sup>Use either release ID or BSI token. If both are provided, then the scan settings that are retrieved from the release ID will be used.
4036
<sup>3</sup>Required if BSI token is not provided.
4137

38+
Usage:
39+
```
40+
FodUpload.jar {-ac <key> <secret> | -uc <username> <password>} {-rid <relID> | -bsi <token>} -purl <purl> -aurl <aurl> -tc <tcode> -z <zip_file_path> -ep {1|SingleScanOnly|2|SubscriptionOnly|3|SingleScanFirstThenSubscription|4|SubscriptionFirstThenSingleScan} [-rp {0|RemediationScanIfAvailable|1|RemediationScanOnly|2|NonRemediationScanOnly}] [-pp {0|DoNotStartScan|1|CancelScanInProgress|2|Queue}] [-purchase] [-n] [-I <minutes>] [-P <proxyUrl> <username> <password> <ntDomain> <ntWorkstation>] [-h] [-v]
41+
```
42+
4243
### Previous
4344

44-
If you are using 3.1.0, the arguments are:
45+
The following table describes the FoDUploader arguments for 3.1.0:
4546

4647
Short Name | Long Name | Required? | Description
47-
---------- | ---------------------- |:---------:| --------------------------------------------------------
48+
---------- | ---------------------- |--------- | --------------------------------------------------------
4849
-bsi | -bsiToken | Yes | Build server token
4950
-z | -zipLocation | Yes | Location of scan
5051
-ep | -entitlementPreference | Yes | Whether to use a single scan or subscription assessment (if available) (1/Single, 2/Subscription)
@@ -63,9 +64,16 @@ Short Name | Long Name | Required? | Description
6364
-purchase | -purchaseEntitlement | No | Whether to purchase an entitlement (if available)
6465
-n | -notes | No | The notes about the scan.
6566

67+
*Use either apiCredentials or userCredentials.
68+
69+
Usage:
70+
```
71+
FodUpload.jar -bsi <token> -z <file> {-ac <key> <secret> | -uc <username> <password>} -ep {1|SingleScan|2|Subscription} [-p {1|Standard|2|Express}] [-a {1|Manual|2|Automated}] [-itp] [-os] [-b] [-r] [-purchase] [-n] [-I <minutes>] [-P <proxyUrl> <username> <password> <ntDomain> <ntWorkstation>] [-h] [-v]
72+
```
73+
6674
## Developer Setup
6775

68-
The FoD-Uploader is configured to build a fat jar with the Gradle Shadow plugin as the default gradle task.
76+
FoDUploader is configured to build a fat jar with the Gradle Shadow plugin as the default gradle task.
6977

7078
To compile, simply use the gradlew or gradlew.bat depending on your operating system.
7179

0 commit comments

Comments
 (0)