CN113344549B - Project engineering document updating method and device, computer equipment and storage medium - Google Patents

Project engineering document updating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113344549B
CN113344549B CN202110733065.7A CN202110733065A CN113344549B CN 113344549 B CN113344549 B CN 113344549B CN 202110733065 A CN202110733065 A CN 202110733065A CN 113344549 B CN113344549 B CN 113344549B
Authority
CN
China
Prior art keywords
project
document
identification information
module
updated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110733065.7A
Other languages
Chinese (zh)
Other versions
CN113344549A (en
Inventor
许东学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Wondershare Software Co Ltd
Original Assignee
Shenzhen Wondershare Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Wondershare Software Co Ltd filed Critical Shenzhen Wondershare Software Co Ltd
Priority to CN202110733065.7A priority Critical patent/CN113344549B/en
Publication of CN113344549A publication Critical patent/CN113344549A/en
Application granted granted Critical
Publication of CN113344549B publication Critical patent/CN113344549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a project engineering document updating method, a project engineering document updating system, a project engineering document updating computer device and a project engineering document storage medium, and relates to the technical field of cross-platform project development. According to the method, unique identification information of a project module where the source file is located is obtained by calling an introspection auxiliary tool, the unique identification information is added to a project document corresponding to the project module, the unique identification information contains time stamp information, whether the project document needs to be updated or not is detected based on the introspection auxiliary tool, if the project document needs to be updated, internal identification information of the project document is updated, the internal identification information corresponds to the unique identification information, and the project document is obtained for project compiling. The embodiment of the application simplifies the operation of updating project engineering documents and improves the efficiency of project collaborative development.

Description

Project engineering document updating method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of cross-platform project development, in particular to a project engineering document updating method, a project engineering document updating device, computer equipment and a storage medium.
Background
In the process of cross-platform project development, changes to source files often cause some trouble to developers and collaborators. CMake is a commonly used construction tool in cross-platform project development, for example, a common scheme for importing source files with CMake as a project construction tool is: importing the source file according to a source file list or importing the source file according to a general matching mode such as a regular expression, when the source file changes, if the source file is imported according to the source file list, manually updating project engineering documents corresponding to a catalog where the source file is located each time the source file changes, such as configuration files (txt) files, so that developers and collaborators frequently change the configuration files, and configuration file conflicts are very easy to cause in project collaborative development; if the source file is imported according to a general matching mode such as a regular expression, the source file change under the general matching directory can be adapted in the mode, but because the CMake cannot perceive the change of the source file, each developer and each collaborator are required to reconstruct the project, and the project collaborative development process is low in efficiency.
In view of the foregoing, it is desirable to provide a project document updating method, apparatus, computer device, and storage medium that address the above-described drawbacks.
Disclosure of Invention
The embodiment of the invention provides a project engineering document updating method, a project engineering document updating device, computer equipment and a storage medium, which aim to solve the problems of low updating efficiency, complex operation and the like of the existing project engineering document.
In a first aspect, an embodiment of the present invention provides a project engineering document updating method applied to a CMake compiling tool to implement cross-platform compiling, including: when an instruction for starting project compiling is detected, calling an introspection auxiliary tool; acquiring unique identification information of a project module where the source file is located, and adding the unique identification information to a project document corresponding to the project module, wherein the unique identification information contains time stamp information; detecting whether the project engineering document needs to be updated or not; if the project engineering document needs to be updated, updating the internal identification information of the project engineering document, wherein the internal identification information corresponds to the unique identification information, and acquiring the project engineering document for project compiling.
In a second aspect, an embodiment of the present invention further provides a project engineering document update system applied to a CMake compiling tool to implement cross-platform compiling, including: the detection calling unit is used for calling the introspection auxiliary tool when detecting an instruction for starting project compiling; the method comprises the steps of obtaining unique identification information of a project module where a source file is located, and adding the unique identification information to a project document corresponding to the project module, wherein the unique identification information contains time stamp information; the detection unit is used for detecting whether the project engineering document needs to be updated or not; an updating unit for updating the internal identification information of the project document if the project document needs to be updated, wherein the internal identification information corresponds to the unique identification information; and the acquisition unit acquires the project engineering document for project compiling.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method when executing the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the above method.
The embodiment of the invention provides a project engineering document updating method, a project engineering document updating system, a computer device and a storage medium. According to the method, the introspection auxiliary tool is called to obtain the unique identification information of the project module where the source file is located, the unique identification information is added to the project document corresponding to the project module, the unique identification information contains time stamp information, whether the project document needs to be updated or not is detected based on the introspection auxiliary tool, if the project document needs to be updated, the internal identification information of the project document is updated, the internal identification information corresponds to the unique identification information, and the project document is obtained for project compiling. Before compiling the construction project, the embodiment of the invention acquires the unique identification information of the project module where the source file is located through an introspection auxiliary tool, adds the unique identification information into the project document, and updates the internal identification information of the project document. The method does not need developers and collaborators to frequently change configuration file, simplifies operation, and improves efficiency of project collaborative development based on automatically updated internal identification information of project engineering documents containing time stamps.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a project engineering document updating method provided by an embodiment of the invention;
FIG. 2 is a schematic sub-flowchart of a project engineering document updating method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another sub-process of a project document updating method according to an embodiment of the present invention;
FIG. 4 is a schematic view of another sub-process of a project document updating method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another sub-flowchart of a project document updating method according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a project engineering document updating system provided by an embodiment of the present invention;
FIG. 7 is a schematic block diagram of an acquisition and addition unit of the project engineering document updating system provided by the embodiment of the invention;
FIG. 8 is a schematic block diagram of a detection unit of a project engineering document updating system provided by an embodiment of the present invention;
FIG. 9 is a schematic block diagram of a first detection subunit of a project engineering document update system provided by an embodiment of the invention;
FIG. 10 is a schematic block diagram of an acquisition unit of a project engineering document updating system provided by an embodiment of the present invention;
FIG. 11 is another schematic block diagram of an acquisition unit of a project engineering document updating system provided by an embodiment of the present invention; the method comprises the steps of,
fig. 12 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Referring to fig. 1, fig. 1 is a flowchart illustrating a project engineering document updating method according to an embodiment of the invention. The project document updating method of the embodiment of the invention can be applied to intelligent terminal equipment such as portable computers, tablet computers and the like, and can be used for solving the problems of complex project document updating operation and low efficiency in the existing cross-platform project development by taking CMake as a project construction tool, simplifying the operation and improving the development efficiency. The project document updating method will be described in detail below. As shown in fig. 1, the method includes the following steps S110 to S150.
S110, calling an introspection auxiliary tool when an instruction for starting project compiling is detected;
in the embodiment of the invention, when a CMake is used as a project construction tool to develop a cross-platform project, and when an instruction for starting project compiling is detected, an introspection auxiliary tool is called to detect whether a project engineering document needs to be updated. In this embodiment, the introspection auxiliary tool is used to implement a function of detecting whether the project engineering document needs to be updated, where the introspection auxiliary tool may refer to a git tool, which is an open-source distributed version control tool, and may effectively and quickly process project version management from very small to very large, and may also refer to a tool that is developed by another user or that supports the function.
S120, acquiring unique identification information of a project module where the source file is located, and adding the unique identification information to a project document corresponding to the project module, wherein the unique identification information contains time stamp information;
in this embodiment, when the CMake is used as the project construction tool, there is a project document corresponding to the project module where the source file is located, where the project document and the source file are in the same-level directory, and in this embodiment, the project document is a configuration file (cmakelist. Txt) file of the CMake, and the configuration file is a script file of the CMake, once the content in the configuration file changes, the project construction tool CMake needs to reconstruct the entire project environment. And acquiring unique identification information of a project module where the source file is located through the introspection auxiliary tool, and adding the unique identification information to the project document, wherein the unique identification information contains time stamp information. When the project module where the source file is located is updated, the unique identification information containing the timestamp information is changed, so that the project document is updated. By adding the unique identification information of the project module where the source file is located to the project engineering document, the operation is simplified, and the project development efficiency is improved.
Referring to fig. 2, the step S120 includes steps S121-S122.
S121, acquiring the catalog name of the project module where the source file is located;
s122, adding a time stamp into the catalog name, and taking the catalog name containing time stamp information as the unique identification information.
In the embodiment of the invention, when the source file in one project module is changed, the directory name of the project module where the source file is located is also changed, the directory name of the project module where the source file is located is obtained, a time stamp is added in the directory name, and the directory name containing the time stamp information is used as the unique identification information. The change in the directory name is recorded with a timestamp and facilitates identifying the latest directory name. And taking the directory name added with the timestamp as the unique identification information, so that the item module where the changed source file is located can be conveniently identified according to the unique identification information.
S130, detecting whether the project engineering document needs to be updated. If the project engineering document needs to be updated, executing step S140; if the project file does not need to be updated, step S160 is performed.
In the embodiment of the invention, when the project module of the source file is changed, the project file needs to be updated, and when the project module of the source file is not changed, the project file does not need to be updated. The introspection auxiliary tool is used for detecting whether the project engineering document needs to be updated or not, so that operation is simplified, and development efficiency is improved. In other embodiments, the detection may also be performed by a human instead of an introspection aid.
Referring to fig. 3, the step S130 includes steps S131-S133.
S131, detecting whether a project module where a source file corresponding to the project engineering document is located is changed or not based on the introspection auxiliary tool;
s132, if a project module where a source file corresponding to the project document is located is changed, determining that the project document needs to be updated;
s133, if the project module of the source file corresponding to the project file does not have change, determining that the project file does not need to be updated.
In the embodiment of the invention, when the instruction for starting project compiling is detected, an introspection auxiliary tool is called to detect whether a project module of a source file corresponding to the project file is changed, wherein the module of the source file is a specific corresponding project module, the project module comprises a plurality of source files, and any source file in the project module is changed to cause the module to be changed. Because each project module corresponds to one project document, if the project module where the source file corresponding to the project document is located has a change, the project document is determined to need to be updated, and the project document is determined to need to be updated. And if the project module of the source file corresponding to the project engineering document does not have a change, determining that the project engineering document does not need to be updated.
Referring to fig. 4, the step S131 further includes steps S1311-S1313.
S1311, detecting whether a project module where a source file corresponding to the project engineering document is located has update, new addition or removal of the source file based on the introspection auxiliary tool;
s1312, if the project module where the source file corresponding to the project file is located has update, new addition or removal of the source file, determining that the project module where the source file corresponding to the project file is located has change;
s1313, if the project module where the source file corresponding to the project engineering document is located has update, new addition or removal of the source file, determining that the project module where the source file corresponding to the project engineering document is located has no change.
In the embodiment of the invention, any developer or collaborator updates, adds or removes a source file in cross-platform project development, before project compiling, an introspection auxiliary tool is called to detect whether a project module where a source file corresponding to a project document exists is updated, added or removed, if the project module where the source file corresponding to the project document exists, the project module where the source file corresponding to the project document exists is judged to have a change, and the project document needs to be updated, and if the project module where the source file corresponding to the project document exists is updated, added or removed, the project module where the source file corresponding to the project document exists is judged not to have a change, and the project document does not need to be updated.
And S140, if the project engineering document needs to be updated, updating the internal identification information of the project engineering document, wherein the internal identification information corresponds to the unique identification information.
In the embodiment of the invention, when the source file in the project module is changed, the project engineering document needs to be updated. Because the unique identification information of the project module where the source file is located is changed when the source file in the project module is changed, the internal identification information of the project document is automatically changed based on the one-to-one correspondence between the internal identification information of the project document and the unique identification information of the project module where the source file is located, and the internal identification information contains time stamp information.
S150, acquiring the project engineering document for project compiling.
In the embodiment of the invention, when the project document is detected to be updated based on the introspection auxiliary tool, if the project document is required to be updated, the internal identification information of the project document is updated, wherein the internal identification information corresponds to the unique identification information, the project document is acquired for project compiling, and a developer and a collaborator are not required to frequently change a configuration file in the process, so that the operation is simplified, and the efficiency of project collaborative development is improved based on the automatically updated internal identification information of the project document containing a time stamp.
Referring to fig. 5, the step S150 further includes steps S160-S170.
S160, calling an introspection module to enable the introspection module to check whether the project engineering document is updated or not.
In the embodiment of the present invention, the introspection module (zero_check) is a module for monitoring configuration files in the CMake, and the dependent introspection module for compiling engineering all_b uid of the whole project exists. If the configuration file changes, the introspection module may inform the compilation tool for compilation to reconstruct the entire engineering environment. In this embodiment, the introspection module is configured to check whether the project engineering document has an update. In the embodiment of the invention, because the internal identification information of the project engineering document contains timestamp information, the introspection module verifies whether the internal identification information of the project engineering document is updated or not through the internal identification information; if the project file does not have an update, step S170 is executed, and if the project file has an update, step S161 is executed.
S170, if the project engineering document does not have update, a compiling tool is called to compile the project corresponding to the project engineering document.
In the embodiment of the invention, if the internal identification information of the project engineering document is not updated, that is, a source file in cross-platform project development is updated, newly added or removed by any developer or collaborator, the internal identification information of the project engineering document is not updated, that is, the project engineering document is not changed, a compiling tool is called to compile the project corresponding to the project engineering document.
Referring to fig. 5, the step S160 further includes steps S161-S163.
S161, if the project engineering document is updated, acquiring the updated project engineering document;
s162, reconstructing an engineering project according to the updated project engineering document;
s163, calling a compiling tool to compile the reconstructed engineering project.
In the embodiment of the invention, if the internal identification information of the project engineering document is updated, the developer or the collaborator is indicated to update, add or remove the source file in cross-platform project development, the project engineering document changes, in order to avoid inconsistent project engineering documents in collaboration, a compiling tool cannot compile the inconsistent project engineering documents, the updated project engineering document needs to be obtained according to the internal identification information containing timestamp information, the project engineering document after updating is used for reconstructing a project, and a compiling tool is called for compiling the reconstructed project. Based on the design, developers or collaborators commonly develop the cross-platform project according to the updated project engineering document, so that conflicts in the development process are avoided, and the development efficiency is improved.
Compared with the prior art, the technical scheme provided by the invention comprises the steps of acquiring the unique identification information of the project module where the source file is located through the introspection auxiliary tool before compiling the construction project, adding the unique identification information into the project document, and updating the internal identification information of the project document. The method does not need developers and collaborators to frequently change configuration file, simplifies operation, and improves efficiency of project collaborative development based on automatically updated internal identification information of project engineering documents containing time stamps.
FIG. 6 is a schematic block diagram of a project engineering document updating system 200 provided by an embodiment of the invention. As shown in FIG. 6, the present invention also provides a project document updating system 200 corresponding to the above project document updating method. The project document update system 200 includes means for performing the project document update method described above, which can be configured in a terminal, applied to a CMake compilation tool to implement cross-platform compilation. Specifically, referring to fig. 6, the system 200 includes: the device comprises a detection calling unit 210, an acquisition adding unit 220, a detection unit 230, an updating unit 240 and an acquisition unit 250.
The detection calling unit 210 is configured to call an introspection auxiliary tool when detecting an instruction to start project compilation;
the obtaining and adding unit 220 is configured to obtain unique identification information of a project module where the source file is located, and add the unique identification information to a project document corresponding to the project module, where the unique identification information contains timestamp information;
the detecting unit 230 is configured to detect whether the project engineering document needs to be updated;
the updating unit 240 is configured to update internal identification information of the project document if the project document needs to be updated, where the internal identification information corresponds to the unique identification information.
The obtaining unit 250 is configured to obtain the project engineering document for project compiling.
In some embodiments, for example, in the present embodiment, as shown in fig. 7, the obtaining adding unit 220 further includes a first obtaining subunit 221 and an adding subunit 222.
The first obtaining subunit 221 is configured to obtain a directory name of an item module where the source file is located;
the adding subunit 222 is configured to add timestamp information to the directory name, and use the directory name containing timestamp information as the unique identification information.
In some embodiments, for example, in the present embodiment, as shown in fig. 8, the detecting unit 230 includes a first detecting subunit 231 and a determining subunit 232.
The first detection subunit 231 is configured to detect, based on the introspection auxiliary tool, whether a project module where a source file corresponding to the project document is located has a change;
the determining subunit 232 is configured to determine that the project engineering document needs to be updated if there is a change in a project module where the source file corresponding to the project engineering document is located.
In some embodiments, for example, in the present embodiment, as shown in fig. 9, the first detection subunit 231 further includes a second detection subunit 2311 and a determination subunit 2312.
The second detection subunit 2311 is configured to detect, based on the introspection auxiliary tool, whether a project module in which a source file corresponding to the project engineering document is located has update, addition, or removal of the source file;
the determining subunit 2312 is configured to determine that a project module where a source file corresponding to the project document is located has a change if the project module where the source file corresponding to the project document is located has an update, an addition, or an removal of the source file.
In some embodiments, for example, in the present embodiment, as shown in fig. 10, the obtaining unit 250 further includes a call checking subunit 260 and a first call compiling subunit 270.
The call checking subunit 260 is configured to call an introspection module to cause the introspection module to check whether the project engineering document has an update;
the first invoking and compiling subunit 270 is configured to invoke a compiling tool to compile the project corresponding to the project document if the project document has not been updated.
In some embodiments, for example, in the present embodiment, as shown in fig. 11, the obtaining unit 250 further includes a second obtaining subunit 261, a constructing subunit 262, and a second calling compiling subunit 263.
The second obtaining subunit 261 is configured to obtain the updated project document if there is an update in the project document;
the construction subunit 262 is configured to reconstruct an engineering project according to the updated project engineering document;
the second invoking and compiling subunit 263 is configured to invoke a compiling tool to compile the reconstructed engineering project.
It should be noted that, as will be clearly understood by those skilled in the art, the specific implementation process of the project engineering document updating system 200 and each unit may refer to the corresponding description in the foregoing method embodiments, and for convenience and brevity of description, the description is omitted here.
The project document update system described above may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 12.
Referring to fig. 12, fig. 12 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 300 is a terminal, and the terminal may be an electronic device with a communication function, such as a desktop computer, a laptop computer, a tablet computer, and the like.
With reference to FIG. 12, the computer device 300 includes a processor 302, a memory, and a network interface 305, which are connected by a system bus 301, wherein the memory may include a non-volatile storage medium 503 and an internal memory 304.
The non-volatile storage medium 303 may store an operating system 3031 and a computer program 3032. The computer program 3032, when executed, may cause the processor 302 to perform a project document update method.
The processor 302 is used to provide computing and control capabilities to support the operation of the overall computer device 300.
The internal memory 304 provides an environment for the execution of a computer program 3032 in the non-volatile storage medium 303, which computer program 3032, when executed by the processor 302, causes the processor 302 to perform a project document update method.
The network interface 305 is used for network communication with other devices. Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device 300 to which the present application is applied, and that a particular computer device 300 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 302 is configured to execute a computer program 3032 stored in a memory to implement the following steps: when an instruction for starting project compiling is detected, calling an introspection auxiliary tool; acquiring unique identification information of a project module where the source file is located, and adding the unique identification information to a project document corresponding to the project module, wherein the unique identification information contains time stamp information; detecting whether the project engineering document needs to be updated or not; if the project file needs to be updated, updating the internal identification information of the project file, wherein the internal identification information corresponds to the unique identification information; acquiring the project engineering document for project compiling; wherein, the introspection auxiliary tool is a git tool.
In some embodiments, for example, in this embodiment, when implementing the step of obtaining the unique identification information of the item module in which the source file is located, the specific implementation includes the following steps: acquiring the catalog name of the project module where the source file is located; and adding time stamp information into the directory name, and taking the directory name containing the time stamp information as the unique identification information.
In some embodiments, for example, the processor 302, when implementing the step of detecting whether the project engineering document needs to be updated, specifically implements the following steps: detecting whether a project module where a source file corresponding to the project engineering document is located is changed or not based on the introspection auxiliary tool; and if the project module where the source file corresponding to the project engineering document is located has a change, determining that the project engineering document needs to be updated.
In some embodiments, for example, in this embodiment, when implementing the step of detecting whether there is a change in a project module where a source file corresponding to the project document exists based on the introspection auxiliary tool, the processor 302 specifically includes the following steps: detecting whether a project module where a source file corresponding to the project engineering document is located has update, new addition or removal of the source file or not based on the introspection auxiliary tool; if the project module where the source file corresponding to the project engineering document is located has the update, the new addition or the removal of the source file, the project module where the source file corresponding to the project engineering document is located is judged to have the change.
In some embodiments, for example, the processor 302 further includes, when the step of obtaining the project document for project compiling, the following steps: invoking an introspection module to cause the introspection module to check whether the project engineering document is updated; and if the project engineering document does not have the update, calling a compiling tool to compile the project corresponding to the project engineering document.
In some embodiments, for example, the processor 302, after implementing the step of checking whether the project engineering document is updated by the introspection module, specifically implements the following steps: if the project engineering document is updated, acquiring the updated project engineering document; reconstructing an engineering project according to the updated project engineering document; and calling a compiling tool to compile the reconstructed engineering project.
It should be appreciated that in embodiments of the present application, the processor 302 may be a central processing unit (Central Processing Unit, CPU), the processor 302 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program may be stored in a storage medium that is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a plurality of computer programs which, when executed by at least one processor, respectively, implement various embodiments of the project document updating method of the above-described steps.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (7)

1. A project engineering document updating method applied to a CMake compiling tool to realize cross-platform compiling, the method comprising:
when an instruction for starting project compiling is detected, calling an introspection auxiliary tool;
acquiring unique identification information of a project module where a source file is located, and adding the unique identification information to a project document corresponding to the project module, wherein the unique identification information contains time stamp information;
acquiring the catalog name of the project module where the source file is located;
adding time stamp information into the catalog name, and taking the catalog name containing the time stamp information as the unique identification information;
detecting whether the project engineering document needs to be updated or not;
detecting whether a project module where a source file corresponding to the project engineering document is located is changed or not based on the introspection auxiliary tool;
if the project module where the source file corresponding to the project document is located has a change, determining that the project document needs to be updated;
if the project file needs to be updated, updating the internal identification information of the project file, wherein the internal identification information corresponds to the unique identification information;
acquiring the project engineering document for project compiling;
invoking an introspection module to cause the introspection module to check whether the project engineering document is updated;
and if the project engineering document does not have the update, calling a compiling tool to compile the project corresponding to the project engineering document.
2. The method of claim 1, wherein the step of detecting whether there is a change in a project module in which a source file corresponding to the project document is located based on the introspection auxiliary comprises:
detecting whether a project module where a source file corresponding to the project engineering document is located has update, new addition or removal of the source file or not based on the introspection auxiliary tool;
if the project module where the source file corresponding to the project engineering document is located has the update, the new addition or the removal of the source file, the project module where the source file corresponding to the project engineering document is located is judged to have the change.
3. The method of claim 1, wherein after the step of the introspection module verifying whether the project engineering document is updated, further comprising:
if the project engineering document is updated, acquiring the updated project engineering document;
reconstructing an engineering project according to the updated project engineering document;
and calling a compiling tool to compile the reconstructed engineering project.
4. The method of claim 1, wherein the introspection auxiliary tool is a git tool.
5. A project engineering document updating system applied to a CMake compiling tool to realize cross-platform compiling, the system comprising:
the detection calling unit is used for calling the introspection auxiliary tool when detecting an instruction for starting project compiling;
the method comprises the steps of obtaining unique identification information of a project module where a source file is located, and adding the unique identification information to a project document corresponding to the project module, wherein the unique identification information contains time stamp information;
the first acquisition subunit is used for acquiring the catalog names of the project modules where the source files are located;
an adding subunit, configured to add timestamp information to the directory name, and use the directory name that contains timestamp information as the unique identification information;
the detection unit is used for detecting whether the project engineering document needs to be updated or not;
the first detection subunit is used for detecting whether a project module where a source file corresponding to the project engineering document is located is changed or not based on the introspection auxiliary tool;
a determining subunit, configured to determine that the project engineering document needs to be updated if there is a change in a project module where a source file corresponding to the project engineering document is located;
the updating unit is used for updating the internal identification information of the project document if the project document needs to be updated, wherein the internal identification information corresponds to the unique identification information;
the acquisition unit is used for acquiring the project engineering document for project compiling;
a calling subunit, configured to call an introspection module to make the introspection module check whether the project engineering document has an update;
and the first compiling subunit is used for calling a compiling tool to compile the project corresponding to the project engineering document if the project engineering document does not have update.
6. A computer device, characterized in that it comprises a memory on which a computer program is stored and a processor which, when executing the computer program, implements the method according to any of claims 1-4.
7. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any of claims 1-4.
CN202110733065.7A 2021-06-30 2021-06-30 Project engineering document updating method and device, computer equipment and storage medium Active CN113344549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110733065.7A CN113344549B (en) 2021-06-30 2021-06-30 Project engineering document updating method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110733065.7A CN113344549B (en) 2021-06-30 2021-06-30 Project engineering document updating method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113344549A CN113344549A (en) 2021-09-03
CN113344549B true CN113344549B (en) 2024-03-26

Family

ID=77481760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110733065.7A Active CN113344549B (en) 2021-06-30 2021-06-30 Project engineering document updating method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113344549B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799437A (en) * 2012-07-18 2012-11-28 清华大学 Automatic generating method and device of compiling script
CN105224326A (en) * 2015-09-30 2016-01-06 北京恒华伟业科技股份有限公司 A kind of incremental deploying method of system code and device
CN110196840A (en) * 2019-05-22 2019-09-03 中至数据集团股份有限公司 Document management method, device, readable storage medium storing program for executing and computer equipment
CN111046311A (en) * 2019-12-17 2020-04-21 深圳前海环融联易信息科技服务有限公司 Method and device for realizing traceless iteration version of PC (personal computer) end, computer equipment and storage medium
CN111191176A (en) * 2019-12-24 2020-05-22 腾讯云计算(北京)有限责任公司 Website content updating method, device, terminal and storage medium
CN111221742A (en) * 2020-01-19 2020-06-02 中国平安人寿保险股份有限公司 Test case updating method and device, storage medium and server
CN111932207A (en) * 2020-08-06 2020-11-13 北京金山云网络技术有限公司 Project data processing method and device, computer equipment and storage medium
CN112347323A (en) * 2019-07-22 2021-02-09 小船出海教育科技(北京)有限公司 Document management method, document management apparatus, storage medium, and processor

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799437A (en) * 2012-07-18 2012-11-28 清华大学 Automatic generating method and device of compiling script
CN105224326A (en) * 2015-09-30 2016-01-06 北京恒华伟业科技股份有限公司 A kind of incremental deploying method of system code and device
CN110196840A (en) * 2019-05-22 2019-09-03 中至数据集团股份有限公司 Document management method, device, readable storage medium storing program for executing and computer equipment
CN112347323A (en) * 2019-07-22 2021-02-09 小船出海教育科技(北京)有限公司 Document management method, document management apparatus, storage medium, and processor
CN111046311A (en) * 2019-12-17 2020-04-21 深圳前海环融联易信息科技服务有限公司 Method and device for realizing traceless iteration version of PC (personal computer) end, computer equipment and storage medium
CN111191176A (en) * 2019-12-24 2020-05-22 腾讯云计算(北京)有限责任公司 Website content updating method, device, terminal and storage medium
CN111221742A (en) * 2020-01-19 2020-06-02 中国平安人寿保险股份有限公司 Test case updating method and device, storage medium and server
CN111932207A (en) * 2020-08-06 2020-11-13 北京金山云网络技术有限公司 Project data processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113344549A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
CN107729041B (en) Application program hot updating method, device, terminal and storage medium
EP3488337B1 (en) Shared software libraries for computing devices
EP3499364B1 (en) Method and device for loading kernel module
CN108196878B (en) Method and device for generating application program installation package, electronic equipment and storage medium
US20040054988A1 (en) Certification test suite
CN110659256A (en) Multi-computer room synchronization method, computing device and computer storage medium
CN111078637A (en) Script file online method and device, computer equipment and storage medium
CN111008034A (en) Patch generation method and device
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN107832403B (en) Directory file management method and device, electronic terminal and readable storage medium
CN112230947A (en) Upgrading method and upgrading system of operating system
US20120221890A1 (en) Mechanism for managing kernel application binary interface/application programming interface-based discrepancies relating to kernel packages
CN113344549B (en) Project engineering document updating method and device, computer equipment and storage medium
US10599424B2 (en) Committed program-code management
CN109032641B (en) Application version updating method and device
US10489137B1 (en) Software verification system and methods
US20150331772A1 (en) Methods for updating diagnostic tools on a hardware device and devices thereof
US20150178072A1 (en) Creating a prerequisite checklist corresponding to a software application
CN111273940B (en) Method and device for uploading program file to code warehouse
CN110727537A (en) Method and device for uniformly processing response message, computer equipment and storage medium
CN108133149B (en) Data protection method and device and electronic equipment
CN112379943A (en) Plug-in application method and device of Electron application program and storage medium
CN109213748B (en) Database script file updating method, server and medium
CN110825417A (en) Application program updating method and system
US20140372982A1 (en) Standardization of variable names in an integrated development environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20211123

Address after: 518000 1001, block D, building 5, software industry base, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Wanxing Software Co.,Ltd.

Address before: 518000 1002, block D, building 5, software industry base, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN SIBO TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant