summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/tags/java-M1-final/java/distribution/build-dist.bat
blob: c4d0b4b7fe995801a1a8a8bd3d434b26865acfd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@REM ----------------------------------------------------------------------------
@REM Copyright 2006 The Apache Software Foundation.
@REM 
@REM Licensed under the Apache License, Version 2.0 (the "License");
@REM you may not use this file except in compliance with the License.
@REM You may obtain a copy of the License at
@REM 
@REM      http://www.apache.org/licenses/LICENSE-2.0
@REM 
@REM Unless required by applicable law or agreed to in writing, software
@REM distributed under the License is distributed on an "AS IS" BASIS,
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@REM See the License for the specific language governing permissions and
@REM limitations under the License.
@REM ----------------------------------------------------------------------------
@REM 
@setlocal
@echo off

SET CUR_DIR=%cd%
cd /d "%~dp0.."
SET TUSCANY_HOME=%cd%
cd /d "%CUR_DIR%"
echo Building Tuscany ...
cd /d "%TUSCANY_HOME%"
call mvn -Dtuscany.home=%TUSCANY_HOME% %1 clean install -Dmaven.test.skip=true
if ERRORLEVEL 1 goto error
cd /d "%TUSCANY_HOME%/distribution"
echo Creating Tuscany distribution ...
call mvn %1 clean install
:error
cd /d "%CUR_DIR%"
@endlocal