Skip to content

Commit 5a67ddc

Browse files
authored
Merge pull request kaakaww#51 from cidersage/add-windows-build-run-instructions
Add Windows Build/Run Instructions
2 parents f3ec4f9 + dd9049a commit 5a67ddc

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,25 @@ docker-compose up -d
3333
```shell script
3434
./gradlew --no-daemon bootRun
3535
```
36+
## Building and Running on Windows
37+
38+
### Build
39+
40+
In PowerShell, with administrative privileges:
41+
42+
1. [Install gradle](https://docs.gradle.org/current/userguide/installation.html#microsoft_windows_users)
43+
1. unpack zip file
44+
2. add the new gradle directory to `$env:PATH`
45+
2. Run the gradle build:
46+
1. `.\gradlew.bat --no-daemon build`
47+
3. Update the `spring.datasource.url` in your local [application.properties](https://github.com/kaakaww/javaspringvulny/blob/main/src/main/resources/application.properties) file from `spring.datasource.url=jdbc:h2:file:${PWD}/db/vulny;DB_CLOSE_ON_EXIT=FALSE;AUTO_RECONNECT=TRUE` to an absolute path.
48+
1. For instance: `spring.datasource.url=jdbc:h2:file:C:/Users/Dan/projects/javaspringvulny/db/vulny;DB_CLOSE_ON_EXIT=FALSE;AUTO_RECONNECT=TRUE`.
49+
50+
### Run
51+
52+
```shell script
53+
.\gradlew.bat --no-daemon bootRun
54+
```
3655

3756
## Using the Application
3857

@@ -160,4 +179,4 @@ By default HawkScan will run with the `stackhawk.yml` file if it's defined and p
160179
`stackhawk-auth-script-form-multi.yml` scripted authentication
161180
`stackhawk-jsv-form-cookie.yml` scan with form authentication and cookie authorization
162181
`stackhawk-jsv-json-token` scan with JSON authentication and token authorization
163-
`stackhawk-ajax.yml` - scan with the ajax spider
182+
`stackhawk-ajax.yml` - scan with the ajax spider

0 commit comments

Comments
 (0)