CN113032003B - Development file export method, development file export device, electronic equipment and computer storage medium - Google Patents

Development file export method, development file export device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN113032003B
CN113032003B CN202110378678.3A CN202110378678A CN113032003B CN 113032003 B CN113032003 B CN 113032003B CN 202110378678 A CN202110378678 A CN 202110378678A CN 113032003 B CN113032003 B CN 113032003B
Authority
CN
China
Prior art keywords
code
export
software
development file
development
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
CN202110378678.3A
Other languages
Chinese (zh)
Other versions
CN113032003A (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 Saiante Technology Service Co Ltd
Original Assignee
Shenzhen Saiante Technology Service 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 Saiante Technology Service Co Ltd filed Critical Shenzhen Saiante Technology Service Co Ltd
Priority to CN202110378678.3A priority Critical patent/CN113032003B/en
Publication of CN113032003A publication Critical patent/CN113032003A/en
Application granted granted Critical
Publication of CN113032003B publication Critical patent/CN113032003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Abstract

The invention relates to research and development management technology, and discloses a development file export method, which comprises the following steps: acquiring a calling request of a software code, and analyzing the calling request to acquire code storage paths of a plurality of software codes; carrying out distributed extraction on codes of a plurality of software according to a code storage path to obtain a code set; compiling the code of each piece of software in the code set to obtain a development file set; acquiring an export requirement, extracting an export address in the export requirement, and selecting a target development file from a development file set according to the export requirement; and integrating and compiling the target development files into development files to be exported, and exporting the development files to be exported to an export address. In addition, the invention also relates to a block chain technology, and the derived demand can be stored in a node of the block chain. The invention also provides a development file export device, electronic equipment and a computer readable storage medium. The invention can solve the problem of low export efficiency of the development file.

Description

Development file export method, development file export device, electronic equipment and computer storage medium
Technical Field
The present invention relates to the field of development management technologies, and in particular, to a method and apparatus for exporting a development file, an electronic device, and a computer readable storage medium.
Background
With the rapid development of computer technology, the development requirements of various software are increased in an explosive manner, but the development efficiency is low due to the reprogramming development of each different development requirement, so that in order to improve the development efficiency, more and more companies export written development files with specific functions to copy the software functions.
The existing development file export mode is mainly to intercept and copy codes capable of realizing specific functions in software, and compile and generate a development file again by utilizing intercepted and copied codes and transmit the development file to a user. In the method, when more development files need to be exported, more functional code contents need to be intercepted and copied, and a large number of repeated steps exist in the intercepting and copying process, so that the exporting efficiency of the development files is low.
Disclosure of Invention
The invention provides a development file export method, a development file export device and a computer readable storage medium, and mainly aims to solve the problem of low export efficiency of development files.
In order to achieve the above object, the present invention provides a method for exporting a development file, comprising:
acquiring a calling request of a software code, and analyzing the calling request to acquire code storage paths of a plurality of software;
The codes of the plurality of software are extracted in a distributed mode according to the code storage path, and a code set is obtained;
compiling the code of each piece of software in the code set to obtain a development file set;
acquiring an export requirement, extracting an export address in the export requirement, and selecting a target development file from the development file set according to the export requirement;
and integrating and compiling the target development file into a development file to be exported, and exporting the development file to be exported to the export address.
Optionally, the parsing the call request to obtain code storage paths of a plurality of software includes:
performing structure division on the call request to obtain a request body of the call request;
and carrying out content analysis on the request body to obtain code storage paths of a plurality of software.
Optionally, the performing distributed extraction on the codes of the plurality of software according to the code storage path to obtain a code set includes:
inquiring codes of the plurality of software according to the code storage path;
code packaging is carried out on codes of the plurality of software respectively to obtain a plurality of code blocks;
And performing matrix decoding operation on the code blocks by using preset matrix blocks to obtain a code set.
Optionally, the performing distributed extraction on the codes of the plurality of software according to the code storage path to obtain a code set includes:
constructing a plurality of data interfaces containing initialization parameters;
performing parameter conversion on the code storage path to obtain a plurality of path parameters;
performing parameter assignment on the data interfaces by using the path parameters to obtain a plurality of data calling interfaces;
interface aggregation is carried out on the plurality of data call interfaces to obtain an aggregated data interface;
and carrying out distributed extraction on codes of the plurality of software by utilizing the aggregation data interface to obtain a code set.
Optionally, the aggregating the plurality of data call interfaces to obtain an aggregate data interface includes:
acquiring an interface aggregation class and a calling method class;
adding the calling method class to the plurality of data calling interfaces to obtain a plurality of unified method interfaces;
and carrying out interface aggregation on the plurality of unified method interfaces by utilizing the interface aggregation class to obtain an aggregated data interface.
Optionally, after compiling the code of each piece of software in the code set to obtain the development file set, the method further includes:
Constructing a visual interface;
and carrying out visualization processing on the development file set to obtain a visual interface containing the development file set.
Optionally, the extracting the export address in the export requirement, and selecting the target development file from the development file set according to the export requirement includes:
performing text recognition on the derived demand to obtain text content;
extracting a field from the text content to obtain a target field;
carrying out semantic analysis on the target field to obtain an export address and a file name;
and selecting a target development file from the development file set according to the file name.
In order to solve the above-mentioned problems, the present invention also provides a development file export apparatus, the apparatus comprising:
the request analysis module is used for acquiring a calling request of the software code and analyzing the calling request to acquire code storage paths of a plurality of software;
the code extraction module is used for carrying out distributed extraction on codes of the plurality of software according to the code storage path to obtain a code set;
the code compiling module is used for compiling the code of each piece of software in the code set to obtain a development file set;
The demand analysis module is used for acquiring an export demand, extracting an export address in the export demand, and selecting a target development file from the development file set according to the export demand;
and the file export module is used for integrating and compiling the target development file into a development file to be exported, and exporting the development file to be exported to the export address.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
a memory storing at least one instruction; and
And the processor executes the instructions stored in the memory to realize the development file export method.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium having stored therein at least one instruction that is executed by a processor in an electronic device to implement the development file exporting method described above.
According to the embodiment of the invention, the code storage paths of a plurality of software are acquired by analyzing the acquired call request, so that the runnability of codes in the subsequently generated developable file can be ensured; the codes of the plurality of software are extracted in a distributed mode according to the code storage path to obtain a code set, the gradual extraction of the plurality of software codes is avoided, the efficiency of acquiring the code set is improved, and the export efficiency of the development file is improved; the method has the advantages that codes of each piece of software in the code set are compiled into the development file set, corresponding development files are selected according to the export requirement to be integrated, compiled and exported, unified export of all generated development files is avoided, and a plurality of development files are integrated, compiled into one file to be exported, so that the development files required by a plurality of users can be exported at one time, and the export efficiency of the development files is improved. Therefore, the development file export method, the development file export device, the electronic equipment and the computer readable storage medium can solve the problem of low export efficiency of the development file.
Drawings
FIG. 1 is a flowchart illustrating a method for exporting a development file according to an embodiment of the present invention;
FIG. 2 is a flow chart of a distributed extraction method according to an embodiment of the present invention;
FIG. 3 is a functional block diagram of a development file exporting apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device for implementing the development file export method according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the application provides a development file export method. The execution subject of the development file exporting method includes, but is not limited to, at least one of a server, a terminal, and the like, which can be configured to execute the method provided by the embodiments of the present application. In other words, the development file exporting method may be performed by software or hardware installed on a terminal device or a server device, where the software may be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Referring to fig. 1, a flowchart of a development file export method according to an embodiment of the invention is shown. In this embodiment, the development file export method includes:
s1, acquiring a calling request of a software code, and analyzing the calling request to acquire code storage paths of a plurality of software codes.
In the embodiment of the invention, the call request may be a request for calling the code of the software. For example, a request to invoke code in shopping software that supports the goods source distribution function, a request to invoke code in payment software that faces the face.
In one embodiment of the present invention, the call request may be uploaded by the user. For example, the user uploads the call request through software which is pre-installed in the user side and can be used for calling the request by the mobile phone user, or the user inputs keywords of the narrative request in a preset webpage to generate a call request corresponding to the keywords.
In the embodiment of the invention, the acquired call request can be analyzed by utilizing a tool with a request analysis function such as an analyzer, so as to acquire the code storage paths of a plurality of software contained in the call request.
In detail, the parsing the call request to obtain code storage paths of a plurality of software includes:
Performing structure division on the call request to obtain a request body of the call request;
and carrying out content analysis on the request body to obtain code storage paths of a plurality of software.
Specifically, the call request is composed of a request header and a request body, detailed information (data name, storage path, etc.) of data to be called is recorded in the request body, and the embodiment of the invention can separate the request body from the call request by carrying out structural division on the call request, and uses a preset resolver to analyze the content of the request body so as to obtain code storage paths of a plurality of software recorded in the request body.
S2, carrying out distributed extraction on codes of the plurality of software according to the code storage path to obtain a code set.
In an actual application scenario of the present invention, since a plurality of software may be distributed in different computers or computer clusters, or a plurality of software may be distributed in different storage areas of the same computer or computer cluster, if codes of a plurality of software are extracted one by one respectively, the efficiency of obtaining the codes is low. Therefore, the codes of the plurality of software are required to be extracted in a distributed manner, so that the codes of the plurality of software are synchronously acquired, the efficiency of acquiring the code set is improved, and the export efficiency of the development file is further improved.
In the embodiment of the invention, the code of a plurality of software can be extracted in a distributed way by adopting an aggregation data interface. For example, a plurality of data interfaces capable of calling codes under each path are respectively constructed according to the code storage paths, and the plurality of data interfaces are aggregated into an aggregated data interface, so that the distributed extraction of codes of a plurality of software is realized by utilizing the aggregated data interface synchronously, and a code set is obtained.
In one embodiment of the present invention, the distributed extraction of the codes of multiple software may be implemented by using a pre-constructed matrix block, where the matrix block is a computer matrix capable of implementing coding or decoding of code data.
In detail, the performing distributed extraction on the codes of the plurality of software according to the code storage path to obtain a code set includes:
inquiring codes of the plurality of software according to the code storage path;
code packaging is carried out on codes of the plurality of software respectively to obtain a plurality of code blocks;
and performing matrix decoding operation on the code blocks by using preset matrix blocks to obtain a code set.
For example, there is software a, the codes of the software a are packed according to the storage path of the software a, and a code block containing the codes of the software a is generated, and the code block is a coded data block in which all the codes of the software a are aggregated, and has no readability.
The matrix block is utilized to realize distributed extraction of codes of a plurality of software, which is beneficial to improving the integrity of codes of each software in the acquired code set.
In another embodiment of the present invention, referring to fig. 2, the performing distributed extraction on codes of the plurality of software according to the code storage path to obtain a code set includes:
s21, constructing a plurality of data interfaces containing initialization parameters;
s22, performing parameter conversion on the code storage path to obtain a plurality of path parameters;
s23, performing parameter assignment on the data interfaces by using the path parameters to obtain a plurality of data calling interfaces;
s24, carrying out interface aggregation on the plurality of data call interfaces to obtain an aggregated data interface;
s25, carrying out distributed extraction on codes of the plurality of software by utilizing the aggregation data interface to obtain a code set.
In detail, the creation of the data interface of the plurality of initialization parameters may be implemented using a computer sentence having a data call interface creation function, for example, using an interface class in a java language.
Specifically, the parameter conversion is performed on the code storage path, that is, the code storage path is converted into a computer readable binary code by using coding and other modes, so as to obtain a plurality of path parameters in the form of binary codes, and the obtained path parameters are used for performing parameter assignment on a plurality of data interfaces containing initialization parameters, so as to obtain the data interfaces capable of calling codes of a plurality of software.
Further, the aggregating the plurality of data call interfaces to obtain an aggregate data interface includes:
acquiring an interface aggregation class and a calling method class;
adding the calling method class to the plurality of data calling interfaces to obtain a plurality of unified method interfaces;
and carrying out interface aggregation on the plurality of unified method interfaces by utilizing the interface aggregation class to obtain an aggregated data interface.
In detail, the interface aggregation class is a class used for aggregating data interfaces in a java language or a python language and other computer languages, and the calling method class is a class for realizing the calling of the data interfaces, and because a plurality of data calling interfaces are required to be aggregated into an aggregated data interface, the calling method class is required to be added into a plurality of data calling interfaces, the unification of the calling method classes for calling the data by the plurality of data interfaces is realized, so that the aggregated data interfaces formed by aggregation can realize the synchronous calling of codes of a plurality of software by using the calling method class.
According to the embodiment of the invention, the codes of the plurality of software are extracted in a distributed mode to obtain the code set, so that the efficiency of acquiring the code set can be improved, and the exporting efficiency of the development file is further improved.
And S3, compiling codes of each piece of software in the code set to obtain a development file set.
In an actual application scene, codes in the code set are all in a readable form but have no executable property, so that the codes of each piece of software in the code set need to be compiled to obtain a development file set for computer execution.
In detail, the development file set includes at least one development file, where the development file is a program file (for example, an arr file in Android) that can be executed and implements a corresponding function of software corresponding to the development file.
In the embodiment of the invention, the code of each piece of software in the code set can be compiled by utilizing an assembly task tool in the gradle platform to obtain the development file set.
In detail, the gradle platform is a portable and quick script tool, and an assembly task tool contained in the gradle tool can binary convert codes in a code set to realize compiling codes which do not have executable in the code set into development files corresponding to a plurality of software.
The efficiency of compiling codes can be improved by utilizing the portability of an assamble task tool in the gradle platform.
In another embodiment of the present invention, a preset compiler may be further adopted to compile the code of each piece of software in the code set to obtain a development file set, where the compiler includes but is not limited to: visual Studio compiler, devc++ compiler, IDE compiler.
In the embodiment of the present invention, after compiling the code of each piece of software in the code set to obtain the development file set, the method further includes:
constructing a visual interface;
and carrying out visualization processing on the development file set to obtain a visual interface containing the development file set.
In detail, the creation option of the visual interface in the maven project management tool can be utilized to realize the construction of the visual interface, and each development file in the development file set is subjected to visual processing in the form of an independent visual icon or visual table and stored in the created visual interface.
The development file set is subjected to visualization processing, personalized development file selection is facilitated for users according to requirements, personalized development file export is achieved, development files in the development file set are uniformly managed by using a maven project management tool, and efficiency of exporting the development files by the users is improved.
S4, obtaining a export requirement, extracting an export address in the export requirement, and selecting a target development file from the development file set according to the export requirement.
In the embodiment of the invention, the export requirement can be uploaded by a user, for example, the user uploads a computer sentence with a development file export function, and further extracts an export address in the export requirement through analysis of the computer sentence, and selects a target development file corresponding to the computer sentence from the development file set, wherein the export address refers to an address stored after the development file is exported.
Alternatively, a python statement with a data grabbing function may be used to grab a pre-stored export requirement from a pre-built blockchain node, and the efficiency of obtaining the export requirement may be improved by using the high throughput of the blockchain node.
In detail, the analysis of the computer sentence may be implemented by means of parsing the call request in step S1, so as to extract the derived address in the computer sentence, and select the target development file corresponding to the computer sentence from the development file set.
In an actual application scenario, a user often uses a text form to express or uses an image form to upload a export requirement, so that the export requirement needs to be analyzed to realize that a target development file corresponding to the export requirement expressed by using a file is selected from the development file set.
In an embodiment of the present invention, the extracting the export address in the export requirement, and selecting the target development file from the development file set according to the export requirement includes:
performing text recognition on the derived demand to obtain text content;
extracting a field from the text content to obtain a target field;
carrying out semantic analysis on the target field to obtain an export address and a file name;
and selecting a target development file from the development file set according to the file name.
In detail, different processes can be performed for different types of export requirements, for example, for text type export requirements, software with file processing functions such as Microsoft Offic can be used for text recognition to obtain text content of the export requirements; for the export requirement of the image form, an intelligent model with an image content recognition function such as an OCR model can be utilized for text recognition, so that the text content of the export requirement can be obtained.
Specifically, a preset regular expression may be used to perform field extraction on the text content to obtain a target field displayed according to a certain rule, for example, a target field for expressing an export address, which is displayed in the form of export to xxx, in the text content is obtained by using a pre-constructed regular expression.
Furthermore, models with semantic analysis functions such as NLP, LDA and the like can be adopted to carry out semantic analysis on the compensation fields, so that the export address and the file name of the target development file can be obtained according to the target field.
In detail, after the file name is obtained, a target development file consistent with the file name can be selected from a development file set according to the file name.
According to the embodiment of the invention, the export requirement is acquired, the export address in the export requirement is extracted, and the target development file is selected from the development file set according to the export requirement, so that the individual development files can be exported according to the export requirement, unified export of the development files is avoided, and the export efficiency of the development files is improved.
S5, integrating and compiling the target development file into a development file to be exported, and exporting the development file to be exported to the export address.
In the embodiment of the invention, the target development file can be integrated and compiled into the development file to be exported which can be transmitted at one time through the preset packaging tool, and the integrated and compiled development file with export is exported to the export address.
In detail, the packaging tool includes, but is not limited to, an ExeCreater file packager, a MYLEAKER file packager, and the like, and can be used for integrating and compiling a plurality of development files into one file to be exported so as to facilitate one-time exporting of the plurality of development files.
According to the embodiment of the invention, the code storage paths of a plurality of software are acquired by analyzing the acquired call request, so that the runnability of codes in the subsequently generated developable file can be ensured; the codes of the plurality of software are extracted in a distributed mode according to the code storage path to obtain a code set, the gradual extraction of the plurality of software codes is avoided, the efficiency of acquiring the code set is improved, and the export efficiency of the development file is improved; the method has the advantages that codes of each piece of software in the code set are compiled into the development file set, corresponding development files are selected according to the export requirement to be integrated, compiled and exported, unified export of all generated development files is avoided, and a plurality of development files are integrated, compiled into one file to be exported, so that the development files required by a plurality of users can be exported at one time, and the export efficiency of the development files is improved. Therefore, the development file export method provided by the invention can solve the problem of low export efficiency of the development file.
Fig. 3 is a functional block diagram of a development file exporting apparatus according to an embodiment of the present invention.
The development file exporting apparatus 100 according to the present invention may be installed in an electronic device. Depending on the implemented functionality, the development file exporting apparatus 100 may include a request parsing module 101, a code extracting module 102, a code compiling module 103, a requirement analyzing module 104, and a file exporting module 105. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the request parsing module 101 is configured to obtain a call request of a software code, and parse the call request to obtain code storage paths of a plurality of software codes.
In the embodiment of the invention, the call request may be a request for calling the code of the software. For example, a request to invoke code in shopping software that supports the goods source distribution function, a request to invoke code in payment software that faces the face.
In one embodiment of the present invention, the call request may be uploaded by the user. For example, the user uploads the call request through software which is pre-installed in the user side and can be used for calling the request by the mobile phone user, or the user inputs keywords of the narrative request in a preset webpage to generate a call request corresponding to the keywords.
In the embodiment of the invention, the acquired call request can be analyzed by utilizing a tool with a request analysis function such as an analyzer, so as to acquire the code storage paths of a plurality of software contained in the call request.
In detail, the request parsing module 101 is specifically configured to:
acquiring a calling request of a software code;
Performing structure division on the call request to obtain a request body of the call request;
and carrying out content analysis on the request body to obtain code storage paths of a plurality of software.
Specifically, the call request is composed of a request header and a request body, detailed information (data name, storage path, etc.) of data to be called is recorded in the request body, and the embodiment of the invention can separate the request body from the call request by carrying out structural division on the call request, and uses a preset resolver to analyze the content of the request body so as to obtain code storage paths of a plurality of software recorded in the request body.
The code extraction module 102 is configured to perform distributed extraction on codes of the plurality of software according to the code storage path, so as to obtain a code set.
In an actual application scenario of the present invention, since a plurality of software may be distributed in different computers or computer clusters, or a plurality of software may be distributed in different storage areas of the same computer or computer cluster, if codes of a plurality of software are extracted one by one respectively, the efficiency of obtaining the codes is low. Therefore, the codes of the plurality of software are required to be extracted in a distributed manner, so that the codes of the plurality of software are synchronously acquired, the efficiency of acquiring the code set is improved, and the export efficiency of the development file is further improved.
In the embodiment of the invention, the code of a plurality of software can be extracted in a distributed way by adopting an aggregation data interface. For example, a plurality of data interfaces capable of calling codes under each path are respectively constructed according to the code storage paths, and the plurality of data interfaces are aggregated into an aggregated data interface, so that the distributed extraction of codes of a plurality of software is realized by utilizing the aggregated data interface synchronously, and a code set is obtained.
In one embodiment of the present invention, the distributed extraction of the codes of multiple software may be implemented by using a pre-constructed matrix block, where the matrix block is a computer matrix capable of implementing coding or decoding of code data.
In detail, the code extraction module 102 is specifically configured to:
inquiring codes of the plurality of software according to the code storage path;
code packaging is carried out on codes of the plurality of software respectively to obtain a plurality of code blocks;
and performing matrix decoding operation on the code blocks by using preset matrix blocks to obtain a code set.
For example, there is software a, the codes of the software a are packed according to the storage path of the software a, and a code block containing the codes of the software a is generated, and the code block is a coded data block in which all the codes of the software a are aggregated, and has no readability.
The matrix block is utilized to realize distributed extraction of codes of a plurality of software, which is beneficial to improving the integrity of codes of each software in the acquired code set.
In another embodiment of the present invention, the code extraction module 102 is specifically configured to:
constructing a plurality of data interfaces containing initialization parameters;
performing parameter conversion on the code storage path to obtain a plurality of path parameters;
performing parameter assignment on the data interfaces by using the path parameters to obtain a plurality of data calling interfaces;
interface aggregation is carried out on the plurality of data call interfaces to obtain an aggregated data interface;
and carrying out distributed extraction on codes of the plurality of software by utilizing the aggregation data interface to obtain a code set.
In detail, the creation of the data interface of the plurality of initialization parameters may be implemented using a computer sentence having a data call interface creation function, for example, using an interface class in a java language.
Specifically, the parameter conversion is performed on the code storage path, that is, the code storage path is converted into a computer readable binary code by using coding and other modes, so as to obtain a plurality of path parameters in the form of binary codes, and the obtained path parameters are used for performing parameter assignment on a plurality of data interfaces containing initialization parameters, so as to obtain the data interfaces capable of calling codes of a plurality of software.
Further, the aggregating the plurality of data call interfaces to obtain an aggregate data interface includes:
acquiring an interface aggregation class and a calling method class;
adding the calling method class to the plurality of data calling interfaces to obtain a plurality of unified method interfaces;
and carrying out interface aggregation on the plurality of unified method interfaces by utilizing the interface aggregation class to obtain an aggregated data interface.
In detail, the interface aggregation class is a class used for aggregating data interfaces in a java language or a python language and other computer languages, and the calling method class is a class for realizing the calling of the data interfaces, and because a plurality of data calling interfaces are required to be aggregated into an aggregated data interface, the calling method class is required to be added into a plurality of data calling interfaces, the unification of the calling method classes for calling the data by the plurality of data interfaces is realized, so that the aggregated data interfaces formed by aggregation can realize the synchronous calling of codes of a plurality of software by using the calling method class.
According to the embodiment of the invention, the codes of the plurality of software are extracted in a distributed mode to obtain the code set, so that the efficiency of acquiring the code set can be improved, and the exporting efficiency of the development file is further improved.
The code compiling module 103 is configured to compile a code of each piece of software in the code set to obtain a development file set.
In an actual application scene, codes in the code set are all in a readable form but have no executable property, so that the codes of each piece of software in the code set need to be compiled to obtain a development file set for computer execution.
In detail, the development file set includes at least one development file, where the development file is a program file (for example, an arr file in Android) that can be executed and implements a corresponding function of software corresponding to the development file.
In the embodiment of the invention, the code of each piece of software in the code set can be compiled by utilizing an assembly task tool in the gradle platform to obtain the development file set.
In detail, the gradle platform is a portable and quick script tool, and an assembly task tool contained in the gradle tool can binary convert codes in a code set to realize compiling codes which do not have executable in the code set into development files corresponding to a plurality of software.
The efficiency of compiling codes can be improved by utilizing the portability of an assamble task tool in the gradle platform.
In another embodiment of the present invention, a preset compiler may be further adopted to compile the code of each piece of software in the code set to obtain a development file set, where the compiler includes but is not limited to: visual Studio compiler, devc++ compiler, IDE compiler.
In the embodiment of the present invention, the code compiling module 103 compiles the code of each piece of software in the code set to obtain a development file set, and then further includes the following steps:
constructing a visual interface;
and carrying out visualization processing on the development file set to obtain a visual interface containing the development file set.
In detail, the creation option of the visual interface in the maven project management tool can be utilized to realize the construction of the visual interface, and each development file in the development file set is subjected to visual processing in the form of an independent visual icon or visual table and stored in the created visual interface.
The development file set is subjected to visualization processing, personalized development file selection is facilitated for users according to requirements, personalized development file export is achieved, development files in the development file set are uniformly managed by using a maven project management tool, and efficiency of exporting the development files by the users is improved.
The requirement analysis module 104 is configured to obtain an export requirement, extract an export address in the export requirement, and select a target development file from the development file set according to the export requirement.
In the embodiment of the invention, the export requirement can be uploaded by a user, for example, the user uploads a computer sentence with a development file export function, and further extracts an export address in the export requirement through analysis of the computer sentence, and selects a target development file corresponding to the computer sentence from the development file set, wherein the export address refers to an address stored after the development file is exported.
Alternatively, a python statement with a data grabbing function may be used to grab a pre-stored export requirement from a pre-built blockchain node, and the efficiency of obtaining the export requirement may be improved by using the high throughput of the blockchain node.
In detail, the analysis of the computer sentence may be implemented by means of parsing the call request in step S1, so as to extract the derived address in the computer sentence, and select the target development file corresponding to the computer sentence from the development file set.
In an actual application scenario, a user often uses a text form to express or uses an image form to upload a export requirement, so that the export requirement needs to be analyzed to realize that a target development file corresponding to the export requirement expressed by using a file is selected from the development file set.
In an embodiment of the present invention, the requirement analysis module 104 is specifically configured to:
performing text recognition on the derived demand to obtain text content;
extracting a field from the text content to obtain a target field;
carrying out semantic analysis on the target field to obtain an export address and a file name;
and selecting a target development file from the development file set according to the file name.
In detail, different processes can be performed for different types of export requirements, for example, for text type export requirements, software with file processing functions such as Microsoft Offic can be used for text recognition to obtain text content of the export requirements; for the export requirement of the image form, an intelligent model with an image content recognition function such as an OCR model can be utilized for text recognition, so that the text content of the export requirement can be obtained.
Specifically, a preset regular expression may be used to perform field extraction on the text content to obtain a target field displayed according to a certain rule, for example, a target field for expressing an export address, which is displayed in the form of export to xxx, in the text content is obtained by using a pre-constructed regular expression.
Furthermore, models with semantic analysis functions such as NLP, LDA and the like can be adopted to carry out semantic analysis on the compensation fields, so that the export address and the file name of the target development file can be obtained according to the target field.
In detail, after the file name is obtained, a target development file consistent with the file name can be selected from a development file set according to the file name.
According to the embodiment of the invention, the export requirement is acquired, the export address in the export requirement is extracted, and the target development file is selected from the development file set according to the export requirement, so that the individual development files can be exported according to the export requirement, unified export of the development files is avoided, and the export efficiency of the development files is improved.
The file export module 105 is configured to integrate and compile the target development file into a development file to be exported, and export the development file to be exported to the export address.
In the embodiment of the invention, the target development file can be integrated and compiled into the development file to be exported which can be transmitted at one time through the preset packaging tool, and the integrated and compiled development file with export is exported to the export address.
In detail, the packaging tool includes, but is not limited to, an ExeCreater file packager, a MYLEAKER file packager, and the like, and can be used for integrating and compiling a plurality of development files into one file to be exported so as to facilitate one-time exporting of the plurality of development files.
According to the embodiment of the invention, the code storage paths of a plurality of software are acquired by analyzing the acquired call request, so that the runnability of codes in the subsequently generated developable file can be ensured; the codes of the plurality of software are extracted in a distributed mode according to the code storage path to obtain a code set, the gradual extraction of the plurality of software codes is avoided, the efficiency of acquiring the code set is improved, and the export efficiency of the development file is improved; the method has the advantages that codes of each piece of software in the code set are compiled into the development file set, corresponding development files are selected according to the export requirement to be integrated, compiled and exported, unified export of all generated development files is avoided, and a plurality of development files are integrated, compiled into one file to be exported, so that the development files required by a plurality of users can be exported at one time, and the export efficiency of the development files is improved. Therefore, the development file export device provided by the invention can solve the problem of low export efficiency of development files.
Fig. 4 is a schematic structural diagram of an electronic device for implementing a method for exporting a development file according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as a development file exporter 12, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only for storing application software installed in the electronic device 1 and various types of data, such as code of the development file exporter 12, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects respective components of the entire electronic device using various interfaces and lines, executes or executes programs or modules (for example, development file exporters, etc.) stored in the memory 11, and invokes data stored in the memory 11 to perform various functions of the electronic device 1 and process data.
The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 4 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 4 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
The electronic device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The development file exporter 12 stored in the memory 11 of the electronic device 1 is a combination of instructions that, when executed in the processor 10, may implement:
acquiring a calling request of a software code, and analyzing the calling request to acquire code storage paths of a plurality of software;
the codes of the plurality of software are extracted in a distributed mode according to the code storage path, and a code set is obtained;
Compiling the code of each piece of software in the code set to obtain a development file set;
acquiring an export requirement, extracting an export address in the export requirement, and selecting a target development file from the development file set according to the export requirement;
and integrating and compiling the target development file into a development file to be exported, and exporting the development file to be exported to the export address.
Specifically, the specific implementation method of the above instruction by the processor 10 may refer to descriptions of related steps in the corresponding embodiments of fig. 1 to 4, which are not repeated herein.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, can implement:
acquiring a calling request of a software code, and analyzing the calling request to acquire code storage paths of a plurality of software;
the codes of the plurality of software are extracted in a distributed mode according to the code storage path, and a code set is obtained;
compiling the code of each piece of software in the code set to obtain a development file set;
acquiring an export requirement, extracting an export address in the export requirement, and selecting a target development file from the development file set according to the export requirement;
and integrating and compiling the target development file into a development file to be exported, and exporting the development file to be exported to the export address.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module 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 units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (8)

1. A method of developing a file export, the method comprising:
acquiring a calling request of a software code, and analyzing the calling request to acquire code storage paths of a plurality of software;
the codes of the plurality of software are extracted in a distributed mode according to the code storage path, and a code set is obtained;
compiling the code of each piece of software in the code set to obtain a development file set;
acquiring an export requirement, extracting an export address in the export requirement, and selecting a target development file from the development file set according to the export requirement;
integrating and compiling the target development file into a development file to be exported, and exporting the development file to be exported to the export address;
the distributed extraction of the codes of the plurality of software according to the code storage path to obtain a code set includes: inquiring codes of the plurality of software according to the code storage path, respectively packaging the codes of the plurality of software to obtain a plurality of code blocks, and performing matrix decoding operation on the code blocks by using a preset matrix block to obtain a code set; alternatively, it includes:
Constructing a plurality of data interfaces containing initialization parameters, performing parameter conversion on the code storage path to obtain a plurality of path parameters, performing parameter assignment on the data interfaces by using the plurality of path parameters to obtain a plurality of data calling interfaces, performing interface aggregation on the plurality of data calling interfaces to obtain an aggregate data interface, and performing distributed extraction on codes of the plurality of software by using the aggregate data interface to obtain a code set.
2. The development file exporting method of claim 1, wherein said parsing the call request to obtain code storage paths for a plurality of software comprises:
performing structure division on the call request to obtain a request body of the call request;
and carrying out content analysis on the request body to obtain code storage paths of a plurality of software.
3. The method for exporting a development file according to claim 1, wherein the aggregating the plurality of data call interfaces to obtain an aggregated data interface comprises:
acquiring an interface aggregation class and a calling method class;
adding the calling method class to the plurality of data calling interfaces to obtain a plurality of unified method interfaces;
And carrying out interface aggregation on the plurality of unified method interfaces by utilizing the interface aggregation class to obtain an aggregated data interface.
4. The method for exporting a development file according to claim 1, wherein after compiling the code of each piece of software in the code set to obtain the development file set, the method further comprises:
constructing a visual interface;
and carrying out visualization processing on the development file set to obtain a visual interface containing the development file set.
5. The development file exporting method according to any one of claims 1 to 4, wherein the extracting an export address in the export requirement, and selecting a target development file from the development file set according to the export requirement, comprises:
performing text recognition on the derived demand to obtain text content;
extracting a field from the text content to obtain a target field;
carrying out semantic analysis on the target field to obtain an export address and a file name;
and selecting a target development file from the development file set according to the file name.
6. A development file exporting apparatus for performing the development file exporting method according to any one of claims 1 to 5, characterized in that the apparatus comprises:
The request analysis module is used for acquiring a calling request of the software code and analyzing the calling request to acquire code storage paths of a plurality of software;
the code extraction module is used for carrying out distributed extraction on codes of the plurality of software according to the code storage path to obtain a code set;
the code compiling module is used for compiling the code of each piece of software in the code set to obtain a development file set;
the demand analysis module is used for acquiring an export demand, extracting an export address in the export demand, and selecting a target development file from the development file set according to the export demand;
and the file export module is used for integrating and compiling the target development file into a development file to be exported, and exporting the development file to be exported to the export address.
7. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the development file exporting method according to any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the development file derivation method of any one of claims 1 to 5.
CN202110378678.3A 2021-04-08 2021-04-08 Development file export method, development file export device, electronic equipment and computer storage medium Active CN113032003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110378678.3A CN113032003B (en) 2021-04-08 2021-04-08 Development file export method, development file export device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110378678.3A CN113032003B (en) 2021-04-08 2021-04-08 Development file export method, development file export device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN113032003A CN113032003A (en) 2021-06-25
CN113032003B true CN113032003B (en) 2024-04-02

Family

ID=76454287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110378678.3A Active CN113032003B (en) 2021-04-08 2021-04-08 Development file export method, development file export device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113032003B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165021A (en) * 2018-08-02 2019-01-08 中国联合网络通信集团有限公司 Interface Isolation Management method, apparatus, equipment and storage medium
CN110297944A (en) * 2019-07-02 2019-10-01 中国工商银行股份有限公司 Distributed XML data processing method and system
WO2020151468A1 (en) * 2019-01-22 2020-07-30 岳秀兰 Vehicle remote driving system established by primary and secondary wireless devices by means of internet of things connection
CN112422681A (en) * 2020-11-18 2021-02-26 中盈优创资讯科技有限公司 Cross-platform distributed communication calling method and device
CN112486490A (en) * 2020-12-15 2021-03-12 平安银行股份有限公司 Front-end code packaging method and device, electronic equipment and storage medium
CN112534452A (en) * 2018-05-06 2021-03-19 强力交易投资组合2018有限公司 Method and system for improving machines and systems for automatically performing distributed ledger and other transactions in spot and forward markets for energy, computing, storage, and other resources

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8857703B2 (en) * 2012-02-15 2014-10-14 International Business Machines Corporation Mapping an image to an object using a matrix code
US10846369B2 (en) * 2012-05-25 2020-11-24 Medworth, LLC System and method for visual analysis of healthcare claims
US10908892B2 (en) * 2019-03-12 2021-02-02 International Business Machines Corporation Generating and deploying object code files compiled on build machines

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112534452A (en) * 2018-05-06 2021-03-19 强力交易投资组合2018有限公司 Method and system for improving machines and systems for automatically performing distributed ledger and other transactions in spot and forward markets for energy, computing, storage, and other resources
CN109165021A (en) * 2018-08-02 2019-01-08 中国联合网络通信集团有限公司 Interface Isolation Management method, apparatus, equipment and storage medium
WO2020151468A1 (en) * 2019-01-22 2020-07-30 岳秀兰 Vehicle remote driving system established by primary and secondary wireless devices by means of internet of things connection
CN110297944A (en) * 2019-07-02 2019-10-01 中国工商银行股份有限公司 Distributed XML data processing method and system
CN112422681A (en) * 2020-11-18 2021-02-26 中盈优创资讯科技有限公司 Cross-platform distributed communication calling method and device
CN112486490A (en) * 2020-12-15 2021-03-12 平安银行股份有限公司 Front-end code packaging method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BeeGFS并行文件系统性能优化技术研究;宋振龙 等;《计算机工程与科学》;第42卷(第10期);1765-1773 *
Brain Computer Interface Approach using Sensor Covariance Matrix with Forced Whitening;Hyuksoo Shin 等;《2017 5th International Winter Conference on Brain-Computer Interface (BCI)》;66-68 *

Also Published As

Publication number Publication date
CN113032003A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
US11422778B2 (en) Development environment for real-time dataflow programming language
US10613844B2 (en) Using comments of a program to provide optimizations
CN112015430A (en) JavaScript code translation method and device, computer equipment and storage medium
CN112085217B (en) Method, device, equipment and computer medium for deploying artificial intelligence service
CN112579098B (en) Software release method and device, electronic equipment and readable storage medium
CN107506256A (en) A kind of method and apparatus of crash data monitoring
CN113238929A (en) Code testing method and device based on Mock data, electronic equipment and storage medium
CN115202639A (en) Code generation method, device, equipment and storage medium based on custom module
CN115129753A (en) Data blood relationship analysis method and device, electronic equipment and storage medium
CN112486490B (en) Front-end code packaging method and device, electronic equipment and storage medium
CN113360139A (en) Integration method and device of front-end frame, electronic equipment and storage medium
CN115392443B (en) Pulse neural network application representation method and device of brain-like computer operating system
CN113032003B (en) Development file export method, development file export device, electronic equipment and computer storage medium
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN115640279A (en) Method and device for constructing data blood relationship
CN112214256B (en) Machine learning operation control method and device, electronic equipment and storage medium
CN114398282A (en) Test script generation method, device, equipment and storage medium
CN115033489A (en) Code resource detection method and device, electronic equipment and storage medium
CN113822215A (en) Equipment operation guide file generation method and device, electronic equipment and storage medium
CN112527443A (en) Prompt box display method and device, electronic equipment and computer readable storage medium
CN114564413B (en) Synchronous equipment testing method and device
CN112596717B (en) Multi-data packing method, device, electronic equipment and computer readable storage medium
CN114969099A (en) SQL script generation method, device, equipment and storage medium based on Java language
CN114860252A (en) Code unified compiling method and device, electronic equipment and readable storage medium
CN116975476A (en) Multi-channel medical service access method and device, electronic equipment and medium

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
TA01 Transfer of patent application right

Effective date of registration: 20211019

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: Shenzhen saiante Technology Service Co.,Ltd.

Address before: 1-34 / F, Qianhai free trade building, 3048 Xinghai Avenue, Mawan, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong 518000

Applicant before: Ping An International Smart City Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant