-
Notifications
You must be signed in to change notification settings - Fork 5
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 #104 from de4a-wp5/iteration2-dev
Iteration2 dev
- Loading branch information
Showing
17 changed files
with
178 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@echo off | ||
|
||
set JAVA_HOME=C:\Program Files\Eclipse Adoptium\jdk-11.0.16.8-hotspot | ||
call mvn clean install | ||
if errorlevel 1 goto error | ||
|
||
cd de4a-connector | ||
docker build --pull -t de4a/connector:iteration2 . | ||
if errorlevel 1 goto error | ||
|
||
docker stop de4a_conncector_it2 && docker rm de4a_conncector_it2 | ||
docker run -d -p 8080:8080 --name de4a_conncector_it2 de4a/connector:iteration2 | ||
if errorlevel 1 goto error | ||
|
||
goto end | ||
|
||
:error | ||
pause | ||
|
||
:end |
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,24 @@ | ||
@echo off | ||
|
||
:: The version to release | ||
set VER=0.2.3 | ||
|
||
cd de4a-connector | ||
docker build --pull -t de4a/connector:%VER% . | ||
if errorlevel 1 goto error | ||
|
||
echo Login to Docker Hub with user phelger | ||
docker login -u phelger | ||
if errorlevel 1 goto error | ||
|
||
docker push de4a/connector:%VER% | ||
if errorlevel 1 goto error | ||
|
||
docker logout | ||
|
||
goto end | ||
|
||
:error | ||
pause | ||
|
||
:end |
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
41 changes: 41 additions & 0 deletions
41
de4a-connector/src/main/java/eu/de4a/connector/JSPHelper.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,41 @@ | ||
package eu.de4a.connector; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
|
||
import com.helger.commons.string.StringHelper; | ||
import com.helger.dcng.api.DcngConfig; | ||
|
||
public final class JSPHelper | ||
{ | ||
private JSPHelper () | ||
{} | ||
|
||
@Nonnull | ||
public static String formatted (@Nullable final String s) | ||
{ | ||
String ret = "<span class=\"param-value"; | ||
if ("true".equals (s)) | ||
ret += " value-true"; | ||
else | ||
if ("false".equals (s)) | ||
ret += " value-false"; | ||
else | ||
if (StringHelper.hasText (s)) | ||
ret += " value"; | ||
ret += "\">"; | ||
|
||
if (StringHelper.hasText (s)) | ||
ret += s; | ||
else | ||
ret += "<em>not set</em>"; | ||
ret += "</span>"; | ||
return ret; | ||
} | ||
|
||
@Nonnull | ||
public static String formattedProp (@Nullable final String sProp) | ||
{ | ||
return formatted (DcngConfig.getConfig ().getAsString (sProp)); | ||
} | ||
} |
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
Oops, something went wrong.