CN106843855B - Method and device for packaging summarized files - Google Patents
Method and device for packaging summarized files Download PDFInfo
- Publication number
- CN106843855B CN106843855B CN201611244367.3A CN201611244367A CN106843855B CN 106843855 B CN106843855 B CN 106843855B CN 201611244367 A CN201611244367 A CN 201611244367A CN 106843855 B CN106843855 B CN 106843855B
- Authority
- CN
- China
- Prior art keywords
- file
- list
- packaging
- files
- packed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Abstract
The invention provides a method and a device for packaging a summary file, which comprise the following steps: a step or module for acquiring a root directory of a summary file input by a user, a list file for storing summary file information, and an output path for outputting a packed file; a step or module for searching the summary file under the root directory according to the list file; packaging the summary files to obtain a software upgrading package; the software upgrading package is used for updating and upgrading software; a step or module of outputting the software upgrade package by the output path. The invention realizes the automatic packaging of the summarized files, simplifies the packaging process and improves the packaging efficiency and safety.
Description
Technical Field
The invention relates to the technical field of computing, in particular to a method and a device for packaging a summary file.
Background
Software Development Kit (SDK) is a collection of Development tools used by Software engineers to build application Software for a particular Software package, Software framework, hardware platform, operating system, etc.
In the prior art, summary files under a root directory of a software development kit are manually packaged to generate an upgrade package. The existing method for packaging the summary files is complicated in packaging process, low in efficiency and prone to errors.
Disclosure of Invention
The invention provides a method and a device for packaging summarized files, and solves the problems of complicated packaging process, low efficiency and easy error in a manual packaging mode of the summarized files.
In order to solve the technical problems, the invention provides the following technical scheme:
in one aspect, the present invention provides a method for packaging a summarized file, including:
acquiring a root directory of a summary file input by a user, a list file for storing summary file information and an output path for outputting a packed file;
searching a summary file under the root directory according to the list file;
packaging the summary files to obtain a software upgrading package; the software upgrading package is used for updating and upgrading software;
outputting the software upgrade package by the output path.
Further, before the step of obtaining the root directory of the summary file input by the user, the list file for storing summary file information, and the output path for outputting the packed file, the method further includes:
and receiving a packaging instruction for triggering the packaging of the summary file.
Further, the searching for the summary file under the root directory according to the list file includes:
reading summary file information stored in the list file;
generating a packed file list according to the summarized file information;
and searching the summary file according to the packed file list.
Further, the summary file information includes: the storage path of the summary file under the root directory and the name of the summary file.
Further, a packaging component in Java software is adopted to package the summary file.
Further, the list file has an extension of txt.
Further, the software upgrade package is an executable JAR file.
In another aspect, the present invention provides a device for packaging summarized files, including:
the collection module is used for acquiring a root directory of a summary file input by a user, a list file for storing summary file information and an output path for outputting a packed file;
the query module is used for searching the summary files under the root directory according to the list files;
the packaging module is used for packaging the summary file to obtain a software upgrading package; the software upgrading package is used for updating and upgrading software;
and the output module is used for outputting the software upgrading package through the output path.
Further, the apparatus further comprises:
and the receiving module is used for receiving a packaging instruction for triggering the packaging of the summary file.
Further, the query module comprises:
the reading unit is used for reading the summary file information stored in the list file;
the conversion unit is used for generating a packed file list according to the summary file information;
and the calling unit is used for searching the summary file according to the packed file list.
According to the technical scheme, the method and the device for packaging the summarized files realize automatic packaging of the summarized files, simplify the packaging process, and improve the packaging efficiency and safety.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for packaging summary files according to the present invention;
fig. 2 is a schematic structural diagram of a packaging apparatus for summarizing files according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Software engineers use software development kits to create application software for specific software packages, software frames, hardware platforms, operating systems and the like, and need to package the created application software after the creation of the application software is completed. In order to solve the above technical problem, embodiments of the present invention provide a method and an apparatus for packaging a summarized file.
Example one
The embodiment of the invention provides a method for packaging a summary file, and referring to fig. 1, the method comprises the following steps:
s101: acquiring a root directory of a summary file input by a user, a list file for storing summary file information and an output path for outputting a packed file;
in the step, a root directory of the summary file is set, and the root directory is an analysis file directory; setting a storage path, wherein the storage path is an output path of the finally packaged upgrade package; the summary file list is a summary of item compilation files, which are collected in the same list.
S102: searching a summary file under the root directory according to the list file;
in this step, the list file includes information related to the summary file, the information is acquired, a packed file list capable of searching the summary file is generated, and the summary file to be packed can be searched in the root directory according to the packed file list.
The packed file list is an executable operation file, and the list file is converted into the packed file list, so that a user can directly edit summary file information to be packed in the list file, and the problem that the user edits the packed file list complicatedly is avoided.
S103: packaging the summary files to obtain a software upgrading package; the software upgrading package is used for updating and upgrading software;
in this step, the specific file to be packaged searched in step S102 is packaged to obtain an upgrade package. During packaging processing, generating a packaged file list according to the summary files in the summary file list; and packaging the summary files in the processing file list. By converting the files in the summary file list into the packed file list, the files can be packed quickly. The packaging processing is mainly based on JAVA IO stream and recursive algorithm, and adopts JAVASWING technology, JAVA IO stream technology, JAVA internal class and recursive algorithm to package the summary file.
S104: outputting the software upgrade package by the output path.
In this step, the upgrade package packaged in step S103 is stored, and the storage path is the output path set in step S101, that is, the packaging is completed, and the storage path of the upgrade package is prompted.
As can be seen from the above description, the method for packaging the summarized file according to the embodiment of the present invention implements automatic packaging of the summarized file, not only simplifies the packaging process, but also improves the packaging efficiency and security. After the software is established, the method of the embodiment of the invention improves the speed of sorting the summary file into the function upgrading packet, can also reduce the time and the error of deploying the upgrading function packet by project side personnel, and realizes the improvement of the working efficiency and the upgrading quality.
Further, in the technical solution of the above embodiment, the summary file list is a file in a notepad format, and the file in the notepad format includes the storage path information of the summary file and the name information of the summary file.
Example two
An embodiment of the present invention provides a device for packaging summarized files, and referring to fig. 2, the device includes:
the collection module 10 is used for acquiring a root directory of a summary file input by a user, a list file for storing summary file information and an output path for outputting a packed file;
the query module 20 is configured to search the summary file in the root directory according to the list file;
the packaging module 30 is used for packaging the summary file to obtain a software upgrading package; the software upgrading package is used for updating and upgrading software;
and the output module 40 is used for outputting the software upgrading package through the output path.
Further, the apparatus further comprises:
the receiving module 50 is configured to receive a packaging instruction for triggering packaging of the summary file.
Further, the query module 20 includes:
a reading unit 201, configured to read summary file information stored in the list file;
a conversion unit 202, configured to generate a packed file list according to the summarized file information;
and the calling unit 203 is configured to search the summary file according to the packed file list.
According to the description, the device for packaging the summary files, provided by the embodiment of the invention, solves the problems that the packaging is complicated and easy to mistake in the manual packaging process in the related art. The automatic packaging of the summary files is realized, the packaging process is simplified, and meanwhile, the packaging efficiency and safety are improved.
The above examples are only for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (6)
1. A method for packaging a summarized file, comprising:
acquiring a root directory of a summary file input by a user, a list file for storing summary file information and an output path for outputting a packed file;
searching a summary file under the root directory according to the list file;
packaging the summary files to obtain a software upgrading package; the software upgrading package is used for updating and upgrading software;
outputting, by the output path, the software upgrade package;
before the step of obtaining the root directory of the summary file input by the user, the list file for storing the summary file information and the output path for outputting the packed file, the method further comprises the following steps:
receiving a packaging instruction for triggering the packaging of the summary file;
the searching for the summary file under the root directory according to the list file includes:
reading summary file information stored in the list file;
generating a packed file list according to the summarized file information;
searching the summary file according to the packed file list;
the searching for the summary file under the root directory according to the list file includes:
acquiring information related to the summary files contained in the list file, and generating a packed file list for searching the summary files;
searching for summary files needing to be packaged in a root directory according to the packaged file list;
and the packed file list is an executable operation file.
2. The method of claim 1, wherein the summary file information comprises: the storage path of the summary file under the root directory and the name of the summary file.
3. The method of claim 1, wherein the summary file is packaged using a package in Java software component.
4. The method of claim 1, wherein the list file has an extension of txt.
5. The method of claim 1, wherein the software upgrade package is an executable JAR file.
6. A packaging apparatus for summarizing files, comprising:
the collection module is used for acquiring a root directory of a summary file input by a user, a list file for storing summary file information and an output path for outputting a packed file;
the query module is used for searching the summary files under the root directory according to the list files;
the packaging module is used for packaging the summary file to obtain a software upgrading package; the software upgrading package is used for updating and upgrading software;
the output module is used for outputting the software upgrading package through the output path;
the device further comprises:
the receiving module is used for receiving a packaging instruction for triggering the packaging of the summary file;
the query module comprises:
the reading unit is used for reading the summary file information stored in the list file;
the conversion unit is used for generating a packed file list according to the summary file information;
the calling unit is used for searching the summary file according to the packed file list;
the query module is specifically used for acquiring information related to the summary files contained in the list files and generating a packed file list for searching the summary files; searching for summary files needing to be packaged in a root directory according to the packaged file list; and the packed file list is an executable operation file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611244367.3A CN106843855B (en) | 2016-12-29 | 2016-12-29 | Method and device for packaging summarized files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611244367.3A CN106843855B (en) | 2016-12-29 | 2016-12-29 | Method and device for packaging summarized files |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106843855A CN106843855A (en) | 2017-06-13 |
CN106843855B true CN106843855B (en) | 2020-07-07 |
Family
ID=59113217
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611244367.3A Active CN106843855B (en) | 2016-12-29 | 2016-12-29 | Method and device for packaging summarized files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106843855B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107402788B (en) * | 2017-07-25 | 2020-09-25 | 网易(杭州)网络有限公司 | Resource packaging management method and device |
CN111694596A (en) * | 2020-05-27 | 2020-09-22 | 五八有限公司 | Packing method and packing device for entry paths in webpack environment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101477467A (en) * | 2008-12-08 | 2009-07-08 | 山东浪潮齐鲁软件产业股份有限公司 | Project code releasing method |
CN102831001A (en) * | 2012-09-11 | 2012-12-19 | 北京百纳威尔科技有限公司 | Method and device for manufacturing of software upgrading package and method and device for program upgrading |
CN103019722A (en) * | 2012-12-14 | 2013-04-03 | 北京中电普华信息技术有限公司 | Method and device for extracting Java network application upgrade package |
CN103777953A (en) * | 2014-01-26 | 2014-05-07 | 宝龙计算机系统(湖南)有限公司 | Method and device for manufacturing Unix-like operating system upgrade patch |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6820046B1 (en) * | 1999-01-19 | 2004-11-16 | Texas Instruments Incorporated | System for electrically modeling an electronic structure and method of operation |
US20070118507A1 (en) * | 2005-11-18 | 2007-05-24 | Bruner John D | Managing software configuration of a wireless device |
US8407693B2 (en) * | 2008-06-09 | 2013-03-26 | International Business Machines Corporation | Managing package dependencies |
-
2016
- 2016-12-29 CN CN201611244367.3A patent/CN106843855B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101477467A (en) * | 2008-12-08 | 2009-07-08 | 山东浪潮齐鲁软件产业股份有限公司 | Project code releasing method |
CN102831001A (en) * | 2012-09-11 | 2012-12-19 | 北京百纳威尔科技有限公司 | Method and device for manufacturing of software upgrading package and method and device for program upgrading |
CN103019722A (en) * | 2012-12-14 | 2013-04-03 | 北京中电普华信息技术有限公司 | Method and device for extracting Java network application upgrade package |
CN103777953A (en) * | 2014-01-26 | 2014-05-07 | 宝龙计算机系统(湖南)有限公司 | Method and device for manufacturing Unix-like operating system upgrade patch |
Also Published As
Publication number | Publication date |
---|---|
CN106843855A (en) | 2017-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8799299B2 (en) | Schema contracts for data integration | |
CN106528200A (en) | docker compose-based continuous integration method and apparatus | |
WO2011054250A1 (en) | Method and device for development environment converting | |
CN109739508B (en) | Source code compiling method, device, system and storage medium | |
CN112860256B (en) | Visual configuration system and method for Linux kernel equipment tree | |
CN112364101A (en) | Data synchronization method and device, terminal equipment and medium | |
CN106843855B (en) | Method and device for packaging summarized files | |
CN110674083A (en) | Workflow migration method, device, equipment and computer readable storage medium | |
CN112000320A (en) | Automatic code generation method, device, equipment and storage medium | |
CN104991810B (en) | Method and processing system in automatic addition APK to Android system | |
CN113568604B (en) | Method and device for updating wind control strategy and computer readable storage medium | |
EP2563061A1 (en) | Data cut-over method and apparatus | |
CN108874395B (en) | Hard compiling method and device in modular stream processing process | |
CN107092474B (en) | Program development method, ETL processing method and device | |
US20100125827A1 (en) | Developing software code using parameterized annotations | |
CN115328928B (en) | kudu table updating method, kudu table updating device, kudu table updating equipment and storage medium | |
JP5041990B2 (en) | Software component extraction support device | |
CN109068286B (en) | Information analysis method, medium and equipment | |
CN111158665A (en) | Code generation method and device, electronic equipment and storage medium | |
CN102609571A (en) | Automatic IP (internet protocol) verification platform | |
CN116107543A (en) | Project changing method and device based on VUE engineering code project | |
CN106649118B (en) | A kind of generation method of the Java code SSA single path based on AST | |
WO2021259290A1 (en) | Stored procedure conversion method and apparatus, and device and storage medium | |
CN114328716A (en) | Data synchronization system, method and corresponding device and storage medium | |
CN111045917A (en) | Method and device for converting format of test case |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |