CN106990944B - Code resource management method, device and system - Google Patents

Code resource management method, device and system Download PDF

Info

Publication number
CN106990944B
CN106990944B CN201610039225.7A CN201610039225A CN106990944B CN 106990944 B CN106990944 B CN 106990944B CN 201610039225 A CN201610039225 A CN 201610039225A CN 106990944 B CN106990944 B CN 106990944B
Authority
CN
China
Prior art keywords
code resource
code
resource file
resource
information
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
CN201610039225.7A
Other languages
Chinese (zh)
Other versions
CN106990944A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610039225.7A priority Critical patent/CN106990944B/en
Publication of CN106990944A publication Critical patent/CN106990944A/en
Application granted granted Critical
Publication of CN106990944B publication Critical patent/CN106990944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Abstract

The embodiment of the application discloses a method, a device and a system for managing code resources, wherein the method comprises the following steps: acquiring a code resource file and attribute information thereof; determining the granularity information of the code resource file according to the attribute information of the code resource file; storing the code resource file according to the granularity information of the code resource file; receiving a resource management request for managing the code resource file sent by a user; according to the resource management request, determining a first code resource file corresponding to the resource management request from the stored code resource files; operating on the first code resource file. The code resource management method, the device and the system provided by the embodiment of the application can improve the reusability of code resources.

Description

Code resource management method, device and system
Technical Field
The present application relates to the field of computer data information management technologies, and in particular, to a method, an apparatus, and a system for managing code resources.
Background
In the Development of software in an Integrated Development Environment (IDE), there are usually many codes that can be reused, such as: the method comprises the following steps of designing mode class codes, codes with similar services and the like, wherein developers may need to repeatedly write codes with the same structure and even the same content under different scenes, and the code resources can be conveniently and repeatedly used through effective management of the code resources.
Existing methods for managing code resources include methods that use project management tools, such as Maven, coco posts, and other project management tools. Where Maven is a Project Management tool that contains a Project Object Model (Project Object Model), a set of criteria, a Project Lifecycle (Project Lifecycle), a Dependency Management System (Dependency Management System), and logic to run objects that define the plug-in the Lifecycle phase. Using Maven, an item can be described with a well-defined item object model, and then Maven can apply the transection logic from a set of shared (or custom) plug-ins. CocoaPods can solve the dependency relationship between libraries, download the source code of the libraries, and create a workbench (work area) of Xcode (Xcode is an integrated development tool running on an operating system Mac OS X) to connect the third-party library with the engineering project of the developer for development and use by the developer.
However, the existing project management tool for code resource management has a management granularity of "library", and when a developer reuses a code resource, only the code of the whole library can be reused, but not a project template or a code fragment.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and a system for managing code resources, so as to improve reusability of the code resources.
To solve the foregoing technical problem, an embodiment of the present application provides a code resource management method and system, which are implemented as follows:
a code resource management method, comprising:
acquiring a code resource file and attribute information thereof;
determining the granularity information of the code resource file according to the attribute information of the code resource file;
storing the code resource file according to the granularity information of the code resource file;
receiving a resource management request for managing the code resource file sent by a user;
according to the resource management request, determining a first code resource file corresponding to the resource management request from the stored code resource files; operating on the first code resource file.
A code resource management system, comprising: at least one code resource library, a code resource management device and at least one development tool; wherein the content of the first and second substances,
the code resource library is used for storing code resource files input by different users; the code resource library is also used for receiving an updating request sent by the code resource management device and generating feedback information according to the updating request; the feedback information includes: resource file update information, or, a first report indicating no update; the code resource library is also used for sending the resource file corresponding to the resource file updating information to the code resource management device;
the code resource management device is used for acquiring a code resource file and attribute information thereof, determining granularity information of the code resource file according to the attribute information of the code resource file, and storing the code resource file according to the granularity information of the code resource file; the code resource management device is also used for receiving a resource management request sent by a user for managing the code resource file; according to the resource management request, determining a first code resource file corresponding to the resource management request from the stored code resource files; operating on the first code resource file; the operations include: and installing or updating the first resource file into a specified path of a development tool, or uninstalling the first resource file from the specified path of the development tool.
A code resource management apparatus comprising: the system comprises a code resource file acquisition module, a granularity information determination module, a storage module, a resource management request receiving module and a management operation module; wherein the content of the first and second substances,
the code resource file acquisition module is used for acquiring the code resource file and the attribute information thereof; the attribute information includes: the name, version information and file format of the code resource file;
the granularity information determining module is used for determining the granularity information of the code resource file according to the attribute information of the code resource file acquired by the code resource file acquiring module;
the storage module is used for storing the code resource file according to the granularity information of the code resource file determined by the granularity information determining module;
the resource management request receiving module is used for receiving a resource management request sent by a user for managing the code resource file; the resource management request includes: resource file granularity information, resource file names, resource file version information and management operation information; the operation information includes: operation content and a specified path; the operations include: install, update, or uninstall;
the management operation module is used for determining a first code resource file corresponding to the resource management request from the code resource files stored by the storage module according to the resource management request received by the resource management request receiving module; operating on the first code resource file.
According to the technical scheme provided by the embodiment of the application, the code resource management method, the device and the system provided by the embodiment of the application manage the code resource files according to different granularities, and the code resource files with different granularities can be provided according to different requirements of users by dividing the granularity of the code resource files, so that the reusability of code resources is improved, and the normalization of the code resources can also be improved. According to the code resource management method, developers are used as service objects, and the developers can be ensured to use conveniently. Meanwhile, the code resource files are managed by carrying out granularity division, so that the use of the code resource files is not limited to the use of the whole project level, and the operation of developers can be more convenient.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a flow chart of one embodiment of a code resource management method of the present application;
FIG. 2 is a block diagram of one embodiment of a code asset management system according to the present application;
FIG. 3 is a block diagram of an embodiment of a code resource management apparatus according to the present application.
Detailed Description
The embodiment of the application provides a code resource management method, a device and a system.
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
FIG. 1 is a flowchart of an embodiment of a code resource management method according to the present application. As shown in fig. 1, the code resource management method may include:
s101: and acquiring the code resource file and the attribute information thereof.
The code resource management apparatus may acquire the code resource file and attribute information thereof. The attribute information may include: and the name, the version information and the file format of the code resource file.
The code resource file may be obtained from a code resource library. One code resource management device may correspond to one or more code resource libraries. The code resource library may be used to store code resource files written by developers.
S102: and determining the granularity information of the code resource file according to the attribute information of the code resource file.
The granularity information may be used to partition the code resource file. For example, the granularity information may include: project templates, file templates, or code fragments. By dividing the code resource file into different granularities, the code resource file with different granularities can be provided according to different requirements of users. For example, the user may reuse the code of the project template as many times as necessary, or may reuse a code segment in the project template as necessary. Therefore, this technique can improve reusability of code resources and can also improve normalization of code resources.
And determining the granularity information of the code resource file according to the attribute information of the code resource file. Specifically, the file format and the granularity information may have a preset correspondence. And determining the granularity information of the code resource file according to the file format of the code resource file.
S103: and storing the code resource file according to the granularity information of the code resource file.
The code resources may be stored according to granularity information of the code resources. For example, code resource files with the same granularity information may be stored in the same path.
S104: and receiving a resource management request for managing the code resource file sent by a user.
The code resource management device can receive a resource management request sent by a user for managing the code resource file.
The resource management request may include: resource file granularity information, resource file names, resource file version information, management operation information and the like.
According to the resource file granularity information, the resource file name and the resource file version information, the required code resource file can be found.
The management operation information may be used to describe an operation on the found code resource file.
The operation information may include: operation content and a specified path.
The operation content may include: install, update, or uninstall. The mounting may be: and storing the code resource file to a specified path. The update may be: and storing the updated code resource file to the specified path. The unloading may be: and deleting the code resource file from the specified path.
The specified path may be an address of a specified development tool for storing the code resource file.
S105: according to the resource management request, determining a first code resource file corresponding to the resource management request from code resource files stored by the storage module; operating on the first code resource file.
According to the resource management request, a first code resource file corresponding to the resource management request can be determined from the code resource files stored by the storage module. Specifically, the first code resource file may be determined according to at least one item of information of resource file granularity information, resource file name, and resource file version information of the resource management request.
The first code resource file may be operated on in accordance with the resource management request. The method specifically comprises the following steps: and installing or updating the first resource file into a specified path of a specified development tool, or uninstalling the first resource file from the specified path of the specified development tool.
One code resource management apparatus may correspond to one or more development tools. For example, one resource file may be installed in the formulated paths of a plurality of development tools, respectively.
In another embodiment, the method may further comprise: and receiving a resource synchronization command sent by a user, and updating the stored code resource file according to the resource synchronization command.
Specifically, the method may include:
firstly, a resource synchronization command sent by a user can be received; the resource synchronization command may include resource pool information to be synchronized. For example, the address of the resource pool to be synchronized, or the name of the resource pool to be synchronized may be included.
Then, an update request may be sent to the resource pool to be synchronized, and feedback information sent from the resource pool to be synchronized is received.
The update request may be used to query the repository to be synchronized as to whether a code resource file is to be updated. The feedback information may include: resource file update information, or a first report indicating that the resource file was not updated. And the resource file updating information is used for describing the code resource file which is changed in the resource library to be synchronized. The resource file update information may include: a code resource file to be processed and a corresponding processing mode. The processing mode may include: addition, modification and deletion. For example: a newly added code resource file, a modified code resource file, or a deleted code resource file.
And finally, operating the stored code resource file corresponding to the resource file updating information according to the resource file updating information. Specifically, when the to-be-processed mode is newly added, the to-be-processed code resource file can be acquired and stored; when the to-be-processed mode is modification, the to-be-processed code resource file can be obtained, and the to-be-processed code resource file is covered with a corresponding original code resource file, namely a first code resource file; when the pending mode is deletion, the stored code resource file to be processed may be deleted.
The code resource management method provided by the above embodiment manages the code resource file according to different granularities, and by performing granularity division on the code resource file, the code resource file with different granularities can be provided according to different needs of a user, so that reusability of code resources is improved, and normalization of the code resources can also be improved. The code resource management method is different from the existing project management tool which takes the project as the service object, and the code resource management method takes the developer as the service object, so that the developer can be ensured to use conveniently. Meanwhile, the code resource files are managed by carrying out granularity division, so that the use of the code resource files is not limited to the use of the whole project level, and the operation of developers can be more convenient.
Embodiments of code resource management systems of the present application are received below. FIG. 2 is a block diagram of an embodiment of a code resource management system according to the present application. As shown in fig. 2, the code resource management system may include: at least one code resource library 100, a code resource management apparatus 200, and at least one development tool 300.
The code resource library 100 may be used to store code resource files input by different users. The code resource library 100 may be further configured to receive an update request sent by the code resource management apparatus 200, and generate feedback information according to the update request. The update request may be used to query the repository to be synchronized as to whether a code resource file is to be updated. The feedback information may include: the resource file update information, or, alternatively, for indicating a first report with no updates. The code resource library 100 may also be configured to send a resource file corresponding to the resource file update information to the code resource management device 200.
The code resource management device 200 may be configured to obtain a code resource file and attribute information thereof, determine granularity information of the code resource file according to the attribute information of the code resource file, and store the code resource file according to the granularity information of the code resource file. The code resource management device 200 may be further configured to receive a resource management request sent by a user to manage the code resource file; according to the resource management request, determining a first code resource file corresponding to the resource management request from the stored code resource files; operating on the first code resource file. The operations include: installing or updating the first resource file into the specified path of the development tool 300, or uninstalling the first resource file from the specified path of the development tool 300.
The resource management device 200 may be further configured to receive a resource synchronization command sent by a user, where the resource synchronization command includes resource library information to be synchronized; according to the resource synchronization command, sending an update request to the resource library to be synchronized, and receiving feedback information sent by the resource library to be synchronized; and updating the code resource file in the resource management device 200 according to the feedback information.
FIG. 3 is a block diagram of an embodiment of a code resource management apparatus according to the present application. As shown in fig. 2, the code resource management apparatus 200 may include: a code resource file obtaining module 201, a granularity information determining module 202, a storage module 203, a resource management request receiving module 204 and a management operation module 205. Wherein the content of the first and second substances,
the code resource file obtaining module 201 may be configured to obtain a code resource file and attribute information thereof. The attribute information may include: and the name, the version information and the file format of the code resource file.
The granularity information determining module 202 may be configured to determine the granularity information of the code resource file according to the attribute information of the code resource file acquired by the code resource file acquiring module 201. Specifically, the file format and the granularity may have a preset correspondence. And determining the granularity information of the code resource file according to the file format of the code resource file. The granularity information may include: project templates, file templates, or code fragments.
The storage module 203 may be configured to store the code resource file according to the granularity information of the code resource file determined by the granularity information determining module 202.
The resource management request receiving module 204 may be configured to receive a resource management request sent by a user to manage the code resource file. The resource management request may include: resource file granularity information, resource file names, resource file version information, management operation information and the like. The management operation information may be used to describe an operation on the found resource management file. The operation information may include: operation content and a specified path. The operations may include: install, update, or uninstall. The specified path may be an address of a specified development tool for storing the code resource file.
The management operation module 205 may be configured to determine, according to the resource management request received by the resource management request receiving module 204, a first code resource file corresponding to the resource management request in the storage module 203 from the code resource files stored in the storage module 203; operating on the first code resource file. Specifically, the first code resource file may be determined according to at least one item of information of resource file granularity information, resource file name, and resource file version information of the resource management request. And installing or updating the first resource file into a specified path of a specified development tool, or uninstalling the first resource file from the specified path of the specified development tool.
In another embodiment, the code resource management apparatus may further include: and the synchronization module is configured to receive a resource synchronization command sent by a user, and update the code resource file in the storage module 203 according to the resource synchronization command.
The embodiment of the resource management apparatus disclosed in the foregoing embodiment corresponds to the embodiment of the method disclosed in the present application, and the embodiment of the method of the present application can be implemented, and the technical effect of the embodiment of the method can be achieved, which is not described herein again.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip 2. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardsradware (Hardware Description Language), vhjhd (Hardware Description Language), and vhigh-Language, which are currently used in most popular applications. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. With this understanding in mind, the present solution, or portions thereof that contribute to the prior art, may be embodied in the form of a software product, which in a typical configuration includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The computer software product may include instructions for causing a computing device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in the various embodiments or portions of embodiments of the present application. The computer software product may be stored in a memory, which may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transient media), such as modulated data signals and carrier waves.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
While the present application has been described with examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.

Claims (16)

1. A method for code resource management, comprising:
acquiring a code resource file and attribute information thereof;
determining the granularity information of the code resource file according to the attribute information of the code resource file;
storing the code resource file according to the granularity information of the code resource file; the granularity information is used for dividing the code resource file; wherein, include: storing the code resource files with the same granularity information in the same path;
receiving a resource management request for managing the code resource file sent by a user; the resource management request comprises resource file granularity information;
according to the resource management request, determining a first code resource file corresponding to the resource management request from the stored code resource files; operating on the first code resource file.
2. The code resource management method according to claim 1, wherein said attribute information includes: and the name, the version information and the file format of the code resource file.
3. The method for managing code resources according to claim 2, wherein said determining the granularity information of the code resource file according to the attribute information of the code resource file comprises: and determining the granularity information of the code resource file according to a preset corresponding relation between the file format and the granularity information.
4. The code resource management method of claim 1, wherein the granularity information comprises: project templates, file templates, or code fragments.
5. The code resource management method of claim 1, wherein the resource management request further comprises: resource file name, resource file version information, and management operation information.
6. The code resource management method according to claim 5, wherein the management operation information is used to describe operations on the found code resource file, including operation contents and specified paths.
7. The code resource management method according to claim 6, wherein the operation contents include: install, update, or uninstall.
8. The code resource management method of claim 1, further comprising: receiving a resource synchronization command sent by a user, and updating the stored code resource file according to the resource synchronization command; the method specifically comprises the following steps:
receiving a resource synchronization command sent by a user; the resource synchronization command includes resource pool information to be synchronized, including: the address of the resource library to be synchronized, or the name of the resource library to be synchronized;
sending an updating request to the resource library to be synchronized, and receiving feedback information sent by the resource library to be synchronized; the feedback information includes: resource file update information, or a first report indicating that the resource file is not updated;
and operating the stored code resource file corresponding to the resource file updating information according to the resource file updating information.
9. The code resource management method of claim 8, wherein the resource file update information comprises: code resource files to be processed and corresponding processing modes thereof; the processing mode comprises the following steps: addition, modification and deletion.
10. The method for code resource management according to claim 9, wherein the operating the code resource file corresponding to the resource file update information according to the resource file update information specifically includes:
when the mode to be processed is newly added, acquiring the code resource file to be processed, and storing the code resource file;
when the to-be-processed mode is modification, acquiring the to-be-processed code resource file, and covering the to-be-processed code resource file with a corresponding original code resource file;
and when the to-be-processed mode is deletion, deleting the stored to-be-processed code resource file.
11. A code resource management system, comprising: at least one code resource library, a code resource management device and at least one development tool; wherein the content of the first and second substances,
the code resource library is used for storing code resource files input by different users; the code resource library is also used for receiving an updating request sent by the code resource management device and generating feedback information according to the updating request; the feedback information includes: resource file update information, or, a first report indicating no update; the code resource library is also used for sending the resource file corresponding to the resource file updating information to the code resource management device;
the code resource management device is used for acquiring a code resource file and attribute information thereof, determining granularity information of the code resource file according to the attribute information of the code resource file, and storing the code resource file according to the granularity information of the code resource file; wherein, include: storing the code resource files with the same granularity information in the same path; the code resource management device is also used for receiving a resource management request sent by a user for managing the code resource file; according to the resource management request, determining a first code resource file corresponding to the resource management request from the stored code resource files; operating on the first code resource file; the operations include: installing or updating the first code resource file into a specified path of a development tool, or uninstalling the first code resource file from the specified path of the development tool.
12. The code resource management system according to claim 11, wherein the resource management device is further configured to receive a resource synchronization command sent by a user, the resource synchronization command including information of a resource pool to be synchronized; according to the resource synchronization command, sending an update request to the resource library to be synchronized, and receiving feedback information sent by the resource library to be synchronized; and updating the code resource file in the resource management device according to the feedback information.
13. A code resource management apparatus, comprising: the system comprises a code resource file acquisition module, a granularity information determination module, a storage module, a resource management request receiving module and a management operation module; wherein the content of the first and second substances,
the code resource file acquisition module is used for acquiring the code resource file and the attribute information thereof; the attribute information includes: the name, version information and file format of the code resource file;
the granularity information determining module is used for determining the granularity information of the code resource file according to the attribute information of the code resource file acquired by the code resource file acquiring module;
the storage module is used for storing the code resource file according to the granularity information of the code resource file determined by the granularity information determining module; the granularity information is used for dividing the code resource file; wherein, include: storing the code resource files with the same granularity information in the same path;
the resource management request receiving module is used for receiving a resource management request sent by a user for managing the code resource file; the resource management request includes: resource file granularity information, resource file names, resource file version information and management operation information; the operation information includes: operation content and a specified path; the operations include: install, update, or uninstall;
the management operation module is used for determining a first code resource file corresponding to the resource management request from the stored code resource files according to the resource management request received by the resource management request receiving module; operating on the first code resource file.
14. The code resource management device of claim 13, wherein the code resource management device further comprises: and the synchronization module is used for receiving a resource synchronization command sent by a user and updating the code resource file in the storage module according to the resource synchronization command.
15. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, carries out the steps of:
acquiring a code resource file and attribute information thereof;
determining the granularity information of the code resource file according to the attribute information of the code resource file;
storing the code resource file according to the granularity information of the code resource file; the granularity information is used for dividing the code resource file; wherein, include: storing the code resource files with the same granularity information in the same path;
receiving a resource management request for managing the code resource file sent by a user; the resource management request comprises resource file granularity information;
according to the resource management request, determining a first code resource file corresponding to the resource management request from the stored code resource files; operating on the first code resource file.
16. The computer-readable storage medium of claim 15, wherein the program stored on the computer-readable storage medium, when executed by the processor, further performs the steps of: receiving a resource synchronization command sent by a user, and updating the stored code resource file according to the resource synchronization command; the method specifically comprises the following steps:
receiving a resource synchronization command sent by a user; the resource synchronization command includes resource pool information to be synchronized, including: the address of the resource library to be synchronized, or the name of the resource library to be synchronized;
sending an updating request to the resource library to be synchronized, and receiving feedback information sent by the resource library to be synchronized; the feedback information includes: resource file update information, or a first report indicating that the resource file is not updated;
and operating the stored code resource file corresponding to the resource file updating information according to the resource file updating information.
CN201610039225.7A 2016-01-21 2016-01-21 Code resource management method, device and system Active CN106990944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610039225.7A CN106990944B (en) 2016-01-21 2016-01-21 Code resource management method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610039225.7A CN106990944B (en) 2016-01-21 2016-01-21 Code resource management method, device and system

Publications (2)

Publication Number Publication Date
CN106990944A CN106990944A (en) 2017-07-28
CN106990944B true CN106990944B (en) 2020-09-04

Family

ID=59413640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610039225.7A Active CN106990944B (en) 2016-01-21 2016-01-21 Code resource management method, device and system

Country Status (1)

Country Link
CN (1) CN106990944B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107786630B (en) * 2017-09-06 2020-08-28 阿里巴巴集团控股有限公司 Web application package processing method, device and equipment
CN110084486A (en) * 2019-04-02 2019-08-02 深圳前海微众银行股份有限公司 A kind of method for managing resource and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164286A (en) * 2013-03-12 2013-06-19 无锡云动科技发展有限公司 Implement method, resource manager and cloud calculating system of cloud computing platform arrangement
CN103927423A (en) * 2014-04-30 2014-07-16 齐齐哈尔轨道交通装备有限责任公司 Part design change method and system in PDM system
CN104346404A (en) * 2013-08-08 2015-02-11 华为技术有限公司 Method, equipment and system for accessing data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345413A (en) * 2013-07-23 2013-10-09 苏州大学 Method and device for updating codes and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164286A (en) * 2013-03-12 2013-06-19 无锡云动科技发展有限公司 Implement method, resource manager and cloud calculating system of cloud computing platform arrangement
CN104346404A (en) * 2013-08-08 2015-02-11 华为技术有限公司 Method, equipment and system for accessing data
CN103927423A (en) * 2014-04-30 2014-07-16 齐齐哈尔轨道交通装备有限责任公司 Part design change method and system in PDM system

Also Published As

Publication number Publication date
CN106990944A (en) 2017-07-28

Similar Documents

Publication Publication Date Title
KR102010508B1 (en) System and method for updating source code files
WO2017185606A1 (en) Overlay mechanism-based apk development method and system
CN110673853B (en) Compiling method, device and system
CN110955431B (en) Processing method and device of compiling environment
CN107368292B (en) Resource compiling method and device
CN106293669B (en) Webpage component generation method and device
US20140372998A1 (en) App package deployment
CN110990023B (en) Dependency uploading method and device of aar file, storage medium and electronic equipment
CN107832059B (en) Code static analysis method and device based on Makefile
CN109739600B (en) Data processing method, medium, device and computing equipment
TW201545067A (en) A system and method thereof for creating dynamically attachable and detachable binary files
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
US10289395B2 (en) Performing a compiler optimization pass as a transaction
CN110989939A (en) Data cache processing method, device and equipment and cache component
CN112685030A (en) Method, device, storage medium and electronic equipment for generating service code
CN112882718A (en) Compiling processing method, device, equipment and storage medium
CN111273965B (en) Container application starting method, system and device and electronic equipment
CN113778445A (en) Cross-platform component generation method and device, electronic equipment and storage medium
CN106990944B (en) Code resource management method, device and system
CN111596951A (en) Method and device for configuring engineering file
CN109558121B (en) Interface driver development method, device, equipment and storage medium
CN105447040B (en) Binary file management and updating method, device and system
CN110941443B (en) Method and device for modifying file name in SDK (software development kit) and electronic equipment
CN111797387A (en) Method and device for intercepting plug-in
CN110244964B (en) Operation and maintenance method, device and equipment based on operation and maintenance application

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
GR01 Patent grant
GR01 Patent grant