Method for remote code construction based on Eclipse plug-in

By integrating the code remote construction module in the Eclipse plug-in, the problems of cumbersome operation and inefficient development in the existing technology are solved, and the code remote construction is achieved directly in the integrated development environment, simplifying operations and improving development efficiency.

CN118916011AInactive Publication Date: 2024-11-08BEIJING INST OF COMP TECH & APPL
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411111184.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing remote code construction method needs to switch from an integrated development environment to a web page for uploading and building information configuration of software source code packages, resulting in cumbersome operations and incoherent development processes, and inefficient development.

Method used

Design an Eclipse plug-in based method, including setting modules, engineering management modules, private dependency library management modules, construction information configuration modules, and construction execution and process echo modules, allowing direct connection of code remote construction system in the integrated development environment for construction , simplify operations and improve development efficiency.

Benefits of technology

It realizes direct remote code construction in an integrated development environment, simplifies the operation process, improves development efficiency, and makes the development process more coherent and efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916011A_ABST
    Figure CN118916011A_ABST
Patent Text Reader

Abstract

The invention relates to a remote code construction method based on an Eclipse plug-in, and belongs to the technical field of remote code construction. The Eclipse plug-in comprises five modules: a setting module, a project management module, a private dependency library management module, a construction information configuration module and a construction execution and process echo module. The Eclipse plug-in is used in cooperation with the remote code construction system, configuration is carried out on the Eclipse plug-in, the remote code construction system is directly connected in the integrated development environment to carry out remote code construction, a webpage does not need to be switched, operation can be simplified, the development process is more coherent, and development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of remote code construction, and in particular relates to a method for remote code construction based on an Eclipse plug-in. Background Art

[0002] Software construction is a key step in converting software source code into binary executable files, and is an important research field in software engineering. Software construction not only compiles source code into executable binary files, but also includes a series of tasks such as dependency management, configuration file generation, and verification testing. Local construction has problems such as insufficient performance of the development machine, inability to simulate multiple operating platform processor architectures, and inconsistency between the development environment and the actual operating environment, resulting in low development efficiency for developers, and the situation where the program runs normally on the local development machine after construction but reports errors in the real operating environment. In order to solve these problems, remote code construction has become a mainstream trend. Remote code construction is to compile and build code on a remote build server cluster through a network connection through a remote code construction system. The server cluster used to execute remote code construction has powerful performance, can simulate multiple operating platform processor architectures, and is consistent with the real operating environment, which can improve development efficiency. At present, the main processing method for remote code construction is to package the software source code, log in to the remote code construction system, upload the software source code package on the remote code construction system webpage and configure the build information, and perform remote code construction on the build server cluster.

[0003] Uploading software source code packages to the code remote build system through the web page and remotely building on the build server cluster requires switching from the integrated development environment to web page packaging upload and configuring the build information on the code remote build system web page. The build process can only be viewed on the code remote build system web page, and cannot be viewed directly in the integrated development environment. The operation is cumbersome, the development process is inconsistent, and the development efficiency of developers is low. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] The technical problem to be solved by the present invention is how to provide a method for remote code construction based on Eclipse plug-in to solve the problem that when uploading software source code package to the remote code construction system through the web page, the construction process can only be viewed on the web page of the remote code construction system, and cannot be directly viewed in the integrated development environment, the operation is cumbersome, the development process is incoherent, and the development efficiency of developers is low.

[0006] (II) Technical solution

[0007] In order to solve the above technical problems, the present invention proposes a method for remote code construction based on an Eclipse plug-in, wherein the Eclipse plug-in includes five modules: a setting module, a project management module, a private dependency library management module, a build information configuration module, and a build execution and process echo module;

[0008] S1. The user opens the integrated development environment Eclipse, opens the Eclipse plug-in, enters the settings module, configures the private dependency library address, the code remote build system address, the code remote build system user name and account, and generates a code remote build system authentication token;

[0009] S2. Enter the project management module and select Create a new project or Import a project. When you select Create a new project, the script file in the Code Remote Build Script Tool Set is automatically generated. When you select Import a project, you need to manually write the script file in the Code Remote Build Script Tool Set.

[0010] S3. If there is a private dependency library that needs to be added to the project, enter the private dependency library management module, query the required private dependency library in the private dependency library management interface, and import it;

[0011] S4, enter the build information configuration module, configure the software name, software version, runtime framework, target platform hardware architecture, and generate a build information configuration list;

[0012] S5. Enter the build execution and process echo module, package the software source code, the code remote build script tool set and the build information configuration list, and upload them to the code remote build system. The code remote build system builds the software source code according to the code remote build script tool set and the build information configuration list. The build process information is returned to the build execution and process echo module for real-time display, and a build log is generated for developers to download and analyze.

[0013] (III) Beneficial effects

[0014] The present invention proposes a method for remote code construction based on an Eclipse plug-in. The Eclipse plug-in of the present invention is used in conjunction with a remote code construction system. By configuring the Eclipse plug-in of the present invention, the remote code construction is realized by directly connecting the remote code construction system in an integrated development environment without switching to a web page. This can simplify operations, make the development process more coherent, and improve development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 This is a functional architecture diagram of the Eclipse plug-in of the present invention;

[0016] Figure 2 Eclipse plug-in workflow diagram. DETAILED DESCRIPTION

[0017] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.

[0018] In view of the above problems, the present invention proposes a method for remote code construction based on Eclipse plug-in. Eclipse is a widely used open source integrated development environment with a large number of developer users.

[0019] like Figure 1 As shown, the present invention proposes a method for remote code construction based on an Eclipse plug-in, wherein the Eclipse plug-in includes five modules: a setting module, a project management module, a private dependency library management module, a build information configuration module, and a build execution and process echo module, and the function of each module is described as follows.

[0020] Module 1: Setting up the module

[0021] The setting module is used to set the basic information of the Eclipse plug-in. It can set the private dependency library address, the code remote build system address, the code remote build system user name and account, and generate a code remote build system authentication token. When executing a code remote build task, first use the token to authenticate in the code remote build system. Only after the authentication is passed can the code remote build system related functions be called.

[0022] The setting module also provides a code remote build system connectivity test function to test whether the code remote build system can be connected from the integrated development environment Eclipse.

[0023] Module 2: Engineering Management Module

[0024] Project management module, used for creating new projects and importing projects.

[0025] When you choose to create a new project, the Eclipse plug-in automatically generates a project format that meets the requirements of the code remote build system, including the code remote build script toolset.

[0026] When you choose to import a project, the Eclipse plug-in pulls the project from the code repository and imports the external project from the local. The project pulled from the code repository and the external project imported are standard Eclipse projects, which do not contain the code remote build script toolset. You need to manually write the script files in the code remote build script toolset.

[0027] The code remote build script tool set includes: compile script, build script, verification script, installation script and execution script. The installation script and execution script can be empty. Among them, the compile script is used to convert the software source code into machine code; the build script converts the software source code into executable code; the verification script is used to perform post-build code verification to ensure that the built executable code can run; the installation script is used to install the code binary file generated by the build as a private dependency library to the dependency library path to provide private dependencies for other projects; the execution script is used for the formal deployment and operation of the program.

[0028] When executing code remote build, the code remote build script toolset is sent to the code remote build system through the HTTP protocol. The code remote build system reads the code remote build script toolset, generates a build workflow, and automatically executes the build task.

[0029] Module 3: Private dependency library management module

[0030] Private dependency libraries refer to dependency libraries that are not publicly released and restricted to use within specific projects or organizations due to security, proprietary, and other reasons during the software development process. These dependency libraries are managed by the development organization itself.

[0031] The private dependency library management module is used to automatically identify the private dependency libraries under the address directory after the private dependency library address is configured in the setting module, and supports private dependency library query, information display, single and batch import.

[0032] Module 4: Building information configuration module

[0033] The build information configuration module is used to provide functions such as software information filling, runtime framework selection, target platform hardware architecture selection, and runtime environment configuration. It can also generate a build information configuration list from the configured build information. When executing remote code build, the build information configuration list is sent to the remote code build system via the HTTP protocol. The remote code build system reads the build information configuration list and performs remote build.

[0034] Module 5: Building execution and process echo modules

[0035] The build execution and process echo module is used to provide software source code packaging, uploading, build process echo and build log download functions. After completing the build information configuration, the build execution and process echo module performs packaging operations and uploads it to the code remote build system for building. The build execution and process echo module obtains the build process information returned from the code remote build system and displays it in real time to visualize the build process. The build execution and process echo module also provides a build log download function for developers to conduct detailed analysis of problems encountered during the build process.

[0036] The workflow of the method for remote code construction based on Eclipse plug-in proposed by the present invention is as follows:

[0037] S1. The user opens the integrated development environment Eclipse, opens the Eclipse plug-in proposed by the present invention, enters the setting module, configures the private dependency library address, the code remote construction system address, the code remote construction system user name and account, and generates a code remote construction system authentication token;

[0038] S2. Enter the project management module and select Create a new project or Import a project. When you select Create a new project, the script file in the Code Remote Build Script Tool Set is automatically generated; when you select Import a project, you need to manually write the script file in the Code Remote Build Script Tool Set;

[0039] S3. If there is a private dependency library that needs to be added to the project, enter the private dependency library management module, query the required private dependency library in the private dependency library management interface, and import it;

[0040] S4, enter the build information configuration module, configure the software name, software version, runtime framework, target platform hardware architecture, and generate a build information configuration list;

[0041] S5. Enter the build execution and process echo module, package the software source code, the code remote build script tool set and the build information configuration list, and upload them to the code remote build system. The code remote build system builds the software source code according to the code remote build script tool set and the build information configuration list. The build process information is returned to the build execution and process echo module for real-time display, and a build log is generated for developers to download and analyze.

[0042] The code remote construction Eclipse plug-in workflow proposed by the present invention is as follows Figure 2 shown.

[0043] The Eclipse plug-in of the present invention is used in conjunction with a code remote construction system. By configuring the Eclipse plug-in of the present invention, the code remote construction system can be directly connected to the integrated development environment for remote code construction without switching to a web page. This can simplify operations, make the development process more coherent, and improve development efficiency.

[0044] 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 technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for remote code construction based on Eclipse plug-in, characterized in that: The Eclipse plug-in includes five modules: settings module, project management module, private dependency library management module, build information configuration module and build execution and process echo module; S1. The user opens the integrated development environment Eclipse, opens the Eclipse plug-in, enters the settings module, configures the private dependency library address, the code remote build system address, the code remote build system user name and account, and generates a code remote build system authentication token; S2. Enter the project management module and select Create a new project or Import a project. When you select Create a new project, the script file in the Code Remote Build Script Tool Set is automatically generated. When you select Import a project, you need to manually write the script file in the Code Remote Build Script Tool Set. S3. If there is a private dependency library that needs to be added to the project, enter the private dependency library management module, query the required private dependency library in the private dependency library management interface, and import it; S4, enter the build information configuration module, configure the software name, software version, runtime framework, target platform hardware architecture, and generate a build information configuration list; S5. Enter the build execution and process echo module, package the software source code, the code remote build script tool set and the build information configuration list, and upload them to the code remote build system. The code remote build system builds the software source code according to the code remote build script tool set and the build information configuration list. The build process information is returned to the build execution and process echo module for real-time display, and a build log is generated for developers to download and analyze.

2. The method for remote code construction based on Eclipse plug-in according to claim 1, characterized in that: The setting module is used to set the basic information of the Eclipse plug-in, including setting the private dependency library address, the code remote build system address, the code remote build system user name and account, and generating the code remote build system authentication token; When executing a code remote build task, first use the token to authenticate in the code remote build system. Only after the authentication is passed can the relevant functions of the code remote build system be called.

3. The method for remotely building code based on Eclipse plug-in according to claim 2, characterized in that: The setting module also provides a code remote build system connectivity test function to test whether the code remote build system can be connected from the integrated development environment Eclipse.

4. The method for remotely building code based on Eclipse plug-in according to claim 2, characterized in that: When you choose to create a new project, the Eclipse plug-in automatically generates a project format that meets the requirements of the code remote build system, including the code remote build script toolset; when you choose to import a project, the Eclipse plug-in pulls the project from the code repository and imports foreign projects from the local. The projects pulled from the code repository and imported from foreign projects are standard Eclipse projects, which do not contain the code remote build script toolset. You need to manually write the script files in the code remote build script toolset.

5. The method for remotely building code based on Eclipse plug-in according to claim 4, characterized in that: The code remote build script toolset includes: compilation script, build script, verification script, installation script and execution script. The installation script and execution script can be empty. The compilation script is used to convert the software source code into machine code. The build script converts the software source code into executable code. The verification script is used to perform post-build code verification to ensure that the built executable code can run. The installation script is used to install the code binary file generated by the build as a private dependency library to the dependency library path to provide private dependencies for other projects. The execution script is used for the formal deployment and operation of the program.

6. The method for remotely building code based on Eclipse plug-in according to claim 5, characterized in that: When executing code remote build, the code remote build script toolset is sent to the code remote build system through the HTTP protocol. The code remote build system reads the code remote build script toolset, generates a build workflow, and automatically executes the build task.

7. The method for remotely building code based on an Eclipse plug-in according to any one of claims 4 to 6, characterized in that: The private dependency library management module is used to automatically identify the private dependency libraries under the address directory after the private dependency library address is configured in the setting module, and supports private dependency library query, information display, single and batch import.

8. The method for remotely building code based on Eclipse plug-in according to claim 7, characterized in that: The build information configuration module is used to provide software information filling, runtime framework selection, target platform hardware architecture selection, and runtime environment configuration, and can generate a build information configuration list from the configured build information. When executing remote code build, the build information configuration list is sent to the remote code build system via the HTTP protocol. The remote code build system reads the build information configuration list and performs remote build.

9. The method for remotely building code based on Eclipse plug-in according to claim 8, characterized in that: The build execution and process echo module is used to provide software source code packaging, uploading, build process echo and build log download.

10. The method for remote code construction based on Eclipse plug-in according to claim 9, characterized in that: After completing the build information configuration, the build execution and process echo module performs packaging operations and uploads it to the code remote build system for building. The build execution and process echo module obtains the build process information returned from the code remote build system and displays it in real time to visualize the build process. The build execution and process echo module also provides a build log download function for developers to conduct detailed analysis of problems encountered during the build process.

Citation Information

Patent Citations

  • Method and server for automatically building and deploying codes

    CN104536744A

  • A method and a device for application automation construction and deployment based on container technology

    CN108984205A

  • Development system and development method of application

    CN115629971A

  • Cloud automatic deployment method

    CN117111969A

  • System and method for remotely compiling multi-platform native applications for mobile devices

    US20110154305A1