diff --git a/build.backend.dotnet.bat b/build.backend.dotnet.bat new file mode 100644 index 0000000000..e2c64af037 --- /dev/null +++ b/build.backend.dotnet.bat @@ -0,0 +1,26 @@ +@echo off + +echo Start build backend... +echo. + +cd /D "%~dp0" +call runasadmin.bat "%~dpnx0" + +if %errorlevel% == 0 ( +call start\stop.bat nopause +dotnet build ..\server\asc.web.slnf /fl1 /flp1:logfile=asc.web.log;verbosity=normal +echo. +) + +if %errorlevel% == 0 ( +call start\start.bat nopause +) + +echo. + +if "%1"=="nopause" goto end +pause + + + +:end \ No newline at end of file diff --git a/run/IdentityApi.xml b/run/IdentityApi.xml index 2a434783e6..3adcc9e8ae 100644 --- a/run/IdentityApi.xml +++ b/run/IdentityApi.xml @@ -4,7 +4,8 @@ manual java - -jar ../../server/common/ASC.Identity/api/target/identity-api.jar + + -jar ../../server/common/ASC.Identity/registration/registration-container/target/registration-container-1.0.0.jar true diff --git a/run/IdentityMigration.xml b/run/IdentityMigration.xml new file mode 100644 index 0000000000..146753c555 --- /dev/null +++ b/run/IdentityMigration.xml @@ -0,0 +1,12 @@ + + OnlyofficeIdentityMigration + ONLYOFFICE IdentityMigration + manual + java + + + -jar ../../server/common/ASC.Identity/infrastructure/infrastructure-migration-runner/target/infrastructure-migration-runner-1.0.0.jar + + true + + \ No newline at end of file diff --git a/run/IdentityService.xml b/run/IdentityService.xml index ba57fbf540..07b19258d7 100644 --- a/run/IdentityService.xml +++ b/run/IdentityService.xml @@ -4,7 +4,9 @@ manual java - -jar ../../server/common/ASC.Identity/authorization/target/identity-authorization.jar + + + -jar ../../server/common/ASC.Identity/authorization/authorization-container/target/authorization-container-1.0.0.jar true diff --git a/scripts/identity.bat b/scripts/identity.bat index 8921a1036d..674fc1c02e 100644 --- a/scripts/identity.bat +++ b/scripts/identity.bat @@ -1,13 +1,28 @@ PUSHD %~dp0.. -cd %~dp0../../server/common/ASC.Identity/api/ +cd %~dp0../../server/common/ASC.Identity/ -call mvnw compiler:compile -call mvnw package -Dmaven.test.skip +echo Start build ASC.Identity project... +echo. -cd %~dp0../../server/common/ASC.Identity/authorization/ +echo ASC.Identity: resolves all project dependencies... +echo. + +call mvn dependency:go-offline -q + +if %errorlevel% == 0 ( + +echo ASC.Identity: take the compiled code and package it in its distributable format, such as a JAR... +call mvn package -DskipTests -q + +) + +if %errorlevel% == 0 ( + +echo ASC.Identity: build completed +echo. + +) -call mvnw compiler:compile -call mvnw package -Dmaven.test.skip POPD \ No newline at end of file