-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3755 from mercedes-benz/feature-3754-fix-daui-fat…
…-jar-problem Fix DAUI fat jar problem #3754
- Loading branch information
Showing
20 changed files
with
208 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// SPDX-License-Identifier: MIT | ||
:toc: | ||
|
||
== About | ||
`sechub-developertools` is a gradle subprojects | ||
only containing tools for SecHub development. It is not intended to be used in production. | ||
|
||
WARNING: No other gradle submodule shall have this project as a dependency! | ||
|
||
|
||
== Content | ||
|
||
=== DAUI | ||
The Developer Administration UI (DAUI) is a simple quick and dirty administration client which will reuse parts | ||
from `sechub-integration--test` (for example REST api access, URL building). | ||
|
||
Every single feature we implement, is available at this simple UI from the beginning. | ||
It is extreme simple to extend. | ||
|
||
[TIP] | ||
==== | ||
Look into | ||
`/sechub-developertools/src/main/java/com/mercedesbenz/sechub/developertools/admin/ui/action/job/GetJobStatusAction.java` | ||
for an example how you can simply implement a feature. | ||
==== | ||
|
||
===== Build | ||
Inside sechub root folder execute: | ||
|
||
[source, bash] | ||
---- | ||
./gradlew :sechub-developertools:bootJar | ||
---- | ||
|
||
This will build | ||
`/sechub-developertools/build/libs/sechub-developertools-0.0.0.jar` | ||
|
||
|
||
===== Start | ||
[source, bash] | ||
---- | ||
export SECHUB_ADMIN_APITOKEN=int-test_superadmin-pwd | ||
export SECHUB_ADMIN_ENVIRONMENT=localhost | ||
export SECHUB_ADMIN_USERID=int-test_superadmin | ||
export SECHUB_ADMIN_SERVER=localhost | ||
export SECHUB_ADMIN_SERVER_PORT=8443 | ||
java -jar ./sechub-developertools/build/libs/sechub-developertools-0.0.0.jar | ||
---- | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...-developertools/src/main/java/com/mercedesbenz/sechub/developertools/DAUIApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.mercedesbenz.sechub.developertools; | ||
|
||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration; | ||
import org.springframework.boot.builder.SpringApplicationBuilder; | ||
|
||
@SpringBootApplication(exclude = RepositoryRestMvcAutoConfiguration.class) // we do not want to have automatic resources in HAL & co | ||
public class DAUIApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplicationBuilder builder = new SpringApplicationBuilder(DAUIApplication.class); | ||
builder.headless(false); | ||
|
||
builder.run(args); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...ub-developertools/src/main/java/com/mercedesbenz/sechub/developertools/DAUICLIRunner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.mercedesbenz.sechub.developertools; | ||
|
||
import org.springframework.boot.CommandLineRunner; | ||
import org.springframework.stereotype.Component; | ||
|
||
import com.mercedesbenz.sechub.developertools.admin.ui.DeveloperAdministrationUI; | ||
|
||
@Component | ||
public class DAUICLIRunner implements CommandLineRunner { | ||
|
||
@Override | ||
public void run(String... args) throws Exception { | ||
DeveloperAdministrationUI.main(args); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.