gen-launch-config.bat 894 Bytes
Newer Older
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

: Pre-requisites :
: * the FART tool :  https://sourceforge.net/projects/fart-it/
: * A correct analysis.launch file to serve as base

: This scripts generates for each input xmi, a corresponding ATL launch file

@echo off
setlocal enabledelayedexpansion

: Checks parameter for current IN model name in analysis.launch
if "%~1"=="" (
    echo "Enter the name of current IN model in file analysis.launch (for e.g : ./gen-launch-config.bat comment-required)"
    exit 0
) else (
    SET currentinput=%1
    echo "Current input : %%currentinput"
)

: For each input file, generate the corresponding .launch file with this file's name as IN model
for %%f in (input\*.xmi) do (
  : set /p content=<%%f
  echo "fullname: %%f"
  echo "name: %%~nf"
  : echo "contents: !content!"
  copy analysis.launch analysis-%%~nf.launch
  echo %currentinput%
  fart analysis-%%~nf.launch %currentinput% "%%~nf"
)