[java-idp-jetty-base] 22/23: IDP-2147 Investigate Wix V4

Rod Widdowson rdw at steadingsoftware.com
Sat Jun 22 14:09:36 UTC 2024


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch dev/IDP-2285
in repository java-idp-jetty-base.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-jetty-base.git;a=commit;h=8ef8d8051e7b972c7d98b8754b1a461516e13789

commit 8ef8d8051e7b972c7d98b8754b1a461516e13789
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sun Mar 10 13:36:45 2024 +0000

    IDP-2147 Investigate Wix V4
    
    https://shibboleth.atlassian.net/browse/IDP-2147
    
    Add a couple of (unused) batch files which could automate the
    build process.
---
 src/main/bin/SetRepos.bat     |  8 ++++++++
 src/main/bin/SetVariables.bat | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/src/main/bin/SetRepos.bat b/src/main/bin/SetRepos.bat
new file mode 100644
index 0000000..0df9110
--- /dev/null
+++ b/src/main/bin/SetRepos.bat
@@ -0,0 +1,8 @@
+ at echo off
+set MAVEN_REPO=%TEMP%\MVN
+rd/s/q %MAVEN_REPO%
+md %MAVEN_REPO%
+
+set GIT_REPO=%TEMP%\GIT
+rd/s/q %GIT_REPO%
+md %GIT_REPO%
diff --git a/src/main/bin/SetVariables.bat b/src/main/bin/SetVariables.bat
new file mode 100644
index 0000000..09f3eb1
--- /dev/null
+++ b/src/main/bin/SetVariables.bat
@@ -0,0 +1,39 @@
+ at echo off
+
+for /f "tokens=* USEBACKQ" %%F in (`findstr SNAPSHdOT pom.xml`) do (
+echo SNAPSHOT found in pom
+echo %%F%
+goto :done
+)
+
+REM the first flushes any repo issues
+cmd /c mvn -Dmaven.repo.local=%MAVEN_REPO% help:evaluate -D expression=project.version -q -D forceStdout > version.txt
+cmd /c mvn -Dmaven.repo.local=%MAVEN_REPO% help:evaluate -D expression=project.version -q -D forceStdout > version.txt
+for /f "tokens=* USEBACKQ" %%F in (`type version.txt`) do (set VERSION=%%F)
+cmd /c mvn -Dmaven.repo.local=%MAVEN_REPO% help:evaluate -D expression=jetty.version -q -D forceStdout > version.txt
+for /f "tokens=* USEBACKQ" %%F in (`type version.txt`) do (set JETTY_VERSION=%%F)
+cmd /c mvn -Dmaven.repo.local=%MAVEN_REPO% help:evaluate -D expression=jetty.revision -q -D forceStdout > version.txt
+for /f "tokens=* USEBACKQ" %%F in (`type version.txt`) do (set JETTY_REVISION=%%F)
+SET XVersion=%JETTY_VERSION%.%JETTY_REVISION%
+
+echo Derived Version = %xVersion%
+echo Version FromPon = %Version%
+
+if NOT "%VERSION%" == "%XVERSION%" (
+ECHO "VERSION MISMACTH"
+goto done
+)
+
+set JETTY_TAG=%VERSION%-WINDOWS
+set NEXUS_URL=http://127.0.0.1:1581/nexus/content/repositories/releases
+set REPO_ID=release
+
+set NEXUS_URL=http://127.0.0.1:1581/nexus/content/repositories/snapshots
+set REPO_ID=snapshot
+
+SET CL1=mvn -Dmaven.repo.local=%MAVEN_REPO% gpg:sign-and-deploy-file -Durl=%NEXUS_URL% -DrepositoryId=%REPO_ID%
+SET CL2=-Dfile=target/shibboleth-jetty-base-x64-%VERSION%.msi -DgroupId=net.shibboleth.idp -DartifactId=idp-jetty-base-windows
+SET CL3=-Dversion=%VERSION% -DgeneratePom=false -Dclassifier=msi
+Set SIGN_AND_DEPLOY=%CL1% %CL2% %CL3%
+echo %SIGN_AND_DEPLOY%
+:done

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list