Unlock instant, AI-driven research and patent intelligence for your innovation.

Project filename batch automatic replacement method

A project file and file name technology, applied in the field of project management, can solve the problems of spending a lot of time and energy, prone to errors, etc., and achieve the effect of solving the problem of long manual replacement time

Pending Publication Date: 2020-05-26
贵阳语玩科技有限公司
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the process of organizing old projects and code migration, it is often necessary to arrange and replace file names. Manual replacement will take a lot of time and energy, and errors are prone to occur

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention will be described in detail below in conjunction with specific embodiments.

[0019] The invention provides the replacement function of the designated rules of the file white list, which can be easily replaced with the target format. First, by adding filter conditions such as file name, file type, or folder path to the whitelist, traverse and obtain all files in the project directory according to the filter conditions, and filter out the files that need to be replaced.

[0020] Then get all the code file names and the contents of the files that may need to be modified, perform regular matching in the contents of the files that may need to be modified, and modify and replace them if the match is successful.

[0021] Finally, write the replaced content to the original file. Here, it can be replaced according to the user-defined rules, or the default rules can be used for replacement.

[0022] Include the following specific steps:

[0023] Step 1: ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a project filename batch automatic replacement method, which comprises the following steps: adding a screening condition in a white list, traversing to obtain all files under aproject directory according to the screening condition, and filtering out files required to be replaced; then obtaining all code file names and file contents which may need to be modified, performingregular matching in the file contents which may need to be modified, and performing modification and replacement on the file contents after matching succeeds; and finally, writing the replaced content into an original file. By means of the method, collating and replacing work of 3000 files and 500 thousand lines of codes can be completed within 10 minutes; the problems that manual replacement time is long, and errors are prone to occurring are solved.

Description

technical field [0001] The invention relates to the technical field of project management, in particular to a batch automatic replacement method for project file names. Background technique [0002] In the process of software project development, due to the personal habits of developers, the code naming is not necessarily uniform. When the code is archived or migrated to a new project, a unified naming work is required. Replacing a file name requires modifying several related codes, which is not only time-consuming and labor-intensive, but also error-prone. The amount of work to replace in a large project will grow exponentially. In the process of organizing old projects and code migration, it is often necessary to arrange and replace file names. Manual replacement will take a lot of time and energy, and errors are prone to occur. [0003] Therefore, there are defects in the prior art and need to be improved. Contents of the invention [0004] The technical problem to b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/73G06F16/16
CPCG06F8/73G06F16/166
Inventor 田云翔唐进郑鸿洋段凌云陈正超
Owner 贵阳语玩科技有限公司