AMDAIntegrationConfig.php 5.48 KB
<?php 

$localIP = exec("hostname -i");

//Add your server below
switch ($localIP)
{
	//bas-amda-01 server (AKKA dev)
	case  '172.25.30.65' :
		define('PLATFORM_NAME','AKKA dev'); 
		
		//AKKA - Force the IP client value to prevent a bug with DDServer
		//       The IP client must be write with the pattern : xxx.xxx.xxx.xxx
		define('FORCE_CLIENT_IP', '172.025.030.065');
		
		// true for AKKA
		// false or not defined for IRAP
		// It's used to select the correct SVN path for depotInfo repository
		define('AKKA_SVN', 'true');
				
		//Path to AMDA_Kernel base dir
		define('NEWKERNEL_BASE_PATH', '/home/b.renard/workspace/AMDA-KERNEL/trunk/AMDA_Kernel/');

		//Path to AMDA_IHM base dir
		define('IHM_SRC_DIR', '/home/b.renard/AMDA_INSTALL/AMDA_IHM/');
		break;
		
	//bas-amda-02 server (AKKA - integration)
	case '10.168.220.87' :
		define('PLATFORM_NAME','AKKA integration');
		
		//AKKA - Force the IP client value to prevent a bug with DDServer
		//       The IP client must be write with the pattern : xxx.xxx.xxx.xxx
		define('FORCE_CLIENT_IP', '010.168.220.087');
		
		// true for AKKA
		// false or not defined for IRAP
		// It's used to select the correct SVN path for depotInfo repository
		define('AKKA_SVN', 'true');
				
		//Path to AMDA_Kernel base dir
		define('NEWKERNEL_BASE_PATH', '/var/lib/jenkins/jobs/AMDA_Kernel_Phase3_Integration/workspace/AMDA_Kernel/');
		
		//Path to AMDA_IHM base dir
		define('IHM_SRC_DIR', '/var/lib/jenkins/jobs/AMDA_Kernel_Phase3_Integration/workspace/AMDA_IHM/');
		
		break;
	case '195.83.102.55' :
		define('PLATFORM_NAME','IRAP test platform');
		
		//AKKA - Force the IP client value to prevent a bug with DDServer
		//       The IP client must be write with the pattern : xxx.xxx.xxx.xxx
		define('FORCE_CLIENT_IP', '195.083.102.055');
		
		// true for AKKA
		// false or not defined for IRAP
		// It's used to select the correct SVN path for depotInfo repository
		//define('AKKA_SVN', 'true');
		
		//Path to AMDA_Kernel base dir
		define('NEWKERNEL_BASE_PATH', '/home/mbouchemit/AMDA_Kernel/');
		
		//Path to AMDA_IHM base dir
		define('IHM_SRC_DIR', '/home/mbouchemit/AMDA_INSTALL/AMDA_IHM/');
		
		break;
	case '10.121.0.3' :
		define('PLATFORM_NAME','APUS dev platform');

                //AKKA - Force the IP client value to prevent a bug with DDServer
                //       The IP client must be write with the pattern : xxx.xxx.xxx.xxx
                define('FORCE_CLIENT_IP', '010.121.000.003');

                // true for AKKA
                // false or not defined for IRAP
                // It's used to select the correct SVN path for depotInfo repository
                //define('AKKA_SVN', 'true');

                //Path to AMDA_Kernel base dir
                define('NEWKERNEL_BASE_PATH', '/home/benjamin/AMDA-GIT/AMDA_Kernel/');

                //Path to AMDA_IHM base dir
                define('IHM_SRC_DIR', '/home/benjamin/AMDA-GIT/AMDA_IHM/');

		break;
	case '10.121.1.121' :
		define('PLATFORM_NAME','pc1121 dev plaform');

                //AKKA - Force the IP client value to prevent a bug with DDServer
                //       The IP client must be write with the pattern : xxx.xxx.xxx.xxx
                define('FORCE_CLIENT_IP', '010.121.001.121');

                // true for AKKA
                // false or not defined for IRAP
                // It's used to select the correct SVN path for depotInfo repository
                //define('AKKA_SVN', 'true');

                //Path to AMDA_Kernel base dir
                define('NEWKERNEL_BASE_PATH', '/home/myriam/workspacenew/AMDA_Kernel/');

                //Path to AMDA_IHM base dir
                define('IHM_SRC_DIR', '/home/myriam/workspacenew/AMDA_IHM/');

                break;
                
	case '195.83.102.54' :
    	define('PLATFORM_NAME','amdatest');
                
        //AKKA - Force the IP client value to prevent a bug with DDServer
        //       The IP client must be write with the pattern : xxx.xxx.xxx.xxx
        define('FORCE_CLIENT_IP', '195.083.102.054');
                
        // true for AKKA
        // false or not defined for IRAP
        // It's used to select the correct SVN path for depotInfo repository
        //define('AKKA_SVN', 'true');
                
        //Path to AMDA_Kernel base dir
        define('NEWKERNEL_BASE_PATH', '/home/myriam/AMDA_Kernel/');
                
		//Path to AMDA_IHM base dir
        define('IHM_SRC_DIR', '/home/myriam/AMDA_IHM/');
      	break;
}



//!! WARNING !! - Please don't change anything below this line if you do
//                a standard installation (describe in CDPP-MI-32500-505-SIL)

//Path to AMDA_Integration source dir
define('INTEGRATION_SRC_DIR', INTEGRATION_BASE_PATH.'src/');

//Path to AMDA_Kernel source dir
define('NEWKERNEL_SRC_DIR', NEWKERNEL_BASE_PATH.'src/');

//Path to AMDA_Kernel install dir dir
define ('NEWKERNEL_INSTALL_DIR', NEWKERNEL_BASE_PATH.'build/Debug/');

//Path to AMDA_Kernel config dir
define('NEWKERNEL_CONFIG_DIR', NEWKERNEL_BASE_PATH.'app-debug/');

//Path to AMDA_Kernel XSD dir
define('NEWKERNEL_XSD_DIR', NEWKERNEL_BASE_PATH.'config/DataBaseParameters/xsd/');

//Path to AMDA_Kernel info dir
define('NEWKERNEL_INFO_DIR', NEWKERNEL_BASE_PATH.'config/');

//Path to local parameters database for the new kernel
define('PARAMS_LOCALDB_DIR', IHM_SRC_DIR.'generic_data/newKernelDDBase/');

//Path to local parameters information files
define('PARAMS_LOCALINFO_DIR', IHM_SRC_DIR.'generic_data/ParamInfo/');

//Path to dir that include DD.res file
define('DDRES_DIR', NEWKERNEL_BASE_PATH.'app-debug/');

?>