CN109669914A - Item file storage method, device, equipment and computer readable storage medium - Google Patents
Item file storage method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109669914A CN109669914A CN201811361182.XA CN201811361182A CN109669914A CN 109669914 A CN109669914 A CN 109669914A CN 201811361182 A CN201811361182 A CN 201811361182A CN 109669914 A CN109669914 A CN 109669914A
- Authority
- CN
- China
- Prior art keywords
- file
- configuration
- configuration file
- item
- target
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000003860 storage Methods 0.000 title claims abstract description 38
- 230000004048 modification Effects 0.000 claims description 44
- 238000012986 modification Methods 0.000 claims description 44
- 238000004590 computer program Methods 0.000 claims description 12
- 230000015654 memory Effects 0.000 claims description 11
- 238000012360 testing method Methods 0.000 claims description 11
- 238000004519 manufacturing process Methods 0.000 claims description 9
- 238000000605 extraction Methods 0.000 claims description 7
- 239000000284 extract Substances 0.000 claims description 6
- 241000208340 Araliaceae Species 0.000 claims 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims 1
- 235000003140 Panax quinquefolius Nutrition 0.000 claims 1
- 235000008434 ginseng Nutrition 0.000 claims 1
- 238000012423 maintenance Methods 0.000 abstract description 28
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 238000002372 labelling Methods 0.000 description 2
- BQCADISMDOOEFD-UHFFFAOYSA-N Silver Chemical compound [Ag] BQCADISMDOOEFD-UHFFFAOYSA-N 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000739 chaotic effect Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 229910052709 silver Inorganic materials 0.000 description 1
- 239000004332 silver Substances 0.000 description 1
Abstract
The invention discloses a kind of item file storage method, device, equipment and computer readable storage mediums, it is related to Internet technical field, multiple configuration files can be generated according to item file, and it is stored in configuration file is corresponding with item file in predetermined directory, allow to directly safeguard some configuration file of item file, simplify the catalogue of stored items file, it is simpler to the maintenance of item file, the efficiency for improving item file maintenance is more advantageous to and carries out maintenance and management to item file.The described method includes: receiving item file, item file is stored into predetermined directory;Object run is determined in multiple operations, at least one sub- execution file of performance objective operation is extracted in item file, and at least one son is executed into file as configuration parameter;It obtains default file format to arrange configuration parameter according to default file format, generates configuration file;It stores configuration file is corresponding with item file into predetermined directory.
Description
Technical field
The present invention relates to Internet technical fields, more particularly to a kind of item file storage method, device, equipment and meter
Calculation machine readable storage medium storing program for executing.
Background technique
With the rapid development of Internet technology, in order to facilitate the work and life of people, many is based on terminal operating
Management is come into being.There are many projects for access in management application, and provide a variety of different services based on project for user,
User can the download management application in private terminal, based on management the multiple accounts of application management, and easily realize insurance, silver
A variety of financial needs such as row, investment.It may need to provide project in management application in view of the staff of management application
Service and function are safeguarded and are updated, and therefore, the item file of each project are stored in management application.
In the related technology, management application is typically based on the building of webpack (webpage) scaffold, in the project text of stored items
When part, usually the item file of whole projects is stored entirely in database, when needing to safeguard a certain project, is needed
It to obtain item file in the database, and based on the item file project be developed, tested and produce etc. and operated.
In the implementation of the present invention, inventor find the relevant technologies the prior art has at least the following problems:
Since the project updating decision in management application, quantity are more, therefore, it is necessary to the item file execution often to project to open
The operations such as hair, test, production, and the function of webpack scaffold is not perfect, the mesh of the item file of stored items in database
It records more complex, causes the maintenance to item file relatively complicated, the efficiency of item file maintenance is lower, is not easy to item file
Carry out maintenance and management.
Summary of the invention
In view of this, the present invention provides a kind of item file storage method, device, equipment and computer-readable storage mediums
Matter, main purpose are that the catalogue for solving the item file of stored items in current database is more complex, cause to item file
Maintenance it is relatively complicated, item file maintenance efficiency it is lower, be not easy to item file carry out maintenance and management the problem of.
According to the present invention in a first aspect, providing a kind of item file storage method, this method comprises:
Item file is received, the item file is stored into predetermined directory;
Object run is determined in multiple operations that the item file provides, and is extracted in the item file and is executed institute
At least one sub- execution file of object run is stated, by least one described sub- execution file as configuration parameter, the target
Operation is not generate the operation of configuration file in the multiple operation;
Default file format is obtained to arrange the configuration parameter, described in generation according to the default file format
Configuration file;
It stores the configuration file is corresponding with the item file into the predetermined directory.
Second aspect according to the present invention, provides a kind of item file storage device, which includes:
Receiving module stores the item file into predetermined directory for receiving item file;
Extraction module, for determining object run in multiple operations that the item file provides, in the project text
At least one the sub- execution file for executing the object run is extracted in part, regard at least one described sub- execution file as configuration
Parameter, the object run are not generate the operation of configuration file in the multiple operation;
Sorting module, according to the default file format, carries out the configuration parameter for obtaining default file format
It arranges, generates the configuration file;
Memory module, for storing the configuration file is corresponding with the item file into the predetermined directory.
The third aspect according to the present invention, provides a kind of equipment, including memory and processor, and the memory is stored with
The step of computer program, the processor realizes above-mentioned first aspect the method when executing the computer program.
Fourth aspect according to the present invention provides a kind of computer readable storage medium, is stored thereon with computer program,
The computer program realizes the step of method described in above-mentioned first aspect when being executed by processor.
By above-mentioned technical proposal, a kind of item file storage method, device, equipment and computer provided by the invention can
Read storage medium, compared with the mode that the item file of whole projects is stored entirely in database at present, the present invention according to
Item file can generate multiple configuration files according to item file, and be stored in default mesh for configuration file is corresponding with item file
In record, allow to directly safeguard some configuration file of item file, simplifies the catalogue of stored items file, it is right
The maintenance of item file is simpler, improves the efficiency of item file maintenance, is more advantageous to and carries out maintenance and management to item file.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of item file storage method flow diagram provided in an embodiment of the present invention;
Fig. 2A shows a kind of item file storage method flow diagram provided in an embodiment of the present invention;
Fig. 2 B shows a kind of item file storage method flow diagram provided in an embodiment of the present invention;
Fig. 2 C shows a kind of item file storage method flow diagram provided in an embodiment of the present invention;
Fig. 3 A shows a kind of structural schematic diagram of item file storage device provided in an embodiment of the present invention;
Fig. 3 B shows a kind of structural schematic diagram of item file storage device provided in an embodiment of the present invention;
Fig. 3 C shows a kind of structural schematic diagram of item file storage device provided in an embodiment of the present invention;
Fig. 3 D shows a kind of structural schematic diagram of item file storage device provided in an embodiment of the present invention;
Fig. 3 E shows a kind of structural schematic diagram of item file storage device provided in an embodiment of the present invention;
Fig. 3 F shows a kind of structural schematic diagram of item file storage device provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of item file storage method, can the present invention can be according to item according to item file
The multiple configuration files of mesh file generated, and be stored in configuration file is corresponding with item file in predetermined directory, allow to straight
It connects and some configuration file of item file is safeguarded, simplify the catalogue of stored items file, reach to item file
It safeguards the efficiency simpler, raising item file is safeguarded, is more advantageous to the purpose for carrying out maintenance and management to item file, such as schemes
Shown in 1, this method comprises:
101, item file is received, item file is stored into predetermined directory.
In embodiments of the present invention, for the item file unified management for applying access-in management, can be so as to subsequent
Each item file generates multiple configuration files, and convenient for being managed to configuration file, can be set predetermined directory, and by item
Mesh file is included into goal-selling.
102, object run is determined in multiple operations that item file provides, and performance objective behaviour is extracted in item file
At least one son is executed file as configuration parameter by least one the sub- execution file made, and object run is in multiple operations
The operation of configuration file is not generated.
In embodiments of the present invention, it is contemplated that some item files may will increase executable behaviour in follow-up operation
Make, and the item file was generating configuration file before, the operation only newly increased not yet generates configuration file, because
This, when determining object run, it is possible, firstly, to which any operation is not corresponding in multiple operations that detection project file provides
Configuration file, and using the operation as object run;It is then determined that the configuration parameter of the object run.
Wherein, in the configuration parameter for determining object run, since object run usually requires to rely at least when being executed
One son executes paper work running and realizes, has lacked the normal fortune that any sub- execution file not can guarantee object run
Row, therefore, in the configuration parameter for determining object run, all sons for needing to obtain object run dependence execute file conduct
Configuration parameter.
103, it obtains default file format to arrange configuration parameter according to default file format, generates configuration text
Part.
In embodiments of the present invention, it is contemplated that if the configuration parameter extracted directly will lead to life as configuration file
At multiple configuration files format it is chaotic, lead to execute configuration file operating, therefore, can be set guarantee it is normal
The default file format of operation, and according to default file format, configuration parameter is arranged, so that generating can operate normally
Configuration file.
During practical application, it is contemplated that operational effect reaches most preferably, can also be different for different operation settings
Default file format obtain the operation corresponding default file format generation and match and when generating configuration file for operation
Set file.For example, the default file format for being set as exploitation operation setting is format A, in this way, in the configuration text for generating exploitation operation
When part, generated using format A;Default file format for test operation setting is format B, in this way, generating test operation
When configuration file, generated using format B;It is format C to produce the default file format of operation setting, in this way, being produced generating
When the configuration file of operation, generated using format C.
104, it stores configuration file is corresponding with item file into predetermined directory.
In embodiments of the present invention, after generating configuration file, it is contemplated that the configuration file that the same time generates is more,
In order to avoid obscuring the configuration file of disparity items file, predetermined directory is stored in by configuration file is corresponding with item file
In, so as to it is subsequent need to item file execute a certain item operation when, can directly according to item file to configuration file into
Row extracts.
Item file storage method provided in an embodiment of the present invention can generate multiple according to item file according to item file
Configuration file, and be stored in configuration file is corresponding with item file in predetermined directory, allow to directly to item file
Some configuration file is safeguarded, the catalogue of stored items file is simplified, simpler to the maintenance of item file, improves project
The efficiency of file maintenance is more advantageous to and carries out maintenance and management to item file.
It, can be according to item file according to item file the embodiment of the invention provides a kind of item file storage method
It generates multiple configuration files, and be stored in configuration file is corresponding with item file in predetermined directory, allows to directly to item
Some configuration file of mesh file safeguarded, the catalogue of stored items file is simplified, and reaches maintenance to item file more
Simply, the efficiency for improving item file maintenance is more advantageous to the purpose that maintenance and management is carried out to item file, such as Fig. 2A institute
Show, this method comprises:
201, item file is received, item file is stored into predetermined directory.
In embodiments of the present invention, due to having accessed numerous items in management application, in order to guarantee the normal operation of project,
Usually project can be somebody's turn to do to manage using by operation when being linked into management application to management using item file is provided
Item file for user provides the service in relation to the project.
Wherein, in order to list the item file of project is bright, so as to it is subsequent can be respectively that item file lists subitem
Mesh can be generated a predetermined directory, item file stored into predetermined directory, is made when being stored item file
Item file is obtained to store according to predetermined directory.Specifically, predetermined directory is a unified catalogue, can be SRC (Sparse
Representation-based Classifier, the classification based on sparse expression) catalogue.For example, setting in current management application
Including project be respectively Project (project) 1, Project2 and Project3, then can be stored in predetermined directory SRC
The item file of Project1, Project2 and Project3.In addition, management application can also receive the item of request access at any time
Purpose item file, and item file is stored into predetermined directory.It should be noted that in order to which clearly each item file closes
The project of connection can directly be managed item file so as to subsequent, when storing item file into predetermined directory, also
File identification can be distributed for item file, and item file is labeled using this document mark, by the project after mark
File is stored in predetermined directory.Wherein, file identification can be the project name of project.
During practical application, due to requesting the frequency for applying item file access-in management higher, if every time
It receives item file and is performed both by access operation, can make to input frequent operation, the load of entire management application is heavier, therefore, can
With statistical item file according to the time period, the item file of whole projects of certain time period is cached, and when the period terminates
When, it is unified that whole item files is arranged, and store into predetermined directory, for example, the period can be 6 months, then
The item file of 6 middle of the month wholes is arranged, is stored into predetermined directory.
202, object run is determined in multiple operations that item file provides.
It was recognized by the inventor that management is applied in the item file of stored items, typically directly store, when needing to project
When some operation carries out maintenance and management in multiple operations that file provides, need to extract and the behaviour in item file one by one
Make relevant parameter to be safeguarded, causes the maintenance and management carried out each time for operation all troublesome, therefore, in the present invention
In embodiment, establish configuration file for each operation of item file, so as to it is subsequent safeguarded for operation when, can be direct
It obtains the corresponding configuration file of the operation to be safeguarded, no longer needs to traverse whole parameters in item file.
Wherein, due to higher about the execution frequency of the concrete operations of maintenance in item file, and by specifically grasping
Work divides the whole parameters that can be covered in item file to parameter in item file, therefore, can be according to project text
Multiple operations that part provides, determine corresponding object run.Specifically, operation may include exploitation operation, test operation and
Production operation.During practical application, each item file stored in catalogue can provide multiple operations, and needle
To different files to be generated, each operation in multiple operations can be used as object run.
203, object run is analyzed, determines the main execution file in the implementation procedure of object run, calling interface,
At least one sub- execution file with main execution file association is obtained, at least one son is executed into file as configuration parameter.
In embodiments of the present invention, since the parameter that different operations is relied on is different, by being grasped to target
The analysis of work can determine the configuration parameter of the object run.In order to obtain the parameter in item file, to generate configuration
Parameter, interface can be set in each item file, and configuration parameter is extracted in item file based on the interface.Specifically,
When extracting configuration parameter, firstly, analyze object run, determine in the implementation procedure of the object run main executes text
Part;Then, main at least one sub- execution file for executing file association is obtained, whole sons is executed into file and is used as the target
The configuration parameter of operation.
It is illustrated respectively so that object run is respectively to develop operation, test operation and production operation as an example, if mesh
Mark operation is exploitation operation, it is determined that the main execution file of development process, calling interface, determining in the item file of project should
Main at least one sub- execution file for executing file association, extracts at least one sub- execution file as configuration parameter;If mesh
Mark operation is test operation, it is determined that the main execution file of test process, calling interface, determining in the item file of project should
Main at least one sub- execution file for executing file association, extracts at least one sub- execution file as configuration parameter;If mesh
Mark operation is production operation, it is determined that the main execution file of production process, calling interface, determining in the item file of project should
Main at least one sub- execution file for executing file association, extracts at least one sub- execution file as configuration parameter.
204, it obtains default file format to arrange configuration parameter according to default file format, generates configuration text
Part.
In embodiments of the present invention, it is contemplated that the configuration parameter that different type configuration file includes is different in typesetting
, in order to keep the format of different type configuration file same, it is incompatible to avoid that there is a situation where configuration files, causes subsequent
The configuration file of generation is unable to operate normally, and can generate default file format for different types of configuration file.In this way, mentioning
After getting configuration parameter, according to the default file format, the configuration parameter extracted is arranged, when to the whole of configuration parameter
After reason, the configuration parameter after arrangement is packaged, to generate configuration file.
In addition, the project that the configuration file is related to is in subsequent possibility due to after the generation for completing current configuration file
Other multiple configuration files can be also generated, in order to determine according to the instruction received in subsequently received operational order
Which configuration file run, therefore, after generating configuration file, can be based on the corresponding object run of configuration file, for
File distribution file identification is set, to run corresponding configuration file based on the operational order received subsequent.For example, if
The corresponding object run of the configuration file is exploitation operation, then can be configuration file distribution " exploitation configuration file " printed words
File identification.Usually, the configuration file about exploitation operation of generation can be using dev as file identification;About survey
The configuration file for trying operation can be using test as file identification;Configuration file about production operation can use
Product is indicated.The embodiment of the present invention is to the generating mode and notation methods of configuration file without specifically limiting.
During practical application, since the function that different configuration files is realized is different, and running environment
It is different, therefore, for the configuration file of generation, which can be determined according to the implementation procedure of object run
Running environment is labeled configuration file using running environment, so as to it is subsequent need to run the configuration file when, directly determine
Current environment is changed to the running environment of configuration file mark, and then guarantees configuration file by the running environment of configuration file
It operates normally.
205, it stores configuration file is corresponding with item file into predetermined directory.
It in embodiments of the present invention, can be by the configuration file and the configuration file after generating the configuration file
The corresponding storage of the project that is related to, so it is subsequent be directed to the project implementation order when, can directly acquire relevant to the project
Configuration file is started.
Wherein, it when being stored configuration file, can store configuration file is corresponding with its file identification to default mesh
In record under the subdirectory of the project.
During practical application, when a certain operation for the project that needs to be implemented, management application can receive operation and refer to
It enables, and due to being that project has combed multiple configuration files in management application, when receiving operational order, only hold
The configuration file of row operational order instruction, to simplify the process for executing operational order, specific method B referring to fig. 2 should
Method includes:
206, when receiving operational order, target configuration file mark is extracted in operational order, determines that target configures
The target configuration file of file identification instruction executes following step if target configuration file is labelled with target operating environment
207;If the non-label target running environment of target configuration file, executes following step 208.
In embodiments of the present invention, operation entry can be provided in management application, when detecting that user triggers the operation and enter
Mouthful when, display operation instruction issues the page, and when detecting that user issues the page to the operational order and is determined, determination is connect
Operational order is received, the target configuration file mark of its carrying is extracted in operational order, determines that the target configuration file identifies
The target configuration file of instruction, so as in the follow-up operation target configuration file.
Wherein, since some configuration files may be marked by running environment, after target configuration file has been determined,
If the target configuration file is labeled with target operating environment, demonstrate the need for for current environment being switched to target operating environment
The target configuration file can be operated normally, namely executes following step 207;If the non-label target fortune of the target configuration file
Row environment then shows that currently only needing to be switched to default running environment runs the target configuration file, namely executes following
Step 208.
If 207, target configuration file is labelled with target operating environment, current operating environment is switched to object run
Environment, the operational objective configuration file in target operating environment.
In embodiments of the present invention, if target configuration file is labelled with target operating environment, show that the target configures
File must could operate normally in target operating environment, in this way, just needing current operating environment being switched to object run
Environment, and the target configuration file is run in the target operating environment.
If current operating environment is switched to default operation by 208, the non-label target running environment of target configuration file
Environment, the operational objective configuration file in default running environment.
In embodiments of the present invention, if the non-label target running environment of target configuration file, show that the target configures
File need to only be run there is no clearly to run in any running environment in normal running environment.And in order to
It avoids target configuration file from directly running failure situation that may be present, improves the probability of target configuration file successful operation, pipe
It ought to be used in front of running the target configuration file, and current operating environment can be switched to default running environment, and default
Operational objective configuration file in running environment.Wherein, presetting operation ring can be node (node) environment, in this way, in node environment
When middle operational objective configuration file, it can be run based on the operation sentence in node environment.For example, setting default environment as node
Environment currently needs to run the exploitation configuration file of project1, then " npm run dev-- can be run in node environment
Project1 " sentence, to realize the operation of the exploitation configuration file of project1.The embodiment of the present invention is to default running environment
It is any running environment without specifically limiting.
During practical application, the variation as existing for project can make the file of project also change, be
Configuration parameter in multiple configuration files of guarantee storage corresponding with item file can be kept with the parameter in item file
Unanimously, the embodiment of the present invention also provides the modification function to configuration file, referring to fig. 2 C, this method comprises:
209, when receiving modification instruction, configuration file mark to be modified is extracted in modification instruction, is determined to be modified
The configuration file to be modified of configuration file mark instruction.
In embodiments of the present invention, modification entrance can be provided in management application, when detecting that user triggers the modification and enter
When mouth, the display modification page, and when detecting that user is determined the modification page, determine that receiving modification instructs,
The configuration file to be modified mark that its carrying is extracted in modification instruction determines the to be modified of the configuration file mark instruction to be modified
Configuration file, to modify subsequent to the configuration file to be modified.
210, modification content is extracted in modification instruction, and modification content is added to configuration file to be modified, generates modification
Configuration file afterwards.
In embodiments of the present invention, after configuration file to be modified has been determined, modification can be extracted in modification instruction
The modification content is added in configuration file to be modified, and generates modified configuration file by content, so that subsequent use should
Configuration file is replaced current configuration file after modification.
211, configuration file to be modified is covered using configuration file after modification.
It in embodiments of the present invention, can be using the modified configuration text after generating modification after configuration file
Part covers configuration file to be modified, realizes the modification to file to be modified.It wherein, can also be by configuration file to be modified
It deletes, and configuration file after modification is saved, realize the modification carried out to configuration file to be modified.
Furthermore, it is contemplated that developer may be more suitable the configuration file in subsequent determined for a certain configuration file
Running environment, therefore, the present invention can not only provide the modification to the particular content in configuration file, also provide to configuration file
The function modified of running environment.Specifically, it when receiving running environment modification request, modifies and requests in running environment
Middle extraction specified configuration file identification determines the specified configuration file of specified configuration file identification instruction, modifies in running environment
Running environment to be modified is extracted in request, if specified configuration file is labeled with running environment, is based on running environment to be modified
The running environment currently marked to specified configuration file covers, if specified configuration file does not mark running environment, adopts
Specified configuration file is labeled with running environment to be modified.
Method provided in an embodiment of the present invention can generate multiple configuration files according to item file according to item file, and
It is stored in configuration file is corresponding with item file in predetermined directory, allows to some configuration text directly to item file
Part is safeguarded, the catalogue of stored items file is simplified, simpler to the maintenance of item file, improves the effect of item file maintenance
Rate is more advantageous to and carries out maintenance and management to item file.
Further, the specific implementation as Fig. 1 the method, the embodiment of the invention provides a kind of storages of item file
Device, as shown in Figure 3A, described device include: receiving module 301, extraction module 302, sorting module 303 and memory module
304。
The receiving module 301 stores the item file into predetermined directory for receiving item file;
The extraction module 302, for determining object run in multiple operations that the item file provides, in the item
At least one the sub- execution file for executing the object run is extracted in mesh file, it will at least one described sub- execution file conduct
Configuration parameter, the object run are not generate the operation of configuration file in the multiple operation;
The sorting module 303, according to the default file format, joins the configuration for obtaining default file format
Number is arranged, and the configuration file is generated;
The memory module 304, for storing the configuration file is corresponding with the item file to the predetermined directory
In.
In specific application scenarios, as shown in Figure 3B, which is specifically included: detection sub-module 3021,
Analyze submodule 3022 and acquisition submodule 3023.
The detection sub-module 3021, for detecting to the corresponding configuration file of the multiple operation, extraction is not generated
The operation of configuration file is as the object run;
The analysis submodule 3022 determines the execution of the object run for analyzing the object run
Main execution file in journey, the object run, which is at least, develops any one of operation, test operation and production operation;
The acquisition submodule 3023, be used for calling interface, obtain with it is described it is main execute file association it is described at least one
Son executes file, and by least one described sub- execution file as the configuration parameter, at least one described sub- execution file is
The main execution file for executing file and relying on when being executed.
In specific application scenarios, as shown in Figure 3 C, which further includes the first determining module 305 and labeling module
306。
First determining module 305 determines the fortune of the configuration file for the implementation procedure according to the object run
Row environment;
The labeling module 306, for being labeled using the running environment to the configuration file.
In specific application scenarios, as shown in Figure 3D, which further includes the second determining module 307 and the first modification mould
Block 308.
Second determining module 307, for being modified in request in running environment when receiving running environment modification request
Specified configuration file identification is extracted, determines the specified configuration file of specified configuration file identification instruction;
First modified module 308, for extracting running environment to be modified in running environment modification request, if specified
Configuration file is labeled with running environment, then running environment specified configuration file currently marked based on running environment to be modified into
Row covering;
First modified module 308 uses fortune to be modified if being also used to specified configuration file does not mark running environment
Row environment is labeled specified configuration file.
In specific application scenarios, as shown in FIGURE 3 E, which further includes third determining module 309 and operation module
310。
The third determining module 309, for extracting target configuration file in operational order when receiving operational order
Mark determines the target configuration file of target configuration file mark instruction;
The operation module 310, if being labelled with target operating environment for target configuration file, by current operating environment
It is switched to target operating environment, the operational objective configuration file in target operating environment;
The operation module 310 will currently run ring if being also used to the non-label target running environment of target configuration file
Border is switched to default running environment, and the operational objective configuration file in default running environment, default running environment is at least node
Node environment.
In specific application scenarios, as illustrated in Figure 3 F, which further includes the 4th determining module 311, adding module 312
With the second modified module 313.
4th determining module 311, for when receiving modification instruction, extracting configuration text to be modified in modification instruction
Part mark determines the configuration file to be modified of configuration file mark instruction to be modified;
Modification content is added to configuration to be modified for extracting modification content in modification instruction by the adding module 312
File generates configuration file after modification;
Second modified module 313, for being covered using configuration file after modification to configuration file to be modified.
Device provided in an embodiment of the present invention can generate multiple configuration files according to item file according to item file, and
It is stored in configuration file is corresponding with item file in predetermined directory, allows to some configuration text directly to item file
Part is safeguarded, the catalogue of stored items file is simplified, simpler to the maintenance of item file, improves the effect of item file maintenance
Rate is more advantageous to and carries out maintenance and management to item file.
It should be noted that each functional unit involved by a kind of item file storage device provided in an embodiment of the present invention
Other are accordingly described, can be with reference to the corresponding description in Fig. 1, and details are not described herein.
In the exemplary embodiment, a kind of equipment, including memory and processor are additionally provided, the memory is stored with
The step of computer program, the processor realizes the item file storage method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of item file storage method is realized when row.
Through the above description of the embodiments, those skilled in the art can be understood that the application can lead to
Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software.Based on this understanding, this Shen
Technical solution please can be embodied in the form of software products, which can store in a non-volatile memories
In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a computer equipment (can be
Personal computer, server or network equipment etc.) execute method described in each implement scene of the application.
It will be appreciated by those skilled in the art that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, module in attached drawing or
Process is not necessarily implemented necessary to the application.
It will be appreciated by those skilled in the art that the module in device in implement scene can be described according to implement scene into
Row is distributed in the device of implement scene, can also be carried out corresponding change and is located at the one or more dresses for being different from this implement scene
In setting.The module of above-mentioned implement scene can be merged into a module, can also be further split into multiple submodule.
Above-mentioned the application serial number is for illustration only, does not represent the superiority and inferiority of implement scene.
Disclosed above is only several specific implementation scenes of the application, and still, the application is not limited to this, Ren Heben
What the technical staff in field can think variation should all fall into the protection scope of the application.
Claims (10)
1. a kind of item file storage method characterized by comprising
Item file is received, the item file is stored into predetermined directory;
Object run is determined in multiple operations that the item file provides, and is extracted in the item file and is executed the mesh
At least one sub- execution file for marking operation, by least one described sub- execution file as configuration parameter, the object run
For the operation for not generating configuration file in the multiple operation;
It obtains default file format to arrange the configuration parameter according to the default file format, generates the configuration
File;
It stores the configuration file is corresponding with the item file into the predetermined directory.
2. the method according to claim 1, wherein described extract in the item file executes the target
At least one sub- execution file of operation, by least one described sub- execution file as configuration parameter, comprising:
The corresponding configuration file of the multiple operation is detected, extracts the operation for not generating configuration file as the target
Operation;
The object run is analyzed, determines the main execution file in the implementation procedure of the object run, the target
Operation is at least any one of exploitation operation, test operation and production operation;
Calling interface, obtain with described main at least one described sub- execution file for executing file association, will it is described at least one
Son executes file as the configuration parameter, at least one described sub- execution file is that the main execution file relies on when being executed
Execution file.
3. the method according to claim 1, wherein the acquisition default file format, according to the default text
Part format arranges the configuration parameter, after generating the configuration file, the method also includes:
According to the implementation procedure of the object run, the running environment of the configuration file is determined;
The configuration file is labeled using the running environment.
4. method according to claim 1 or 3, which is characterized in that the method also includes:
When receiving running environment modification request, specified configuration file identification is extracted in running environment modification request,
Determine the specified configuration file of the specified configuration file identification instruction;
Running environment to be modified is extracted in running environment modification request, if the specified configuration file is labeled with operation
Environment, the then running environment currently marked based on the running environment to be modified to the specified configuration file are covered;
If the specified configuration file does not mark running environment, using the running environment to be modified to the specified configuration
File is labeled.
5. the method according to claim 1, wherein the method also includes:
When receiving operational order, target configuration file mark is extracted in the operational order, determines the target configuration
The target configuration file of file identification instruction;
If the target configuration file is labelled with target operating environment, current operating environment is switched to the object run
Environment runs the target configuration file in the target operating environment;
If the non-label target running environment of target configuration file, is switched to default operation for the current operating environment
Environment, runs the target configuration file in the default running environment, and the default running environment is at least node node
Environment.
6. the method according to claim 1, wherein the method also includes:
When receiving modification instruction, configuration file mark to be modified is extracted in modification instruction, is determined described to be modified
The configuration file to be modified of configuration file mark instruction;
Modification content is extracted in modification instruction, the modification content is added to the configuration file to be modified, is generated
Configuration file after modification;
The configuration file to be modified is covered using configuration file after the modification.
7. a kind of item file storage device characterized by comprising
Receiving module stores the item file into predetermined directory for receiving item file;
Extraction module, for determining object run in multiple operations that the item file provides, in the item file
At least one the sub- execution file for executing the object run is extracted, regard at least one described sub- execution file as configuration ginseng
Number, the object run are not generate the operation of configuration file in the multiple operation;
Sorting module, according to the default file format, carries out the configuration parameter whole for obtaining default file format
Reason, generates the configuration file;
Memory module, for storing the configuration file is corresponding with the item file into the predetermined directory.
8. device according to claim 7, which is characterized in that the extraction module, comprising:
It analyzes submodule and determines that the master in the implementation procedure of the object run holds for analyzing the object run
Style of writing part, the object run, which is at least, develops any one of operation, test operation and production operation;
Acquisition submodule is used for calling interface, obtains at least one described sub- execution file with the main execution file association,
Will at least one described sub- execution file as the configuration parameter, at least one described sub- execution file is described main to execute text
The execution file that part relies on when being executed.
9. a kind of equipment, including memory and processor, the memory are stored with computer program, which is characterized in that described
The step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811361182.XA CN109669914A (en) | 2018-11-15 | 2018-11-15 | Item file storage method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811361182.XA CN109669914A (en) | 2018-11-15 | 2018-11-15 | Item file storage method, device, equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109669914A true CN109669914A (en) | 2019-04-23 |
Family
ID=66142144
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811361182.XA Pending CN109669914A (en) | 2018-11-15 | 2018-11-15 | Item file storage method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109669914A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110347423A (en) * | 2019-06-28 | 2019-10-18 | 北京你财富计算机科技有限公司 | The online management method of file modification and device |
CN110673874A (en) * | 2019-09-11 | 2020-01-10 | 苏州德创测控科技有限公司 | Method, storage medium, device for changing configuration of wizard programming software |
CN111506305A (en) * | 2020-03-26 | 2020-08-07 | 拉扎斯网络科技(上海)有限公司 | Tool kit generation method and device, computer equipment and readable storage medium |
CN113721973A (en) * | 2021-09-07 | 2021-11-30 | 北京锐安科技有限公司 | Configuration file generation method, device, equipment and medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002015007A1 (en) * | 2000-08-10 | 2002-02-21 | Bbnt Solutions Llc | Platform independent project built and management tool |
WO2002048922A2 (en) * | 2000-12-12 | 2002-06-20 | Aea Technology Plc | Method and software for accessing complex software applications through a client user interface |
CN1577274A (en) * | 2003-07-01 | 2005-02-09 | 华为技术有限公司 | Automation emulation method and system |
US20110061042A1 (en) * | 2009-09-09 | 2011-03-10 | Oracle International Corporation | Synchronized java debugger |
CN104809071A (en) * | 2015-05-14 | 2015-07-29 | 北京润科通用技术有限公司 | Code testing method and device |
CN105718371A (en) * | 2016-01-21 | 2016-06-29 | 深圳市同创国芯电子有限公司 | Regression test method, device and system |
CN106844205A (en) * | 2017-01-12 | 2017-06-13 | 上海与德信息技术有限公司 | Driver adjustment method and system |
CN107179907A (en) * | 2017-05-15 | 2017-09-19 | 北京奇艺世纪科技有限公司 | One kind configuration system and method |
CN108037961A (en) * | 2017-12-07 | 2018-05-15 | 北京锐安科技有限公司 | A kind of application program collocation method, device, server and storage medium |
-
2018
- 2018-11-15 CN CN201811361182.XA patent/CN109669914A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002015007A1 (en) * | 2000-08-10 | 2002-02-21 | Bbnt Solutions Llc | Platform independent project built and management tool |
WO2002048922A2 (en) * | 2000-12-12 | 2002-06-20 | Aea Technology Plc | Method and software for accessing complex software applications through a client user interface |
CN1577274A (en) * | 2003-07-01 | 2005-02-09 | 华为技术有限公司 | Automation emulation method and system |
US20110061042A1 (en) * | 2009-09-09 | 2011-03-10 | Oracle International Corporation | Synchronized java debugger |
CN104809071A (en) * | 2015-05-14 | 2015-07-29 | 北京润科通用技术有限公司 | Code testing method and device |
CN105718371A (en) * | 2016-01-21 | 2016-06-29 | 深圳市同创国芯电子有限公司 | Regression test method, device and system |
CN106844205A (en) * | 2017-01-12 | 2017-06-13 | 上海与德信息技术有限公司 | Driver adjustment method and system |
CN107179907A (en) * | 2017-05-15 | 2017-09-19 | 北京奇艺世纪科技有限公司 | One kind configuration system and method |
CN108037961A (en) * | 2017-12-07 | 2018-05-15 | 北京锐安科技有限公司 | A kind of application program collocation method, device, server and storage medium |
Non-Patent Citations (2)
Title |
---|
张云;: "Android Project目录及文件详解", 信息安全与技术, no. 01, 10 January 2013 (2013-01-10), pages 40 - 42 * |
林斌斌;叶荣华;: "一种基于LVM和软件RAID5的文件存储改进方案", 计算机技术与发展, no. 05, 31 December 2015 (2015-12-31), pages 99 - 103 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110347423A (en) * | 2019-06-28 | 2019-10-18 | 北京你财富计算机科技有限公司 | The online management method of file modification and device |
CN110673874A (en) * | 2019-09-11 | 2020-01-10 | 苏州德创测控科技有限公司 | Method, storage medium, device for changing configuration of wizard programming software |
CN110673874B (en) * | 2019-09-11 | 2023-06-13 | 苏州德创测控科技有限公司 | Method, storage medium, and apparatus for changing configuration of wizard programming software |
CN111506305A (en) * | 2020-03-26 | 2020-08-07 | 拉扎斯网络科技(上海)有限公司 | Tool kit generation method and device, computer equipment and readable storage medium |
CN111506305B (en) * | 2020-03-26 | 2023-07-18 | 拉扎斯网络科技(上海)有限公司 | Tool pack generation method, device, computer equipment and readable storage medium |
CN113721973A (en) * | 2021-09-07 | 2021-11-30 | 北京锐安科技有限公司 | Configuration file generation method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10409583B2 (en) | Content deployment system having a content publishing engine with a filter module for selectively extracting content items provided from content sources for integration into a specific release and methods for implementing the same | |
CN109669914A (en) | Item file storage method, device, equipment and computer readable storage medium | |
US11016757B2 (en) | Content deployment system having a proxy for continuously providing selected content items to a content publishing engine for integration into a specific release and methods for implementing the same | |
US11210070B2 (en) | System and a method for automating application development and deployment | |
CN110244942B (en) | Page generation method, device and system | |
JP2020522152A (en) | Computer-implemented method, system and computer program product forming a blockchain for public scientific research (blockchain for public scientific research) | |
EP2808790A2 (en) | Migration assessment for cloud computing platforms | |
US20150026146A1 (en) | System and method for applying a set of actions to one or more objects and interacting with the results | |
US11175909B2 (en) | Software discovery using exclusion | |
US20210234930A1 (en) | Microservice management system for recommending modifications to optimize operation of microservice-based systems | |
AU2014400621B2 (en) | System and method for providing contextual analytics data | |
CN108809718B (en) | Network access method, system, computer device and medium based on virtual resources | |
US11171835B2 (en) | Automated generation of an information technology asset ontology | |
US20160124795A1 (en) | Evaluation method and apparatus | |
US9239777B1 (en) | Generating test scenario templates from clusters of test steps utilized by different organizations | |
CA2977847A1 (en) | Automated extraction tools and their use in social content tagging systems | |
US8856740B2 (en) | Implementing multiple versions of a plug-in concurrently | |
Strauch et al. | Migrating enterprise applications to the cloud: methodology and evaluation | |
CN110213105A (en) | It is a kind of cross-platform micro- using creation method | |
CN114661375A (en) | Application integration method and device | |
US9170925B1 (en) | Generating test scenario templates from subsets of test steps utilized by different organizations | |
Halboob et al. | A framework to address inconstant user requirements in cloud SLAs management | |
US10908917B1 (en) | System and method for managing cloud-based infrastructure | |
JP2016126721A (en) | Program generation device, and program generation method | |
Sharma et al. | Mat: A migration assessment toolkit for paas clouds |
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 |