Remote software development method, device, storage medium and processor

By obtaining the attribute information of the remote server to configure the local development platform, establishing a mapping relationship and performing real-time compilation, it solves the problem of remote Linux system software code development, improves development stability and efficiency, and reduces network dependence.

CN113360143BActive Publication Date: 2024-10-01中国邮政储蓄银行股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110776080.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-08
Publication Date
2024-10-01
Estimated Expiration
2041-07-08

AI Technical Summary

Technical Problem

Existing technology is difficult to realize remote software code development for Linux systems. The configuration work is cumbersome, development is difficult, the stability of the development platform is poor, and the network environment requirements are high, making it difficult to use in complex enterprise-level development.

Method used

By obtaining the attribute information of the software project to be developed on the remote server, configuring the project creation plug-in of the local development platform, establishing the mapping relationship of the software project to be developed, and using the remote compilation plug-in to compile, the source code can be written and modified locally, and through The event response mechanism synchronizes modified content to the remote server to achieve real-time compilation.

Benefits of technology

It reduces the configuration work, reduces the difficulty of development, improves the stability of the development platform, realizes real-time compilation of source code locally, and solves the complexity and network dependency issues of remote development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113360143B_ABST
    Figure CN113360143B_ABST
Patent Text Reader

Abstract

The present invention discloses a remote software development method, device, storage medium and processor. The method comprises: obtaining attribute information of a software project to be developed located on a remote server, wherein the attribute information of the software project to be developed is used to indicate the type and address information of the software project to be developed; configuring a project creation plug-in of a local development platform according to the attribute information; establishing a mapping relationship of the software project to be developed on the local development platform through the project creation plug-in based on the attribute information; and compiling source code information of the software project to be developed through a remote compilation plug-in of the local development platform based on the mapping relationship. The present invention solves the technical problem that it is difficult to realize remote development of software code for a Linux system in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software technology, and in particular to a remote software development method, device, storage medium and processor. Background Art

[0002] In the related art, the method for remote development of C / ProcC software code of Linux system includes: 1. Log in to the remote Linux server through the remote login tool, and use vim or emacs code editing tools directly in the remote command line environment to develop the code, but this method requires a lot of configuration work, and the developer needs to remember more shortcut key commands, which makes the development difficult. 2. Use the FTP tool to download the software code from the remote Linux server to the local Windows environment, and use the Windows text editing tool (for example, the nodepad++ text editing tool) to write the code locally. After the writing is completed, upload the code file to the corresponding compilation directory on the remote server to complete the compilation. Because the FTP tool and the local Windows text editing tool do not have the auxiliary function of editing code, it is impossible to achieve real-time compilation of the code in the local Windows environment, resulting in a cumbersome development process. 3. Run the development platform (for example, Eclipse development platform) on a remote Linux server, and use remote software based on the XWindows protocol to realize the function of remote development of Linux C / ProcC software. However, the stability of the development platform on the Linux server is poor, and it will be obviously stuck when running for a long time in a virtual machine environment. In addition, this method has high requirements on the network environment and can generally only be used in a local area network, which makes it difficult to use in complex enterprise-level development.

[0003] The above solves the problem that it is difficult to remotely develop software codes for Linux systems in the prior art, but no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide a remote software development method, device, storage medium and processor to at least solve the technical problem in the prior art that it is difficult to remotely develop software codes for a Linux system.

[0005] According to one aspect of an embodiment of the present invention, a remote software development method is provided, comprising: obtaining attribute information of a software project to be developed located on a remote server, wherein the attribute information of the software project to be developed is used to represent the type and address information of the software project to be developed; configuring a project creation plug-in of a local development platform according to the attribute information; establishing a mapping relationship between the software project to be developed and the local development platform through the project creation plug-in based on the attribute information; and compiling source code information of the software project to be developed through a remote compilation plug-in of the local development platform based on the mapping relationship.

[0006] Furthermore, the above-mentioned attribute information includes login information of the remote server. Based on the attribute information, a mapping relationship between the software project to be developed and the local development platform is established through a project creation plug-in, including: logging in to the remote server based on the login information of the remote server; creating a local mapping directory of the software project to be developed through the project creation plug-in, wherein the local mapping directory is used to load the directories and files in the software project to be developed into the local development platform one-to-one.

[0007] Furthermore, the above-mentioned attribute information includes at least: path information of the source code directory of the software project to be developed and the system header file search path, and creates a local mapping directory of the software project to be developed through a project creation plug-in, including: creating a corresponding first local mapping directory on the local development platform according to the path information of the source code directory of the software project to be developed and the system header file search path, wherein the first local mapping directory contains the source code directory and the system header file, and the source code directory is used to store source code information.

[0008] Furthermore, based on the mapping relationship, the software project to be developed is compiled through a remote compilation plug-in, including: creating a compilation file based on the source code directory on the local development platform; synchronizing the compilation file to the remote server based on the mapping relationship; according to the compilation operation, the remote compilation plug-in sends a compilation instruction to the remote server, wherein the compilation instruction includes identification information of the compilation file to be compiled; according to the compilation instruction, the compilation file to be compiled on the remote server is compiled.

[0009] Furthermore, the first local mapping directory has a plurality of source code directories, and creating a compilation file based on the source code directories on the local development platform includes: separately creating a corresponding compilation file for each source code directory.

[0010] Furthermore, before compiling the software project to be developed through a remote compilation plug-in based on the mapping relationship, the above method also includes: adding an auxiliary editing plug-in to the local development platform; constructing a code symbolic link through the auxiliary editing plug-in, wherein the code symbolic link is used to assist in editing the source code information.

[0011] Furthermore, the attribute information of the software project to be developed includes at least: path information of the include directory of the software project to be developed; based on the attribute information, a mapping relationship of the software project to be developed on the local development platform is established through a project creation plug-in, including: creating a second local mapping directory corresponding to the include directory on the local development platform according to the path information of the include directory; wherein the include directory is used to store custom include files, and the custom include files are used to construct code symbolic links.

[0012] Furthermore, based on the attribute information, a mapping relationship of the software project to be developed on the local development platform is established through a project creation plug-in, which also includes: obtaining an event response mechanism preset in the project creation plug-in; synchronizing the local mapping directory to the remote server according to the attribute information and the event response mechanism, wherein the event response mechanism is used to represent the synchronization relationship between the local mapping directory of the local development platform and the corresponding directory on the remote server.

[0013] Furthermore, the local mapping directory contains local files, and the local mapping directory is synchronized to the remote server according to the attribute information and the event response mechanism, including one or any of the following: when the local development platform deletes the local file, the remote server deletes the corresponding file; and when the local development platform adds a local file, the remote server adds the corresponding file; and when the local development platform modifies and saves the local file, the modified content of the file is synchronized to the remote server; and when the local development platform adds a local mapping directory, the corresponding directory is created on the remote server according to the creation operation; and when the local development platform deletes the local mapping directory, the remote server does not execute the deletion event.

[0014] According to another aspect of an embodiment of the present invention, a remote development device is also provided, including: an acquisition module, used to acquire attribute information of a software project to be developed located on a remote server, wherein the attribute information of the software project to be developed is used to represent the type and address information of the software project to be developed; a configuration module, used to configure a project creation plug-in of a local development platform according to the attribute information; an establishment module, based on the attribute information, establishing a mapping relationship of the software project to be developed on the local development platform through the project creation plug-in, and used to establish a mapping relationship of the software project to be developed on the local development platform through the project creation plug-in; a compilation module, used to compile the software project to be developed through a remote compilation plug-in of the local development platform based on the mapping relationship.

[0015] According to another aspect of an embodiment of the present invention, a storage medium is further provided, including: the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute any one of the above remote software development methods.

[0016] According to another aspect of an embodiment of the present invention, a processor is further provided, including: the processor is used to run a program, wherein any one of the above remote software development methods is executed when the program is run.

[0017] In an embodiment of the present invention, by acquiring the attribute information of the software project to be developed located on the remote server, configuring the project creation plug-in of the local development platform according to the attribute information, establishing the mapping relationship of the software project to be developed on the local development platform through the project creation plug-in, and based on the mapping relationship, compiling the source code information of the software project to be developed through the remote compilation plug-in of the local development platform, it is realized that the source code can be written and modified locally. Compared with the solution of directly writing the source code on the remote server, on the one hand, the configuration work is reduced, the development difficulty is reduced, and on the other hand, the stability of the operation of the development platform is improved. In addition, when compiling the source code, it is not necessary to upload the modified source code as a whole to the remote server. Only the modified content is uploaded synchronously according to the mapping relationship, so that real-time compilation can be realized, which solves the technical problem that it is difficult to realize remote development of software code for Linux system in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0019] Figure 1 is a flow chart of a remote software development method according to an embodiment of the present invention;

[0020] Figure 2 is a schematic diagram of an optional operation interface of a project creation plug-in according to an embodiment of the present invention;

[0021] Figure 3 is a schematic diagram of an optional remote software development method according to an embodiment of the present invention;

[0022] Figure 4 is a schematic diagram of a remote software development device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] Example 1

[0026] According to an embodiment of the present invention, an embodiment of a remote software development method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0027] Figure 1 A remote software development method according to an embodiment of the present invention is as follows: Figure 1 As shown, the method comprises the following steps:

[0028] Step S102: Acquire the attribute information of the software project to be developed located on the remote server, wherein the attribute information of the software project to be developed is used to indicate the type and address information of the software project to be developed.

[0029] The source code and related files of the software project to be developed are stored on a remote server, and the user needs to remotely log in to the remote server in a local environment to develop the software project to be developed.

[0030] The type of the software project to be developed may include the software programming language type (for example, C language or C++ language), whether it is a remote development project, etc.; the address information of the software project to be developed may include the address of the remote server where the software project to be developed is located (for example, IP address or MAC address), the address of the software project to be developed on the remote server, and the address information of the source code target and each file in the software project to be developed.

[0031] Step S104, configuring the project creation plug-in of the local development platform according to the attribute information.

[0032] The local development platform is a software development platform in the local operating environment of the user end. In an optional embodiment, the local development platform can be a Java-based Eclipse development platform, which can be used to implement software development on the local Eclipse development platform. It should be noted that the local operating environment and the operating environment in the remote server can be different operating environments. For example, the remote server can be a Linux environment, and the local operating environment can be a Windows environment. For the Eclipse development platform, it runs more stably in the Windows environment. Using the Windows environment locally can improve the stability of the Eclipse development platform.

[0033] The project creation plug-in is a plug-in that runs in the local development platform to assist software development. The project creation plug-in may have an operation interface for interacting with the user. The user may make corresponding configurations according to the attribute information of the software project to be developed through the operation interface of the project creation plug-in, so that the local development platform may obtain software development information related to the software project to be developed.

[0034] In an optional embodiment, Figure 2 A schematic diagram of the user interface for an optional project creation plug-in, such as Figure 2 As shown, the software project to be developed is a C language project located on a remote server. The operation interface of the project creation plug-in contains input boxes for attribute information such as the remote host address (i.e., the address of the remote server), encoding type, remote code directory, and login protocol. The input boxes are used to enter corresponding content in the operation interface of the project creation plug-in according to the attribute information of the software project to be developed to complete the configuration of the project creation plug-in.

[0035] Step S106: Based on the attribute information, a mapping relationship between the software project to be developed and the local development platform is established through a project creation plug-in.

[0036] The above mapping relationship includes establishing a one-to-one corresponding directory or file on the local development platform for the software project to be developed on the remote server, and the user can obtain all the information in the software project to be developed on the local development platform. For example, based on the above mapping relationship, the user can obtain the source code directory and system header file containing source code information of the software project to be developed on the local development platform, and the number, location and content of the source code directory in the remote server correspond to the source code directory on the local development platform, so that the content of the software project to be developed can be viewed and modified on the local development platform.

[0037] The above mapping relationship also includes that the modifications made by the user on the local development platform to the target or file in the software project to be developed will be synchronized to the corresponding location in the remote server. For example, if the user adds a file to the software project to be developed on the local development platform, the file will be synchronized to the corresponding location in the remote server, so that the software project to be developed on the remote server and the directory file in the local development platform maintain a one-to-one correspondence. The user's operation is only performed on the local development platform, and will not occupy additional resources in the remote server. It can support multiple users to share resources in the remote server and carry out software development at the same time.

[0038] Step S108 , based on the mapping relationship, compile the source code information of the software project to be developed through the remote compilation plug-in of the local development platform.

[0039] The remote compilation plug-in is a plug-in that runs on the local development platform and is used to compile source code on a remote server.

[0040] Based on the above mapping relationship, the modifications made by the user to the source code information of the software project to be developed on the local development platform will be synchronized to the corresponding location in the remote server, so that the source code information in the remote server is consistent with that in the local development platform. The user can compile the source code in the remote server through the remote compilation plug-in.

[0041] In an optional embodiment, Figure 3 is a schematic diagram of an optional remote software development method according to an embodiment of the present invention, such as Figure 3 As shown in the figure, the remote server is a Linux environment, the software project to be developed is a C / ProcC software located in the remote Linux environment, and the local development platform is an Eclipse development platform located in the local Windows environment. The Eclipse development platform has a development interface located in the local workspace. Users can add project creation plug-ins and remote compilation plug-ins to the Eclipse development platform to realize the development of C / ProcC software in the remote Linux environment. Specifically, in the following example, Figure 2 In the configuration interface of the project creation plug-in shown in the figure, configure the software project name, login protocol, FTP protocol, remote server address, encoding type, remote code directory and other information of the C / ProcC software. After completing the configuration, the project creation plug-in establishes the mapping relationship between the software project to be developed and the local development platform, such as Figure 3As shown, the source code directory in the remote C / ProcC software is mapped one-to-one to the local workspace, and the remote source code directory A corresponds one-to-one to the files and directories in the local source code target A. For example, the remote source code directory A contains sub-directories such as file operations, directory operations, compilation and construction, and directory cleaning. Then the local source code target A obtained by local mapping contains sub-directories such as file operations, directory operations, compilation and construction, and directory cleaning that correspond one-to-one to those in the remote source code directory A. Other remote files also correspond one-to-one to other local files. After establishing the above mapping relationship, the user modifies and edits the local source code directory A locally, and the corresponding modified content is synchronized to the remote source code directory A according to the mapping relationship, so that the contents of the two are consistent. The user can call the remote compilation plug-in to send compilation instructions to the remote server, and the remote server completes the corresponding compilation task.

[0042] In this embodiment, by obtaining the attribute information of the software project to be developed located on the remote server, configuring the project creation plug-in of the local development platform according to the attribute information, establishing the mapping relationship of the software project to be developed on the local development platform through the project creation plug-in, and based on the mapping relationship, compiling the source code information of the software project to be developed through the remote compilation plug-in of the local development platform, it is realized that the source code can be written and modified locally. Compared with the solution of directly writing the source code on the remote server, on the one hand, the configuration work is reduced and the development difficulty is reduced, and on the other hand, the operating system compatible with the development platform can be used locally, which improves the stability of the operation of the development platform. In addition, when compiling the source code, it is not necessary to upload the modified source code as a whole to the remote server. Only the modified content is uploaded synchronously according to the mapping relationship, so that real-time compilation can be realized, which solves the technical problem that it is difficult to realize remote development of software code for Linux system in the prior art.

[0043] As an optional embodiment, the above attribute information may include login information of the remote server. Based on the attribute information, a mapping relationship between the software project to be developed and the local development platform is established through a project creation plug-in, including:

[0044] Step S1061, logging into the remote server based on the login information of the remote server.

[0045] The remote server login information may include the remote server address information, user name and password, wherein the user name and password are used by the remote server to identify the identity and authority of the local development platform. Figure 2 In the schematic diagram of the operation interface of the project creation plug-in shown, the user can enter the remote host address (remote server), user name and password in the operation interface. After completing the configuration, the local development platform can log in to the remote server and establish a data interaction relationship.

[0046] In an optional embodiment, the user can enter the remote host address (remote server), user name and password in the operation interface. After completing the configuration, the project creation plug-in can write the login information of the remote server into the project property file of the software project to be developed, so as to realize automatic login after the configuration is completed, and during the synchronization and compilation of the source code information, the local development platform can automatically log in to the remote server.

[0047] Step S1062: Create a local mapping directory of the software project to be developed through the project creation plug-in, wherein the local mapping directory is used to load the directories and files in the software project to be developed into the local development platform in a one-to-one correspondence.

[0048] The local mapping directory corresponds one-to-one to the directories and files contained in the software project to be developed in the remote server. The local mapping directory can contain multiple directories and files. For example, if the software project to be developed in the remote server contains a source code directory B, then a corresponding local source code directory B is created on the local development platform as the local mapping directory.

[0049] After logging into the remote server on the local development platform and establishing a data interaction relationship, the local mapping directory created by the project creation plug-in downloads the directories and files contained therein to the local development platform one by one, so that the local mapping directory contains all the contents of the software project to be developed in the remote server.

[0050] As an optional embodiment, the above-mentioned attribute information includes at least: path information of the source code directory of the software project to be developed and the system header file search path, and creates a local mapping directory of the software project to be developed through a project creation plug-in, including: creating a corresponding first local mapping directory on the local development platform according to the path information of the source code directory of the software project to be developed and the system header file search path, wherein the first local mapping directory contains the source code directory and the system header file, and the source code directory is used to store source code information.

[0051] The source code directory and system header files are necessary elements for software compilation. By establishing the above-mentioned first local mapping directory on the local development platform, users can obtain the source code information and header files necessary for software development on the local development platform. Furthermore, after the user modifies the source code information, the corresponding modified content is synchronized to the source code directory in the remote server according to the mapping relationship, thereby realizing the writing and modification of the source code locally.

[0052] In the remote server, the source code directory can be two unrelated directories in form and location. Each source code directory is independent of each other and has independent mapping configuration and compilation configuration. In the local development platform, the local mapping directories corresponding to different source code directories can be organized in the same local software project to facilitate user calling and modification. For example, when configuring a project to create a plug-in, you can configure the addresses of multiple source code directories under the same project to organize the local mapping directories corresponding to different source code directories in the same local software project.

[0053] As an optional embodiment, based on the mapping relationship, the software project to be developed is compiled through a remote compilation plug-in, including: creating a compilation file based on the source code directory on the local development platform; synchronizing the compilation file to the remote server based on the mapping relationship; according to the compilation operation, the remote compilation plug-in sends a compilation instruction to the remote server, wherein the compilation instruction includes identification information of the compilation file to be compiled; according to the compilation instruction, compile the compilation file to be compiled on the remote server.

[0054] The above-mentioned compiled file is a file that can be used for compilation, which is generated according to the source code information that needs to be compiled. It can be automatically generated using the existing templates or customized modules of the local development platform, or it can be directly written by the user according to the needs. In an optional embodiment, a corresponding compiled file is created separately for each source code directory, and the corresponding independent compiled files are synchronized on the remote server according to the mapping relationship, so that any compiled file can be selected for compilation, thereby realizing flexible compilation of different source code directories and improving development efficiency.

[0055] After the compilation file is written, it will be automatically synchronized to the remote server according to the mapping relationship, so that the files in the remote server are consistent with the files in the local development platform without the need for users to upload them.

[0056] The identification information of the compiled file to be compiled may include the name and address of the corresponding source code directory.

[0057] In an optional embodiment, the compilation operation can be for the user to select the source code directory to be compiled, and select the compilation source code directory in the menu option. After the user completes the compilation operation, the remote compilation plug-in calls the compilation instruction, and the compilation instruction contains the address of the source code directory to be compiled in the remote server. The remote server completes the compilation of the source code directory according to the compilation instruction. For example, the local development platform can be an Eclipse development platform, and the make instruction can be called to select the make file compilation directory in the remote server that matches the local compilation file to complete the compilation.

[0058] It should be noted that during the compilation process, the local development platform only needs to send compilation instructions to the remote server, and does not need to upload all source code information to the remote server. Therefore, the compilation process has low dependence on the network and is not sensitive to network delays, reducing the dependence of the method of directly developing code on the remote server on network resources.

[0059] As an optional embodiment, before compiling the software project to be developed through a remote compilation plug-in based on the mapping relationship, the method also includes: adding an auxiliary editing plug-in to the local development platform; constructing a code symbolic link through the auxiliary editing plug-in, wherein the code symbolic link is used to assist in editing the source code information.

[0060] Assisted editing of source code information includes but is not limited to symbol search, symbol location, code completion, type hints, syntax highlighting and checking. Through assisted editing of source code, code writing errors can be checked, and corrections can be automatically made and reminders can be sent to users to improve development efficiency.

[0061] The auxiliary editing plug-in runs on the local development platform and does not occupy the resources of the remote server. The modifications made to the source code on the local development platform through the auxiliary editing plug-in are synchronized to the remote server in real time to ensure the consistency between the version on the remote server and the local version.

[0062] In an optional embodiment, the local development platform is an Eclipse development platform, and the auxiliary editing plug-in can be a CDT plug-in or a ProcC code development plug-in. Specifically, after the project creation plug-in establishes a local mapping directory corresponding to the software project to be developed on the remote server in the local development platform and loads the source code information locally, the CDT plug-in builds a code symbol link for the source code in the local mapping directory. After the construction is completed, the user opens the source code file on the local development platform and can see the source code file after auxiliary editing, for example, the source code has a prompt for undefined symbols, and incorrect syntax is highlighted, etc. Through the shortcut key operation of the Eclipse development platform, auxiliary functions such as automatic code prompts and defined symbol jumps can also be realized.

[0063] It should be noted that in this embodiment, the remote compilation plug-in, project creation plug-in and auxiliary editing plug-in are all stored in the local development platform. The cache and temporary files related to the code development process are all stored locally. Only the modifications are synchronized to the remote server, and no additional resources will be created on the remote server. This avoids related problems caused by development environment conflicts when different users develop the same remote software project, and enables multiple users to develop the same remote software project at the same time.

[0064] As an optional embodiment, the attribute information of the software project to be developed includes at least: the path information of the include directory of the software project to be developed; based on the attribute information, a mapping relationship of the software project to be developed on the local development platform is established through a project creation plug-in, including: creating a second local mapping directory corresponding to the include directory on the local development platform according to the path information of the include directory; wherein the include directory is used to store custom include files, and the custom include files are used to construct code symbolic links.

[0065] It should be noted that since the auxiliary editing plug-in runs on the local development platform, and the included directory establishes a second local mapping directory locally through a mapping relationship, the code symbolic link can be directly built locally, thereby enabling users to perform auxiliary editing of the source code on the local development platform without the need for complex configuration and shortcut key commands, reducing the difficulty of software development.

[0066] In an optional embodiment, the path information of the include directory and the path information of the source directory can be configured on the operation interface of the project creation plug-in. When the configuration is completed, the include directory and the source directory are loaded into the local development platform, and then the auxiliary editing plug-in calls the custom include file of the include directory, builds the code symbolic link locally, and implements the auxiliary editing of the source code locally. In this embodiment, the source code and the code symbolic link construction operations are separated. Since the source code is built on the remote server and the code symbolic link is built on the local development platform, only the necessary file creation, synchronization and compilation instructions need to be transmitted on the network, which reduces the requirements for the network environment.

[0067] As an optional embodiment, based on attribute information, a mapping relationship of the software project to be developed on the local development platform is established through a project creation plug-in, and it also includes: obtaining an event response mechanism preset in the project creation plug-in; synchronizing the local mapping directory to the remote server according to the attribute information and the event response mechanism, wherein the event response mechanism is used to represent the synchronization relationship between the local mapping directory of the local development platform and the corresponding directory on the remote server.

[0068] By defining an event response mechanism, it is possible to automatically synchronize directories and files in the local development platform to the remote service. In response to different user operations, the project creation plug-in establishes different response mechanisms. On the one hand, it realizes real-time synchronization of file and code modifications made by users locally to the remote server to achieve remote real-time compilation. On the other hand, the event response mechanism defines the time when the remote server does not perform synchronization to avoid related issues such as permission conflicts caused by different users when developing the same remote software project.

[0069] As an optional embodiment, the local mapping directory includes local files, and the local mapping directory is synchronized to the remote server according to the attribute information and the event response mechanism, including one or any of the following:

[0070] When the local development platform deletes a local file, the remote server deletes the corresponding file; when the local development platform adds a local file, the remote server adds the corresponding file; when the local development platform modifies and saves a local file, the modified content of the file is synchronized to the remote server; when the local development platform adds a local mapping directory, the corresponding directory is created on the remote server according to the creation operation; and when the local development platform deletes the local mapping directory, the remote server does not execute the deletion event.

[0071] It should be noted that when users add or delete local files on the local development platform, the local development platform will automatically synchronize the newly added or deleted local files to the remote server based on the mapping relationship. After users modify local files on the local development platform, they need to trigger the synchronization to the remote server through the save operation. If the user does not save the file, the modified file will not be automatically saved to the remote server. Users need to create a new local mapping directory on the local development platform through the create operation on the local development platform.

[0072] The above-mentioned save and create operations can be implemented through the project creation plug-in. For example, a save icon for file modification is set on the operation interface of the project creation plug-in. Users can synchronize file modifications to the remote server by operating the save icon. A directory add icon is set on the operation interface of the project creation plug-in. Users can synchronize the newly added local mapping directory to the remote server by operating the directory add icon.

[0073] When deleting the local mapping directory on the local development platform, the remote server does not execute the deletion event. In fact, the user only deletes the local mapping copy of the software project to be developed on the remote server, while the directory of the remote server is not affected. In the scenario where multiple development users share the source code directory of the remote server, it prevents developers from accidentally deleting the source code directory and affecting the development of other development users.

[0074] Example 2

[0075] According to an embodiment of the present invention, there is provided an embodiment of a remote software development device. Figure 4 is a schematic diagram of a remote software development device according to an embodiment of the present invention. Figure 4 As shown, the remote software development device includes:

[0076] An acquisition module 41 is used to acquire attribute information of a software project to be developed located on a remote server, wherein the attribute information of the software project to be developed is used to indicate the type and address information of the software project to be developed; a configuration module 42 is used to configure a project creation plug-in of a local development platform according to the attribute information; an establishment module 43 is used to establish a mapping relationship of the software project to be developed on the local development platform through the project creation plug-in based on the attribute information; and a compilation module 44 is used to compile the software project to be developed through a remote compilation plug-in of the local development platform based on the mapping relationship.

[0077] As an optional embodiment, the above-mentioned attribute information includes login information of the remote server, and the above-mentioned establishment module includes: a login sub-module, used to log in to the remote server based on the login information of the remote server; a mapping sub-module, used to create a local mapping directory of the software project to be developed through a project creation plug-in, wherein the local mapping directory is used to load the directories and files in the software project to be developed into the local development platform one-to-one.

[0078] As an optional embodiment, the above-mentioned attribute information includes at least: the path information of the source code directory of the software project to be developed and the system header file search path, and the above-mentioned mapping sub-module includes: a first creation sub-module, which is used to create a corresponding first local mapping directory on the local development platform according to the path information of the source code directory of the software project to be developed and the system header file search path, wherein the first local mapping directory contains the source code directory and the system header file, and the source code directory is used to store source code information.

[0079] As an optional embodiment, the above-mentioned compilation module includes: a compilation file creation sub-module, which is used to create a compilation file based on a source code directory on a local development platform; a first synchronization sub-module, which is used to synchronize the compilation file to a remote server based on a mapping relationship; a sending sub-module, which is used to send compilation instructions to the remote server according to the compilation operation, wherein the compilation instructions include identification information of the compilation file to be compiled; and a compilation sub-module, which is used to compile the compilation file to be compiled on the remote server according to the compilation instructions.

[0080] As an optional embodiment, the first local mapping directory has multiple source code directories, and the compiled file creation submodule includes: an independent creation submodule, which is used to independently create a corresponding compiled file for each source code directory.

[0081] As an optional embodiment, the above-mentioned device also includes: an adding module for adding an auxiliary editing plug-in to the local development platform; an editing module for constructing a code symbolic link through the auxiliary editing plug-in, wherein the code symbolic link is used for auxiliary editing of source code information.

[0082] As an optional embodiment, the attribute information of the software project to be developed includes at least: the path information of the include directory of the software project to be developed, and the above-mentioned establishment module includes: a second creation sub-module, used to create a second local mapping directory corresponding to the include directory on the local development platform according to the path information of the include directory; wherein the include directory is used to store custom include files, and the custom include files are used to construct code symbolic links.

[0083] As an optional embodiment, the above-mentioned establishment module also includes: an acquisition sub-module, used to obtain the event response mechanism preset in the project creation plug-in; a second synchronization sub-module, used to synchronize the local mapping directory to the remote server according to the attribute information and the event response mechanism, wherein the event response mechanism is used to represent the synchronization relationship between the local mapping directory of the local development platform and the corresponding directory on the remote server.

[0084] As an optional embodiment, the local mapping directory contains local files, and the second synchronization submodule includes one or any of the following: a file deletion submodule, which is used for the remote server to delete the corresponding file when the local development platform deletes the local file; and a file addition submodule, which is used for the remote server to add the corresponding file when the local development platform adds the local file; and a file modification submodule, which is used for synchronizing the modified content of the file to the remote server when the local development platform modifies and saves the local file; and a directory addition submodule, which is used for creating the corresponding directory on the remote server according to the creation operation when the local development platform adds the local mapping directory; and a directory deletion submodule, which is used for the remote server not to execute the deletion event when the local development platform deletes the local mapping directory.

[0085] Example 3

[0086] According to another aspect of an embodiment of the present invention, a storage medium is further provided, including: the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute any one of the above remote software development methods.

[0087] The storage medium is configured to store program codes for executing the following steps: obtaining attribute information of a software project to be developed located on a remote server, wherein the attribute information of the software project to be developed is used to indicate the type and address information of the software project to be developed; configuring a project creation plug-in of a local development platform according to the attribute information; establishing a mapping relationship of the software project to be developed on the local development platform through the project creation plug-in based on the attribute information; and compiling source code information of the software project to be developed through a remote compilation plug-in of the local development platform based on the mapping relationship.

[0088] According to another aspect of an embodiment of the present invention, a processor is further provided, including: the processor is used to run a program, wherein any one of the above remote software development methods is executed when the program is run.

[0089] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0090] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0091] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0092] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0093] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0094] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0095] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A remote software development method, characterized in that: include: Acquire attribute information of a software project to be developed located on a remote server, wherein the attribute information of the software project to be developed is used to indicate the type and address information of the software project to be developed; Configure a project creation plug-in for a local development platform according to the attribute information; Based on the attribute information, establishing a mapping relationship between the software project to be developed and the local development platform through the project creation plug-in; Based on the mapping relationship, compile the source code information of the software project to be developed through the remote compilation plug-in of the local development platform; The attribute information includes login information of the remote server, and based on the attribute information, a mapping relationship of the software project to be developed on the local development platform is established through the project creation plug-in, including: Logging into the remote server based on the login information of the remote server; Creating a local mapping directory of the software project to be developed through the project creation plug-in, wherein the local mapping directory is used to load the directories and files in the software project to be developed into the local development platform in a one-to-one correspondence; The attribute information at least includes: path information of the source code directory of the software project to be developed and the system header file search path. Creating a local mapping directory of the software project to be developed through the project creation plug-in includes: Create a corresponding first local mapping directory on the local development platform according to the path information of the source code directory of the software project to be developed and the system header file search path, Wherein, the first local mapping directory includes the source code directory and the system header file, and the source code directory is used to store the source code information; Based on the mapping relationship, compiling the software project to be developed through the remote compilation plug-in includes: Creating a compilation file based on the source code directory on the local development platform; Synchronizing the compiled file to the remote server based on the mapping relationship; According to the compiling operation, the remote compiling plug-in sends a compiling instruction to the remote server, wherein the compiling instruction includes identification information of the compiling file to be compiled; According to the compiling instruction, the compiling file to be compiled on the remote server is compiled.

2. The remote software development method according to claim 1, characterized in that: The first local mapping directory has a plurality of source code directories, and creating a compiled file according to the source code directories on the local development platform includes: A corresponding compiled file is created separately for each source code directory.

3. The remote software development method according to claim 1, characterized in that: Before compiling the software project to be developed through the remote compilation plug-in based on the mapping relationship, the method further includes: Adding an auxiliary editing plug-in to the local development platform; A code symbolic link is constructed through the auxiliary editing plug-in, wherein the code symbolic link is used to assist in editing the source code information.

4. The remote software development method according to claim 3, characterized in that: The attribute information of the software project to be developed includes at least: path information of the directory containing the software project to be developed. Based on the attribute information, a mapping relationship of the software project to be developed on the local development platform is established through the project creation plug-in, including: Creating a second local mapping directory corresponding to the included directory on a local development platform according to the path information of the included directory; The include directory is used to store custom include files, and the custom include files are used to construct the code symbolic link.

5. The remote software development method according to claim 1, characterized in that: Based on the attribute information, establishing a mapping relationship of the software project to be developed on the local development platform through the project creation plug-in also includes: Obtaining the event response mechanism preset in the project creation plug-in; The local mapping directory is synchronized to the remote server according to the attribute information and the event response mechanism, wherein the event response mechanism is used to represent the synchronization relationship between the local mapping directory of the local development platform and the corresponding directory on the remote server.

6. The remote software development method according to claim 5, characterized in that: The local mapping directory includes local files, and the local mapping directory is synchronized to the remote server according to the attribute information and the event response mechanism, including one or any of the following: In the case where the local development platform deletes the local file, the remote server deletes the corresponding file; and in the case where the local development platform adds the local file, the remote server adds the corresponding file; and when the local file is modified and saved on the local development platform, synchronizing the modified content of the file to the remote server; and in the case where the local mapping directory is added to the local development platform, creating a corresponding directory on the remote server according to the creation operation; And when the local development platform deletes the local mapping directory, the remote server does not execute the deletion event.

7. A remote software development device, characterized in that: include: An acquisition module, used for acquiring attribute information of a software project to be developed located on a remote server, wherein the attribute information of the software project to be developed is used for indicating the type and address information of the software project to be developed; A configuration module, used for configuring a project creation plug-in of a local development platform according to the attribute information; An establishment module, based on the attribute information, establishes a mapping relationship of the software project to be developed on the local development platform through the project creation plug-in for establishing a mapping relationship of the software project to be developed on the local development platform through the project creation plug-in; A compiling module, used for compiling the software project to be developed through a remote compiling plug-in of the local development platform based on the mapping relationship; The attribute information includes the login information of the remote server, and the establishment module includes: a login submodule, which is used to log in to the remote server based on the login information of the remote server; a mapping submodule, which is used to create a local mapping directory of the software project to be developed through a project creation plug-in, wherein the local mapping directory is used to load the directories and files in the software project to be developed into the local development platform one by one; The attribute information at least includes: the path information of the source code directory of the software project to be developed and the system header file search path. The mapping submodule includes: a first creation submodule, which is used to create a corresponding first local mapping directory on the local development platform according to the path information of the source code directory of the software project to be developed and the system header file search path, wherein the first local mapping directory contains the source code directory and the system header file, and the source code directory is used to store source code information; The compilation module includes: a compilation file creation submodule, which is used to create a compilation file according to a source code directory on a local development platform; a first synchronization submodule, which is used to synchronize the compilation file to a remote server based on a mapping relationship; a sending submodule, which is used to send a compilation instruction to the remote server according to the compilation operation, wherein the compilation instruction includes identification information of the compilation file to be compiled; and a compilation submodule, which is used to compile the compilation file to be compiled on the remote server according to the compilation instruction.

8. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the remote software development method according to any one of claims 1 to 6.