CN106484428B - Application construction method and device - Google Patents

Application construction method and device Download PDF

Info

Publication number
CN106484428B
CN106484428B CN201610917694.4A CN201610917694A CN106484428B CN 106484428 B CN106484428 B CN 106484428B CN 201610917694 A CN201610917694 A CN 201610917694A CN 106484428 B CN106484428 B CN 106484428B
Authority
CN
China
Prior art keywords
file
building
building operation
input
store 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.)
Active
Application number
CN201610917694.4A
Other languages
Chinese (zh)
Other versions
CN106484428A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610917694.4A priority Critical patent/CN106484428B/en
Publication of CN106484428A publication Critical patent/CN106484428A/en
Application granted granted Critical
Publication of CN106484428B publication Critical patent/CN106484428B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

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

Abstract

This application discloses application construction methods and device.One specific embodiment of the method includes: to obtain the input file set for constructing application, the building operational set for constructing application and the execution order information constructed in operational set between each building operation;According to the corresponding relationship of each entrance building operation in predefined file store path and the building operational set, each input file in the input file set is divided into the corresponding input file subclass of entrance building operation corresponding with the file store path of the input file;To each building operation in the building operational set, the first construction step is executed;Each outlet building is operated to the file content of each file object after having executed first construction step in obtained output parameter with document form storage to disk.The embodiment realizes the process of customized application building, and improves the flexibility and building speed of application build.

Description

Application construction method and device
Technical field
This application involves field of computer technology, and in particular to application-development technologies field, more particularly to apply structure Construction method and device.
Background technique
The building of software occupies very big specific gravity during the entire process of soft project, runs through software development, test, hair Cloth, deployment, upgrading whole process.Currently, most software projects require the support of building (or compiling), to obtain Higher efficiency of research and development and more superior run time behaviour.The step of software building includes indefinite quantity, indefinite sequence.
However, for the build tool of industry when facing the building of complex software project, there are following some deficiencies at present: (1) building operation is file-based, that is, each building operation requires read-write disk file, and manual setting is needed to grasp Make catalogue, seriously affects building speed;(2) for incremental build mostly as unit of task, this, which may cause to be directed to, does not change file Building behavior is repeated there are many unnecessary, affects speed and efficiency again;(3) building task, which is all based on greatly, is easy to enumerate File can not handle not enumerable file;(4) it is unable to the process of custom build, parallel building process can not be customized.It is comprehensive Upper described, common the build tool of industry cannot ideally be competent at the software project building to become increasingly complex at present.
Summary of the invention
The purpose of the application is to propose a kind of improved application construction method and device, to solve background above technology department Divide the technical issues of mentioning.
In a first aspect, this application provides a kind of application construction methods, which comprises obtain for constructing application In input file set, building operational set and the building operational set for constructing application between each building operation Execution order information;According to each entrance building operation in predefined file store path and the building operational set Each input file in the input file set is divided into the file store path pair with the input file by corresponding relationship In the corresponding input file subclass of the entrance building operation answered, wherein by the corresponding input of each entrance building operation The file object that the file store path and file content of each input file in subset of the file conjunction are formed is entrance building The input parameter of operation;To each building operation in the building operational set, following first construction step is executed: in the structure It founds a capital and operates no preposition building operation or in the case that preposition building operation has been completed, the input parameter which is operated In each file object file content execute the building operation, and the building operation have postposition building operation in the case where will Execute each postposition structure that each file object after the building operates in obtained output parameter is added to building operation It builds in the input parameter of operation;Each outlet building is operated to obtained output parameter after having executed first construction step In the file content of each file object stored with document form to disk, wherein each file for storing disk is Construct the file of obtained application.
Second aspect, this application provides a kind of application build device, described device includes: acquiring unit, is configured to Obtain the input file set for constructing application, building operational set and the building operational set for constructing application In it is each building operation between execution order information;Division unit, be configured to according to predefined file store path with The corresponding relationship of each entrance building operation in the building operational set, by each input text in the input file set Part is divided into the corresponding input file subclass of entrance building operation corresponding with the file store path of the input file, Wherein, by the file store path of each input file in the corresponding input file subclass of each entrance building operation and The file object that file content is formed is the input parameter of entrance building operation;Execution unit is configured to the building Each building operation in operational set, executes following first construction step: operate in the no preposition building of building operation or In the case that preposition building operation has all been completed, to the file content of each file object in the input parameter of building operation Building operation is executed, and obtained after building operation has postposition building that will execute the building operation in the case where operation Each file object in output parameter is added in the input parameter of each postposition building operation of building operation;Storage is single Member is configured to execute each outlet building operation each in obtained output parameter after first construction step The file content of file object is stored with document form to disk, wherein each file for storing disk is building gained The file for the application arrived.
Application construction method and device provided by the present application, by obtaining input file set, use for constructing application Execution order information in the building operational set and the building operational set of building application between each building operation; It then, will be defeated according to the corresponding relationship of each entrance building operation in predefined file store path and building operational set Enter each input file in file set and is divided into entrance building operation corresponding with the file store path of the input file In corresponding input file subclass;Then, each building in building operational set is operated, executes the first building step Suddenly;Finally, each outlet building operation has been executed each file pair after the first construction step in obtained output parameter The file content of elephant is stored with document form to disk.The process for realizing customized application building, improves the spirit of application build Activity;And the file in a disk is only read and write during entire building, to improve building speed.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is the flow chart according to one embodiment of the application construction method of the application;
Fig. 2 is the schematic diagram according to an application scenarios of the application construction method of the application;
Fig. 3 a- Fig. 3 c is the flow chart according to another embodiment of the application construction method of the application;
Fig. 4 is the structural schematic diagram according to one embodiment of the application build device of the application;
Fig. 5 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the process 100 of one embodiment of the application construction method according to the application.The application build Method, comprising the following steps:
Step 101, obtain for construct application input file set, for construct apply building operational set and Construct the execution order information in operational set between each building operation.
In the present embodiment, application construction method operation electronic equipment thereon can locally or remotely from it is upper Other electronic equipments for stating electronic equipment network connection are obtained for constructing the input file set applied, for constructing application It constructs operational set and constructs the execution order information in operational set between each building operation.
In the present embodiment, building operation is for characterizing the concrete operations carried out to the input parameter of building operation.Structure Building operation can be by packaged function in specific program code, program code or packaged application programming interfaces (API, Application Program Interface) come realize to the building operation input parameter progress concrete operations And return to output parameter.Which kind of specifically it is not specifically limited in this application using form.
In the present embodiment, the execution order information between each building operation is for characterizing between each building operation Execute precedence relationship.
In some optional implementations of the present embodiment, two adjacent buildings of execution sequence in operational set are constructed Operation is divided into execution sequence is preceding preposition building and operates, is divided into execution sequence is posterior postposition building and operates; That is, two buildings adjacent to execution sequence operate, the preceding building operation of execution sequence is the posterior building behaviour of execution sequence The preposition building operation made, the posterior building operation of execution sequence are the postposition building behaviour of the preceding building operation of execution sequence Make.Building operation can be operated without preposition building, and the building division of operations for no preposition building operation is entrance building Operation;Building operation can also be without postposition building operation, and the building division of operations for the building operation of no postposition is outlet Building operation.Building operation can also have at least one preposition building operation or the building operation of at least one postposition.Building behaviour Making can be identical or not identical between each building operation in gathering.
In some optional implementations of the present embodiment, building operation may include at least one of following: removal note It releases, merge, Code obfuscation, compression, encryption, decryption.
In some optional implementations of the present embodiment, the input file set for constructing application, which can be, to be located at Specified folder and its son in other local or with the network connection of above-mentioned electronic equipment electronic equipments of above-mentioned electronic equipment All Files in file.
In some optional implementations of the present embodiment, the input file set for constructing application is also possible to position Multiple specified folders in other local or with the network connection of above-mentioned electronic equipment electronic equipments of above-mentioned electronic equipment In multiple specified file names file.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can be and set from being stored in above-mentioned electronics It obtains and is used in building Operation Definition file in standby local or other electronic equipments with the network connection of above-mentioned electronic equipment Construct the execution order information in the building operational set and building operational set of application between each building operation.As showing Example can have each building operation in the building operational set and building operational set for constructing application from specified record Between the Javascript of execution order information (a kind of literal translation formula scripting language is a kind of regime type, weak type, is based on The language of prototype, built-in support type.Its interpreter is referred to as JavaScript engine, is a part of browser, extensively For the scripting language of client, used on webpage earliest, be used to increase dynamic function to webpage) it reads in file.It can With understanding, the content for constructing Operation Definition file can write different structures according to constructed application difference by user The execution order information between operation and each building operation is built, so as to the process of customized application building.
Step 102, according to pair of each entrance building operation in predefined file store path and building operational set Should be related to, by each input file in input file set be divided into it is corresponding with the file store path of the input file enter In the corresponding input file subclass of mouth building operation.
In the present embodiment, based on each in input file set obtained in step 101 and building operational set Entrance building operation, above-mentioned electronic equipment can be according to each entrances in predefined file store path and building operational set Each input file in input file set is divided into and stores with the file of the input file by the corresponding relationship for constructing operation In the corresponding input file subclass of the corresponding entrance building operation in path.Wherein, as corresponding to the building operation of each entrance Input file subclass in each input file file store path and file content formed file object be that this enters The input parameter of mouth building operation.
In some optional implementations of the present embodiment, text can be defined according to the file extension of input file The corresponding relationship of each entrance building operation in part store path and building operational set.For example, be located at " D: The file of all extensions entitled " .png ", " .jpg " or " .gif " in filesforconstruction " file is corresponding The building operation of " duplication " entrance;All extensions in " D: filesforconstruction " file are entitled " .js " Corresponding " Babel (follow-on JavaScript syntax compiler) " the entrance building operation of file.
In some optional implementations of the present embodiment, it can also be defined according to the file where input file The corresponding relationship of each entrance building operation in file store path and building operational set.For example, be located at " D: Filesforconstruction img " corresponding " duplication " the entrance building of All Files in file operates;Positioned at " D: Filesforconstruction src " All Files in file, corresponding " Babel (follow-on JavaScript language Method compiler) " entrance building operation.
In some optional implementations of the present embodiment, can also according to combination input file where file and The extension name of input file constructs the corresponding relationship operated to define file store path and construct each entrance in operational set. For example, be located at " D: filesforconstruction img " file in all extensions entitled " .png ", " .jpg " or Corresponding " duplication " the entrance building operation of the file of person " .gif ";Positioned at " D: filesforconstruction src " file In all extensions entitled " .js " corresponding " Babel (follow-on JavaScript syntax compiler) " the entrance building of file Operation;The file pair of all extensions entitled " .less " in " D: filesforconstruction css " file Answer the building operation of " Less (.less file is pre-compiled as .css file) " entrance;Positioned at " D: The file of all extensions entitled " .sass " in filesforconstruction css " file is corresponding, and " Sass (will .sass file is pre-compiled as .css file) " entrance building operation;Positioned at " D: filesforconstruction css " text The file corresponding " Stylus (.styl file is pre-compiled as .css file) " of all extensions entitled " .styl " in part folder enters Mouth building operation.
Step 103, each building in building operational set is operated, executes the first construction step.
In the present embodiment, above-mentioned electronic equipment can be provided in a step 102 for the building operation of each entrance defeated After entering parameter, each building in building operational set is operated, executes following first construction step: not being had in building operation In the case that preposition building operation or preposition building operation have all been completed, to each file in the input parameter of building operation The file content of object executes building operation, and will execute the building in the case where building operation has postposition building operation Each file object after operation in obtained output parameter is added to the defeated of each postposition building operation of building operation Enter in parameter.During operating the first construction step of execution to each building, each entrance is constructed and is operated, in step It has been that each entrance constructs operation setting input parameter, and is present in memory in the form of file object in 102;For Each non-entrance building operation, the input parameter of the non-entrance building operation are each preposition buildings of the non-entrance building operation The output parameter of parameter.Therefore the process that each building operation executes first step is not involved with read-write disk operating, It is operated in memory, so as to improve building speed.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can be for before each building operation setting It sets building operation and number is completed, and before step 103 execution, number is completed in the preposition building operation of each building operation Mesh is set as 0.During step 102 executes, when any one, which constructs operation, completes, it can be operated to the building The building operation of each postposition send the building and operate completed message.Preposition building operation has been received to any one simultaneously Preposition building that the building operates operation is completed number and done plus an operation by the building operation for completing message.In this way, above-mentioned electricity The preposition building operand that number reaches building operation is completed in the preposition building operation that sub- equipment can be operated in the building Confirm that the preposition building operation of building operation has all been completed in the case of purpose.
It should be noted that in this application, there is no circulations to execute sequence between each building operation, that is, the application In to input file set execute building operation during, be not in endless loop.To construct each building in operational set Operation is node, with the execution sequence between each building operation is directed connection line between node and forms topology diagram, The topology diagram is directed acyclic graph (DAG, Directed Acyclic Graph).
Step 104, each outlet building is operated each in obtained output parameter after having executed the first construction step The file content of a file object is stored with document form to disk.
In the present embodiment, each outlet can be constructed operation and execute institute after the first construction step by above-mentioned electronic equipment The file content of each file object in obtained output parameter is stored with document form to disk.Here, magnetic is stored Each file of disk is the file for constructing obtained application.
In some optional implementations of the present embodiment, step 102 be may be carried out as follows:
Firstly, above-mentioned electronic equipment can according to predefined file store path with it is each in the building operational set The corresponding relationship of entrance building operation searches and the input file each input file in the input file set The corresponding entrance building operation of file store path.
Then, in response to finding entrance building operation corresponding with the file store path of the input file, then this is defeated Enter file and is divided into the corresponding input file subset of entrance building operation corresponding with the file store path of the input file In conjunction;In response to not finding entrance building operation corresponding with the file store path of the input file, then by the input file It is divided into remaining subset of the file conjunction.
Optional implementation based on above-mentioned step 102, step 104 may be carried out as follows:
Firstly, each outlet building operation has been executed each text after the first construction step in obtained output parameter The file content of part object is stored with document form to disk, wherein each file for storing disk is obtained by building Application file the first subset;
Then, by the file content of each file in file set remaining in the optional implementation of above-mentioned steps 102 With document form storage to disk, wherein each file for storing disk be construct obtained application file the Two subsets.
Optional implementation based on above-mentioned steps 102 and step 104, above-mentioned electronic equipment may be implemented will be predefined The input file that can not be enumerated in the corresponding relationship of each entrance building operation in file store path and building operational set is drawn It assigns in unified remaining subset of the file conjunction, and the file in residue subset of the file conjunction is not need any operation, it is only necessary to Directly save as constructing the file in obtained application.
With continued reference to the schematic diagram that Fig. 2, Fig. 2 are according to the application scenarios of the application construction method of the present embodiment.? In the application scenarios of Fig. 2, the input file set for constructing application is operated according to predefined file store path and building The corresponding relationship of each entrance building operation, is divided into and constructs operation A with entrance in set1Corresponding input file subset It closes, operate B with entrance building1Corresponding input file subclass and with entrance construct operation C1Corresponding input file subclass, Wherein, by constructing operation A with entrance1The file store path and text of each input file in corresponding input file subclass The file object that part content is formed is entrance building operation A1Input parameter, by with entrance construct operation B1Corresponding input text The file object that the file store path and file content of each input file in part subclass are formed is entrance building operation B1Input parameter, by with entrance construct operation C1The file of each input file in corresponding input file subclass stores The file object that path and file content are formed is entrance building operation C1Input parameter.Then, above-mentioned electronic equipment can be with It was constructed based on the execution order information execution between each building operation and each building operation in building operational set Journey.Here, the execution sequence for constructing process entirety can be different.For example, execution sequence can be " A1→A2→A3→B1 →B2→B4→C1→C2→B3→D→C3→ E " can also be " A1→A2→B1→B2→B4→B3→C1→C2→C3→E→A3 →D".Finally, the file content meeting of each file object in the output parameter of outlet building operation D and outlet building operation E It is written into disk, and the file of disk be written is exactly each file for constructing obtained application.
The method provided by the above embodiment of the application can be repaired at any time by defining the process flexible of application build Change, increases the flexibility of application build;Entire building process relates only to a disk to each input file and reads behaviour simultaneously Make, improves the speed of application build.
With further reference to Fig. 3 a- Fig. 3 c, it illustrates the processes 300 of another embodiment of application construction method.Such as figure Shown in 3a, the process 300 of the application construction method, comprising the following steps:
Step 301, obtain for construct application input file set, for construct apply building operational set and Construct the execution order information in operational set between each building operation.
Step 302, according to pair of each entrance building operation in predefined file store path and building operational set Should be related to, by each input file in input file set be divided into it is corresponding with the file store path of the input file enter In the corresponding input file subclass of mouth building operation.
In the present embodiment, the concrete operations of step 301 and step 302 step in embodiment 100 corresponding with Fig. 1 respectively Rapid 101 and step 102 concrete operations it is essentially identical, details are not described herein.
Step 303, each building in building operational set is operated, executes the first construction step.
In the present embodiment, above-mentioned electronic equipment can be provided in step 302 for the building operation of each entrance defeated After entering parameter, each building in building operational set is operated, the first construction step is executed, the first construction step can be with here Including sub-step 3031-3039, as shown in Figure 3b.
Step 3031, judge whether building operation has all been completed without preposition building operation or preposition building operation, If it is going to step 3032.
Step 3032, judge the building operation be autoexec building operation or single file building operation, if It is autoexec building operation, then goes to step 3033, construct and operate if it is single file, then go to step 3037.
Step 3033, building behaviour is executed to the file content of each file object in the input parameter of building operation Make.
Step 3034, judge whether building operation has postposition building operation, if so, going to step 3035.
Step 3035, each file object for executing after building operation in obtained output parameter is added to the structure It builds in the input parameter of each postposition building operation of operation.
Step 3036, recurrence is deleted each postposition building operation of building operation and building operation in caching and is corresponded to Buffer zone in the building operation output parameter in each file object file store path be index file Content.
Step 3037, to each file object in the input parameter of building operation, the second construction step is executed.
In the present embodiment, the second construction step includes sub-step 30371,30372,30373,30374 and 30375, such as Shown in Fig. 3 c.
Step 30371, judge that the building operates to whether there is in corresponding buffer zone to deposit with the file of this document object Storage path is the file content of index, if it is present step 30372 is gone to, if it does not exist, then going to step 30373.
Step 30372, by by the file store path of this document object and the building operate in corresponding buffer zone with The file store path of this document object is the output that the file object that the file content of index is formed is added to building operation In parameter.
Step 30373, building operation is executed to the file content of this document object.
It step 30374, is that index is write with the file store path of this document object by file content obtained after execution Enter the building to operate in corresponding buffer zone.
Step 30375, by by the file store path of this document object and the building operate in corresponding buffer zone with The file store path of this document object is the output that the file object that the file content of index is formed is added to building operation In parameter.
Step 3038, judge whether building operation has postposition building operation, if so, going to step 3039.
Step 3039, each text after the second construction step in obtained output parameter will have been executed to building operation Part object is added in the input parameter of each postposition building operation of building operation.
Step 304, each outlet building is operated each in obtained output parameter after having executed the first construction step The file content of a file object is stored with document form to disk.
In the present embodiment, any one in step 305, step 309 or step 311 can be gone to after step 304 It is a, to realize the monitoring to input file set.
Step 305, whether have the file content of input file change, if so, turning if monitoring in input file set To step 306.
Step 306, the changed each input file of file content in input file set is obtained, and it is defeated to form variation Enter file set.
Step 307, which is operated in corresponding buffer zone and is inputted with changing each variation in input file set The file store path of file is that the file content of index is deleted.
Step 308, to variation input file in each variation input file, according to predefined file store path with The corresponding relationship of each entrance building operation, which is repartitioned and is deposited with the file of the variation input file It stores up in the corresponding input file subclass of the corresponding entrance building operation in path, then goes to step 303 and rebuild.
Step 309, whether have file increase, such as if monitoring in the file in input file set where each input file Fruit is to go to step 310.
Step 310, according to the corresponding relationship of predefined file store path and the building operation of each entrance, will be increased Each input file to be divided into corresponding with the file store path of the increased input file of institute entrance building operation institute right In the input file subclass answered, then goes to step 303 and rebuild.
Step 311, whether in input file set have input file be deleted, if so, going to step 312 if monitoring.
Step 312, to each deleted input file, the deleted input file is literary from the deleted input It is deleted in the input file subclass for the entrance building operation that part last time is divided into.
Step 313, each building in building operational set is operated, by the building operate in corresponding buffer zone with Each the file store path of deleted input file is that the file content of index is deleted, and then goes to step 303 and carries out weight New building.
In some optional implementations of the present embodiment, before the sub-step 3031 in above-mentioned first construction step also It may include steps of:
Parse the file content of each file object in the input parameter of building operation, and extract this document object according to The file store path of bad file, respectively with the file store path of this document object and extracted this document object institute according to The file store path of bad file updates the file store path and institute's dependent file store path in file dependence table.
Based on the optional implementation of above-mentioned first construction step, step 306 also be can be carried out as follows:
Firstly, obtaining the changed each input file of file content in input file set, the first variation of composition is defeated Enter file set;
Then, to each variation input file in the first variation input file set, in above-mentioned file dependence table Middle inquiry institute identical with the file store path of variation input file dependent file store path, with inquire institute according to Each input file composition indicated by the corresponding each file store path of file store path is relied to input dependent on the variation The dependence input file subclass of file;
Then, merge dependence input file of each variation input file in above-mentioned first variation input file set Set, obtains the second variation input file set;
Finally, combination it is above-mentioned first variation input file set and it is above-mentioned second variation input file set obtain changing it is defeated Enter file set.
Optional implementation based on above-mentioned first construction step and step 306, above-mentioned electronic equipment can recorde file Between dependence to the changed file of file content and depend on file content and during incremental build The file of changed file is rebuild.
From figure 3, it can be seen that compared with the corresponding embodiment of Fig. 1, the process of the application construction method in the present embodiment 300 have had more step 305,309 and 311 monitored input file set.The scheme of the present embodiment description can be with as a result, When thering is file increase, deletion or documentary file content to change in the input file set for building, Only increase, deletion or the changed part of file content are constructed, the part not changed will not repeat to construct, thus It realizes incremental build, reduces construction cost, improve development efficiency.
With further reference to Fig. 4, as the realization to method shown in above-mentioned each figure, this application provides a kind of application build dresses The one embodiment set, the Installation practice is corresponding with embodiment of the method shown in FIG. 1, which specifically can be applied to respectively In kind electronic equipment.
As shown in figure 4, application build device 400 described in the present embodiment include: acquiring unit 401, division unit 402, Execution unit 403 and storage unit 404.Wherein, acquiring unit 401 are configured to obtain the input file for constructing application Execution in set, building operational set and above-mentioned building operational set for constructing application between each building operation is suitable Sequence information;Division unit 402, be configured to according to predefined file store path in above-mentioned building operational set it is each enter Each input file in above-mentioned input file set, is divided into the text with the input file by the corresponding relationship of mouth building operation In the corresponding input file subclass of the corresponding entrance building operation of part store path, wherein constructed and operated by each entrance The file object that the file store path and file content of each input file in corresponding input file subclass are formed It is the input parameter of entrance building operation;Execution unit 403 is configured to each building in above-mentioned building operational set Operation executes following first construction step: all complete in the no preposition building operation of building operation or preposition building operation In the case where, which is executed to the file content of each file object in the input parameter of building operation and is operated, and Building operation has and will execute each text after building operation in obtained output parameter in the case where postposition building operation Part object is added in the input parameter of each postposition building operation of building operation;Storage unit 404, being configured to will be each A outlet building operation has executed the file of each file object after above-mentioned first construction step in obtained output parameter Content is stored with document form to disk, wherein each file for storing disk is the file for constructing obtained application.
In the present embodiment, the acquiring unit 401, division unit 402 of the device 400 of application build, 403 and of execution unit The specific processing of storage unit 404 and its brought technical effect can be respectively with reference to steps 101, step in Fig. 1 corresponding embodiment Rapid 102, the related description of step 103 and step 104, details are not described herein.
In some optional implementations of the present embodiment, two adjacent structures of execution sequence in above-mentioned building operational set Preposition building operation or postposition building operation can be divided into according to execution sequence by building operation, without the building of preposition building operation Operation can be divided into entrance building operation, and the building operation of no postposition building operation can be divided into outlet building operation.
In some optional implementations of the present embodiment, above-mentioned building operation may include autoexec building operation It constructs and operates with single file;And above-mentioned execution unit 403 can be further configured to: judge that building operation is at criticizing Manage file building operation or single file building operation;If building operation is autoexec building operation: to this The file content for constructing each file object in the input parameter of operation executes building operation, and has postposition in building operation The each file object for executing after building operation in obtained output parameter is added to the structure in the case where building operation It builds in the input parameter of each postposition building operation of operation, and recurrence deletes building operation and building operation in caching The building of each postposition operate in corresponding buffer zone with the text of each file object in the output parameter of building operation Part store path is the file content of index;If building operation is single file building operation: to building operation Each file object in parameter is inputted, following second construction step is executed: judging that the building operates in corresponding buffer zone It is the file content of index with the presence or absence of the file store path with this document object;If it is present will be by this document object File store path and the building operate the file store path in corresponding buffer zone with this document object be index The file object that file content is formed is added in the output parameter of building operation;If it does not exist, then to this document object File content execute building operation, and by file content obtained after execution with the file store path of this document object The building is written for index to operate in corresponding buffer zone, will be operated by the file store path of this document object and the building File store path in corresponding buffer zone with this document object is the file object addition that the file content of index is formed In the output parameter operated to the building;The building will be operated and be executed in the case where building operation has postposition building operation Each file object after complete above-mentioned second construction step in obtained output parameter be added to the building operation it is each after In the input parameter for setting building operation.Execution unit 403 it is specific processing and its brought technical effect can refer to Fig. 3 a and The related description of the sub-step 3031 to 3039 of step 303 and step 303 in Fig. 3 b corresponding embodiment, details are not described herein.
In some optional implementations of the present embodiment, above-mentioned application build device 400 can also include: the first monitoring Whether unit 405, being configured to monitor in above-mentioned input file set has the file content of input file to change;First weight Structure unit 406, if being configured to listen in above-mentioned input file set has the file content of input file to change, The changed each input file of file content in above-mentioned input file set is obtained, and forms variation input file set; Building each in above-mentioned building operational set is operated, which is operated in corresponding buffer zone, text is inputted with above-mentioned variation The file store path of each variation input file is that the file content of index is deleted in part set;To above-mentioned variation input file Each variation input file in set, according to each entrance in predefined file store path and above-mentioned building operational set The corresponding relationship for constructing operation, repartitions the file store path pair with the variation input file for the variation input file In the corresponding input file subclass of the entrance building operation answered;Each building in above-mentioned building operational set is operated, Execute above-mentioned first construction step;Obtained output is joined after each outlet building operation has been executed above-mentioned first construction step The file content of each file object in number is stored with document form to disk.First monitoring unit 405 and the first reconstruct are single The specific processing of member 406 and its brought technical effect can be respectively with reference to step 305 and steps in Fig. 3 a corresponding embodiment The related description of 306- step 308, step 304 and step 304, details are not described herein.
In some optional implementations of the present embodiment, above-mentioned application build device 400 can also include: the second monitoring Whether unit 407, being configured to monitor has input file to be deleted in above-mentioned input file set;Second reconfiguration unit 408, matches If set has input file to be deleted for listening in above-mentioned input file set, to each above-mentioned deleted input text Part, the input text for the entrance building operation which was divided into from the deleted input file last time It is deleted in part subclass;To each building operation in above-mentioned building operational set, which is operated into corresponding buffer zone In with the file store path of each deleted input file be index file content delete;To above-mentioned building operational set In each building operation, execute above-mentioned first construction step;Each outlet building operation above-mentioned first building step has been executed into The file content of each file object after rapid in obtained output parameter is stored with document form to disk.Second monitors list The specific processing of member 407 and the second reconfiguration unit 408 and its brought technical effect can refer to Fig. 3 a corresponding embodiment respectively Middle step 311 and step 312, step 313, the related description of step 303 and step 304, details are not described herein.
In some optional implementations of the present embodiment, above-mentioned application build device 400 can also include: that third is monitored Unit 409 is configured to monitor in the file in above-mentioned input file set where each input file whether have file increasing Add;Third reconstructed unit 410 is configured to if it is, grasping according to predefined file store path and the building of each entrance The corresponding relationship of work, by increased each input file be divided into the file store path pair with the increased input file of institute In the corresponding input file subclass of the entrance building operation answered;Each building in above-mentioned building operational set is operated, Execute above-mentioned first construction step;Obtained output is joined after each outlet building operation has been executed above-mentioned first construction step The file content of each file object in number is stored with document form to disk.Third monitoring unit 409 and third reconstructed list The specific processing of member 410 and its brought technical effect can be respectively with reference to step 309 and steps in Fig. 3 a corresponding embodiment 310, the related description of step 303 and step 304, details are not described herein.
In some optional implementations of the present embodiment, above-mentioned division unit 402 may include: searching module 4021, It is configured to the corresponding pass according to predefined file store path and entrance each in above-mentioned building operational set building operation System, to each input file in above-mentioned input file set, search it is corresponding with the file store path of the input file enter Mouth building operation;First division module 4022 is configured to corresponding with the file store path of the input file in response to finding Entrance construct operation, then the input file is divided into corresponding with the file store path of input file entrance building behaviour Make in corresponding input file subclass;Second division module 4023, is configured in response to not finding and the input file The corresponding entrance building operation of file store path, then the input file is divided into during remaining subset of the file closes;On and Stating storage unit 404 may include: the first memory module 4041, is configured to each outlet constructing operation and has executed above-mentioned the The file content of each file object after one construction step in obtained output parameter is stored with document form to disk, In, each file for storing disk is the first subset for constructing the file of obtained application;Second memory module 4042, The file content by each file in above-mentioned remaining file set is configured to document form storage to disk, wherein institute The each file for storing disk is the second subset for constructing the file of obtained application.Searching module 4021, first divides Module 4022, the second division module 4023, the first memory module 4041 and the second memory module 4042 specific processing and its Brought technical effect can refer to related to the optional implementation of step 104 about step 102 in Fig. 1 corresponding embodiment Illustrate, details are not described herein.
It is above-mentioned in the no preposition building operation of building operation or preposition in some optional implementations of the present embodiment In the case that building operation has all been completed, the file content of each file object in the input parameter of building operation is executed Before building operation, above-mentioned first construction step can also include: each file in the input parameter for parse building operation The file content of object, and the file store path for the file that this document object is relied on is extracted, respectively with this document object The file store path for the file that file store path and extracted this document object are relied on updates file dependence table In file store path and institute's dependent file store path;And above-mentioned first reconfiguration unit 405 can further configure use In: obtain the changed each input file of file content in above-mentioned input file set, composition the first variation input file Set;To each variation input file in above-mentioned first variation input file set, looked into above-mentioned file dependence table Institute identical with the file store path of variation input file dependent file store path is ask, relies on text with what is inquired Each input file composition indicated by the corresponding each file store path of part store path depends on the variation input file Dependence input file subclass;The dependence for merging each variation input file in above-mentioned first variation input file set is defeated Enter subset of the file conjunction, obtains the second variation input file set;Combine above-mentioned first variation input file set and above-mentioned second Variation input file set obtains variation input file set.The specific processing of first reconfiguration unit 405 and its brought skill Art effect can refer to the related description in Fig. 3 corresponding embodiment about the first construction step and the optional implementation of step 306, Details are not described herein.
In some optional implementations of the present embodiment, above-mentioned building operation include at least one of the following: removal annotation, Merging, Code obfuscation, compression, encryption, decryption.
Below with reference to Fig. 5, it illustrates the computer systems 500 for the electronic equipment for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.
As shown in figure 5, computer system 500 includes central processing unit (CPU, Central Processing Unit) 501, it can be according to the program being stored in read-only memory (ROM, Read Only Memory) 502 or from storage section 508 programs being loaded into random access storage device (RAM, Random Access Memory) 503 and execute various appropriate Movement and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data.CPU 501,ROM 502 and RAM 503 is connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to bus 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be tangibly embodied in machine readable Computer program on medium, the computer program include the program code for method shown in execution flow chart.At this In the embodiment of sample, which can be downloaded and installed from network by communications portion 509, and/or from removable Medium 511 is unloaded to be mounted.When the computer program is executed by central processing unit (CPU) 501, execute in the present processes The above-mentioned function of limiting.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer The combination of order is realized.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include acquiring unit, division unit, execution unit and storage unit.Wherein, the title of these units not structure under certain conditions The restriction of the pairs of unit itself, for example, storage unit is also described as " unit of storage file ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, the non-volatile calculating Machine storage medium can be nonvolatile computer storage media included in device described in above-described embodiment;It is also possible to Individualism, without the nonvolatile computer storage media in supplying terminal.Above-mentioned nonvolatile computer storage media is deposited One or more program is contained, when one or more of programs are executed by an equipment, so that the equipment: obtaining For constructing the input file set of application, for constructing in the building operational set and above-mentioned building operational set applied respectively Execution order information between a building operation;According to predefined file store path with it is each in above-mentioned building operational set The corresponding relationship of entrance building operation, each input file in above-mentioned input file set is divided into and the input file In the corresponding input file subclass of the corresponding entrance building operation of file store path, wherein constructed and grasped by each entrance The file pair that the file store path and file content for making each input file in corresponding input file subclass are formed As if the input parameter of entrance building operation;To each building operation in above-mentioned building operational set, following first is executed Construction step: in the case where the no preposition building operation of building operation or preposition building operation have all been completed, to the structure The file content for building each file object in the input parameter of operation executes building operation, and has postposition structure in building operation It builds and each file object for executing after building operation in obtained output parameter is added to the building in the case where operation In the input parameter of each postposition building operation of operation;After each outlet building operation has been executed above-mentioned first construction step The file content of each file object in obtained output parameter is stored with document form to disk, wherein is stored Each file of disk is the file for constructing obtained application.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (18)

1. a kind of application construction method, which is characterized in that the described method includes:
Obtain the input file set for constructing application, the building operational set for constructing application and building operation Execution order information in set between each building operation;
It, will according to the corresponding relationship of each entrance building operation in predefined file store path and the building operational set Each input file in the input file set is divided into entrance structure corresponding with the file store path of the input file It builds in the corresponding input file subclass of operation, wherein by the corresponding input file subclass of each entrance building operation In each input file file store path and file content formed file object be the entrance building operation input Parameter;
To each building operation in the building operational set, following first construction step is executed: not having in building operation In the case that preposition building operation or preposition building operation have all been completed, to each file in the input parameter of building operation The file content of object executes building operation, and will execute the building in the case where building operation has postposition building operation Each file object after operation in obtained output parameter is added to the defeated of each postposition building operation of building operation Enter in parameter;
Each outlet building is operated to each file pair after having executed first construction step in obtained output parameter The file content of elephant is stored with document form to disk, wherein each file for storing disk, which is that building is obtained, answers File.
2. the method according to claim 1, wherein two that execution sequence is adjacent in the building operational set Building operation is divided into preposition building operation or postposition building operation according to execution sequence, and the building without preposition building operation is grasped It is divided into entrance building operation, the building division of operations without postposition building operation is outlet building operation.
3. according to the method described in claim 2, it is characterized in that, the building operation include autoexec building operation and Single file building operation;And
The file content of each file object executes building operation in the input parameter of described pair of building operation, and in the structure Each file pair after building operation in obtained output parameter will be executed in the case where postposition building operation by building operation and having As being added in the input parameter of each postposition building operation of building operation, comprising:
Judge that building operation is autoexec building operation or single file building operation;
If building operation is autoexec building operation: to each file pair in the input parameter of building operation The file content of elephant executes building operation, and will execute building behaviour in the case where building operation has postposition building operation Each file object after work in obtained output parameter is added to the input of each postposition building operation of building operation In parameter, and recurrence deletes each postposition building of building operation and building operation in caching and operates corresponding buffer area The file store path of each file object in output parameter operated in domain with the building is the file content of index;
If building operation is single file building operation: to each file pair in the input parameter of building operation As executing following second construction step: judging that the building operates in corresponding buffer zone with the presence or absence of with this document object File store path is the file content of index;If it is present by by the file store path of this document object and the building Operate the file object that the file content that the file store path in corresponding buffer zone with this document object is index is formed It is added in the output parameter of building operation;If it does not exist, then executing building behaviour to the file content of this document object Make, and is that building operation pair is written in index with the file store path of this document object by file content obtained after execution In the buffer zone answered, it will be operated in corresponding buffer zone by the file store path of this document object and the building with this article The file store path of part object is the output parameter that the file object that the file content of index is formed is added to building operation In;Institute after having executed second construction step will be operated to the building in the case where building operation has postposition building operation Each file object in obtained output parameter is added in the input parameter of each postposition building operation of building operation.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
Whether monitor in the input file set has the file content of input file to change;
If it is, obtaining the changed each input file of file content in the input file set, and form variation Input file set;Building each in the building operational set is operated, by the building operate in corresponding buffer zone with The file store path of each variation input file is that the file content of index is deleted in the variation input file set;To institute Each variation input file in variation input file set is stated, is operated according to predefined file store path and the building The corresponding relationship of each entrance building operation, which is repartitioned and the variation input file in set In the corresponding input file subclass of the corresponding entrance building operation of file store path;To in the building operational set Each building operation, executes first construction step;After each outlet building operation has been executed first construction step The file content of each file object in obtained output parameter is stored with document form to disk.
5. according to the method described in claim 3, it is characterized in that, the method also includes:
Whether monitor has input file to be deleted in the input file set;
If it is, to each deleted input file, by the deleted input file from the deleted input file It is deleted in the input file subclass for the entrance building operation that last time is divided into;To each structure in the building operational set Operation is built, which is operated in corresponding buffer zone with the file store path of each deleted input file as index File content delete;To each building operation in the building operational set, first construction step is executed;It will be each Outlet building operation has executed in the file of each file object after first construction step in obtained output parameter Hold with document form storage to disk.
6. according to the method described in claim 3, it is characterized in that, the method also includes:
Whether monitor in the file in the input file set where each input file has file increase;
If it is, according to the corresponding relationship of predefined file store path and the building operation of each entrance, institute is increased Each input file is divided into corresponding to entrance building operation corresponding with the file store path of the increased input file of institute Input file subclass in;To each building operation in the building operational set, first construction step is executed;It will Each outlet building operation has executed the text of each file object after first construction step in obtained output parameter Part content is stored with document form to disk.
7. according to the method described in claim 2, it is characterized in that, described according to predefined file store path and the structure The corresponding relationship for building each entrance building operation in operational set, each input file in the input file set is divided In the input file subclass corresponding to entrance corresponding with the file store path of input file building operation, comprising:
It is right according to the corresponding relationship of each entrance building operation in predefined file store path and the building operational set Each input file in the input file set searches entrance building corresponding with the file store path of the input file Operation;In response to finding entrance building operation corresponding with the file store path of the input file, then the input file is drawn It assigns in the corresponding input file subclass of entrance building operation corresponding with the file store path of the input file;Response In not finding entrance building operation corresponding with the file store path of the input file, then the input file is divided into residue During subset of the file closes;And
It is described that each outlet building operation has been executed into each text after first construction step in obtained output parameter The file content of part object is stored with document form to disk, wherein each file for storing disk is obtained by building Application file, comprising:
Each outlet building is operated to each file pair after having executed first construction step in obtained output parameter The file content of elephant is stored with document form to disk, wherein each file for storing disk, which is that building is obtained, answers First subset of file;
The file content of each file in the remaining file set is stored with document form to disk, wherein stored Each file to disk is the second subset for constructing the file of obtained application.
8. according to the method described in claim 4, it is characterized in that, described in the no preposition building operation of building operation or preceding It sets in the case that building operation all completed, the file content of each file object in the input parameter of building operation is held Before row building operation, first construction step further include:
The file content of each file object in the input parameter of building operation is parsed, and extracts what this document object was relied on The file store path of file is relied on the file store path of this document object and extracted this document object respectively The file store path of file updates the file store path and institute's dependent file store path in file dependence table;And
It is described to obtain the changed each input file of file content in the input file set, and form variation input text Part set, comprising:
Obtain the changed each input file of file content in the input file set, composition the first variation input file Set;
To each variation input file in the first variation input file set, inquired in the file dependence table Institute identical with the file store path of variation input file dependent file store path, with institute's dependent file for inquiring Each input file composition is dependent on the variation input file indicated by the corresponding each file store path of store path Rely on input file subclass;
The dependence input file subclass for merging each variation input file in the first variation input file set, obtains Second variation input file set;
It combines the first variation input file set and the second variation input file set obtains variation input file collection It closes.
9. any method in -8 according to claim 1, which is characterized in that the building operation includes following at least one : removal annotation, merging, Code obfuscation, compression, encryption, decryption.
10. a kind of application build device, which is characterized in that described device includes:
Acquiring unit is configured to obtain the input file set for constructing application, the building operation set for constructing application Execution order information in conjunction and the building operational set between each building operation;
Division unit is configured to construct according to entrance each in predefined file store path and the building operational set Each input file in the input file set is divided into and stores with the file of the input file by the corresponding relationship of operation In the corresponding input file subclass of the corresponding entrance building operation in path, wherein as corresponding to the building operation of each entrance Input file subclass in each input file file store path and file content formed file object be that this enters The input parameter of mouth building operation;
Execution unit is configured to execute following first construction step to each building operation in the building operational set: In the case where the no preposition building operation of building operation or preposition building operation have all been completed, to the defeated of building operation The file content for entering each file object in parameter executes building operation, and has the feelings of postposition building operation in building operation Each file object after the building operates in obtained output parameter will be executed under condition is added to each of building operation In the input parameter of postposition building operation;
Storage unit is configured to construct each outlet obtained output after operation has executed first construction step and joins The file content of each file object in number is stored with document form to disk, wherein stores each file of disk It is the file for constructing obtained application.
11. device according to claim 10, which is characterized in that execution sequence is adjacent in the building operational set two A building operation is divided into preposition building operation or postposition building operation according to execution sequence, without the building of preposition building operation Division of operations is entrance building operation, and the building division of operations without postposition building operation is outlet building operation.
12. device according to claim 11, which is characterized in that the building operation includes autoexec building operation It constructs and operates with single file;And
The execution unit is further configured to:
Judge that building operation is autoexec building operation or single file building operation;
If building operation is autoexec building operation: to each file pair in the input parameter of building operation The file content of elephant executes building operation, and will execute building behaviour in the case where building operation has postposition building operation Each file object after work in obtained output parameter is added to the input of each postposition building operation of building operation In parameter, and recurrence deletes each postposition building of building operation and building operation in caching and operates corresponding buffer area The file store path of each file object in output parameter operated in domain with the building is the file content of index;
If building operation is single file building operation: to each file pair in the input parameter of building operation As executing following second construction step: judging that the building operates in corresponding buffer zone with the presence or absence of with this document object File store path is the file content of index;If it is present by by the file store path of this document object and the building Operate the file object that the file content that the file store path in corresponding buffer zone with this document object is index is formed It is added in the output parameter of building operation;If it does not exist, then executing building behaviour to the file content of this document object Make, and is that building operation pair is written in index with the file store path of this document object by file content obtained after execution In the buffer zone answered, it will be operated in corresponding buffer zone by the file store path of this document object and the building with this article The file store path of part object is the output parameter that the file object that the file content of index is formed is added to building operation In;Institute after having executed second construction step will be operated to the building in the case where building operation has postposition building operation Each file object in obtained output parameter is added in the input parameter of each postposition building operation of building operation.
13. device according to claim 12, which is characterized in that described device further include:
Whether first monitoring unit, being configured to monitor in the input file set has the file content of input file to become Change;
First reconfiguration unit, if being configured to listen to the file content for having input file in the input file set Variation, then obtain the changed each input file of file content in the input file set, and forms variation input text Part set;Building each in the building operational set is operated, which is operated in corresponding buffer zone with the change The file store path for changing each variation input file in input file set is the file content deletion of index;To the variation Each variation input file in input file set, according in predefined file store path and the building operational set The corresponding relationship of each entrance building operation, which is repartitioned and is deposited with the file of the variation input file It stores up in the corresponding input file subclass of the corresponding entrance building operation in path;To each structure in the building operational set Operation is built, first construction step is executed;Obtained by each outlet building being operated after having executed first construction step Output parameter in the file content of each file object stored with document form to disk.
14. device according to claim 12, which is characterized in that described device further include:
Whether second monitoring unit, being configured to monitor has input file to be deleted in the input file set;
Second reconfiguration unit, if being configured to listen in the input file set has input file to be deleted, to every A deleted input file, the entrance which was divided into from the deleted input file last time It constructs and is deleted in the input file subclass of operation;To each building operation in the building operational set, which is grasped Make to delete in corresponding buffer zone with the file content that the file store path of each deleted input file is index;It is right Each building operation in the building operational set, executes first construction step;Each outlet is constructed operation to execute The file content of each file object after complete first construction step in obtained output parameter is stored with document form To disk.
15. device according to claim 12, which is characterized in that described device further include:
Third monitoring unit, be configured to monitor in the file in the input file set where each input file whether There is file increase;
Third reconstructed unit is configured to if it is, operating according to predefined file store path and the building of each entrance Corresponding relationship, by increased each input file be divided into it is corresponding with the file store path of the increased input file of institute The corresponding input file subclass of entrance building operation in;To each building operation in the building operational set, hold Row first construction step;Each outlet building is operated to obtained output parameter after having executed first construction step In the file content of each file object stored with document form to disk.
16. device according to claim 11, which is characterized in that the division unit includes:
Searching module is configured to construct according to entrance each in predefined file store path and the building operational set The corresponding relationship of operation is searched and is stored with the file of the input file to each input file in the input file set The corresponding entrance building operation in path;
First division module is configured in response to finding entrance building behaviour corresponding with the file store path of the input file Make, is then divided into the input file defeated corresponding to entrance building operation corresponding with the file store path of the input file Enter in subset of the file conjunction;
Second division module is configured in response to not finding entrance building corresponding with the file store path of the input file The input file is then divided into remaining subset of the file conjunction by operation;And
The storage unit includes:
First memory module, be configured to construct each outlet operation executed it is obtained defeated after first construction step The file content of each file object in parameter is stored with document form to disk out, wherein stores each of disk File is the first subset for constructing the file of obtained application;
Second memory module is configured to deposit the file content of each file in the remaining file set with document form Store up disk, wherein each file for storing disk is the second subset for constructing the file of obtained application.
17. device according to claim 13, which is characterized in that it is described operate in the no preposition building of building operation or In the case that preposition building operation has all been completed, to the file content of each file object in the input parameter of building operation Before executing building operation, first construction step further include:
The file content of each file object in the input parameter of building operation is parsed, and extracts what this document object was relied on The file store path of file is relied on the file store path of this document object and extracted this document object respectively The file store path of file updates the file store path and institute's dependent file store path in file dependence table;And
First reconfiguration unit is further configured to:
Obtain the changed each input file of file content in the input file set, composition the first variation input file Set;
To each variation input file in the first variation input file set, inquired in the file dependence table Institute identical with the file store path of variation input file dependent file store path, with institute's dependent file for inquiring Each input file composition is dependent on the variation input file indicated by the corresponding each file store path of store path Rely on input file subclass;
The dependence input file subclass for merging each variation input file in the first variation input file set, obtains Second variation input file set;
It combines the first variation input file set and the second variation input file set obtains variation input file collection It closes.
18. any device in 0-17 according to claim 1, which is characterized in that the building operation including it is following at least One: removal annotation, merging, Code obfuscation, compression, encryption, decryption.
CN201610917694.4A 2016-10-20 2016-10-20 Application construction method and device Active CN106484428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610917694.4A CN106484428B (en) 2016-10-20 2016-10-20 Application construction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610917694.4A CN106484428B (en) 2016-10-20 2016-10-20 Application construction method and device

Publications (2)

Publication Number Publication Date
CN106484428A CN106484428A (en) 2017-03-08
CN106484428B true CN106484428B (en) 2019-10-15

Family

ID=58270327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610917694.4A Active CN106484428B (en) 2016-10-20 2016-10-20 Application construction method and device

Country Status (1)

Country Link
CN (1) CN106484428B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113031961B (en) * 2021-03-23 2023-04-07 北京百度网讯科技有限公司 Compiling method, compiling apparatus, electronic device, storage medium, and program product

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060229854A1 (en) * 2005-04-08 2006-10-12 Caterpillar Inc. Computer system architecture for probabilistic modeling
US8473919B2 (en) * 2008-01-31 2013-06-25 Ca, Inc. System and method for repeating program flow for debugging and testing
US8255430B2 (en) * 2008-08-26 2012-08-28 Caringo, Inc. Shared namespace for storage clusters
CN103377059B (en) * 2012-04-23 2016-09-28 阿里巴巴集团控股有限公司 Functional module dynamic loading method based on jQuery framework and device
CN105893081A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Application software installation device and method
CN106371826B (en) * 2016-08-23 2019-11-29 百富计算机技术(深圳)有限公司 The method and apparatus of application program cross-system operation

Also Published As

Publication number Publication date
CN106484428A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
US11269660B2 (en) Methods and systems for integrated development environment editor support with a single code base
CA2967251C (en) Intelligent code differencing using code clone detection
US20190196672A1 (en) Visual effects system for "big data" analysis workflow editors, distribution platforms, execution engines, and management systems comprising same
CN102915237B (en) The method and system of rewrite data quality rule is required according to user application
US20160313874A1 (en) Visual effects system for "big data" analysis workflow editors, distribution platforms, execution engines, and management systems comprising same
US8019765B2 (en) Identifying files associated with a workflow
CN107885873A (en) Method and apparatus for output information
CN101819551B (en) Method and system for recording service interaction data of enterprise message system
WO2012107874A1 (en) Capture, aggregate, and use search activities as a source of social data within an enterprise
CN113641591B (en) Test case generation method and device and test method and device
CN110515968A (en) Method and apparatus for output information
CN115576600A (en) Code change-based difference processing method and device, terminal and storage medium
CN107295075A (en) Cross-terminal application state migration method based on session maintenance
CN106484428B (en) Application construction method and device
CN109218060A (en) A kind of method and device of business configuration driving flow table
CN110119386A (en) Data processing method, data processing equipment, medium and calculating equipment
CN110362792A (en) RN file is converted to the method, apparatus and conversion equipment of small routine file
Kleehaus et al. Automated enterprise architecture model maintenance via runtime IT discovery
Ioannou et al. Mining developers’ workflows from IDE usage
Von Landesberger et al. A system for interactive visual analysis of large graphs using motifs in graph editing and aggregation.
CN110347573A (en) Application program analysis method, device, electronic equipment and computer-readable medium
CN109117420A (en) operation log recording method and device
CN107491466A (en) client device, information processing system and information processing method
CN106776296A (en) Startup method, device and starting device that coverage rate is detected
CN107346557B (en) Method and apparatus for updating animation

Legal Events

Date Code Title Description
C06 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