Method and system for identifying recipe file and converting recipe file into XML file

A file and formula technology, applied in database management systems, structured data retrieval, special data processing applications, etc., can solve the problems of cumbersome, inability to batch operations in source code warehouses, and time-consuming

CN110334326AActive Publication Date: 2019-10-15宁波均联智行科技股份有限公司
4 Cites 3 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2019-10-15

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method and a system for identifying a recipe file and converting the recipe file into an XML file, and belongs to the technical field of computer application. The method comprises the following steps: identifying file types of all recipe files cloned into a local warehouse, and judging whether the recipe files are YAML type files or BB type files; according to an identification result, calling a corresponding preset script to execute the following operations: analyzing all the recipe files to generate a JSON file containing information of all source code warehouses; analyzing the JSON file, and extracting a link, an index and a storage path of each source code warehouse; writing the extracted links, indexes and storage path key value pairs of the source code warehouses into corresponding dictionaries; recognizing links, indexes and storage paths of all the source code warehouses from all the dictionaries and writing into XML files of Manifest warehouses. According to the technical scheme provided by the embodiment of the invention, a user can conveniently read related information of the source code warehouse. The batch operation on the source code warehouse can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of computer application technology, in particular to a method and system for identifying a recipe file and converting it into an XML file. Background technique

[0002] In the software development and release process of the Internet, continuous integration is an important process. Continuous integration refers to the continuous integration of code into the main branch, and then realizes continuous construction and automated testing. Such fast iterations can quickly find and solve bugs and ensure the quality of the code.

[0003] In the process of software development, source code management is an extremely important link. The source code of a project often changes continuously with the development progress. In order to keep all revisions of the code, users can copy the directory of the entire project and rename it with a note time, etc. to keep all revisions of the project in turn, but this is undoubtedly It is impr...

Examples

Embodiment Construction

[0050] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Some, but not all, embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0051] It should be noted that, in the description of the present invention, terms such as "first" and "second" are used for description purposes only, and should not be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0052] Unless the conte...