Commits

Muhammed DEMİRBAŞ committed 2ca917a

ness2 scripts

  • Participants
  • Parent commits 6c7daee

Comments (0)

Files changed (4)

File batch/nessi2/DelLog-ExecApp-OpenLog.bat

 @echo off
 
-SET WORKDIR=C:\workspaces\ws_aabgs\product\AABGS
+SET PRODUCT=C:\workspaces\ws_aabgs\product\AABGS
+SET BACKEND=C:\workspaces\ws_aabgs\backend
 SET LOGFILE=logs\nessi2.log
 SET EXEFILE=AABGS.EXE
+SET BATFILE=nessi2.bat
 SET NOTEPAD="C:\Program Files (x86)\Notepad++\notepad++.exe"
 SET TIMEOUT=3
 
-cd /D %WORKDIR%
+:: Kill programs if open
+TASKKILL /F /IM %EXEFILE%
+TASKKILL /F /IM java.exe
 
-:: Kill program if open
-TASKKILL /F /IM %EXEFILE%
+:: Delete old log files
+DEL %PRODUCT%\%LOGFILE% %BACKEND%\%LOGFILE%
 
-:: Delete old log file
-DEL %LOGFILE%
+:: Execute product
+cd /D %PRODUCT%
+START %EXEFILE%
 
-:: Execute program again
-START %EXEFILE%
+:: Execute backend
+cd /D %BACKEND%
+START /B %BATFILE%
 
 :: Wait program to write logs somewhile
 TIMEOUT %TIMEOUT%
 
 :: Open new log file
-%NOTEPAD% %LOGFILE%
+%NOTEPAD% %PRODUCT%\%LOGFILE%
+%NOTEPAD% %BACKEND%\%LOGFILE%

File batch/nessi2/aabgs-deploy.bat

 @echo off
 
 rem -- definitions ------------------------------------------------------------
-set WORKSPACE=%1
+set SOURCE=%1
 set BACKEND=%2
 set FRONTEND=%3
 set PRODUCT=%4
 echo.
 echo ======  Deploying:  =========================================================================================================
 echo.
-echo        Source  : %WORKSPACE%
+echo        Source  : %SOURCE%
 echo        Backend : %BACKEND%
 echo        Frontend: %FRONTEND%
 echo        Product : %PRODUCT%
 echo ============================================================================================================================
 echo.
 
-REM -- PATHS OF 'target' DIRS RELATIVE TO %WORKSPACE%
+REM -- PATHS OF 'target' DIRS RELATIVE TO %SOURCE%
 REM -- ('target' dirs contain *.jar files)
-@SET APPS= ^
-	aabgs-applications\aabgs-normal-apps ^
-	aabgs-applications\aabgs-attack
-	rem aabgs-applications\aabgs-firewall ^
-	rem aabgs-applications\aabgs-ids-modelling ^
-	rem aabgs-applications\aabgs-udp-flood ^
-@SET LIBS= ^
-	aabgs-common ^
-	aabgs-ip-networks ^
-	aabgs-database-modules\aabgs-database-api
+@SET APPS= 
+	:: aabgs-applications\aabgs-normal-apps ^
+	:: aabgs-applications\aabgs-attack ^
+	:: aabgs-applications\aabgs-firewall ^
+	:: aabgs-applications\aabgs-ids-modelling ^
+	:: aabgs-applications\aabgs-udp-flood
+@SET LIBS= 
+	:: aabgs-database-modules\aabgs-database-api ^
+	:: aabgs-database-modules\aabgs-simulation-result-database ^
+	:: aabgs-ip-networks ^
+	:: aabgs-common
 
 REM -- TARGETS INCLUDE UNUSED JARS
 REM aabgs-backend ^
 REM aabgs-database-backend ^
-REM aabgs-database-modules\aabgs-simulation-result-database ^
 REM aabgs-emf-models\aabgs-core-model ^
 REM aabgs-emf-models\aabgs-ip-model ^
 
 	@echo.
 	@echo ===[ %%F ]=====================================================================
 	@echo ---[ %FRONTEND% ]--------------------------------------------------------------
-	@copy /Y %WORKSPACE%\%%F\target\*.jar %FRONTEND%\applications
+	@copy /Y %SOURCE%\%%F\target\*.jar %FRONTEND%\applications
 	@echo ---[ %PRODUCT% ]---------------------------------------------------------------
-	@copy /Y %WORKSPACE%\%%F\target\*.jar %PRODUCT%\applications
+	@copy /Y %SOURCE%\%%F\target\*.jar %PRODUCT%\applications
 	@echo ---[ %BACKEND% ]---------------------------------------------------------------
-	@copy /Y %WORKSPACE%\%%F\target\*.jar %BACKEND%\applications
+	@copy /Y %SOURCE%\%%F\target\*.jar %BACKEND%\applications
 )
 
 @ECHO.
 	@echo.
 	@echo ===[ %%F ]=====================================================================
 	@echo ---[ %FRONTEND% ]--------------------------------------------------------------
-	@copy /Y %WORKSPACE%\%%F\target\*.jar %FRONTEND%\applications\lib
+	@copy /Y %SOURCE%\%%F\target\*.jar %FRONTEND%\applications\lib
 	@echo ---[ %PRODUCT% ]---------------------------------------------------------------
-	@copy /Y %WORKSPACE%\%%F\target\*.jar %PRODUCT%\applications\lib
+	@copy /Y %SOURCE%\%%F\target\*.jar %PRODUCT%\applications\lib
 	@echo ---[ %BACKEND% ]---------------------------------------------------------------
-	@copy /Y %WORKSPACE%\%%F\target\*.jar %BACKEND%\lib
+	@copy /Y %SOURCE%\%%F\target\*.jar %BACKEND%\lib
 )
 
 @ECHO.
 @del "%FRONTEND%\logs\nessi2.log" "%PRODUCT%\logs\nessi2.log" "%BACKEND%\logs\nessi2.log"
 
 REM -- Clear environment variables
-rem -- SET WORKSPACE=
+rem -- SET SOURCE=
 rem -- SET BACKEND=
 rem -- SET FRONTEND=
 rem -- SET PRODUCT=

File batch/nessi2/nessi-intermediate-script.bat

 
 REM -- AABGS
 if "%PROJECT%" == "aabgs" (
-	set WORKSPACE=D:\dev\issdn\Source\trunk\AABGS
+	set SOURCE=D:\dev\issdn\Source\trunk\AABGS
 	set BACKEND=D:\dev\issdn\nessi2-backend
 	set FRONTEND=D:\dev\issdn\TargetPlatform
 	set DEPLOY_SCRIPT=
 
 REM -- AABGS2
 if "%PROJECT%" == "aabgs2" (
-	set WORKSPACE=C:\workspaces\ws_aabgs\src
+	set SOURCE=C:\workspaces\ws_aabgs\src\AABGS
 	set BACKEND=C:\workspaces\ws_aabgs\backend
 	set FRONTEND=C:\workspaces\ws_aabgs\frontend
 	set PRODUCT=C:\workspaces\ws_aabgs\product\AABGS
 	set EXPORTED_JARS=C:\workspaces\ws_aabgs\tmp\plugins
-	set DEPLOY_SCRIPT=C:\dev\mdlibs\batch\nessi2\aabgs-deploy.bat %WORKSPACE% %BACKEND% %FRONTEND% %PRODUCT% %EXPORTED_JARS%
+	set DEPLOY_SCRIPT=C:\dev\mdlibs\batch\nessi2\aabgs-deploy.bat %SOURCE% %BACKEND% %FRONTEND% %PRODUCT% %EXPORTED_JARS%
 	goto CHOOSE_OPERATION
 )
 
 REM -- Hazards
 if "%PROJECT%" == "hazards" (
-	set WORKSPACE=D:\dev\hazards\SourceCode\Core
+	set SOURCE=D:\dev\hazards\SourceCode\Core
 	set BACKEND=D:\dev\hazards\SourceCode\Core\nessi2-core\nessi2-backend\target\nessi2-backend-2.0.0-beta.5.1a-backend\nessi2-backend\
 	set FRONTED=D:\dev\hazards\SourceCode\TargetPlatform
 	set DEPLOY_SCRIPT=D:\dev\hazards\SourceCode\Scripts\hazards-deploy.bat
 
 REM -- ISSDN (Halil)
 if "%PROJECT%" == "issdn" (
-	set WORKSPACE=C:\workspaces\ws_btk\REAL-SSM\ISSDN-SSM
+	set SOURCE=C:\workspaces\ws_btk\REAL-SSM\ISSDN-SSM
 	set BACKEND=C:\workspaces\ws_btk\REAL-SSM\nessi2-backend
 	set FRONTED=C:\workspaces\ws_btk\REAL-SSM\TargetPlatform
 	set EXPORTED_JARS=C:\workspaces\ws_btk\REAL-SSM\ExportedJars\plugins\*.jar
 
 REM -- Nessi Plugin
 if "%PROJECT%" == "plugin" (
-	set WORKSPACE=D:\dev\nessi-plugin\second
+	set SOURCE=D:\dev\nessi-plugin\second
 	set BACKEND=D:\dev\nessi-plugin\Backend\nessi2-backend-beta5.1
 	set FRONTED=D:\dev\nessi-plugin\TargetPlatform\nessi2-beta5
 	set DEPLOY_SCRIPT=D:\dev\nessi-plugin\deploy.bat
 
 REM -- SSM-ATTACK
 if "%PROJECT%" == "ssmattack" (
-	set WORKSPACE=D:\dev\issdn\Source\trunk\SSMAttack
+	set SOURCE=D:\dev\issdn\Source\trunk\SSMAttack
 	set BACKEND=D:\dev\issdn\Source\trunk\SSMAttack\ssm-backend\target\ssm-backend-1.0.0-SNAPSHOT-backend\ssm-backend
 	set FRONTED=D:\dev\issdn\Source\trunk\TargetPlatforms\TargetPlatform4SSMAttack\TargetPlatform
 	set DEPLOY_SCRIPT=
 	echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 	echo ::
 	echo ::   PROJECT       : %PROJECT%
-	echo ::   WORKSPACE     : %WORKSPACE%
+	echo ::   SOURCE        : %SOURCE%
 	echo ::   DEPLOY_SCRIPT : %DEPLOY_SCRIPT%
 	echo ::   FRONTED       : %FRONTED%
 	echo ::   BACKEND       : %BACKEND%
 	call :ABORT "Uygun bir komut"
 	
 :MAVEN_BUILD
-	cd /D "%WORKSPACE%"
+	cd /D "%SOURCE%"
 	mvn clean install -Dmaven.test.skip=true -DskipTests %params%
 	GOTO RETURN
 	
 rem -- SET PROJECT=
 rem -- SET command=
 rem -- SET params=
-rem -- SET WORKSPACE=
+rem -- SET SOURCE=
 rem -- SET BACKEND=
 rem -- SET FRONTED=
 rem -- SET PRODUCT=

File csharp/mdlibs/Tools/Catalogue/softcatc-analyzer/Program.cs

 using System;
-using System.Collections;
 using System.Collections.Generic;
-using Mdlibs.Libraries.Mine.Common.Common.Loggers.TodesLogger;
-using Mdlibs.Libraries.Mine.Common.Common.Loggers.TodesLogger;
 using Mdlibs.Tools.Catalogue.SoftCatC.Model;
 
 namespace Mdlibs.Tools.Catalogue.SoftCatC.Analyzer