CN103645905B - A kind of incremental data acquisition method and device - Google Patents
A kind of incremental data acquisition method and device Download PDFInfo
- Publication number
- CN103645905B CN103645905B CN201310714015.XA CN201310714015A CN103645905B CN 103645905 B CN103645905 B CN 103645905B CN 201310714015 A CN201310714015 A CN 201310714015A CN 103645905 B CN103645905 B CN 103645905B
- Authority
- CN
- China
- Prior art keywords
- incremental
- path
- file
- preset
- relative
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
本申请公开了一种增量数据获取方法及装置,所述方法包括:依据预设的源文件路径及增量相对路径,生成增量目标路径;依据所述增量目标路径,获取增量数据;将所述增量数据置于预设目的路径对应的位置中。本申请实施例在实现增量数据获取时,只需用户预先设置源文件路径、增量相对路径及目的路径即可,利用这些路径实现对这些路径对应的增量数据进行获取,由此将获取到的增量数据置于目的路径对应位置中,无需用户对任何一个待增量更新的项目进行增量数据复制获取,由此不仅减少获取增量数据的流程,提高增量数据的获取效率,同时减少用户手动操作带来的错误,提高增量数据的准确率。
The present application discloses a method and device for acquiring incremental data. The method includes: generating an incremental target path according to a preset source file path and an incremental relative path; and acquiring incremental data according to the incremental target path ; Place the incremental data in a position corresponding to the preset destination path. In the embodiment of the present application, when acquiring incremental data, the user only needs to pre-set the source file path, incremental relative path, and destination path, and use these paths to obtain the incremental data corresponding to these paths, thereby obtaining The incremental data obtained is placed in the corresponding position of the destination path, and the user does not need to copy and acquire incremental data for any item to be incrementally updated. This not only reduces the process of acquiring incremental data, but also improves the efficiency of incremental data acquisition. At the same time, it reduces errors caused by manual operations by users and improves the accuracy of incremental data.
Description
技术领域technical field
本申请涉及软件设计技术领域,特别涉及一种增量数据获取方法及装置。The present application relates to the technical field of software design, in particular to a method and device for acquiring incremental data.
背景技术Background technique
当前,软件项目上线之后,项目的优化需求和问题不断的出现,需要将软件项目中发生增量更新的文件数据进行增量打包,即获取增量包。At present, after the software project is launched, the optimization requirements and problems of the project continue to appear. It is necessary to incrementally package the file data that has undergone incremental updates in the software project, that is, to obtain the incremental package.
现有技术中,通常需要技术人员手工对增量数据进行复制获取,由此得到增量数据。In the prior art, it is usually necessary for technicians to manually copy and obtain the incremental data, thereby obtaining the incremental data.
但这种方案中会增加增量数据获取的流程,由此降低增量数据获取的效率,同时手工打包容易出错,导致增量数据获取的准确率较低。However, this solution will increase the process of incremental data acquisition, thereby reducing the efficiency of incremental data acquisition. At the same time, manual packaging is prone to errors, resulting in a lower accuracy rate of incremental data acquisition.
发明内容Contents of the invention
本申请所要解决的技术问题是提供一种增量数据获取方法及装置,用以解决现有技术中需要手工对增量数据进行复制获取,增加增量数据获取的流程,由此降低增量数据获取的效率的技术问题,同时,解决了现有技术中,需要手工对增量数据进行复制获取,容易出错,导致增量数据获取的准确率较低的技术问题。The technical problem to be solved in this application is to provide a method and device for acquiring incremental data, which is used to solve the need to manually copy and acquire incremental data in the prior art, increase the flow of incremental data acquisition, and thereby reduce incremental data. At the same time, the technical problem of acquisition efficiency is solved, in the prior art, the incremental data needs to be manually copied and acquired, which is prone to errors, resulting in a low accuracy rate of incremental data acquisition.
本申请提供了一种增量数据获取方法,包括:This application provides a method for incremental data acquisition, including:
依据预设的源文件路径及增量相对路径,生成增量目标路径;Generate an incremental target path based on the preset source file path and incremental relative path;
依据所述增量目标路径,获取增量数据;Acquiring incremental data according to the incremental target path;
将所述增量数据置于预设目的路径对应的位置中。The incremental data is placed in a position corresponding to the preset destination path.
上述方法,优选的,所述依据预设的源文件路径及增量相对路径,生成增量目标路径,包括:In the above method, preferably, generating the incremental target path according to the preset source file path and incremental relative path includes:
判断所述增量相对路径的路径类型;Determine the path type of the incremental relative path;
在所述增量相对路径为文件夹路径类型时,获取所述增量相对路径下的子文件夹相对路径及子文件相对路径,将预设的源文件路径分别与所述子文件夹相对路径及子文件相对路径进行路径组合,得到增量目标路径;When the incremental relative path is a folder path type, obtain the relative path of the subfolder and the relative path of the subfile under the relative path of the increment, and compare the preset source file path with the relative path of the subfolder respectively and the relative path of the sub-file are combined to obtain the incremental target path;
否则,将预设的源文件路径与所述增量相对路径进行路径组合,得到增量目标路径。Otherwise, combine the preset source file path with the incremental relative path to obtain the incremental target path.
上述方法,优选的,所述依据所述增量目标路径,获取增量数据,包括:In the above method, preferably, the acquiring incremental data according to the incremental target path includes:
确定所述增量目标路径下的增量文件;Determine the incremental file under the incremental target path;
以预设的DOS命令复制方式,依据所述增量文件获取增量数据。Incremental data is acquired according to the incremental file in a preset DOS command copying manner.
上述方法,优选的,所述以预设的DOS命令复制方式,依据所述增量文件获取增量数据,包括:The above method, preferably, the described method of copying the preset DOS command, according to the incremental file to obtain incremental data, including:
判断所述增量文件的类型是否为Java文件类型,如果是,将所述增量文件进行编译,得到增量类文件,以预设的DOS命令复制方式,获取所述增量类文件作为增量数据,否则,以预设的DOS命令复制方式,获取所述增量文件作为增量数据。Judging whether the type of the incremental file is a Java file type, if so, compiling the incremental file to obtain an incremental file, and obtaining the incremental file as an incremental file in a preset DOS command copy mode. otherwise, obtain the incremental file as incremental data in a preset DOS command copy mode.
上述方法,优选的,在所述增量文件的类型为Java文件类型时,所述方法还包括:In the above method, preferably, when the type of the incremental file is a Java file type, the method also includes:
依据预设的源文件操作指令,获取所述增量文件对应的源文件,将所述源文件置于预设目的路径对应的位置中。According to the preset source file operation instruction, the source file corresponding to the incremental file is obtained, and the source file is placed in a location corresponding to the preset destination path.
本申请还提供了一种增量数据获取装置,包括:The present application also provides a device for acquiring incremental data, including:
路径生成单元,用于依据预设的源文件路径及增量相对路径,生成增量目标路径;a path generating unit, configured to generate an incremental target path according to a preset source file path and an incremental relative path;
数据获取单元,用于依据所述增量目标路径,获取增量数据;a data acquisition unit, configured to acquire incremental data according to the incremental target path;
数据设置单元,用于将所述增量数据置于预设目的路径对应的位置中。A data setting unit, configured to place the incremental data in a position corresponding to the preset destination path.
上述装置,优选的,所述路径生成单元包括:In the above device, preferably, the path generation unit includes:
类型判断子单元,用于判断所述增量相对路径的路径类型,在所述增量相对路径为文件夹路径时,触发第一路径组合子单元,否则,触发第二路径组合子单元;The type judging subunit is used to judge the path type of the incremental relative path, and when the incremental relative path is a folder path, trigger the first path combination subunit, otherwise, trigger the second path combination subunit;
第一路径组合子单元,用于获取所述增量相对路径下的子文件夹相对路径及子文件相对路径,将预设的源文件路径分别与所述子文件夹相对路径及子文件相对路径进行路径组合,得到增量目标路径;The first path combination subunit is used to obtain the relative path of the subfolder and the relative path of the subfile under the incremental relative path, and combine the preset source file path with the relative path of the subfolder and the relative path of the subfile respectively Combine the paths to get the incremental target path;
第二路径组合子单元,用于将预设的源文件路径与所述增量相对路径进行路径组合,得到增量目标路径。The second path combination subunit is used to combine the preset source file path with the incremental relative path to obtain the incremental target path.
上述装置,优选的,所述数据获取单元包括:In the above device, preferably, the data acquisition unit includes:
增量确定子单元,用于确定所述增量目标路径下的增量文件;an incremental determination subunit, configured to determine the incremental file under the incremental target path;
增量获取子单元,用于以预设的DOS命令复制方式,依据所述增量文件获取增量数据。The incremental acquisition subunit is configured to acquire incremental data according to the incremental file in a preset DOS command copying manner.
上述装置,优选的,所述增量获取子单元包括:In the above device, preferably, the increment acquisition subunit includes:
文件类型判断模块,用于判断所述增量文件的类型是否为Java文件类型,如果是,触发第一增量获取模块,否则,触发第二增量获取模块;A file type judging module, used to judge whether the type of the incremental file is a Java file type, if so, trigger the first incremental acquisition module, otherwise, trigger the second incremental acquisition module;
第一增量获取模块,用于将所述增量文件进行编译,得到增量类文件,以预设的DOS命令复制方式,获取所述增量类文件作为增量数据;The first incremental acquisition module is used to compile the incremental file to obtain an incremental file, and obtain the incremental file as incremental data in a preset DOS command copy mode;
第二增量获取模块,用于以预设的DOS命令复制方式,获取所述增量文件作为增量数据。The second incremental acquisition module is configured to acquire the incremental file as incremental data in a preset DOS command copying manner.
上述装置,优选的,还包括:The above-mentioned device, preferably, also includes:
源文件处理单元,用于在所述文件类型判断模块判断出所述增量文件的类型为Java文件类型时,依据预设的源文件操作指令,获取所述增量文件对应的源文件,将所述源文件置于预设目的路径对应的位置中。The source file processing unit is used to obtain the source file corresponding to the incremental file according to the preset source file operation instruction when the file type judging module determines that the type of the incremental file is a Java file type, and The source file is placed in a location corresponding to the preset destination path.
由上述方案可知,本申请提供的一种增量数据获取方法及装置,通过利用预设的源文件路径及增量相对路径生成增量目标路径之后,依据该增量目标路径获取到增量数据,进而将该增量数据置于预设的目的路径对应的位置中,实现对增量数据的获取。本申请在实现增量数据获取时,只需用户预先设置源文件路径、增量相对路径及目的路径即可,本申请利用这些路径实现对这些路径对应的增量数据进行获取,由此将获取到的增量数据置于目的路径对应位置中,无需用户对任何一个待增量更新的项目进行增量数据复制获取,由此不仅减少获取增量数据的流程,提高增量数据的获取效率,同时减少用户手动操作带来的错误,提高增量数据的准确率。It can be seen from the above solution that in the method and device for acquiring incremental data provided by the present application, after the incremental target path is generated by using the preset source file path and the incremental relative path, the incremental data is obtained according to the incremental target path , and then place the incremental data in a position corresponding to the preset destination path, so as to realize the acquisition of the incremental data. When this application realizes incremental data acquisition, it is only necessary for the user to pre-set the source file path, incremental relative path, and destination path. This application uses these paths to realize the incremental data corresponding to these paths. The incremental data obtained is placed in the corresponding location of the destination path, and the user does not need to copy and acquire incremental data for any item to be incrementally updated, thereby not only reducing the process of acquiring incremental data, but also improving the efficiency of incremental data acquisition. At the same time, it reduces errors caused by manual operations by users and improves the accuracy of incremental data.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本申请提供的一种增量数据获取方法实施例一的流程图;FIG. 1 is a flow chart of Embodiment 1 of an incremental data acquisition method provided by the present application;
图2为本申请提供的一种增量数据获取方法实施例二的部分流程图;FIG. 2 is a partial flowchart of Embodiment 2 of an incremental data acquisition method provided by the present application;
图3为本申请提供的一种增量数据获取方法实施例三的部分流程图;FIG. 3 is a partial flowchart of Embodiment 3 of an incremental data acquisition method provided by the present application;
图4为本申请实施例三的另一部分流程图;Fig. 4 is another part of the flow chart of Embodiment 3 of the present application;
图5为本申请实施例三的又一部分流程图;FIG. 5 is another part of the flow chart of Embodiment 3 of the present application;
图6为本申请提供的一种增量数据获取装置实施例四的结构示意图;FIG. 6 is a schematic structural diagram of Embodiment 4 of an incremental data acquisition device provided by the present application;
图7为本申请提供的一种增量数据获取装置实施例五的部分结构示意图;FIG. 7 is a partial structural schematic diagram of Embodiment 5 of an incremental data acquisition device provided by the present application;
图8为本申请提供的一种增量数据获取装置实施例六的部分结构示意图;Fig. 8 is a partial structural schematic diagram of Embodiment 6 of an incremental data acquisition device provided by the present application;
图9为本申请实施例六的另一部分结构示意图;FIG. 9 is a structural schematic diagram of another part of Embodiment 6 of the present application;
图10为本申请实施例六的又一部分结构示意图。Fig. 10 is a schematic structural diagram of another part of Embodiment 6 of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
参考图1,为本申请提供的一种增量数据获取方法实施例一的流程图,所述方法应用于对软件项目文件如操作系统等出现更新的数据进行获取,其中,所述方法可以包括以下步骤:Referring to FIG. 1 , it is a flow chart of Embodiment 1 of an incremental data acquisition method provided by the present application. The method is applied to acquire updated data of software project files such as operating systems, etc., wherein the method may include The following steps:
步骤101:依据预设的源文件路径及增量相对路径,生成增量目标路径。Step 101: Generate an incremental target path according to a preset source file path and an incremental relative path.
其中,所述预设的源文件路径是指软件项目文件所在路径,如C:\project。该软件项目文件中包括多个文件夹及文件,这些文件夹及文件以树状结构存在。所述增量相对路径是指需要进行增量数据获取(打包)的文件或文件夹所在的相对路径,如..\\11\\SS.java,该路径即为需要进行增量数据获取的文件SS.java的相对路径。其中,所述增量相对路径可以通过配置文件进行设置,也就是说,预先将该增量相对路径配置到一文件中,例如,将需要进行增量数据获取的文件路径信息配置到files.txt中,该files.txt即为配置文件。Wherein, the preset source file path refers to the path where the software project file is located, such as C:\project. The software project file includes multiple folders and files, and these folders and files exist in a tree structure. The incremental relative path refers to the relative path where the file or folder that needs to be acquired (packed) for incremental data, such as ..\\11\\SS.java, this path is the file that needs to be acquired for incremental data The relative path to the file SS.java. Wherein, the incremental relative path can be set through a configuration file, that is, the incremental relative path is configured in a file in advance, for example, the file path information that needs to be acquired for incremental data is configured in files.txt , the files.txt is the configuration file.
需要说明的是,所述步骤101中可以通过将所述源文件路径及所述增量相对路径进行路径组合的方式,得到增量目标路径。例如,将源文件路径C:\project及增量相对路径..\\11\\SS.java进行路径组合,得到路径如:C:\project\\11\\SS.java,该路径即为所述增量目标路径,所述增量目标路径即为需要进行增量数据获取的目标文件所在的绝对路径。It should be noted that, in the step 101, the incremental target path can be obtained by combining the source file path and the incremental relative path. For example, combine the source file path C:\project and the incremental relative path ..\\11\\SS.java to obtain a path such as: C:\project\\11\\SS.java, which is The incremental target path, the incremental target path is the absolute path where the target file that requires incremental data acquisition is located.
步骤102:依据所述增量目标路径,获取增量数据。Step 102: Obtain incremental data according to the incremental target path.
其中,所述步骤102中,由于所述增量目标路径为需要进行增量数据获取的目标文件所在的绝对路径,由此,通过该增量目标路径可以定位到该目标文件,由此获取增量数据。Wherein, in the step 102, since the incremental target path is the absolute path where the target file that requires incremental data acquisition is located, the target file can be located through the incremental target path, thereby obtaining the incremental Quantitative data.
步骤103:将所述增量数据置于预设目的路径对应的位置中。Step 103: Put the incremental data in a location corresponding to the preset destination path.
其中,所述预设目的路径是指增量数据所需要放置的路径,也就是说,在获取到增量数据之后,存储所述增量数据的路径。所述预设目的路径对应的位置可以为所述预设目的路径下位置或该路径下的文件夹内。Wherein, the preset destination path refers to the path where the incremental data needs to be placed, that is, the path where the incremental data is stored after the incremental data is acquired. The location corresponding to the preset destination path may be a location under the preset destination path or a folder under the path.
由上述方案可知,本申请提供的一种增量数据获取方法实施例一,通过利用预设的源文件路径及增量相对路径生成增量目标路径之后,依据该增量目标路径获取到增量数据,进而将该增量数据置于预设的目的路径对应的位置中,实现对增量数据的获取。本申请实施例一在实现增量数据获取时,只需用户预先设置源文件路径、增量相对路径及目的路径即可,本申请实施例一利用这些路径实现对这些路径对应的增量数据进行获取,由此将获取到的增量数据置于目的路径对应位置中,无需用户对任何一个待增量更新的项目进行增量数据复制获取,由此不仅减少获取增量数据的流程,提高增量数据的获取效率,同时减少用户手动操作带来的错误,提高增量数据的准确率。It can be seen from the above scheme that the first embodiment of an incremental data acquisition method provided by the present application, after generating the incremental target path by using the preset source file path and incremental relative path, the incremental data is obtained according to the incremental target path. data, and then place the incremental data in a position corresponding to the preset destination path to realize the acquisition of the incremental data. In Embodiment 1 of the present application, when realizing incremental data acquisition, the user only needs to pre-set the source file path, incremental relative path, and destination path. Embodiment 1 of the present application uses these paths to realize incremental data corresponding to these paths. Acquisition, so that the acquired incremental data is placed in the corresponding position of the destination path, and the user does not need to copy and acquire incremental data for any item to be incrementally updated. This not only reduces the process of acquiring incremental data, but also improves the It can improve the efficiency of acquiring large amounts of data, reduce errors caused by manual operations by users, and improve the accuracy of incremental data.
另外,本申请实施例通过对多个源文件路径、其对应增量相对路径及预设目的路径进行设置,进而能够实现对多个源文件的批量增量数据获取,避免了用户反复对数据进行复制获取降低工作效率的情况,提高了批量增量数据获取的效率。In addition, the embodiment of the present application sets multiple source file paths, their corresponding incremental relative paths, and preset destination paths, so as to achieve batch incremental data acquisition for multiple source files, avoiding repeated data processing by users. Duplicate acquisition reduces work efficiency, and improves the efficiency of batch incremental data acquisition.
参考图2,为本申请提供的一种增量数据获取方法实施例二中所述步骤101的流程图,其中,所述步骤101可以通过以下步骤实现:Referring to FIG. 2 , it is a flow chart of step 101 in Embodiment 2 of an incremental data acquisition method provided by the present application, wherein step 101 can be realized by the following steps:
步骤111:判断所述增量相对路径的路径类型,在所述增量相对路径为文件夹路径类型时,执行步骤112,否则,执行步骤114。Step 111: Determine the path type of the incremental relative path. If the incremental relative path is a folder path type, execute step 112; otherwise, execute step 114.
其中,所述增量相对路径的路径类型可以为文件夹路径类型,也可以为文件路径类型,例如,增量相对路径..\\11\\SS.java为文件路径类型,增量相对路径..\\11\\22\\为文件夹路径类型。Wherein, the path type of the incremental relative path can be a folder path type, and can also be a file path type, for example, the incremental relative path ..\\11\\SS.java is a file path type, and the incremental relative path ..\\11\\22\\ is the folder path type.
步骤112:获取所述增量相对路径下的子文件夹相对路径及子文件相对路径,执行步骤113。Step 112: Obtain the relative path of the subfolder and the relative path of the subfile under the incremental relative path, and execute step 113.
其中,所述步骤112中是指,在所述增量相对路径为文件夹路径时,对该增量相对路径对应的文件夹进行递归操作,遍历到该文件夹下的所有子文件夹及子文件,由此,对这些子文件夹及子文件对应的相对路径进行获取,例如,增量相对路径..\\11\\22\\对应的子文件夹相对路径及子文件相对路径为:..\\11\\22\\33等及..\\11\\22\\SS.java等。Wherein, in the step 112, it means that when the incremental relative path is a folder path, recursive operation is performed on the folder corresponding to the incremental relative path, and all subfolders and subfolders under the folder are traversed. file, thus, the relative paths corresponding to these subfolders and subfiles are obtained, for example, the relative paths of the subfolders and subfiles corresponding to the incremental relative path ..\\11\\22\\ are: ..\\11\\22\\33 etc. and ..\\11\\22\\SS.java etc.
步骤113:将预设的源文件路径分别与所述子文件夹相对路径及子文件相对路径进行路径组合,得到增量目标路径。Step 113: Combine the preset source file path with the relative path of the subfolder and the relative path of the subfile to obtain the incremental target path.
其中,所述步骤113中,将所述源文件路径与所述子文件夹相对路径进行路径组合时,得到该子文件夹相对路径对应的增量目标路径,将所述源文件路径与所述子文件相对路径进行路径组合时,得到该子文件相对路径对应的增量目标路径。例如:将源文件路径C:\project及增量相对路径..\\11\\22\\33进行组合,得到路径C:\project\\11\\22\\33为该子文件夹相对路径对应的增量目标路径;将源文件路径C:\project及增量相对路径..\\11\\22\\SS.java进行路径组合,得到路径如:C:\project\\11\\22\\SS.java。Wherein, in the step 113, when combining the path of the source file with the relative path of the subfolder, the incremental target path corresponding to the relative path of the subfolder is obtained, and the path of the source file is combined with the relative path of the subfolder. When the relative path of the sub-file is combined, the incremental target path corresponding to the relative path of the sub-file is obtained. For example: Combining the source file path C:\project and the incremental relative path ..\\11\\22\\33, the obtained path C:\project\\11\\22\\33 is relative to the subfolder The incremental target path corresponding to the path; combine the source file path C:\project and the incremental relative path ..\\11\\22\\SS.java to obtain a path such as: C:\project\\11\ \22\\SS.java.
步骤114:将预设的源文件路径与所述增量相对路径进行路径组合,得到增量目标路径。Step 114: Combine the preset source file path with the incremental relative path to obtain the incremental target path.
其中,所述步骤114中是指,在所述增量相对路径为文件路径时,将所述源文件路径与所述增量相对路径进行路径组合,得到增量目标路径,例如,将源文件路径C:\project及增量相对路径..\\11\\SS.java进行路径组合,得到增量目标路径如:C:\project\\11\\SS.java。Wherein, the step 114 refers to, when the incremental relative path is a file path, combining the source file path and the incremental relative path to obtain the incremental target path, for example, combining the source file The path C:\project and the incremental relative path ..\\11\\SS.java are combined to obtain the incremental target path such as: C:\project\\11\\SS.java.
参考图3,为本申请提供的一种增量数据获取方法实施例三中所述步骤102的流程图,其中,所述步骤102可以通过以下方式实现:Referring to FIG. 3 , it is a flow chart of step 102 in Embodiment 3 of an incremental data acquisition method provided by the present application, wherein step 102 can be implemented in the following manner:
步骤121:确定所述增量目标路径下的增量文件。Step 121: Determine the incremental file under the incremental target path.
其中,所述步骤121中是指,将所述增量目标路径下的文件确定为需要进行增量数据获取的增量文件。Wherein, the step 121 refers to determining the file under the incremental target path as an incremental file that requires incremental data acquisition.
步骤122:以预设的DOS命令复制方式,依据所述增量文件获取增量数据。Step 122: Obtain incremental data according to the incremental file in a preset DOS command copying manner.
其中,所述DOS命令复制方式是指,由用户预先设置的能够对所述增量文件进行数据复制等操作的命令复制方式,如Ctrl+C等方式。这种方式在进行数据复制时,不会改变被复制文件的修改日期,由此能够保证文件修改日期的准确,为后续确定软件项目所在服务器中的文件是否更新提供依据,为确定文件版本提供依据等。Wherein, the DOS command copy mode refers to a command copy mode preset by the user that can perform operations such as data copy on the incremental file, such as Ctrl+C and other modes. In this way, when data is copied, the modification date of the copied file will not be changed, thereby ensuring the accuracy of the file modification date, providing a basis for subsequent determination of whether the file in the server where the software project is located is updated, and providing a basis for determining the file version Wait.
基于上述步骤102的实现方式,所述步骤122中依据所述增量文件获取增量数据时,可以通过判断增量文件的类型,在增量文件类型不同时以不同方式获取增量数据,如图4中所示,为所述步骤122的实现流程图,所述步骤122可以包括以下步骤:Based on the implementation of the above-mentioned step 102, when the incremental data is obtained according to the incremental file in the step 122, the incremental data can be obtained in different ways when the incremental file type is different by judging the type of the incremental file, such as Shown in Fig. 4, be the implementation flowchart of described step 122, described step 122 may comprise the following steps:
步骤401:判断所述增量文件的类型是否为Java文件类型,如果是,执行步骤402,否则,执行步骤404。Step 401: Determine whether the type of the incremental file is a Java file type, if yes, perform step 402, otherwise, perform step 404.
步骤402:将所述增量文件进行编译,得到增量类文件,执行步骤403。Step 402: Compile the incremental file to obtain the incremental class file, and execute step 403.
其中,所述步骤402是指,在所述增量文件为java类文件时,需要将该java类文件进行编译,得到类class文件及其内部类class文件作为增量类文件。Wherein, the step 402 refers to, when the incremental file is a java class file, the java class file needs to be compiled to obtain the class class file and its internal class file as the incremental class file.
步骤403:以预设的DOS命令复制方式,获取所述增量类文件作为增量数据。Step 403: Obtain the incremental file as incremental data in a preset DOS command copying manner.
具体的,所述步骤403可以通过以下方式实现:Specifically, the step 403 may be implemented in the following manner:
以预设的DOS命令复制方式复制所述增量类文件,将复制到的增量类文件作为增量数据进行获取。The incremental file is copied in a preset DOS command copying manner, and the copied incremental file is acquired as incremental data.
步骤404:以预设的DOS命令复制方式,获取所述增量文件作为增量数据。Step 404: Obtain the incremental file as incremental data in a preset DOS command copying manner.
需要说明的是,由于所述增量文件可能为java类文件也可以为非java类文件,由此,在本申请实施例中方案被执行之前,用户可以预先设置一源文件操作指令,来决定是否对java类文件的增量文件对应的源文件进行复制操作。因此,参考图5,为本申请实施例三的部分流程图,其中,在所述步骤401中判断出所述增量文件为java类文件即该增量文件属于Java文件类型时,所述方法还可以包括:It should be noted that, since the incremental file may be a java class file or a non-java class file, the user can pre-set a source file operation instruction to determine Whether to copy the source file corresponding to the incremental file of the java class file. Therefore, with reference to FIG. 5 , it is a partial flow chart of Embodiment 3 of the present application, wherein, when it is judged in step 401 that the incremental file is a java class file, that is, the incremental file belongs to the Java file type, the method Can also include:
步骤405:依据预设的源文件操作指令,获取所述增量文件对应的源文件,将所述源文件置于预设目的路径对应的位置中。Step 405: Obtain the source file corresponding to the incremental file according to the preset source file operation instruction, and place the source file in a location corresponding to the preset destination path.
其中,所述步骤405是指,将增量数据对应的源文件进行获取并置于预设目的路径对应位置中,以保证在后续服务器中文件出现版本问题时,能够追溯到预先存储到该预设目的路径对应位置中的源文件历史版本。Wherein, the step 405 refers to obtaining the source file corresponding to the incremental data and placing it in the corresponding position of the preset destination path, so as to ensure that when a file version problem occurs in the subsequent server, it can be traced back to the pre-stored source file. Set the historical version of the source file in the location corresponding to the destination path.
例如,本申请实施例可以通过执行类实现,该执行类预先设置源文件路径、预设目的路径、复制方式如DOS命令复制方式及若增量文件为java类文件时是否进行源文件的复制等信息,并在配置文件中设置增量相对路径,例如:For example, the embodiment of the present application can be implemented through an execution class, which presets the source file path, the preset destination path, the copy method such as the DOS command copy method, and whether to copy the source file if the incremental file is a java class file, etc. information, and set the incremental relative path in the configuration file, for example:
listedFilesPath:″D:\\MyEclipse6.6\\workspace\\test\\src\\construct\\files.txt″;//配置文件路径listedFilesPath: "D:\\MyEclipse6.6\\workspace\\test\\src\\construct\\files.txt";//configuration file path
srcPath:″D:\\MyEclipse6.6\\workspace\\Sotower\\″;//源文件路径srcPath: "D:\\MyEclipse6.6\\workspace\\Sotower\\";//source file path
tarpath:″D:\\lddy\\″;//预设目的路径tarpath: "D:\\lddy\\";//preset destination path
copyMode:″2″;//复制方式,1是java,2是doscopyMode: "2";//Copy mode, 1 is java, 2 is dos
isCopySrc=″1″。//是否复制源文件,1是复制isCopySrc = "1". //Whether to copy the source file, 1 is to copy
配置文件files.txt中设置增量相对路径:Set the incremental relative path in the configuration file files.txt:
WebContent\reportFiles\lddy\LDDY_H12_C.raq;//需要进行增量数据获取的LDDY_H12_C.raq文件的增量相对路径WebContent\reportFiles\lddy\LDDY_H12_C.raq;//Incremental relative path of the LDDY_H12_C.raq file that requires incremental data acquisition
WebContent\reportFiles\lddy\LDDY_H12_1.raq;//需要进行增量数据获取的LDDY_H12_1.raq文件的增量相对路径WebContent\reportFiles\lddy\LDDY_H12_1.raq; //Incremental relative path of the LDDY_H12_1.raq file that requires incremental data acquisition
WebContent\reportFiles\lddy\LDDY_H12_2.raq。//需要进行增量数据获取的LDDY_H12_1.raq文件的增量相对路径WebContent\reportFiles\lddy\LDDY_H12_2.raq. //Incremental relative path of the LDDY_H12_1.raq file that requires incremental data acquisition
之后,执行上述执行类,实现对所述源文件路径中增量数据的获取以及在该增量数据对应的增量文件为java类文件时对其源文件的获取,之后在预设目的路径对应的文件夹下可以看到获取到的增量数据,实现本申请实施例目的。Afterwards, execute the above-mentioned execution class to realize the acquisition of incremental data in the source file path and the acquisition of its source file when the incremental file corresponding to the incremental data is a java class file, and then corresponding to the default destination path The obtained incremental data can be seen under the folder of , which realizes the purpose of the embodiment of this application.
参考图6,为本申请提供的一种增量数据获取装置实施例四的结构示意图,所述装置应用于对软件项目文件如操作系统等出现更新的数据进行获取,其中,所述装置可以包括:Referring to FIG. 6 , it is a schematic structural diagram of Embodiment 4 of an incremental data acquisition device provided by the present application. The device is used to obtain updated data of software project files such as operating systems, etc., wherein the device may include :
路径生成单元601,用于依据预设的源文件路径及增量相对路径,生成增量目标路径。The path generating unit 601 is configured to generate an incremental target path according to a preset source file path and an incremental relative path.
其中,所述预设的源文件路径是指软件项目文件所在路径,如C:\project。该软件项目文件中包括多个文件夹及文件,这些文件夹及文件以树状结构存在。所述增量相对路径是指需要进行增量数据获取(打包)的文件或文件夹所在的相对路径,如..\\11\\SS.java,该路径即为需要进行增量数据获取的文件SS.java的相对路径。其中,所述增量相对路径可以通过配置文件进行设置,也就是说,预先将该增量相对路径配置到一文件中,例如,将需要进行增量数据获取的文件路径信息配置到files.txt中,该files.txt即为配置文件。Wherein, the preset source file path refers to the path where the software project file is located, such as C:\project. The software project file includes multiple folders and files, and these folders and files exist in a tree structure. The incremental relative path refers to the relative path where the file or folder that needs to be acquired (packed) for incremental data, such as ..\\11\\SS.java, this path is the file that needs to be acquired for incremental data The relative path to the file SS.java. Wherein, the incremental relative path can be set through a configuration file, that is, the incremental relative path is configured in a file in advance, for example, the file path information that needs to be acquired for incremental data is configured in files.txt , the files.txt is the configuration file.
需要说明的是,所述路径生成单元601可以通过将所述源文件路径及所述增量相对路径进行路径组合的方式,得到增量目标路径。例如,将源文件路径C:\project及增量相对路径..\\11\\SS.java进行路径组合,得到路径如:C:\project\\11\\SS.java,该路径即为所述增量目标路径,所述增量目标路径即为需要进行增量数据获取的目标文件所在的绝对路径。It should be noted that, the path generating unit 601 may obtain the incremental target path by combining the source file path and the incremental relative path. For example, combine the source file path C:\project and the incremental relative path ..\\11\\SS.java to obtain a path such as: C:\project\\11\\SS.java, which is The incremental target path, the incremental target path is the absolute path where the target file that requires incremental data acquisition is located.
数据获取单元602,用于依据所述增量目标路径,获取增量数据。The data obtaining unit 602 is configured to obtain incremental data according to the incremental target path.
其中,所述数据获取单元602中,由于所述增量目标路径为需要进行增量数据获取的目标文件所在的绝对路径,由此,通过该增量目标路径可以定位到该目标文件,由此获取增量数据。Wherein, in the data acquisition unit 602, since the incremental target path is the absolute path where the target file that requires incremental data acquisition is located, the target file can be located through the incremental target path, thus Get incremental data.
数据设置单元603,用于将所述增量数据置于预设目的路径对应的位置中。A data setting unit 603, configured to place the incremental data in a position corresponding to the preset destination path.
其中,所述预设目的路径是指增量数据所需要放置的路径,也就是说,在获取到增量数据之后,存储所述增量数据的路径。所述预设目的路径对应的位置可以为所述预设目的路径下位置或该路径下的文件夹内。Wherein, the preset destination path refers to the path where the incremental data needs to be placed, that is, the path where the incremental data is stored after the incremental data is acquired. The location corresponding to the preset destination path may be a location under the preset destination path or a folder under the path.
由上述方案可知,本申请提供的一种增量数据获取装置实施例四,通过利用预设的源文件路径及增量相对路径生成增量目标路径之后,依据该增量目标路径获取到增量数据,进而将该增量数据置于预设的目的路径对应的位置中,实现对增量数据的获取。本申请实施例四在实现增量数据获取时,只需用户预先设置源文件路径、增量相对路径及目的路径即可,本申请实施例四利用这些路径实现对这些路径对应的增量数据进行获取,由此将获取到的增量数据置于目的路径对应位置中,无需用户对任何一个待增量更新的项目进行增量数据复制获取,由此不仅减少获取增量数据的流程,提高增量数据的获取效率,同时减少用户手动操作带来的错误,提高增量数据的准确率。It can be seen from the above solution that the fourth embodiment of an incremental data acquisition device provided by the present application uses the preset source file path and the incremental relative path to generate the incremental target path, and then obtains the incremental data according to the incremental target path. data, and then place the incremental data in a position corresponding to the preset destination path to realize the acquisition of the incremental data. In Embodiment 4 of the present application, when realizing incremental data acquisition, it is only necessary for the user to pre-set the source file path, incremental relative path, and destination path. Embodiment 4 of the present application uses these paths to realize incremental data corresponding to these paths Acquisition, so that the acquired incremental data is placed in the corresponding position of the destination path, and the user does not need to copy and acquire incremental data for any item to be incrementally updated. This not only reduces the process of acquiring incremental data, but also improves the It can improve the efficiency of acquiring large amounts of data, reduce errors caused by manual operations by users, and improve the accuracy of incremental data.
另外,本申请实施例通过对多个源文件路径、其对应增量相对路径及预设目的路径进行设置,进而能够实现对多个源文件的批量增量数据获取,避免了用户反复对数据进行复制获取降低工作效率的情况,提高了批量增量数据获取的效率。In addition, the embodiment of the present application sets multiple source file paths, their corresponding incremental relative paths, and preset destination paths, so as to achieve batch incremental data acquisition for multiple source files, avoiding repeated data processing by users. Duplicate acquisition reduces work efficiency, and improves the efficiency of batch incremental data acquisition.
参考图7,为本申请提供的一种增量数据获取装置实施例五中所述路径生成单元601的结构示意图,其中,所述路径生成单元601可以包括:Referring to FIG. 7 , it is a schematic structural diagram of the path generation unit 601 in Embodiment 5 of an incremental data acquisition device provided by the present application, wherein the path generation unit 601 may include:
类型判断子单元611,用于判断所述增量相对路径的路径类型,在所述增量相对路径为文件夹路径时,触发第一路径组合子单元612,否则,触发第二路径组合子单元613。The type judgment subunit 611 is used to judge the path type of the incremental relative path, and when the incremental relative path is a folder path, trigger the first path combination subunit 612, otherwise, trigger the second path combination subunit 613.
其中,所述增量相对路径的路径类型可以为文件夹路径类型,也可以为文件路径类型,例如,增量相对路径..\\11\\SS.java为文件路径类型,增量相对路径..\\11\\22\\为文件夹路径类型。Wherein, the path type of the incremental relative path can be a folder path type, and can also be a file path type, for example, the incremental relative path ..\\11\\SS.java is a file path type, and the incremental relative path ..\\11\\22\\ is the folder path type.
第一路径组合子单元612,用于获取所述增量相对路径下的子文件夹相对路径及子文件相对路径,将预设的源文件路径分别与所述子文件夹相对路径及子文件相对路径进行路径组合,得到增量目标路径。The first path combination subunit 612 is used to obtain the relative path of the subfolder and the relative path of the subfile under the incremental relative path, and compare the preset source file path with the relative path of the subfolder and the relative path of the subfile respectively. The paths are combined to obtain the incremental target path.
其中,所述第一路径组合子单元612在获取所述增量相对路径下的子文件夹相对路径及子文件相对路径时,是指,在所述增量相对路径为文件夹路径时,对该增量相对路径对应的文件夹进行递归操作,遍历到该文件夹下的所有子文件夹及子文件,由此,对这些子文件夹及子文件对应的相对路径进行获取,例如,增量相对路径..\\11\\22\\对应的子文件夹相对路径及子文件相对路径为:..\\11\\22\\33等及..\\11\\22\\SS.java等。Wherein, when the first path combination subunit 612 obtains the relative path of the subfolder and the relative path of the subfile under the incremental relative path, it means that when the incremental relative path is a folder path, the The folder corresponding to the incremental relative path recursively traverses all subfolders and subfiles under the folder, thereby obtaining the relative paths corresponding to these subfolders and subfiles, for example, incremental The relative path of ..\\11\\22\\ corresponds to the relative path of the subfolder and the relative path of the subfile: ..\\11\\22\\33 and so on and ..\\11\\22\\SS .java etc.
其中,所述第一路径组合子单元612在将预设的源文件路径分别与所述子文件夹相对路径及子文件相对路径进行路径组合,得到增量目标路径时,是指,将所述源文件路径与所述子文件夹相对路径进行路径组合时,得到该子文件夹相对路径对应的增量目标路径,将所述源文件路径与所述子文件相对路径进行路径组合时,得到该子文件相对路径对应的增量目标路径。例如:将源文件路径C:\project及增量相对路径..\\11\\22\\33进行组合,得到路径C:\project\\11\\22\\33为该子文件夹相对路径对应的增量目标路径;将源文件路径C:\project及增量相对路径..\\11\\22\\SS.java进行路径组合,得到路径如:C:\project\\11\\22\\SS.java。Wherein, when the first path combination subunit 612 combines the preset source file path with the relative path of the subfolder and the relative path of the subfile to obtain the incremental target path, it means that the When the source file path is combined with the relative path of the subfolder, the incremental target path corresponding to the relative path of the subfolder is obtained; when the path of the source file is combined with the relative path of the subfolder, the The incremental target path corresponding to the relative path of the child file. For example: Combining the source file path C:\project and the incremental relative path ..\\11\\22\\33, the obtained path C:\project\\11\\22\\33 is relative to the subfolder The incremental target path corresponding to the path; combine the source file path C:\project and the incremental relative path ..\\11\\22\\SS.java to obtain a path such as: C:\project\\11\ \22\\SS.java.
第二路径组合子单元613,用于将预设的源文件路径与所述增量相对路径进行路径组合,得到增量目标路径。The second path combination subunit 613 is configured to path-combine the preset source file path and the incremental relative path to obtain the incremental target path.
其中,所述第二路径组合子单元613是指,在所述增量相对路径为文件路径时,将所述源文件路径与所述增量相对路径进行路径组合,得到增量目标路径,例如,将源文件路径C:\project及增量相对路径..\\11\\SS.java进行路径组合,得到增量目标路径如:C:\project\\11\\SS.java。Wherein, the second path combining subunit 613 refers to, when the incremental relative path is a file path, path combining the source file path and the incremental relative path to obtain an incremental target path, for example , combine the source file path C:\project and the incremental relative path ..\\11\\SS.java to obtain the incremental target path such as: C:\project\\11\\SS.java.
参考图8,为本申请提供的一种增量数据获取装置实施例六中所述数据获取单元602的结构示意图,其中,所述数据获取单元602可以包括:Referring to FIG. 8 , it is a schematic structural diagram of the data acquisition unit 602 in Embodiment 6 of an incremental data acquisition device provided by the present application, wherein the data acquisition unit 602 may include:
增量确定子单元621,用于确定所述增量目标路径下的增量文件。The increment determination subunit 621 is configured to determine the increment file under the increment target path.
其中,所述增量确定子单元621是指,将所述增量目标路径下的文件确定为需要进行增量数据获取的增量文件。Wherein, the incremental determining subunit 621 refers to determining the files under the incremental target path as incremental files that need to be acquired for incremental data.
增量获取子单元622,用于以预设的DOS命令复制方式,依据所述增量文件获取增量数据。The incremental acquisition subunit 622 is configured to acquire incremental data according to the incremental file in a preset DOS command copying manner.
其中,所述DOS命令复制方式是指,由用户预先设置的能够对所述增量文件进行数据复制等操作的命令复制方式,如Ctrl+C等方式。这种方式在进行数据复制时,不会改变被复制文件的修改日期,由此能够保证文件修改日期的准确,为后续确定软件项目所在服务器中的文件是否更新提供依据,为确定文件版本提供依据等。Wherein, the DOS command copy mode refers to a command copy mode preset by the user that can perform operations such as data copy on the incremental file, such as Ctrl+C and other modes. In this way, when data is copied, the modification date of the copied file will not be changed, thereby ensuring the accuracy of the file modification date, providing a basis for subsequent determination of whether the file in the server where the software project is located is updated, and providing a basis for determining the file version Wait.
基于上述实现结构,所述增量获取子单元622中依据所述增量文件获取增量数据时,可以通过判断增量文件的类型,在增量文件类型不同时以不同方式获取增量数据,参考图9,为本申请实施例六所述增量获取子单元622的结构示意图,其中,所述增量获取子单元622可以包括:Based on the above implementation structure, when the incremental data is acquired according to the incremental file in the incremental acquisition subunit 622, the incremental data can be acquired in different ways when the incremental file type is different by judging the type of the incremental file, Referring to FIG. 9 , it is a schematic structural diagram of the incremental acquisition subunit 622 in Embodiment 6 of the present application, wherein the incremental acquisition subunit 622 may include:
文件类型判断模块901,用于判断所述增量文件的类型是否为Java文件类型,如果是,触发第一增量获取模块902,否则,触发第二增量获取模块903;A file type judging module 901, configured to judge whether the type of the incremental file is a Java file type, if so, trigger the first incremental acquisition module 902, otherwise, trigger the second incremental acquisition module 903;
第一增量获取模块902,用于将所述增量文件进行编译,得到增量类文件,以预设的DOS命令复制方式,获取所述增量类文件作为增量数据;The first incremental acquisition module 902 is configured to compile the incremental file to obtain an incremental file, and obtain the incremental file as incremental data in a preset DOS command copy mode;
其中,所述第一增量获取模块902是指,在所述增量文件为java类文件时,需要将该java类文件进行编译,得到类class文件及其内部类class文件作为增量类文件。Wherein, the first incremental acquisition module 902 means that when the incremental file is a java class file, the java class file needs to be compiled to obtain the class class file and its internal class class file as the incremental class file .
具体的,所述第一增量获取模块902在以预设的DOS命令复制方式,获取所述增量类文件作为增量数据时,可以通过以下方式实现:Specifically, when the first incremental acquisition module 902 obtains the incremental file as incremental data in a preset DOS command copy mode, it can be implemented in the following manner:
以预设的DOS命令复制方式复制所述增量类文件,将复制到的增量类文件作为增量数据进行获取。The incremental file is copied in a preset DOS command copying manner, and the copied incremental file is acquired as incremental data.
第二增量获取模块903,用于以预设的DOS命令复制方式,获取所述增量文件作为增量数据。The second incremental acquisition module 903 is configured to acquire the incremental file as incremental data in a preset DOS command copy manner.
需要说明的是,由于所述增量文件可能为java类文件也可以为非java类文件,由此,在本申请实施例中方案被执行之前,用户可以预先设置一源文件操作指令,来决定是否对java类文件的增量文件对应的源文件进行复制操作。因此,参考图10,为本申请实施例六的部分结构示意图,其中,所述装置还可以包括:It should be noted that, since the incremental file may be a java class file or a non-java class file, the user can pre-set a source file operation instruction to determine Whether to copy the source file corresponding to the incremental file of the java class file. Therefore, referring to FIG. 10 , it is a partial structural schematic diagram of Embodiment 6 of the present application, wherein the device may further include:
源文件处理单元904,用于在所述文件类型判断模块901判断出所述增量文件的类型为Java文件类型时,依据预设的源文件操作指令,获取所述增量文件对应的源文件,将所述源文件置于预设目的路径对应的位置中。The source file processing unit 904 is configured to obtain the source file corresponding to the incremental file according to a preset source file operation instruction when the file type judging module 901 determines that the type of the incremental file is a Java file type , and place the source file in a location corresponding to the preset destination path.
其中,所述源文件处理单元904是指,将增量数据对应的源文件进行获取并置于预设目的路径对应位置中,以保证在后续服务器中文件出现版本问题时,能够追溯到预先存储到该预设目的路径对应位置中的源文件历史版本。Wherein, the source file processing unit 904 refers to obtaining the source file corresponding to the incremental data and placing it in the corresponding position of the preset destination path, so as to ensure that when a file version problem occurs in the subsequent server, it can be traced back to the pre-stored file. Go to the historical version of the source file in the location corresponding to the preset destination path.
例如,本申请实施例可以通过执行类实现,该执行类预先设置源文件路径、预设目的路径、复制方式如DOS命令复制方式及若增量文件为java类文件时是否进行源文件的复制等信息,并在配置文件中设置增量相对路径,例如:For example, the embodiment of the present application can be implemented through an execution class, which presets the source file path, the preset destination path, the copy method such as the DOS command copy method, and whether to copy the source file if the incremental file is a java class file, etc. information, and set the incremental relative path in the configuration file, for example:
listedFilesPath:″D:\\MyEclipse6.6\\workspace\\test\\src\\construct\\files.txt″;//配置文件路径listedFilesPath: "D:\\MyEclipse6.6\\workspace\\test\\src\\construct\\files.txt";//configuration file path
srcPath:″D:\\MyEclipse6.6\\workspace\\Sotower\\″;//源文件路径srcPath: "D:\\MyEclipse6.6\\workspace\\Sotower\\";//source file path
tarpath:″D:\\lddy\\″;//预设目的路径tarpath: "D:\\lddy\\";//preset destination path
copyMode:″2″;//复制方式,1是java,2是doscopyMode: "2";//Copy mode, 1 is java, 2 is dos
isCopySrc=″1″。//是否复制源文件,1是复制isCopySrc = "1". //Whether to copy the source file, 1 is to copy
配置文件files.txt中设置增量相对路径:Set the incremental relative path in the configuration file files.txt:
WebContent\reportFiles\lddy\LDDY_H12_C.raq;//需要进行增量数据获取的LDDY_H12_C.raq文件的增量相对路径WebContent\reportFiles\lddy\LDDY_H12_C.raq;//Incremental relative path of the LDDY_H12_C.raq file that requires incremental data acquisition
WebContent\reportFiles\lddy\LDDY_H12_1.raq;//需要进行增量数据获取的LDDY_H12_1.raq文件的增量相对路径WebContent\reportFiles\lddy\LDDY_H12_1.raq; //Incremental relative path of the LDDY_H12_1.raq file that requires incremental data acquisition
WebContent\reportFiles\lddy\LDDY_H12_2.raq。//需要进行增量数据获取的LDDY_H12_1.raq文件的增量相对路径WebContent\reportFiles\lddy\LDDY_H12_2.raq. //Incremental relative path of the LDDY_H12_1.raq file that requires incremental data acquisition
之后,执行上述执行类,实现对所述源文件路径中增量数据的获取以及在该增量数据对应的增量文件为java类文件时对其源文件的获取,之后在预设目的路径对应的文件夹下可以看到获取到的增量数据,实现本申请实施例目的。Afterwards, execute the above-mentioned execution class to realize the acquisition of incremental data in the source file path and the acquisition of its source file when the incremental file corresponding to the incremental data is a java class file, and then corresponding to the default destination path The obtained incremental data can be seen under the folder of , which realizes the purpose of the embodiment of this application.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts in each embodiment, refer to each other, that is, Can.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上对本申请所提供的一种增量数据获取方法及装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The method and device for acquiring incremental data provided by this application have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of this application. The description of the above embodiment is only used to help understand this application. method and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be understood as Limitations on this Application.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310714015.XA CN103645905B (en) | 2013-12-20 | 2013-12-20 | A kind of incremental data acquisition method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310714015.XA CN103645905B (en) | 2013-12-20 | 2013-12-20 | A kind of incremental data acquisition method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103645905A CN103645905A (en) | 2014-03-19 |
| CN103645905B true CN103645905B (en) | 2017-08-08 |
Family
ID=50251129
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310714015.XA Active CN103645905B (en) | 2013-12-20 | 2013-12-20 | A kind of incremental data acquisition method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103645905B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106547644B (en) * | 2015-09-21 | 2020-11-20 | 伊姆西Ip控股有限责任公司 | Incremental backup method and equipment |
| CN105868361A (en) * | 2016-03-29 | 2016-08-17 | 中国银行股份有限公司 | Data updating method and device |
| CN107291439B (en) * | 2016-04-13 | 2020-06-16 | 阿里巴巴集团控股有限公司 | Target incremental data construction method and device |
| CN108647268A (en) * | 2018-04-28 | 2018-10-12 | 国网湖南省电力有限公司 | Increment updating method for distribution network planning data integration |
| CN112559019B (en) * | 2019-09-10 | 2025-01-24 | 联易软件有限公司 | Incremental file updating method and device |
| CN112269795B (en) * | 2020-10-31 | 2022-05-13 | 武汉中海庭数据技术有限公司 | NDS data rapid testing and verifying method |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101354708A (en) * | 2008-07-29 | 2009-01-28 | 四川大学 | A Method for Fast Synchronization of Remote Files |
| CN102331957A (en) * | 2011-09-28 | 2012-01-25 | 华为技术有限公司 | File backup method and device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4446738B2 (en) * | 2001-08-20 | 2010-04-07 | データセンターテクノロジーズ エヌ.ヴイ. | System and method for efficiently backing up computer files |
-
2013
- 2013-12-20 CN CN201310714015.XA patent/CN103645905B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101354708A (en) * | 2008-07-29 | 2009-01-28 | 四川大学 | A Method for Fast Synchronization of Remote Files |
| CN102331957A (en) * | 2011-09-28 | 2012-01-25 | 华为技术有限公司 | File backup method and device |
Non-Patent Citations (2)
| Title |
|---|
| 《linux c编程-实现文件夹的递归拷贝》;karry_vcent;《http://blog.csdn.net/k_linux_man/article/details/6709625》;20110822;正文第1页 * |
| 《Object-C 学习笔记(二十五)--- 文件操作(写文件/读文件/复制文件)》;dragonzard;《http://blog.csdn.net/dragonzard/article/details/17415603》;20131229;正文第2页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103645905A (en) | 2014-03-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103645905B (en) | A kind of incremental data acquisition method and device | |
| AU2011258098B2 (en) | Schema contracts for data integration | |
| US8615499B2 (en) | Estimating data reduction in storage systems | |
| CN106663002B (en) | REST service source code generation | |
| CN107707625A (en) | Foreground resource based on Maven is packed and carries out version management and the method used | |
| US20130159365A1 (en) | Using Distributed Source Control in a Centralized Source Control Environment | |
| WO2017084266A1 (en) | Method and device for customizing multi-channel installation package | |
| WO2017084555A1 (en) | Method for generating and installing trusted application for use in a trusted execution environment | |
| JP2009520268A5 (en) | ||
| CN104423955A (en) | Method and system for realizing automatic compilation of iOS application | |
| RU2003119092A (en) | SYSTEM AND METHOD OF SUPPORTING "OWN" XML IN "OWN" XML IN A TEXT PROCESSOR DOCUMENT | |
| CN105354036A (en) | Database operation code generating method and apparatus | |
| CN107256160A (en) | A kind of code document generation method in continuous integrating, apparatus and system | |
| CN104007984A (en) | A method and device for converting data | |
| CN103677814A (en) | Program acquisition method, device and system | |
| CN103136354A (en) | Linux system folder comparison method | |
| CN112241286A (en) | Resource package configuration method and device and storage medium | |
| CN106250181A (en) | The performance optimization method of a kind of (SuSE) Linux OS and framework | |
| CN115857914A (en) | A method, device and storage medium for automatically generating codes | |
| US20160283226A1 (en) | Smart hashing to reduce server memory usage in a distributed system | |
| CN103744678B (en) | Method for determining static function call relations based on register transfer language | |
| US11150897B1 (en) | Codifying rules from online documentation | |
| CN108021423A (en) | A kind of Multilingual website generating method, system and computer-readable recording medium | |
| JP2014164545A (en) | Deployment method and program | |
| CN114527987A (en) | Application software package generation method and device, computer equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder | ||
| CP01 | Change in the name or title of a patent holder |
Address after: 100192 Beijing city Haidian District Qinghe small Camp Road No. 15 Co-patentee after: STATE GRID CORPORATION OF CHINA Patentee after: BEIJING CHINA POWER INFORMATION TECHNOLOGY Co.,Ltd. Address before: 100192 Beijing city Haidian District Qinghe small Camp Road No. 15 Co-patentee before: State Grid Corporation of China Patentee before: BEIJING CHINA POWER INFORMATION TECHNOLOGY Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20190724 Address after: 100085 Building 32-3-4108-4109, Pioneer Road, Haidian District, Beijing Co-patentee after: STATE GRID CORPORATION OF CHINA Patentee after: BEIJING GUODIANTONG NETWORK TECHNOLOGY Co.,Ltd. Address before: 100192 Beijing city Haidian District Qinghe small Camp Road No. 15 Co-patentee before: State Grid Corporation of China Patentee before: BEIJING CHINA POWER INFORMATION TECHNOLOGY Co.,Ltd. |