cfgWin.js (d71964d5) cfgWin.js (985d02c7)
1// *************************************************************
2//
3// Licensed to the Apache Software Foundation (ASF) under one
4// or more contributor license agreements. See the NOTICE file
5// distributed with this work for additional information
6// regarding copyright ownership. The ASF licenses this file
7// to you under the Apache License, Version 2.0 (the
8// "License"); you may not use this file except in compliance

--- 48 unchanged lines hidden (view full) ---

57var oo_user_sdk_env_script=oo_user_sdk_dir + "\\setsdkenv_windows.bat";
58
59var office_home=getOfficeHome();
60var office_base_home=getOfficeBaseHome();
61var oo_sdk_ure_home=getUreHome();
62
63var oo_sdk_make_home=getMakeHome();
64var oo_sdk_zip_home=getZipHome();
1// *************************************************************
2//
3// Licensed to the Apache Software Foundation (ASF) under one
4// or more contributor license agreements. See the NOTICE file
5// distributed with this work for additional information
6// regarding copyright ownership. The ASF licenses this file
7// to you under the Apache License, Version 2.0 (the
8// "License"); you may not use this file except in compliance

--- 48 unchanged lines hidden (view full) ---

57var oo_user_sdk_env_script=oo_user_sdk_dir + "\\setsdkenv_windows.bat";
58
59var office_home=getOfficeHome();
60var office_base_home=getOfficeBaseHome();
61var oo_sdk_ure_home=getUreHome();
62
63var oo_sdk_make_home=getMakeHome();
64var oo_sdk_zip_home=getZipHome();
65var oo_sdk_cat_home=getCatHome();
66var oo_sdk_sed_home=getSedHome();
65var oo_sdk_manifest_used="";
66var oo_sdk_windowssdk="";
67var oo_sdk_cpp_home=getCppHome();
68var oo_sdk_cli_home=getCliHome();
69var oo_sdk_java_home=getJavaHome();
70var oo_sdk_out=getOutputDir();
71var sdk_auto_deployment=getAutoDeployment();
72

--- 315 unchanged lines hidden (view full) ---

388 "\". zip is required, please specify a zip tools " +
389 "directory.");
390 continue;
391 }
392 return sHome;
393 }
394}
395
67var oo_sdk_manifest_used="";
68var oo_sdk_windowssdk="";
69var oo_sdk_cpp_home=getCppHome();
70var oo_sdk_cli_home=getCliHome();
71var oo_sdk_java_home=getJavaHome();
72var oo_sdk_out=getOutputDir();
73var sdk_auto_deployment=getAutoDeployment();
74

--- 315 unchanged lines hidden (view full) ---

390 "\". zip is required, please specify a zip tools " +
391 "directory.");
392 continue;
393 }
394 return sHome;
395 }
396}
397
398function getCatHome()
399{
400 var sSuggestedHome = WshSysEnv("OO_SDK_CAT_HOME");
401
402 while(true)
403 {
404 stdout.Write("\n Enter a cat (2.0 or higher) tools directory [" +
405 sSuggestedHome + "]:");
406 var sHome = stdin.ReadLine();
407 if (sHome.length == 0)
408 {
409 //No user input, use default.
410 if ( ! aFileSystemObject.FolderExists(sSuggestedHome))
411 {
412 stdout.WriteLine("\n Error: Could not find directory \"" +
413 sSuggestedHome + "\". cat is required, please " +
414 "specify a cat tools directory." +
415 "\nYou can get cat from " +
416 "http://sourceforge.net/projects/unxutils/files/latest/download");
417 sSuggestedHome = "";
418 continue;
419 }
420 sHome = sSuggestedHome;
421 }
422 else
423 {
424 //validate the user input
425 if ( ! aFileSystemObject.FolderExists(sHome))
426 {
427 stdout.WriteLine("\n Error: The directory \"" + sHome +
428 "\" does not exist. cat is required, please " +
429 "specify a cat tools directory." +
430 "\nYou can get cat from " +
431 "http://sourceforge.net/projects/unxutils/files/latest/download");
432 continue;
433 }
434 }
435 //Check for the make executable
436 var sCatPath = sHome + "\\cat.exe";
437 if (! aFileSystemObject.FileExists(sCatPath))
438 {
439 stdout.WriteLine("\n Error: Could not find \"" + sCatPath +
440 "\". cat is required, please specify a cat tools " +
441 "directory." +
442 "\nYou can get cat from " +
443 "http://sourceforge.net/projects/unxutils/files/latest/download");
444 continue;
445 }
446 return sHome;
447 }
448}
449
450function getSedHome()
451{
452 var sSuggestedHome = WshSysEnv("OO_SDK_SED_HOME");
453
454 while(true)
455 {
456 stdout.Write("\n Enter a sed (3.02 or higher) tools directory [" +
457 sSuggestedHome + "]:");
458 var sHome = stdin.ReadLine();
459 if (sHome.length == 0)
460 {
461 //No user input, use default.
462 if ( ! aFileSystemObject.FolderExists(sSuggestedHome))
463 {
464 stdout.WriteLine("\n Error: Could not find directory \"" +
465 sSuggestedHome + "\". sed is required, please " +
466 "specify a sed tools directory." +
467 "\nYou can get sed from " +
468 "http://sourceforge.net/projects/unxutils/files/latest/download");
469 sSuggestedHome = "";
470 continue;
471 }
472 sHome = sSuggestedHome;
473 }
474 else
475 {
476 //validate the user input
477 if ( ! aFileSystemObject.FolderExists(sHome))
478 {
479 stdout.WriteLine("\n Error: The directory \"" + sHome +
480 "\" does not exist. sed is required, please " +
481 "specify a sed tools directory." +
482 "\nYou can get sed from " +
483 "http://sourceforge.net/projects/unxutils/files/latest/download");
484 continue;
485 }
486 }
487 //Check for the make executable
488 var sSedPath = sHome + "\\sed.exe";
489 if (! aFileSystemObject.FileExists(sSedPath))
490 {
491 stdout.WriteLine("\n Error: Could not find \"" + sSedPath +
492 "\". sed is required, please specify a sed tools " +
493 "directory." +
494 "\nYou can get sed from " +
495 "http://sourceforge.net/projects/unxutils/files/latest/download");
496 continue;
497 }
498 return sHome;
499 }
500}
501
396function getCppHome()
397{
398 var sSuggestedHome = WshSysEnv("OO_SDK_CPP_HOME");
399 if (sSuggestedHome.length == 0)
400 {
401 var sVC="";
402 try {
403 sVC = WshShell.RegRead(regKeyVCExpress90);

--- 430 unchanged lines hidden (view full) ---

834 "REM Directory of the make command.\n" +
835 "REM Example: set OO_SDK_MAKE_HOME=D:\\NextGenerationMake\\make\n" +
836 "set OO_SDK_MAKE_HOME=" + oo_sdk_make_home +
837 "\n\n" +
838 "REM Directory of the zip tool.\n" +
839 "REM Example: set OO_SDK_ZIP_HOME=D:\\infozip\\bin\n" +
840 "set OO_SDK_ZIP_HOME=" + oo_sdk_zip_home +
841 "\n\n" +
502function getCppHome()
503{
504 var sSuggestedHome = WshSysEnv("OO_SDK_CPP_HOME");
505 if (sSuggestedHome.length == 0)
506 {
507 var sVC="";
508 try {
509 sVC = WshShell.RegRead(regKeyVCExpress90);

--- 430 unchanged lines hidden (view full) ---

940 "REM Directory of the make command.\n" +
941 "REM Example: set OO_SDK_MAKE_HOME=D:\\NextGenerationMake\\make\n" +
942 "set OO_SDK_MAKE_HOME=" + oo_sdk_make_home +
943 "\n\n" +
944 "REM Directory of the zip tool.\n" +
945 "REM Example: set OO_SDK_ZIP_HOME=D:\\infozip\\bin\n" +
946 "set OO_SDK_ZIP_HOME=" + oo_sdk_zip_home +
947 "\n\n" +
948 "REM Directory of the cat tool.\n" +
949 "REM Example: set OO_SDK_CAT_HOME=C:\\UnxUtils\\usr\\local\\wbin\n" +
950 "set OO_SDK_CAT_HOME=" + oo_sdk_cat_home +
951 "\n\n" +
952 "REM Directory of the sed tool.\n" +
953 "REM Example: set OO_SDK_SED_HOME=C:\\UnxUtils\\usr\\local\\wbin\n" +
954 "set OO_SDK_SED_HOME=" + oo_sdk_sed_home +
955 "\n\n" +
842 "REM Directory of the C++ compiler.\n" +
843 "REM Example:set OO_SDK_CPP_HOME=C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\bin\n" +
844 "set OO_SDK_CPP_HOME=" + oo_sdk_cpp_home +
845 "\nset CPP_MANIFEST=" + oo_sdk_manifest_used +
846 "\nset CPP_WINDOWS_SDK=" + oo_sdk_windowssdk +
847 "\n\n" +
848 "REM Directory of the C# and VB.NET compilers.\n" +
849 "REM Example:set OO_SDK_CLI_HOME=C:\\WINXP\\Microsoft.NET\\Framework\\v1.0.3705\n" +

--- 38 unchanged lines hidden (view full) ---

888 " )\n" +
889 "\n" +
890 "REM Check installation path for the zip tool.\n" +
891 "if not defined OO_SDK_ZIP_HOME (\n" +
892 " echo Error: the variable OO_SDK_ZIP_HOME is missing!\n" +
893 " goto :error\n" +
894 " )\n" +
895 "\n" +
956 "REM Directory of the C++ compiler.\n" +
957 "REM Example:set OO_SDK_CPP_HOME=C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\bin\n" +
958 "set OO_SDK_CPP_HOME=" + oo_sdk_cpp_home +
959 "\nset CPP_MANIFEST=" + oo_sdk_manifest_used +
960 "\nset CPP_WINDOWS_SDK=" + oo_sdk_windowssdk +
961 "\n\n" +
962 "REM Directory of the C# and VB.NET compilers.\n" +
963 "REM Example:set OO_SDK_CLI_HOME=C:\\WINXP\\Microsoft.NET\\Framework\\v1.0.3705\n" +

--- 38 unchanged lines hidden (view full) ---

1002 " )\n" +
1003 "\n" +
1004 "REM Check installation path for the zip tool.\n" +
1005 "if not defined OO_SDK_ZIP_HOME (\n" +
1006 " echo Error: the variable OO_SDK_ZIP_HOME is missing!\n" +
1007 " goto :error\n" +
1008 " )\n" +
1009 "\n" +
1010 "REM Check installation path for the cat tool.\n" +
1011 "if not defined OO_SDK_CAT_HOME (\n" +
1012 " echo Error: the variable OO_SDK_CAT_HOME is missing!\n" +
1013 " goto :error\n" +
1014 " )\n" +
1015 "\n" +
1016 "REM Check installation path for the sed tool.\n" +
1017 "if not defined OO_SDK_SED_HOME (\n" +
1018 " echo Error: the variable OO_SDK_SED_HOME is missing!\n" +
1019 " goto :error\n" +
1020 " )\n" +
1021 "\n" +
896 "REM Set library path. \n" +
897 "set LIB=%OO_SDK_HOME%\\lib;%LIB%\n" +
898 "if defined CPP_WINDOWS_SDK (\n" +
899 " set LIB=%LIB%;%CPP_WINDOWS_SDK%\\lib\n" +
900 " )\n" +
901 "\n" +
902 "REM Set office program path.\n" +
903 "if defined OFFICE_HOME (\n" +

--- 35 unchanged lines hidden (view full) ---

939 "if defined OO_SDK_OUT (\n" +
940 " set PATH=%OO_SDK_OUT%\\WINexample.out\\bin;%PATH%\n" +
941 " ) else (\n" +
942 " set PATH=%OO_SDK_HOME%\\WINexample.out\\bin;%PATH%\n" +
943 " )\n" +
944 "\n" +
945 "REM Add directory of the command make to the path, if necessary.\n" +
946 "if defined OO_SDK_MAKE_HOME set PATH=%OO_SDK_MAKE_HOME%;%PATH%\n" +
1022 "REM Set library path. \n" +
1023 "set LIB=%OO_SDK_HOME%\\lib;%LIB%\n" +
1024 "if defined CPP_WINDOWS_SDK (\n" +
1025 " set LIB=%LIB%;%CPP_WINDOWS_SDK%\\lib\n" +
1026 " )\n" +
1027 "\n" +
1028 "REM Set office program path.\n" +
1029 "if defined OFFICE_HOME (\n" +

--- 35 unchanged lines hidden (view full) ---

1065 "if defined OO_SDK_OUT (\n" +
1066 " set PATH=%OO_SDK_OUT%\\WINexample.out\\bin;%PATH%\n" +
1067 " ) else (\n" +
1068 " set PATH=%OO_SDK_HOME%\\WINexample.out\\bin;%PATH%\n" +
1069 " )\n" +
1070 "\n" +
1071 "REM Add directory of the command make to the path, if necessary.\n" +
1072 "if defined OO_SDK_MAKE_HOME set PATH=%OO_SDK_MAKE_HOME%;%PATH%\n" +
947 "\n" +
948 "REM Add directory of the zip tool to the path, if necessary.\n" +
949 "if defined OO_SDK_ZIP_HOME set PATH=%OO_SDK_ZIP_HOME%;%PATH%\n" +
950 "\n" +
1073 "\n" +
1074 "REM Add directory of the zip tool to the path, if necessary.\n" +
1075 "if defined OO_SDK_ZIP_HOME set PATH=%OO_SDK_ZIP_HOME%;%PATH%\n" +
1076 "\n" +
1077 "REM Add directory of the cat tool to the path, if necessary.\n" +
1078 "if defined OO_SDK_CAT_HOME set PATH=%OO_SDK_CAT_HOME%;%PATH%\n" +
1079 "\n" +
1080 "REM Add directory of the sed tool to the path, if necessary.\n" +
1081 "if defined OO_SDK_SED_HOME set PATH=%OO_SDK_SED_HOME%;%PATH%\n" +
1082 "\n" +
951 "REM Add directory of the C++ compiler to the path, if necessary.\n" +
952 "if defined OO_SDK_CPP_HOME set PATH=%OO_SDK_CPP_HOME%;%PATH%\n" +
953 "\n" +
954 "REM Add directory of the Win SDK to the path, if necessary.\n" +
955 "if defined CPP_WINDOWS_SDK (\n" +
956 " set PATH=%CPP_WINDOWS_SDK\\bin%;%PATH%\n" +
957 " set INCLUDE=%CPP_WINDOWS_SDK\\Include%;%INCLUDE%\n" +
958 ")\n" +

--- 15 unchanged lines hidden (view full) ---

974 "echo * SDK environment is prepared for Windows\n" +
975 "echo *\n" +
976 "echo * SDK = %OO_SDK_HOME%\n" +
977 "echo * Office = %OFFICE_HOME%\n" +
978 "echo * Office Base = %OFFICE_BASE_HOME%\n" +
979 "echo * URE = %OO_SDK_URE_HOME%\n" +
980 "echo * Make = %OO_SDK_MAKE_HOME%\n" +
981 "echo * Zip = %OO_SDK_ZIP_HOME%\n" +
1083 "REM Add directory of the C++ compiler to the path, if necessary.\n" +
1084 "if defined OO_SDK_CPP_HOME set PATH=%OO_SDK_CPP_HOME%;%PATH%\n" +
1085 "\n" +
1086 "REM Add directory of the Win SDK to the path, if necessary.\n" +
1087 "if defined CPP_WINDOWS_SDK (\n" +
1088 " set PATH=%CPP_WINDOWS_SDK\\bin%;%PATH%\n" +
1089 " set INCLUDE=%CPP_WINDOWS_SDK\\Include%;%INCLUDE%\n" +
1090 ")\n" +

--- 15 unchanged lines hidden (view full) ---

1106 "echo * SDK environment is prepared for Windows\n" +
1107 "echo *\n" +
1108 "echo * SDK = %OO_SDK_HOME%\n" +
1109 "echo * Office = %OFFICE_HOME%\n" +
1110 "echo * Office Base = %OFFICE_BASE_HOME%\n" +
1111 "echo * URE = %OO_SDK_URE_HOME%\n" +
1112 "echo * Make = %OO_SDK_MAKE_HOME%\n" +
1113 "echo * Zip = %OO_SDK_ZIP_HOME%\n" +
1114 "echo * cat = %OO_SDK_CAT_HOME%\n" +
1115 "echo * sed = %OO_SDK_SED_HOME%\n" +
982 "echo * C++ Compiler = %OO_SDK_CPP_HOME%\n" +
983 "echo * C# and VB.NET compilers = %OO_SDK_CLI_HOME%\n" +
984 "echo * Java = %OO_SDK_JAVA_HOME%\n" +
985 "echo * Special Output directory = %OO_SDK_OUT%\n" +
986 "echo * Auto deployment = %SDK_AUTO_DEPLOYMENT%\n" +
987 "echo *\n" +
988 "echo ******************************************************************\n" +
989 "echo.\n" +
990 "goto end\n" +
991 "\n" +
992 " :error\n" +
993 "Error: Please insert the necessary environment variables into the batch file.\n" +
994 "\n" +
995 " :end\n"
996 );
997 newFile.Close();
998}
1116 "echo * C++ Compiler = %OO_SDK_CPP_HOME%\n" +
1117 "echo * C# and VB.NET compilers = %OO_SDK_CLI_HOME%\n" +
1118 "echo * Java = %OO_SDK_JAVA_HOME%\n" +
1119 "echo * Special Output directory = %OO_SDK_OUT%\n" +
1120 "echo * Auto deployment = %SDK_AUTO_DEPLOYMENT%\n" +
1121 "echo *\n" +
1122 "echo ******************************************************************\n" +
1123 "echo.\n" +
1124 "goto end\n" +
1125 "\n" +
1126 " :error\n" +
1127 "Error: Please insert the necessary environment variables into the batch file.\n" +
1128 "\n" +
1129 " :end\n"
1130 );
1131 newFile.Close();
1132}
999
1000
1001