CN102411509A - 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
CN102411509A
CN102411509A CN201010290420XA CN201010290420A CN102411509A CN 102411509 A CN102411509 A CN 102411509A CN 201010290420X A CN201010290420X A CN 201010290420XA CN 201010290420 A CN201010290420 A CN 201010290420A CN 102411509 A CN102411509 A CN 102411509A
Authority
CN
China
Prior art keywords
party
file
character string
bag
file path
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.)
Granted
Application number
CN201010290420XA
Other languages
Chinese (zh)
Other versions
CN102411509B (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

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 and accurately 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 refer to by tissue beyond certain software company or personal development some realize some function development bag, utilize the program that these kits of increasing income can designing user oneself.For example: tissue beyond the sun company or personal development's .jar bag.
At present, the exploitation of many software systems all need be introduced third party bag, but wraps the analysis of introducing for third party in the software systems, mainly is to confirm by manual analysis in the prior art.Artificially judge whether introduced third party's bag in the software systems, occur mistake easily, and can not know fast and accurately that 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 purpose of the embodiment of the invention is to provide in a kind of software systems the analytical approach of introducing third party's bag, 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 confirming 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 said method comprises the steps:
Resolve third party's bag, obtain its file path;
The file path of said third party's bag is converted into character string, obtains the character string tabulation of the said third party's bag of expression;
Resolve the file in the software systems, obtain the file path of said file;
The file of more said software systems file path and the tabulation of said character string judge whether said software systems introduce said 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 said system comprises:
The third party wraps resolution unit, is used to resolve third party's bag, obtains its file path;
Character string tabulation acquiring unit is used for the file path of said third party's bag is converted into character string, obtains the character string tabulation of the said third party's bag of expression;
The document analysis unit is used for resolving the file of software systems, obtains the file path of said file;
The third party wraps the introducing judging unit, is used for the file and the tabulation of said character string of more said software systems file path, judges whether said software systems introduce said 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 said software systems file path and the tabulation of said character string are judged said software systems and whether are introduced said 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 the fileinfo of introducing third party's bag automatically, fast and accurately, thus operations such as convenient follow-up maintenance, upgrading to third party's bag.
Description of drawings
Fig. 1 is the realization flow figure that introduces the analytical approach of third party's bag 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 introduces the analysis of third party's bag in a kind of software systems of providing of second embodiment of the invention;
Fig. 4 is a structured flowchart of introducing the analytic system of third party's bag in a kind of software systems of providing of third embodiment of the invention;
Fig. 5 is a structured flowchart of introducing the analytic system of third party's bag in a kind of software systems of providing of fourth embodiment of the invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification 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 said software systems file path and the tabulation of said character string are judged said software systems and whether are introduced said 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 the fileinfo of introducing third party's bag automatically, fast and accurately, thus operations such as convenient follow-up maintenance, upgrading to third party's bag.
The scheme that the embodiment of the invention provides is following:
Introduce the analytical approach of third party's bag in a kind of software systems, said method comprises the steps:
Resolve third party's bag, obtain its file path;
The file path of said third party's bag is converted into character string, obtains the character string tabulation of the said third party's bag of expression;
Resolve the file in the software systems, obtain the file path of said file;
The file of more said software systems file path and the tabulation of said character string judge whether said software systems introduce said third party's bag.
Introduce the analytic system of third party's bag in a kind of software systems, said system comprises:
The third party wraps resolution unit, is used to resolve third party's bag, obtains its file path;
Character string tabulation acquiring unit is used for the file path of said third party's bag is converted into character string, obtains the character string tabulation of the said third party's bag of expression;
The document analysis unit is used for resolving the file of software systems, obtains the file path of said file;
The third party wraps the introducing judging unit, is used for the file and the tabulation of said character string of more said software systems file path, judges whether said software systems introduce said 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 said software systems file path and the tabulation of said character string are judged said software systems and whether are introduced said 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 the fileinfo of introducing third party's bag automatically, fast and accurately, thus operations such as convenient follow-up maintenance, upgrading to third party's bag.
For technical scheme of the present invention is described, describe through specific embodiment below.
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 said software systems file path and the tabulation of said character string can be judged said software systems automatically, fast and accurately and whether introduce said third party's bag.This method detailed step is described below:
In step S101, resolve third party's bag, obtain its file path.
In embodiments of the present invention; Said third party's bag exists with the form of compressed package, through resolving said third party's bag, adopts ergodic algorithm to obtain the file path of said 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 said third party is wrapped is converted into character string, obtains the character string tabulation of the said third party's bag of expression;
In embodiments of the present invention; The file path of said third party's bag is converted into character string; The separator that is about in the file path of said third party bag converts preset characters into, obtains the character string that is made up of directory name in the file path of said third party's bag and said preset characters, chooses unduplicated character string in the said character string; Constitute said character string tabulation, be used to represent said third party's bag.Wherein, it is as shown in Figure 2 to obtain the character string tabulation idiographic flow of the said third party of expression bag;
In step S201, convert the separator in the file path of said third party's bag into preset characters.
In embodiments of the present invention; Convert the separator in the file path of said third party's bag into preset characters; Wherein, The file path of said third party's APMB package is meant the file path that can represent that the third party wraps, and through the replacement algorithm with the “ in the file path of said third party's APMB package " replace with ". ".
In step S202, obtain the character string that constitutes by directory name in the file path of said third party's bag and said preset characters.
In step S203, choose unduplicated character string in the said character string, constitute said character string tabulation, be used to represent said third party's bag.
In embodiments of the present invention; Because possibly comprise a plurality of files in the file, thus a plurality of identical file paths can be generated, through generating a plurality of identical character strings after the conversion; For fear of repetition; Need delete the identical characters string, deposit the remaining character string in deletion back 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 said file.
In embodiments of the present invention, the file in the parsing software systems obtains its file path and 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 said software systems file path and the tabulation of said character string judge whether said software systems introduce said third party's bag.
In embodiments of the present invention, the file of more said software systems file path and the tabulation of said character string comprise: the file path of said software systems file is divided into many parts, the file of parallel more said many parts of file paths and the tabulation of said character string.According to the result after the comparison, judge whether said software systems introduce said the 3rd subpackage.
With the JAVA language is example, but is not limited to this.After obtaining said software systems file path, also comprise the total amount that adopts size () method to obtain include file path in the said file path tabulation, adopt subList () method that tabulation is divided into n part.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 a said n file path tabulation simultaneously, read the file under each file path, utilize the file under index indexOf () the methods analyst file path whether to comprise the character string that the expression third party wraps through new input and output flow operation.
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 said software systems file path and the tabulation of said character string can be judged said software systems automatically, fast and accurately and whether introduce said 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 first embodiment, the file path that is about to comprise in the file path of said software systems file character string in the said character string tabulation exports journal file to.
The embodiment of the invention is analyzing after software systems have introduced third party bag automatically, fast and accurately; Export the file path of introducing third party's APMB package to journal file; Can analyze which file accurately through file path described in the journal file and introduce said third party's bag, thus operations such as convenient follow-up maintenance, upgrading to third party's bag.
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 the ease 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 the terminal.Wherein the 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 through the three guarantees resolution unit in the system, character string tabulation acquiring unit, document analysis unit and third party; The file of more said software systems file path and the tabulation of said character string can be judged said software systems automatically, fast and accurately and whether introduce said third party's bag.Wherein:
The third party wraps resolution unit 41, is used to resolve third party's bag, obtains its file path.
In embodiments of the present invention; Said third party's bag exists with the form of compressed package, through resolving said third party's bag, adopts ergodic algorithm to obtain the file path of said 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 said third party's bag is converted into character string, obtains the character string tabulation of the said 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 converting the separator of the file path of said third party bag into preset characters.
Preset characters string acquisition module 422 is used for obtaining the directory name of the file path that is wrapped by said third party and the character string that said preset characters constitutes.
Character string tabulation acquisition module 423 is used for choosing the unduplicated character string of said character string, constitutes said character string tabulation, is used to represent said third party's bag.
Document analysis unit 43 is used for resolving the file of software systems, obtains the file path of said file.
In embodiments of the present invention, the file in the parsing software systems obtains its file path and 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 the file and the tabulation of said character string of more said software systems file path, judges whether said software systems introduce said third party's bag.
In embodiments of the present invention, the tabulation of the file of more said software systems file path and said 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 said software systems file is divided into many parts.
Comparison module 432 is used for the file and the tabulation of said character string of parallel more said many parts of file paths.
According to the result after the comparison, judge whether said software systems introduce said 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 the ease 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 is used for the file path that file path with said software systems file comprises character string in the said character string tabulation and exports journal file to.
The embodiment of the invention is analyzing after software systems have introduced third party bag automatically, fast and accurately; Export the file path of introducing third party's APMB package to journal file; Can analyze which file accurately through file path described in the journal file and introduce said third party's bag, thus operations such as convenient follow-up maintenance, upgrading to third party's bag.
One of ordinary skill in the art will appreciate that; Realize that all or part of step in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be in being stored in a computer read/write memory medium; Described storage medium is like 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 said software systems file path and the tabulation of said character string are judged said software systems and whether are introduced said 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 the fileinfo of introducing third party's bag automatically, fast and accurately, thus operations such as convenient follow-up maintenance, upgrading to third party's bag.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

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 said third party's bag is converted into character string, obtains the character string tabulation of the said third party's bag of expression;
Resolve the file in the software systems, obtain the file path of said file;
The file of more said software systems file path and the tabulation of said character string judge whether said software systems introduce said third party's bag.
2. the method for claim 1 is characterized in that, the said step of obtaining the character string tabulation of the said third party's bag of expression is specially:
Convert the separator in the file path of said third party's bag into preset characters;
Obtain the character string that constitutes by directory name in the file path of said third party's bag and said preset characters;
Choose unduplicated character string in the said character string, constitute said character string tabulation, be used to represent said third party's bag.
3. the method for claim 1 is characterized in that, the step of the file path of more said software systems file and the tabulation of said character string comprises:
The file path of said software systems file is divided into many parts;
The file of parallel more said many parts of file paths and the tabulation of said character string.
4. the method for claim 1 is characterized in that, also comprises:
The file path that comprises character string in the said character string tabulation in the file path with said software systems file exports journal file to.
5. introduce the analytic system that the third party wraps in software systems, it is characterized in that said system comprises:
The third party wraps resolution unit, is used to resolve third party's bag, obtains its file path;
Character string tabulation acquiring unit is used for the file path of said third party's bag is converted into character string, obtains the character string tabulation of the said third party's bag of expression;
The document analysis unit is used for resolving the file of software systems, obtains the file path of said file;
The third party wraps the introducing judging unit, is used for the file and the tabulation of said character string of more said software systems file path, judges whether said software systems introduce said third party's bag.
6. system as claimed in claim 5 is characterized in that, said character string tabulation acquiring unit also comprises:
The preset characters modular converter is used for converting the separator of the file path of said third party bag into preset characters;
Preset characters string acquisition module is used for obtaining the directory name of the file path that is wrapped by said third party and the character string that said preset characters constitutes;
Character string tabulation acquisition module is used for choosing the unduplicated character string of said character string, constitutes said character string tabulation, is used to represent said third party's bag.
7. system as claimed in claim 5 is characterized in that, said third party wraps the introducing judging unit and also comprises:
File path is divided module, is used for the file path of said software systems file is divided into many parts;
Comparison module is used for the file and the tabulation of said character string of parallel more said many parts of file paths.
8. system as claimed in claim 5 is characterized in that, said third party also comprises after wrapping and introducing judging unit:
Output unit is used for the file path that file path with said software systems file comprises character string in the said character string tabulation and exports journal file to.
9. terminal that comprises the analytic system of each described third party bag of claim 5 to 8.
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 true CN102411509A (en) 2012-04-11
CN102411509B 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 (5)

* 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
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

Patent Citations (5)

* 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
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
CN102411509B (en) 2013-10-23

Similar Documents

Publication Publication Date Title
CN101697125B (en) Method and device for development environment conversion
CN106547527A (en) A kind of JavaScript file construction method and device
CN104965714A (en) Code generation method and system of application software
CN106844607B (en) SQLite data recovery method suitable for non-integer main key and idle block combination
CN114417408B (en) Data processing method, device, equipment and storage medium
CN105138333A (en) APK file compression method and system based on Android system
CN102609462A (en) Method for compressed storage of massive SQL (structured query language) by means of extracting SQL models
CN105975446A (en) Method and system for displaying word document content by modules in mobile phone terminal
CN109445771A (en) A kind of off line network layers block code Auto-Generation Tool of CS framework and method
CN102521232A (en) Distributed acquisition and processing system and method of internet metadata
CN102446167B (en) A kind of logic-based template is to the method and apparatus of complex characters string logical process
CN104166701A (en) Machine learning method and system
US20120185584A1 (en) Recording application consumption details
CN103336706B (en) False code is converted to the system and method for programming language
CN102387120A (en) File transmission method, server, client and network transmission system
CN112650529B (en) System and method for configurable generation of mobile terminal APP codes
CN103326930A (en) Automatic patrolling method and system for open platform interface
CN104991810A (en) Method and processing system for automatically adding APK into Android system
CN102411509B (en) Analyzing method, system and terminal for introducing third-party packet into software system
CN105574164B (en) The data analysis method and device of Excel document
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
CN103139207B (en) Coding/decoding method and device, message parsing method and device and analyzing device
CN106843855B (en) Method and device for packaging summarized files
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