CN112181479A - Method and device for determining difference between code file versions and electronic equipment - Google Patents

Method and device for determining difference between code file versions and electronic equipment Download PDF

Info

Publication number
CN112181479A
CN112181479A CN202011009923.5A CN202011009923A CN112181479A CN 112181479 A CN112181479 A CN 112181479A CN 202011009923 A CN202011009923 A CN 202011009923A CN 112181479 A CN112181479 A CN 112181479A
Authority
CN
China
Prior art keywords
jar
code file
file
jar packet
packet
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
Application number
CN202011009923.5A
Other languages
Chinese (zh)
Inventor
刘磊
林超
王云飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202011009923.5A priority Critical patent/CN112181479A/en
Publication of CN112181479A publication Critical patent/CN112181479A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a method and a device for determining differences among code file versions and electronic equipment. The method comprises the following steps: acquiring a first code file and a second code file to be compared, wherein the first code file and the second code file correspond to different software versions respectively; determining whether the first JAR package is the same as a corresponding second JAR package, wherein the first code file comprises at least one first JAR package, and the second code file comprises at least one second JAR package; and if the first JAR packet is different from the corresponding second JAR packet, determining the difference information based on the first JAR packet and the corresponding second JAR packet. Based on the scheme, the JAR packages of the code files of different versions can be compared, and the difference information between the code files of the versions is determined according to the different JAR packages between the versions, so that the efficiency of the difference analysis between the codes is improved, the condition that the analysis is incomplete possibly when the difference is analyzed manually based on experience is avoided, and the statistics and the analysis based on the difference information are facilitated.

Description

Method and device for determining difference between code file versions and electronic equipment
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for determining differences among code file versions and electronic equipment.
Background
With the rapid development of computer technology, version iterations of computer software are also more frequent. An iteration of a software version may produce a different version of the code file.
In the software version iteration process, the change of the code file generated after iteration is opaque, and the determination of the difference of the code file in the software version iteration process has important significance for subsequent statistics and analysis. In the prior art, workers are required to analyze the difference between code files of different versions based on experience, the efficiency is low, incomplete analysis may exist, and subsequent statistics and analysis are inconvenient.
Disclosure of Invention
The present application aims to solve at least one of the above technical drawbacks. The technical scheme adopted by the application is as follows:
in a first aspect, an embodiment of the present application provides a method for determining differences between versions of a code file, where the method includes:
acquiring a first code file and a second code file to be compared, wherein the first code file and the second code file correspond to different software versions respectively;
determining whether the first JAR package is the same as a corresponding second JAR package, wherein the first code file comprises at least one first JAR package, and the second code file comprises at least one second JAR package;
and if the first JAR packet is different from the corresponding second JAR packet, determining the difference information based on the first JAR packet and the corresponding second JAR packet.
Optionally, determining whether the first JAR packet is identical to the corresponding second JAR packet includes:
determining whether the first JAR package is identical to a corresponding second JAR package based on the MD5 value of the first JAR package and the MD5 value of the corresponding second JAR package.
Optionally, determining difference information based on the first JAR packet and the corresponding second JAR packet includes:
and comparing the attribute file of the first JAR packet with the attribute file of the corresponding second JAR packet to determine the difference information.
Optionally, the obtaining the first code file and the second code file to be compared includes:
acquiring identification information of a first code file and identification information of a second code file submitted by a user;
inquiring the first code file based on the identification information of the first code file;
the second code file is queried based on the identification information of the second code file.
Optionally, the method further includes:
and displaying the difference information on a difference information display page.
Optionally, the method further includes:
and when a user checking instruction of the attribute file to the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet is detected, jumping to a display page of the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet.
Optionally, detecting a user viewing instruction of the attribute file for the attribute file of the first JAR package and the attribute file of the corresponding second JAR package, includes:
and determining a viewing instruction of the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet by the user through detecting the clicking operation of the user on the appointed control in the display page.
In a second aspect, an embodiment of the present application provides an apparatus for determining a difference between versions of a code file, where the apparatus includes:
the code file acquisition module is used for acquiring a first code file and a second code file to be compared, and the first code file and the second code file correspond to different software versions respectively;
the JAR package comparison module is used for determining whether the first JAR package is the same as a corresponding second JAR package or not, the first code file comprises at least one first JAR package, and the second code file comprises at least one second JAR package;
and the difference information determining module is used for determining the difference information based on the first JAR packet and the corresponding second JAR packet when the first JAR packet is different from the corresponding second JAR packet.
Optionally, the JAR packet comparing module, when determining whether the first JAR packet is the same as the corresponding second JAR packet, is specifically configured to:
determining whether the first JAR package is identical to a corresponding second JAR package based on the MD5 value of the first JAR package and the MD5 value of the corresponding second JAR package.
Optionally, when determining the difference information based on the first JAR packet and the corresponding second JAR packet, the difference information determining module is specifically configured to:
and comparing the attribute file of the first JAR packet with the attribute file of the corresponding second JAR packet to determine the difference information.
Optionally, when the code file obtaining module obtains the first code file and the second code file to be compared, the code file obtaining module is specifically configured to:
acquiring identification information of a first code file and identification information of a second code file submitted by a user;
inquiring the first code file based on the identification information of the first code file;
the second code file is queried based on the identification information of the second code file.
Optionally, the apparatus further comprises:
and the difference information display module is used for displaying the difference information on the difference information display page.
Optionally, the apparatus further comprises:
and the attribute file viewing module is used for jumping to display pages of the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet when a user viewing instruction of the attribute file to the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet is detected.
Optionally, when detecting a user's instruction for viewing the attribute file of the first JAR package and the attribute file of the corresponding second JAR package, the attribute file viewing module is specifically configured to:
and determining a viewing instruction of the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet by the user through detecting the clicking operation of the user on the appointed control in the display page.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;
a memory for storing operating instructions;
a processor, configured to execute the method for determining a difference between code file versions as shown in any embodiment of the first aspect of the present application by calling an operation instruction.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for determining differences between code file versions as shown in any one of the embodiments of the first aspect of the present application.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
according to the scheme provided by the embodiment of the application, whether each first JAR packet in the first code file is the same as a corresponding second JAR packet in the second code file or not is determined by acquiring the first code file to be compared and the second code file, and if the first JAR packet is different from the corresponding second JAR packet, the difference information can be determined based on the first JAR packet and the corresponding second JAR packet. Based on the scheme, the JAR packages of the code files of different versions can be compared, and the difference information between the code files of the versions is determined according to the different JAR packages between the versions, so that the efficiency of the difference analysis between the codes is improved, the condition that the analysis is incomplete possibly when the difference is manually analyzed based on experience is avoided, and the subsequent statistics and analysis based on the difference information between the versions are facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a method for determining differences between code file versions according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an apparatus for determining differences between code file versions according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 shows a schematic flowchart of a method for determining differences between code file versions according to an embodiment of the present application, and as shown in fig. 1, the method mainly includes:
step S110: acquiring a first code file and a second code file to be compared, wherein the first code file and the second code file correspond to different software versions respectively;
step S120: determining whether the first JAR package is the same as a corresponding second JAR package, wherein the first code file comprises at least one first JAR package, and the second code file comprises at least one second JAR package;
step S130: and if the first JAR packet is different from the corresponding second JAR packet, determining the difference information based on the first JAR packet and the corresponding second JAR packet.
In the embodiment of the application, when the code files of different versions of the same software are subjected to difference comparison, the first code file and the second code file to be compared can be obtained.
In the embodiment of the application, the code file may be composed of a plurality of JAR packages, and each JAR package may be compared.
As an example, the first code file is a new version code file, the second code file is an old version code file, and each JAR package in the new version code file may be compared with a corresponding JAR package in the old version code file. For example, JAR package a in a new version code file is compared with corresponding JAR package a' in an old version code file
In this embodiment of the present application, if corresponding JAR packages exist in the first code file and the second JAR package that are different, analysis may be performed according to the two different JAR packages to determine difference information between the first code file and the second code file.
In the method provided by the embodiment of the application, whether each first JAR package in the first code file is the same as a corresponding second JAR package in the second code file is determined by obtaining the first code file and the second code file to be compared, and if the first JAR package is different from the corresponding second JAR package, the difference information can be determined based on the first JAR package and the corresponding second JAR package. Based on the scheme, the JAR packages of the code files of different versions can be compared, and the difference information between the code files of the versions is determined according to the different JAR packages between the versions, so that the efficiency of the difference analysis between the codes is improved, the condition that the analysis is incomplete possibly when the difference is manually analyzed based on experience is avoided, and the subsequent statistics and analysis based on the difference information between the versions are facilitated.
In an optional manner of the embodiment of the present application, determining whether the first JAR package is the same as the corresponding second JAR package includes:
determining whether the first JAR package is identical to a corresponding second JAR package based on the MD5 value of the first JAR package and the MD5 value of the corresponding second JAR package.
In this embodiment of the present application, whether the JAR packages are the same may be determined according to MD5 values of the JAR packages, and specifically, if the MD5 value of the first JAR package is the same as the MD5 value of the second JAR package corresponding to the first JAR package, it may be determined that the first JAR package is the same as the second JAR package corresponding to the first JAR package; if the MD5 value of the first JAR packet is not the same as the MD5 value of its corresponding second JAR packet, it may be determined that the first JAR packet is not the same as its corresponding second JAR packet.
In an optional manner of the embodiment of the present application, determining difference information based on a first JAR packet and a corresponding second JAR packet includes:
and comparing the attribute file of the first JAR packet with the attribute file of the corresponding second JAR packet to determine the difference information.
In this embodiment of the application, when the first JAR package is different from the corresponding second JAR package, the attribute file of the first JAR package may be compared with the attribute file of the second JAR package corresponding to the first JAR package, so as to determine the difference information.
In an optional manner of the embodiment of the present application, acquiring a first code file and a second code file to be compared includes:
acquiring identification information of a first code file and identification information of a second code file submitted by a user;
inquiring the first code file based on the identification information of the first code file;
the second code file is queried based on the identification information of the second code file.
In this embodiment, different versions of code files may be stored in the code file management system, and when a user collates the different versions of code files, the user may submit identification information of the code files (e.g., a version number of the first code file and a version number of the second code file), so as to query the first code file and the second code file from the code file management system based on the identification information.
In an optional manner of the embodiment of the present application, the method further includes:
and displaying the difference information on a difference information display page.
In the embodiment of the application, after the difference information between the code files of different versions is determined, the difference information can be displayed through the difference information display page.
In an optional manner of the embodiment of the present application, the method further includes:
and when a user checking instruction of the attribute file to the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet is detected, jumping to a display page of the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet.
In the embodiment of the application, when the user views the difference information, the user may need to view the attribute file details of the code file, at this time, the user may send a view instruction of the attribute file, and at this time, the page may jump to a display page of the attribute file for the user to view.
In an optional manner of the embodiment of the present application, detecting a user viewing instruction for a property file of a first JAR package and a property file of a corresponding second JAR package, includes:
and determining a viewing instruction of the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet by the user through detecting the clicking operation of the user on the appointed control in the display page.
In the embodiment of the application, a specified control, such as a virtual button of "attribute file details", can be set in the display page, and a user can send a viewing instruction by clicking the specified control.
Based on the same principle as the method shown in fig. 1, fig. 2 shows a schematic structural diagram of an apparatus for determining differences between code file versions provided by an embodiment of the present application, and as shown in fig. 2, the apparatus 20 for determining differences between code file versions may include:
a code file obtaining module 210, configured to obtain a first code file and a second code file to be compared, where the first code file and the second code file correspond to different software versions respectively;
a JAR package comparison module 220, configured to determine whether the first JAR package is the same as a corresponding second JAR package, where the first code file includes at least one first JAR package, and the second code file includes at least one second JAR package;
the difference information determining module 230 is configured to determine, when the first JAR packet is different from the corresponding second JAR packet, difference information based on the first JAR packet and the corresponding second JAR packet.
The device provided by the embodiment of the application determines whether each first JAR package in the first code file is the same as a corresponding second JAR package in the second code file by acquiring the first code file and the second code file to be compared, and if the first JAR package is different from the corresponding second JAR package, the device can determine the difference information based on the first JAR package and the corresponding second JAR package. Based on the scheme, the JAR packages of the code files of different versions can be compared, and the difference information between the code files of the versions is determined according to the different JAR packages between the versions, so that the efficiency of the difference analysis between the codes is improved, the condition that the analysis is incomplete possibly when the difference is manually analyzed based on experience is avoided, and the subsequent statistics and analysis based on the difference information between the versions are facilitated.
Optionally, the JAR packet comparing module, when determining whether the first JAR packet is the same as the corresponding second JAR packet, is specifically configured to:
determining whether the first JAR package is identical to a corresponding second JAR package based on the MD5 value of the first JAR package and the MD5 value of the corresponding second JAR package.
Optionally, when determining the difference information based on the first JAR packet and the corresponding second JAR packet, the difference information determining module is specifically configured to:
and comparing the attribute file of the first JAR packet with the attribute file of the corresponding second JAR packet to determine the difference information.
Optionally, when the code file obtaining module obtains the first code file and the second code file to be compared, the code file obtaining module is specifically configured to:
acquiring identification information of a first code file and identification information of a second code file submitted by a user;
inquiring the first code file based on the identification information of the first code file;
the second code file is queried based on the identification information of the second code file.
Optionally, the apparatus further comprises:
and the difference information display module is used for displaying the difference information on the difference information display page.
Optionally, the apparatus further comprises:
and the attribute file viewing module is used for jumping to display pages of the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet when a user viewing instruction of the attribute file to the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet is detected.
Optionally, when detecting a user's instruction for viewing the attribute file of the first JAR package and the attribute file of the corresponding second JAR package, the attribute file viewing module is specifically configured to:
and determining a viewing instruction of the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet by the user through detecting the clicking operation of the user on the appointed control in the display page.
It is to be understood that the above modules of the device for determining differences between code file versions in the present embodiment have functions of implementing corresponding steps of the method for determining differences between code file versions in the embodiment shown in fig. 1. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the device for determining differences between code file versions, reference may be specifically made to the corresponding description of the method for determining differences between code file versions in the embodiment shown in fig. 1, and details are not repeated here.
The embodiment of the application provides an electronic device, which comprises a processor and a memory;
a memory for storing operating instructions;
and the processor is used for executing the method for determining the difference between the code file versions provided by any embodiment of the application by calling the operation instruction.
As an example, fig. 3 shows a schematic structural diagram of an electronic device to which an embodiment of the present application is applicable, and as shown in fig. 3, the electronic device 2000 includes: a processor 2001 and a memory 2003. Wherein the processor 2001 is coupled to a memory 2003, such as via a bus 2002. Optionally, the electronic device 2000 may also include a transceiver 2004. It should be noted that the transceiver 2004 is not limited to one in practical applications, and the structure of the electronic device 2000 is not limited to the embodiment of the present application.
The processor 2001 is applied to the embodiment of the present application to implement the method shown in the above method embodiment. The transceiver 2004 may include a receiver and a transmitter, and the transceiver 2004 is applied to the embodiments of the present application to implement the functions of the electronic device of the embodiments of the present application to communicate with other devices when executed.
The Processor 2001 may be a CPU (Central Processing Unit), general Processor, DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field Programmable Gate Array) or other Programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 2001 may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like.
Bus 2002 may include a path that conveys information between the aforementioned components. The bus 2002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 2002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The Memory 2003 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
Optionally, the memory 2003 is used for storing application program code for performing the disclosed aspects, and is controlled in execution by the processor 2001. The processor 2001 is configured to execute application program code stored in the memory 2003 to implement the method for determining differences between versions of code files provided in any of the embodiments of the present application.
The electronic device provided by the embodiment of the application is applicable to any embodiment of the method, and is not described herein again.
Compared with the prior art, the electronic equipment determines whether each first JAR packet in the first code file is the same as a corresponding second JAR packet in the second code file or not by acquiring the first code file and the second code file to be compared, and if the first JAR packet is different from the corresponding second JAR packet, the difference information can be determined based on the first JAR packet and the corresponding second JAR packet. Based on the scheme, the JAR packages of the code files of different versions can be compared, and the difference information between the code files of the versions is determined according to the different JAR packages between the versions, so that the efficiency of the difference analysis between the codes is improved, the condition that the analysis is incomplete possibly when the difference is manually analyzed based on experience is avoided, and the subsequent statistics and analysis based on the difference information between the versions are facilitated.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method for determining the difference between the code file versions shown in the above method embodiment.
The computer-readable storage medium provided in the embodiments of the present application is applicable to any of the embodiments of the foregoing method, and is not described herein again.
Compared with the prior art, the embodiment of the application provides a computer-readable storage medium, and the method comprises the steps of determining whether each first JAR packet in a first code file is the same as a corresponding second JAR packet in a second code file or not by acquiring the first code file to be compared and the second code file, and if the first JAR packet is not the same as the corresponding second JAR packet, determining difference information based on the first JAR packet and the corresponding second JAR packet. Based on the scheme, the JAR packages of the code files of different versions can be compared, and the difference information between the code files of the versions is determined according to the different JAR packages between the versions, so that the efficiency of the difference analysis between the codes is improved, the condition that the analysis is incomplete possibly when the difference is manually analyzed based on experience is avoided, and the subsequent statistics and analysis based on the difference information between the versions are facilitated.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for determining differences between versions of a code file, comprising:
acquiring a first code file and a second code file to be compared, wherein the first code file and the second code file correspond to different software versions respectively;
determining whether a first JAR package is the same as a corresponding second JAR package, wherein the first code file comprises at least one first JAR package, and the second code file comprises at least one second JAR package;
and if the first JAR packet is different from the corresponding second JAR packet, determining difference information based on the first JAR packet and the corresponding second JAR packet.
2. The method of claim 1, wherein determining whether the first JAR packet is identical to the corresponding second JAR packet comprises:
determining whether a first JAR packet is identical to a corresponding second JAR packet based on an MD5 value of the first JAR packet and an MD5 value of the corresponding second JAR packet.
3. The method of claim 1, wherein determining difference information based on the first JAR packet and the corresponding second JAR packet comprises:
and comparing the attribute file of the first JAR packet with the attribute file of the corresponding second JAR packet to determine difference information.
4. The method of claim 1, wherein obtaining the first code file and the second code file to be compared comprises:
acquiring identification information of a first code file and identification information of a second code file submitted by a user;
querying the first code file based on the identification information of the first code file;
querying the second code file based on the identification information of the second code file.
5. The method of claim 1, further comprising:
and displaying the difference information on a difference information display page.
6. The method of claim 5, further comprising:
and when a user checking instruction of the attribute file to the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet is detected, jumping to a display page of the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet.
7. The method according to claim 6, wherein detecting a user's view instruction of a property file to the property file of the first JAR package and the corresponding property file of the second JAR package comprises:
and determining a viewing instruction of the attribute file of the first JAR packet and the attribute file of the corresponding second JAR packet by the user for the attribute file by detecting the clicking operation of the user on the appointed control in the display page.
8. An apparatus for determining differences between versions of a code file, comprising:
the device comprises a code file acquisition module, a comparison module and a comparison module, wherein the code file acquisition module is used for acquiring a first code file and a second code file to be compared, and the first code file and the second code file respectively correspond to different software versions;
the JAR package comparison module is used for determining whether a first JAR package is the same as a corresponding second JAR package, wherein the first code file comprises at least one first JAR package, and the second code file comprises at least one second JAR package;
and the difference information determining module is used for determining difference information based on the first JAR packet and the corresponding second JAR packet when the first JAR packet is different from the corresponding second JAR packet.
9. An electronic device comprising a processor and a memory;
the memory is used for storing operation instructions;
the processor is used for executing the method of any one of claims 1-7 by calling the operation instruction.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method of any one of claims 1-7.
CN202011009923.5A 2020-09-23 2020-09-23 Method and device for determining difference between code file versions and electronic equipment Pending CN112181479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011009923.5A CN112181479A (en) 2020-09-23 2020-09-23 Method and device for determining difference between code file versions and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011009923.5A CN112181479A (en) 2020-09-23 2020-09-23 Method and device for determining difference between code file versions and electronic equipment

Publications (1)

Publication Number Publication Date
CN112181479A true CN112181479A (en) 2021-01-05

Family

ID=73955457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011009923.5A Pending CN112181479A (en) 2020-09-23 2020-09-23 Method and device for determining difference between code file versions and electronic equipment

Country Status (1)

Country Link
CN (1) CN112181479A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357286A (en) * 2022-08-03 2022-11-18 中信建投证券股份有限公司 Program file comparison method and device, electronic equipment and storage medium
CN117215965A (en) * 2023-11-09 2023-12-12 恒生电子股份有限公司 Test case identification-based test method and device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3711863A (en) * 1972-01-21 1973-01-16 Honeywell Inf Systems Source code comparator computer program
CN103577319A (en) * 2012-08-07 2014-02-12 腾讯科技(深圳)有限公司 Source code file detection method, source code file detection device and file release system
CN103729342A (en) * 2012-10-12 2014-04-16 中国银联股份有限公司 File comparison method and device
CN106547573A (en) * 2016-12-06 2017-03-29 恒生电子股份有限公司 A kind of program file control methods and device
CN106874403A (en) * 2017-01-18 2017-06-20 武汉天喻教育科技有限公司 The system and method for differential synchronization is carried out to compressed file
CN109408102A (en) * 2018-09-04 2019-03-01 珠海格力电器股份有限公司 A kind of version comparison method and device, household appliance, the network equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3711863A (en) * 1972-01-21 1973-01-16 Honeywell Inf Systems Source code comparator computer program
CN103577319A (en) * 2012-08-07 2014-02-12 腾讯科技(深圳)有限公司 Source code file detection method, source code file detection device and file release system
CN103729342A (en) * 2012-10-12 2014-04-16 中国银联股份有限公司 File comparison method and device
CN106547573A (en) * 2016-12-06 2017-03-29 恒生电子股份有限公司 A kind of program file control methods and device
CN106874403A (en) * 2017-01-18 2017-06-20 武汉天喻教育科技有限公司 The system and method for differential synchronization is carried out to compressed file
CN109408102A (en) * 2018-09-04 2019-03-01 珠海格力电器股份有限公司 A kind of version comparison method and device, household appliance, the network equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DANPIE3295: "将JAR与Groovy进行比较", pages 1 - 2, Retrieved from the Internet <URL:https://blog.csdn.net/danpie3295/article/details/106779710> *
YIN1031468524: "java计算文件MD5值,比较两文件是否相同", pages 1, Retrieved from the Internet <URL:https://blog.csdn.net/yin1031468524/article/details/78294607> *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357286A (en) * 2022-08-03 2022-11-18 中信建投证券股份有限公司 Program file comparison method and device, electronic equipment and storage medium
CN115357286B (en) * 2022-08-03 2023-11-10 中信建投证券股份有限公司 Program file comparison method and device, electronic equipment and storage medium
CN117215965A (en) * 2023-11-09 2023-12-12 恒生电子股份有限公司 Test case identification-based test method and device, electronic equipment and medium
CN117215965B (en) * 2023-11-09 2024-02-27 恒生电子股份有限公司 Test case identification-based test method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
US8839048B2 (en) Method for ranking analysis tools
CN112181479A (en) Method and device for determining difference between code file versions and electronic equipment
US9026612B2 (en) Generating a custom parameter rule based on a comparison of a run-time value to a request URL
CN102087604A (en) Computer and method for acquiring hardware configuration information
CN112149136A (en) loT device firmware vulnerability detection method and system and electronic device
CN110647472A (en) Breakdown information statistical method and device, computer equipment and storage medium
CN112671609A (en) Asset census and safety detection method and device and terminal equipment
CN110245074B (en) Log record generation method and device, storage medium and server
CN113495728A (en) Dependency relationship determination method, dependency relationship determination device, electronic equipment and medium
EP3108400B1 (en) Virus signature matching method and apparatus
CN111460448B (en) Malicious software family detection method and device
WO2020119551A1 (en) Log file-based service performance analysis method and apparatus, and electronic device
CN109324838B (en) Execution method and execution device of single chip microcomputer program and terminal
CN116303820A (en) Label generation method, label generation device, computer equipment and medium
CN111324463A (en) Engineering file label clearing method, system, device and storage medium
CN108763053B (en) Method for generating buried point name and terminal equipment
CN111382052A (en) Code quality evaluation method and device and electronic equipment
US20220013051A1 (en) Chip pin connection status display method, computer device and storage medium
CN115080552A (en) Data quality evaluation method, device, equipment and computer readable storage medium
CN114416442A (en) Hardware change detection method and device, electronic equipment and readable storage medium
CN116028481B (en) Data quality detection method, device, equipment and storage medium
CN112364040B (en) Data checking method, device, medium and electronic equipment
CN109446166B (en) Method for detecting file directory, computer readable storage medium and terminal device
CN110674495B (en) Detection method, device and equipment for group border crossing access
CN114265767A (en) Test case multiplexing method and device, electronic equipment and storage medium

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