Skip to content

Commit

Permalink
core: build: Fix windows build
Browse files Browse the repository at this point in the history
Core module build was failing on windows as there were some errors
in ballerian build script for windows.
  • Loading branch information
praminda committed Jan 29, 2020
1 parent db5ac04 commit ba74992
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/micro-gateway-core/scripts/ballerina-build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ REM limitations under the License.
SET BALLERINA_HOME=%1
SET MAVEN_PROJECT_ROOT=%2
SET BAL_EXEC="%BALLERINA_HOME%\bin\ballerina"
SET GATEWAY_PROJECT="%MAVEN_PROJECT_ROOT%\src\main\ballerina\"
SET GATEWAY_PROJECT="%MAVEN_PROJECT_ROOT%\src\main\ballerina"

REM Quietly delete the directory structure in %GATEWAY_PROJECT%\target
RMDIR /S /Q %GATEWAY_PROJECT%\target

PUSHD %GATEWAY_PROJECT%
%BAL_EXEC% build -c --experimental gateway
CALL %BAL_EXEC% build -c --experimental gateway
POPD

cp -r %GATEWAY_PROJECT%\target\caches\bir_cache %MAVEN_PROJECT_ROOT%\target
cp -r %GATEWAY_PROJECT%\target\caches\jar_cache %MAVEN_PROJECT_ROOT%\target
cp -r %GATEWAY_PROJECT%\target\balo %MAVEN_PROJECT_ROOT%\target
xcopy /Y /I /E %GATEWAY_PROJECT%\target\caches\bir_cache %MAVEN_PROJECT_ROOT%\target\bir_cache
xcopy /Y /I /E %GATEWAY_PROJECT%\target\caches\jar_cache %MAVEN_PROJECT_ROOT%\target\jar_cache
xcopy /Y /I /E %GATEWAY_PROJECT%\target\balo %MAVEN_PROJECT_ROOT%\target\balo

0 comments on commit ba74992

Please sign in to comment.