mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-02 04:36:49 +08:00
move isola to zcl_abapgit_convert
This commit is contained in:
parent
60bf29dd38
commit
dd52f33497
|
@ -41,6 +41,13 @@ CLASS zcl_abapgit_convert DEFINITION
|
||||||
!iv_string TYPE string
|
!iv_string TYPE string
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(rt_lines) TYPE string_table .
|
VALUE(rt_lines) TYPE string_table .
|
||||||
|
CLASS-METHODS conversion_exit_isola_output
|
||||||
|
IMPORTING
|
||||||
|
iv_spras TYPE spras
|
||||||
|
RETURNING
|
||||||
|
VALUE(rv_spras) TYPE laiso.
|
||||||
|
PROTECTED SECTION.
|
||||||
|
PRIVATE SECTION.
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
@ -84,6 +91,17 @@ CLASS ZCL_ABAPGIT_CONVERT IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
|
METHOD conversion_exit_isola_output.
|
||||||
|
|
||||||
|
CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT'
|
||||||
|
EXPORTING
|
||||||
|
input = iv_spras
|
||||||
|
IMPORTING
|
||||||
|
output = rv_spras.
|
||||||
|
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD int_to_xstring4.
|
METHOD int_to_xstring4.
|
||||||
* returns xstring of length 4 containing the integer value iv_i
|
* returns xstring of length 4 containing the integer value iv_i
|
||||||
|
|
||||||
|
|
|
@ -185,11 +185,6 @@ CLASS zcl_abapgit_repo DEFINITION
|
||||||
METHODS update_last_deserialize
|
METHODS update_last_deserialize
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception .
|
zcx_abapgit_exception .
|
||||||
METHODS conversion_exit_isola_output
|
|
||||||
IMPORTING
|
|
||||||
iv_spras TYPE spras
|
|
||||||
RETURNING
|
|
||||||
VALUE(rv_spras) TYPE laiso.
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
@ -226,6 +221,11 @@ CLASS ZCL_ABAPGIT_REPO IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
|
METHOD bind_listener.
|
||||||
|
mi_listener = ii_listener.
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD build_dotabapgit_file.
|
METHOD build_dotabapgit_file.
|
||||||
|
|
||||||
rs_file-path = zif_abapgit_definitions=>c_root_dir.
|
rs_file-path = zif_abapgit_definitions=>c_root_dir.
|
||||||
|
@ -247,17 +247,6 @@ CLASS ZCL_ABAPGIT_REPO IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD conversion_exit_isola_output.
|
|
||||||
|
|
||||||
CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT'
|
|
||||||
EXPORTING
|
|
||||||
input = iv_spras
|
|
||||||
IMPORTING
|
|
||||||
output = rv_spras.
|
|
||||||
|
|
||||||
ENDMETHOD.
|
|
||||||
|
|
||||||
|
|
||||||
METHOD delete_checks.
|
METHOD delete_checks.
|
||||||
|
|
||||||
DATA: li_package TYPE REF TO zif_abapgit_sap_package.
|
DATA: li_package TYPE REF TO zif_abapgit_sap_package.
|
||||||
|
@ -323,9 +312,9 @@ CLASS ZCL_ABAPGIT_REPO IMPLEMENTATION.
|
||||||
zcx_abapgit_exception=>raise( 'Cannot deserialize. Local code is write-protected by repo config' ).
|
zcx_abapgit_exception=>raise( 'Cannot deserialize. Local code is write-protected by repo config' ).
|
||||||
ELSEIF lv_master_language <> lv_logon_language.
|
ELSEIF lv_master_language <> lv_logon_language.
|
||||||
zcx_abapgit_exception=>raise( |Current login language |
|
zcx_abapgit_exception=>raise( |Current login language |
|
||||||
&& |'{ conversion_exit_isola_output( lv_logon_language ) }'|
|
&& |'{ zcl_abapgit_convert=>conversion_exit_isola_output( lv_logon_language ) }'|
|
||||||
&& | does not match master language |
|
&& | does not match master language |
|
||||||
&& |'{ conversion_exit_isola_output( lv_master_language ) }'| ).
|
&& |'{ zcl_abapgit_convert=>conversion_exit_isola_output( lv_master_language ) }'| ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
rs_checks = zcl_abapgit_objects=>deserialize_checks( me ).
|
rs_checks = zcl_abapgit_objects=>deserialize_checks( me ).
|
||||||
|
@ -745,8 +734,22 @@ CLASS ZCL_ABAPGIT_REPO IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD bind_listener.
|
METHOD switch_repo_type.
|
||||||
mi_listener = ii_listener.
|
|
||||||
|
IF iv_offline = ms_data-offline.
|
||||||
|
zcx_abapgit_exception=>raise( |Cannot switch_repo_type, offline already = "{ ms_data-offline }"| ).
|
||||||
|
ENDIF.
|
||||||
|
|
||||||
|
IF iv_offline = abap_true. " On-line -> OFFline
|
||||||
|
set(
|
||||||
|
iv_url = zcl_abapgit_url=>name( ms_data-url )
|
||||||
|
iv_branch_name = ''
|
||||||
|
iv_head_branch = ''
|
||||||
|
iv_offline = abap_true ).
|
||||||
|
ELSE. " OFFline -> On-line
|
||||||
|
set( iv_offline = abap_false ).
|
||||||
|
ENDIF.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
|
@ -841,25 +844,4 @@ CLASS ZCL_ABAPGIT_REPO IMPLEMENTATION.
|
||||||
set( it_checksums = lt_checksums ).
|
set( it_checksums = lt_checksums ).
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD switch_repo_type.
|
|
||||||
|
|
||||||
IF iv_offline = ms_data-offline.
|
|
||||||
zcx_abapgit_exception=>raise( |Cannot switch_repo_type, offline already = "{ ms_data-offline }"| ).
|
|
||||||
ENDIF.
|
|
||||||
|
|
||||||
IF iv_offline = abap_true. " On-line -> OFFline
|
|
||||||
set(
|
|
||||||
iv_url = zcl_abapgit_url=>name( ms_data-url )
|
|
||||||
iv_branch_name = ''
|
|
||||||
iv_head_branch = ''
|
|
||||||
iv_offline = abap_true ).
|
|
||||||
ELSE. " OFFline -> On-line
|
|
||||||
set( iv_offline = abap_false ).
|
|
||||||
ENDIF.
|
|
||||||
|
|
||||||
ENDMETHOD.
|
|
||||||
|
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user