CN102411509B - Analyzing method, system and terminal for introducing third-party packet into software system - Google Patents

Analyzing method, system and terminal for introducing third-party packet into software system Download PDF

Info

Publication number
CN102411509B
CN102411509B CN 201010290420 CN201010290420A CN102411509B CN 102411509 B CN102411509 B CN 102411509B CN 201010290420 CN201010290420 CN 201010290420 CN 201010290420 A CN201010290420 A CN 201010290420A CN 102411509 B CN102411509 B CN 102411509B
Authority
CN
China
Prior art keywords
file
party
character string
bag
software systems
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
Application number
CN 201010290420
Other languages
Chinese (zh)
Other versions
CN102411509A (en
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China Co Ltd
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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN 201010290420 priority Critical patent/CN102411509B/en
Publication of CN102411509A publication Critical patent/CN102411509A/en
Application granted granted Critical
Publication of CN102411509B publication Critical patent/CN102411509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention is applicable to the field of computer software and provides an analyzing method, a system and a terminal for introducing a third-party packet into a software system, wherein the method comprises the following steps of: analyzing the third-party packet to obtain the file path of the third-party packet; converting the file path of the third-party packet into character strings to obtain a character-string list representing the third-party packet; analyzing a file in the software system to obtain the file path of the file; and comparing the file in the file path of the software system with the character-string list, and judging whether the third-party packet is introduced into the software system or not. The file information introduced into the software system can be automatically, rapidly and accurately analyzed through the embodiment of the invention. In the software system, because the file information introduced into the software system can be automatically, rapidly andaccurately analyzed, the subsequent operation, such as the maintenance, the upgrading and the like of the third-party packet is facilitated.

Description

Introduce analytical approach, system and the terminal of third party's bag in a kind of software systems
Technical field
The invention belongs to computer software fields, relate in particular to analytical approach, system and the terminal of introducing third party's bag in a kind of software systems.
Background technology
Third party bag refers to by the tissue beyond certain software company or some of personal development and realizes the kit of some function, utilizes the program that these kits of increasing income can designing user oneself.For example: the tissue beyond the sun company or personal development's .jar bag.
At present, the exploitation of many software systems all needs to introduce third party bag, but wraps the analysis of introducing for third party in the software systems, mainly is to determine by manual analysis in the prior art.Artificially judge whether introduced third party's bag in the software systems, mistake occurs easily, and can not know fast and accurately which file introduced third party's bag, the operations such as upgrading of follow-up third party's bag are impacted.
Summary of the invention
The analytical approach of introducing third party's bag is provided to provide in a kind of software systems the purpose of the embodiment of the invention, and being intended to solve in the prior art analysis that third party in the software systems is wrapped introducing mainly is the problem of determining by manual analysis.
The embodiment of the invention is achieved in that the analytical approach of introducing third party's bag in a kind of software systems, and described method comprises the steps:
Resolve third party's bag, obtain its file path;
The file path of described third party's bag is converted into character string, the separator in the described character string is converted to preset characters;
Obtain the character string that is consisted of by the directory name in the file path of described third party's bag and described preset characters;
Choose unduplicated character string in the described character string, consist of described character string tabulation, be used for representing described third party's bag;
Resolve the file in the software systems, obtain the file path of described file;
The file of more described software systems file path and the tabulation of described character string judge whether described software systems introduce described third party's bag.
Another purpose of the embodiment of the invention is to provide the analytic system of introducing third party's bag in a kind of software systems, and described system comprises:
The third party wraps resolution unit, is used for resolving third party's bag, obtains its file path;
Character string tabulation acquiring unit, be used for the file path of described third party's bag is converted into character string, separator in the described character string is converted to preset characters, obtain the character string that is consisted of by the directory name in the file path of described third party's bag and described preset characters, choose unduplicated character string in the described character string, consist of described character string tabulation, be used for representing described third party's bag;
The document analysis unit for the file of resolving software systems, obtains the file path of described file;
The third party wraps the introducing judging unit, is used for file and the tabulation of described character string of more described software systems file path, judges whether described software systems introduce described third party's bag.
Another purpose of the embodiment of the invention is to provide the terminal of the analytic system of introducing third party's bag in a kind of software systems.
In embodiments of the present invention, according to the character string tabulation of the expression third party bag that obtains and the file path of software systems File, the file of more described software systems file path and the tabulation of described character string are judged described software systems and whether are introduced described third party's bag.The embodiment of the invention can analyze the fileinfo of introducing third party's bag automatically, fast and accurately.In software systems, owing to can analyze automatically, fast and accurately the fileinfo of introducing third party's bag, thus the operations such as convenient follow-up maintenance to third party's bag, upgrading.
Description of drawings
Fig. 1 is the realization flow figure that the analytical approach of third party's bag is provided in a kind of software systems of providing of first embodiment of the invention;
Fig. 2 is that third party that the embodiment of the invention provides wraps the character string tabulation and obtains process flow diagram;
Fig. 3 is the realization flow figure that the analysis of third party's bag is provided in a kind of software systems of providing of second embodiment of the invention;
Fig. 4 is the structured flowchart that the analytic system of third party's bag is provided in a kind of software systems of providing of third embodiment of the invention;
Fig. 5 is the structured flowchart that the analytic system of third party's bag is provided in a kind of software systems of providing of fourth embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, according to the character string tabulation of the expression third party bag that obtains and the file path of software systems File, the file of more described software systems file path and the tabulation of described character string are judged described software systems and whether are introduced described third party's bag.The embodiment of the invention can analyze the fileinfo of introducing third party's bag automatically, fast and accurately.In software systems, owing to can analyze automatically, fast and accurately the fileinfo of introducing third party's bag, thus the operations such as convenient follow-up maintenance to third party's bag, upgrading.
The scheme that the embodiment of the invention provides is as follows:
Introduce the analytical approach of third party's bag in a kind of software systems, described method comprises the steps:
Resolve third party's bag, obtain its file path;
The file path of described third party's bag is converted into character string, obtains the character string tabulation of the described third party's bag of expression;
Resolve the file in the software systems, obtain the file path of described file;
The file of more described software systems file path and the tabulation of described character string judge whether described software systems introduce described third party's bag.
Introduce the analytic system of third party's bag in a kind of software systems, described system comprises:
The third party wraps resolution unit, is used for resolving third party's bag, obtains its file path;
Character string tabulation acquiring unit is used for the file path of described third party's bag is converted into character string, obtains the character string tabulation of the described third party's bag of expression;
The document analysis unit for the file of resolving software systems, obtains the file path of described file;
The third party wraps the introducing judging unit, is used for file and the tabulation of described character string of more described software systems file path, judges whether described software systems introduce described third party's bag.
A kind of terminal that comprises the analytic system of introducing third party's bag in the above-mentioned software systems.
In embodiments of the present invention, according to the character string tabulation of the expression third party bag that obtains and the file path of software systems File, the file of more described software systems file path and the tabulation of described character string are judged described software systems and whether are introduced described third party's bag.The embodiment of the invention can analyze the fileinfo of introducing third party's bag automatically, fast and accurately.In software systems, owing to can analyze automatically, fast and accurately the fileinfo of introducing third party's bag, thus the operations such as convenient follow-up maintenance to third party's bag, upgrading.
For technical solutions according to the invention are described, describe below by specific embodiment.
Embodiment one:
The realization flow figure of the analytical approach that the third party that Fig. 1 shows first embodiment of the invention to be provided wraps, this embodiment is according to the character string tabulation of the expression third party bag that obtains and the file path of software systems File, the file of more described software systems file path and the tabulation of described character string can be judged automatically, fast and accurately described software systems and whether introduce described third party's bag.The method detailed step is as described below:
In step S101, resolve third party's bag, obtain its file path.
In embodiments of the present invention, described third party's bag exists with the form of compressed package, by resolving described third party's bag, adopts ergodic algorithm to obtain the file path of described third party's APMB package, can certainly adopt similar additive method to obtain, differ one for example at this.
In step S102, the file path that described third party is wrapped is converted into character string, obtains the character string tabulation of the described third party's bag of expression;
In embodiments of the present invention, the file path of described third party's bag is converted into character string, the separator that is about in the file path of described third party bag is converted to preset characters, obtain the character string that is consisted of by the directory name in the file path of described third party's bag and described preset characters, choose unduplicated character string in the described character string, consist of described character string tabulation, be used for representing described third party's bag.Wherein, the character string of obtaining the described third party's bag of expression is tabulated idiographic flow as shown in Figure 2;
In step S201, the separator in the file path of described third party's bag is converted to preset characters.
In embodiments of the present invention, separator in the file path of described third party's bag is converted to preset characters, wherein, the file path of described third party's APMB package refers to the file path that can represent that the third party wraps, and by replace Algorithm with the “ in the file path of described third party's APMB package " replace with ". ".
In step S202, obtain the character string that is consisted of by the directory name in the file path of described third party's bag and described preset characters.
In step S203, choose unduplicated character string in the described character string, consist of described character string tabulation, be used for representing described third party's bag.
In embodiments of the present invention, because may comprise a plurality of files in the file, so can generate a plurality of identical file paths, by generating a plurality of identical character strings after the conversion, for fear of repetition, need to delete the identical characters string, deposit character string remaining after the deletion in the character string tabulation, this character string tabulation is the character string tabulation of expression third party bag.
In step S103, resolve the file in the software systems, obtain the file path of described file.
In embodiments of the present invention, its file path of file acquisition of resolving in the software systems adopts ergodic algorithm to obtain, and can certainly adopt similar additive method to obtain, and differs one for example at this.
In step S104, the file of more described software systems file path and the tabulation of described character string judge whether described software systems introduce described third party's bag.
In embodiments of the present invention, the file of more described software systems file path and the tabulation of described character string comprise: the file path of described software systems File is divided into many parts, the file of parallel more described many parts of file paths and the tabulation of described character string.Result according to after relatively judges whether described software systems introduce described the 3rd subpackage.
Take the JAVA language as example, but be not limited to this.After obtaining described software systems file path, also comprise and adopt size() method obtains the total amount in include file path in the described file path tabulation, adopts subList() method is divided into n part with tabulation.Wherein, n is the concurrent quantity of multithreading, and multithreading refers to a plurality of instruction streams of concurrent execution in the program.N is between 10 to 100, specifically can dispose according to the performance of computing machine, and wherein, ((i*sum)/n, ((i+1) * sum)/n) is i tabulation to subList.Utilize multithreading to analyze simultaneously the tabulation of said n file path, read file under each file path by new input and output flow operation, utilize index indexOf() whether the file under the methods analyst file path comprise the character string of expression third party bag.
In embodiments of the present invention, according to the character string tabulation of the expression third party bag that obtains and the file path of software systems File, the file of more described software systems file path and the tabulation of described character string can be judged automatically, fast and accurately described software systems and whether introduce described third party's bag.
Embodiment two:
Fig. 3 shows the realization flow figure of the analytical approach of introducing third party's bag in a kind of software systems that second embodiment of the invention provides, this embodiment increases step S305 on the basis of the first embodiment, the file path that is about to comprise in the file path of described software systems File character string in the described character string tabulation exports journal file to.
The embodiment of the invention is after analyzing automatically, fast and accurately software systems and having introduced third party bag, export the file path of introducing third party's APMB package to journal file, can analyze accurately which file by file path described in the journal file and introduce described third party's bag, thus the operations such as convenient follow-up maintenance to third party's bag, upgrading.
Embodiment three:
Fig. 4 shows the structure of the analytic system of introducing third party's bag in a kind of software systems that third embodiment of the invention provides, for convenience of explanation, only show the part relevant with the embodiment of the invention among the figure, the analytic system of introducing third party's bag in these software systems can be software unit, hardware cell or the software and hardware combining unit that is built in terminal.Wherein terminal can be terminal, portable terminal etc.
The analytic system of introducing third party's bag in these software systems is wrapped the character string tabulation of introducing the expression third party bag that judging unit obtains and the file path of software systems File by the three guarantees resolution unit in the system, character string tabulation acquiring unit, document analysis unit and third party, the file of more described software systems file path and the tabulation of described character string can be judged automatically, fast and accurately described software systems and whether introduce described third party's bag.Wherein:
The third party wraps resolution unit 41, is used for resolving third party's bag, obtains its file path.
In embodiments of the present invention, described third party's bag exists with the form of compressed package, by resolving described third party's bag, adopts ergodic algorithm to obtain the file path of described third party's APMB package, can certainly adopt similar additive method to obtain, differ one for example at this.
Character string tabulation acquiring unit 42 is used for the file path of described third party's bag is converted into character string, obtains the character string tabulation of the described third party's bag of expression.
In embodiments of the present invention, character string tabulation acquiring unit 42 comprises preset characters modular converter 421, preset characters string acquisition module 422, character string tabulation acquisition module 423.Wherein:
Preset characters modular converter 421 is used for the separator of the file path of described third party's bag is converted to preset characters.
Preset characters string acquisition module 422 is used for obtaining the directory name of the file path that is wrapped by described third party and the character string that described preset characters consists of.
Character string tabulation acquisition module 423 is used for choosing the unduplicated character string of described character string, consists of described character string tabulation, is used for representing described third party's bag.
Document analysis unit 43 for the file of resolving software systems, obtains the file path of described file.
In embodiments of the present invention, its file path of file acquisition of resolving in the software systems adopts ergodic algorithm to obtain, and can certainly adopt similar additive method to obtain, and differs one for example at this.
The third party wraps and introduces judging unit 44, is used for file and the tabulation of described character string of more described software systems file path, judges whether described software systems introduce described third party's bag.
In embodiments of the present invention, the tabulation of the file of more described software systems file path and described character string also comprises file path division module 431, comparison module 432.Wherein:
File path is divided module 431, is used for the file path of described software systems File is divided into many parts.
Comparison module 432 is used for file and the tabulation of described character string of parallel more described many parts of file paths.
According to the result after relatively, judge whether described software systems introduce described third party's bag.
Embodiment four:
Fig. 5 shows the structure of the analytic system of introducing third party's bag in a kind of software systems that fourth embodiment of the invention provides, for convenience of explanation, only shows the part relevant with the embodiment of the invention among the figure.After wrapping the introducing judging unit, the analytic system of introducing third party's bag in the software systems shown in Figure 5 is introduced the analytic system of third party's bag in software systems shown in Figure 4 third party increased output unit 55.Wherein:
Output unit 55, the file path that comprises character string in the described character string tabulation for the file path with described software systems File exports journal file to.
The embodiment of the invention is after analyzing automatically, fast and accurately software systems and having introduced third party bag, export the file path of introducing third party's APMB package to journal file, can analyze accurately which file by file path described in the journal file and introduce described third party's bag, thus the operations such as convenient follow-up maintenance to third party's bag, upgrading.
One of ordinary skill in the art will appreciate that, realize that all or part of step in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium is such as ROM/RAM, disk, CD etc.
In embodiments of the present invention, according to the character string tabulation of the expression third party bag that obtains and the file path of software systems File, the file of more described software systems file path and the tabulation of described character string are judged described software systems and whether are introduced described third party's bag.The embodiment of the invention can analyze the fileinfo of introducing third party's bag automatically, fast and accurately.In software systems, owing to can analyze automatically, fast and accurately the fileinfo of introducing third party's bag, thus the operations such as convenient follow-up maintenance to third party's bag, upgrading.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. introduce the analytical approach that the third party wraps in software systems, it is characterized in that, said method comprising the steps of:
Resolve third party's bag, obtain its file path;
The file path of described third party's bag is converted into character string, the separator in the described character string is converted to preset characters;
Obtain the character string that is consisted of by the directory name in the file path of described third party's bag and described preset characters;
Choose unduplicated character string in the described character string, consist of described character string tabulation, be used for representing described third party's bag;
Resolve the file in the software systems, obtain the file path of described file;
The file of more described software systems file path and the tabulation of described character string judge whether described software systems introduce described third party's bag.
2. the method for claim 1 is characterized in that, the step of the file path of more described software systems File and the tabulation of described character string comprises:
The file path of described software systems File is divided into many parts;
The file of parallel more described many parts of file paths and the tabulation of described character string.
3. the method for claim 1 is characterized in that, also comprises:
The file path that comprises character string in the described character string tabulation in the file path with described software systems File exports journal file to.
4. introduce the analytic system that the third party wraps in software systems, it is characterized in that described system comprises:
The third party wraps resolution unit, is used for resolving third party's bag, obtains its file path;
Character string tabulation acquiring unit, be used for the file path of described third party's bag is converted into character string, separator in the described character string is converted to preset characters, obtain the character string that is consisted of by the directory name in the file path of described third party's bag and described preset characters, choose unduplicated character string in the described character string, consist of described character string tabulation, be used for representing described third party's bag;
The document analysis unit for the file of resolving software systems, obtains the file path of described file;
The third party wraps the introducing judging unit, is used for file and the tabulation of described character string of more described software systems file path, judges whether described software systems introduce described third party's bag.
5. system as claimed in claim 4 is characterized in that, described third party wraps the introducing judging unit and also comprises:
File path is divided module, is used for the file path of described software systems File is divided into many parts;
Comparison module is used for file and the tabulation of described character string of parallel more described many parts of file paths.
6. system as claimed in claim 4 is characterized in that, described third party also comprises after wrapping and introducing judging unit:
Output unit, the file path that comprises character string in the described character string tabulation for the file path with described software systems File exports journal file to.
7. terminal that comprises the analytic system of each described third party bag of claim 4 to 6.
CN 201010290420 2010-09-25 2010-09-25 Analyzing method, system and terminal for introducing third-party packet into software system Active CN102411509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010290420 CN102411509B (en) 2010-09-25 2010-09-25 Analyzing method, system and terminal for introducing third-party packet into software system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010290420 CN102411509B (en) 2010-09-25 2010-09-25 Analyzing method, system and terminal for introducing third-party packet into software system

Publications (2)

Publication Number Publication Date
CN102411509A CN102411509A (en) 2012-04-11
CN102411509B true CN102411509B (en) 2013-10-23

Family

ID=45913597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010290420 Active CN102411509B (en) 2010-09-25 2010-09-25 Analyzing method, system and terminal for introducing third-party packet into software system

Country Status (1)

Country Link
CN (1) CN102411509B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034350A (en) * 2007-04-17 2007-09-12 珠海金山软件股份有限公司 Device and method for quick searching computer program functional entrance
TW200928796A (en) * 2007-12-31 2009-07-01 Chi Mei Comm Systems Inc Method for storing file paths and file names
CN101556595A (en) * 2008-04-11 2009-10-14 北京闻言科技有限公司 Method for fast positioning relevant documents in document system
CN101620612A (en) * 2008-07-03 2010-01-06 阿尔派株式会社 Content attribute rendering method and device thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050044075A1 (en) * 2003-07-29 2005-02-24 Microsoft Corporation Method and apparatus for late-binding/dynamic pathname resolution

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034350A (en) * 2007-04-17 2007-09-12 珠海金山软件股份有限公司 Device and method for quick searching computer program functional entrance
TW200928796A (en) * 2007-12-31 2009-07-01 Chi Mei Comm Systems Inc Method for storing file paths and file names
CN101556595A (en) * 2008-04-11 2009-10-14 北京闻言科技有限公司 Method for fast positioning relevant documents in document system
CN101620612A (en) * 2008-07-03 2010-01-06 阿尔派株式会社 Content attribute rendering method and device thereof

Also Published As

Publication number Publication date
CN102411509A (en) 2012-04-11

Similar Documents

Publication Publication Date Title
CN105447099B (en) Log-structuredization information extracting method and device
CN101334774B (en) Character input method and input method system
US8949799B2 (en) Program log record optimization
CN106547527B (en) JavaScript file construction method and device
CN104965714A (en) Code generation method and system of application software
CN112650529B (en) System and method for configurable generation of mobile terminal APP codes
CN102609462A (en) Method for compressed storage of massive SQL (structured query language) by means of extracting SQL models
CN110347673A (en) Data file loading method, device, computer equipment and storage medium
US9201754B2 (en) Recording application consumption details
CN103336706B (en) False code is converted to the system and method for programming language
CN103425692A (en) Data exporting method and data exporting device
CN103326930A (en) Automatic patrolling method and system for open platform interface
CN105574164B (en) The data analysis method and device of Excel document
CN102411509B (en) Analyzing method, system and terminal for introducing third-party packet into software system
CN103902261A (en) Method and device for processing software resource
CN112948247A (en) Processing method, system, device and medium for operation playback of application program
CN104378362A (en) Method and device for carrying out conversion of message interfaces
CN103294954A (en) Compound document malicious code detecting technique and system based on spectral analysis
KR20200103133A (en) Method and apparatus for performing extract-transfrom-load procedures in a hadoop-based big data processing system
CN116069324A (en) Dynamic form construction method and device based on Vue
CN115495082A (en) TLV format data automatic conversion method and related equipment
CN102063501B (en) Internet web page conversion method and device
CN111027247B (en) Stepwise incremental dynamic analysis and data processing method based on OpenSees and MATLAB
Jingbai et al. A context awareness non-functional requirements metamodel based on domain ontology
Reynolds et al. Comparing proof systems for linear real arithmetic with LFSC

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant