CN104239114A - Application compiling method and device - Google Patents
Application compiling method and device Download PDFInfo
- Publication number
- CN104239114A CN104239114A CN201310560494.4A CN201310560494A CN104239114A CN 104239114 A CN104239114 A CN 104239114A CN 201310560494 A CN201310560494 A CN 201310560494A CN 104239114 A CN104239114 A CN 104239114A
- Authority
- CN
- China
- Prior art keywords
- module
- application program
- business function
- function module
- mentioned
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides an application compiling method and device. The method includes: receiving a trigger command to compile an application; according to the trigger command, selecting a specified service function module corresponding to the trigger command, from a service function module belonging to the application; calling a compiler corresponding to the application so as to compile the specified service function module. By the use of the application compiling method and device, the technical problems of related techniques such that adding new service functions to the application is low in processing efficiency are solved; accordingly, efficiency of processing new service functions is improved, and manpower and time costs are saved.
Description
Technical field
The present invention relates to software translating field, especially relate to a kind of compile processing method and device of application program.
Background technology
Along with the development increasingly of modern development of Mobile Internet technology, various modular business function is combined into the general character in order to great majority application (Application, referred to as App).Moreover, in enterprises APP, be also faced with the predicament of again developing to identical or Similar Problems.Whenever the business function needing increase by new, just need to do the system integration, all need to add the client that then test generates end application manually at every turn, not only need to expend very large time and human cost, be also unfavorable for the lifting of production efficiency.Therefore, one is needed on existing service basic, the method generating client can be compiled fast and solve the problems referred to above.
For the problems referred to above in correlation technique, at present effective solution is not yet proposed.
Summary of the invention
For in correlation technique, there is the technical matterss such as treatment effeciency is low when application program increases new business function, the invention provides a kind of compile processing method and device of application program, at least to solve the problem.
In order to achieve the above object, according to an aspect of the present invention, provide a kind of compile processing method of application program, comprising: receive the triggering command being used for application programs and carrying out compiling; The specified services functional module that in the business function module of described application program, selection is corresponding with described triggering command is subordinated to according to described triggering command; Call the compiler corresponding with above-mentioned application program to compile above-mentioned specified services functional module.
Preferably, be subordinated to the specified services functional module that in the business function module of above-mentioned application program, selection is corresponding with above-mentioned triggering command according to above-mentioned triggering command before, also comprise: the business demand of above-mentioned application program is split into above-mentioned business function module, wherein, different business function module corresponds to different business functions.
Preferably, call after the compiler corresponding with above-mentioned application program compile above-mentioned specified services functional module, also comprise: the client generating above-mentioned application program according to the above-mentioned specified services functional module after compiling.
Preferably, said method also comprises: the code corresponding to all above-mentioned business function module is monitored; When above-mentioned code changes, output notice information.
Preferably, the code corresponding to all above-mentioned business function module is monitored, and comprising: monitor above-mentioned code according to predetermined period.
In order to achieve the above object, according to a further aspect of the invention, additionally providing a kind of process of compilation device of application program, comprising: receiver module, carrying out for application programs the triggering command that compiles for receiving; Select module, for be subordinated to above-mentioned application program according to above-mentioned triggering command business function module in select the specified services functional module corresponding with above-mentioned triggering command; Calling module, compiles above-mentioned specified services functional module for calling the compiler corresponding with above-mentioned application program.
Preferably, said apparatus also comprises: split module, and for the business demand of above-mentioned application program is split into above-mentioned business function module, wherein, different business function module corresponds to different business functions.
Preferably, said apparatus also comprises: generation module, for generating the client of above-mentioned application program according to the above-mentioned specified services functional module after compiling.
Preferably, said apparatus also comprises: monitoring module, monitors for the code corresponding to all above-mentioned business function module; Output module, for when above-mentioned code changes, output notice information.
Preferably, above-mentioned monitoring module, for monitoring above-mentioned code according to predetermined period.
Pass through the present invention, adopt and be subordinated to according to triggering command the specified services functional module that in the business function module of application program, selection is corresponding with this triggering command, and call the technological means that the compiler corresponding with above-mentioned application program compile specified services functional module, solve in correlation technique, there is the technical matterss such as treatment effeciency is low when application program increases new business function, thus the treatment effeciency that improve new business function, save manpower and time cost simultaneously.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the compile processing method of application program according to the embodiment of the present invention;
Fig. 2 is the structured flowchart of the process of compilation device of application program according to the embodiment of the present invention;
Fig. 3 is the structured flowchart of the process of compilation device of application program according to the preferred embodiment of the invention;
Fig. 4 is the schematic diagram of client generating principle according to the preferred embodiment of the invention.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Following examples can be applied in any terminal device, such as, be applied in PC, also can be applied in the mobile terminal that have employed at present in intelligent operating system, and be not limited to this.Operating system for terminal device does not have particular/special requirement, as long as the operation of support application program.Such as, following examples can be applied to Windows operating system, Android (Android) system is medium.
Fig. 1 is the process flow diagram of the compile processing method of application program according to the embodiment of the present invention.As shown in Figure 1, the method comprises:
Step S102, receives the triggering command being used for application programs and carrying out compiling;
Step S104, is subordinated to the specified services functional module that in the business function module of above-mentioned application program, selection is corresponding with above-mentioned triggering command according to above-mentioned triggering command;
Step S106, calls the compiler corresponding with above-mentioned application program and compiles above-mentioned specified services functional module.
By each treatment step above-mentioned, specified services functional module can be selected from the business function module of application program according to triggering command, and call the compilation tool corresponding with application program specified services functional module is compiled, therefore, the business function that can realize application programs carries out automatic compiling, simultaneously, independent compilation can be carried out to each business function module to call, therefore, avoid the overlapping development of application code, save time and human cost, improve the treatment effeciency of application programs what's new.
In order to improve the efficiency of the Added Business function of application program, before step S104, namely be subordinated to the specified services functional module that in the business function module of above-mentioned application program, selection is corresponding with above-mentioned triggering command according to above-mentioned triggering command before, the business demand of above-mentioned application program can be split into business function module, wherein, different business function module corresponds to different business functions.Allomeric function by application program is divided into several functional modules, and each functional module can independent compilation exploitation.
Above-mentioned processing procedure can be applied to but be not limited in the client generative process of application programs, namely call after the compiler corresponding with above-mentioned application program compile above-mentioned specified services functional module, the client of above-mentioned application program can also be generated according to the above-mentioned specified services functional module after compiling.
In order to realize the situation of change to business function module, can also monitor by the code corresponding to all above-mentioned business function module; When above-mentioned code changes, output notice information.Like this, related personnel can be notified in time when above-mentioned code sends change or mistake.
In the present embodiment, continuous surveillance can being carried out to above-mentioned code, certainly, in order to save operation resource, also can monitor above-mentioned code according to predetermined period.
Additionally provide a kind of process of compilation device of application program in the present embodiment, this device is used for realizing above-described embodiment and preferred implementation, has carried out repeating no more of explanation, and has been described below to the module related in this device.As used below, term " module " can realize the software of predetermined function and/or the combination of hardware.Although the device described by following examples preferably realizes with software, hardware, or the realization of the combination of software and hardware also may and conceived.Fig. 2 is the structured flowchart of the process of compilation device of application program according to the embodiment of the present invention.As shown in Figure 2, this device comprises:
Receiver module 20, is connected to and selects module 22, carries out the triggering command that compiles for receiving for application programs;
Select module 22, be connected to calling module 24, for be subordinated to above-mentioned application program according to above-mentioned triggering command business function module in select the specified services functional module corresponding with above-mentioned triggering command;
Calling module 24, compiles above-mentioned specified services functional module for calling the compiler corresponding with above-mentioned application program.
By the function that above-mentioned modules realizes, the business function that can realize application programs equally carries out automatic compiling, simultaneously, independent compilation can be carried out to each business function module to call, therefore, the overlapping development of application code can be avoided, save time and human cost, improve the treatment effeciency of application programs what's new.
Preferably, as shown in Figure 3, said apparatus can also include but not limited to following processing module: split module 26, for the business demand of above-mentioned application program is split into above-mentioned business function module, wherein, different business function module corresponds to different business functions.
In the present embodiment, said apparatus can also comprise: generation module 28, for generating the client of above-mentioned application program according to the above-mentioned specified services functional module after compiling.
In a preferred implementation of the present embodiment, said apparatus can also include but not limited to following processing unit: monitoring module 30, is connected to output module 32, monitors for the code corresponding to all above-mentioned business function module; Output module 32, for when above-mentioned code changes, output notice information.
Above-mentioned monitoring module 30, can also be used for monitoring above-mentioned code according to predetermined period.
As mentioned above, the above-mentioned modules related in the present embodiment both can be realized by software, also can be realized by correspondingly hardware.Such as, above-mentioned modules all can be located within a processor, such as: above-mentioned modules is all in a processor: a kind of processor, comprising: receiver module 20, selection module 22 and calling module 24; Or above-mentioned modules is in a corresponding processor respectively: above-mentioned receiver module 20, is arranged in first processor; Above-mentioned selection module 22 is arranged in the second processor; Above-mentioned calling module 24, is arranged in the 3rd processor.
Certainly, in the present embodiment, the process of compilation device of above-mentioned application program also can as a part for terminal, and namely this device is arranged in terminal, and based on this, the present embodiment also provides a kind of terminal, comprising: the process of compilation device of above-mentioned application program.
In order to understand above-described embodiment and preferred embodiment thereof better, describe in detail below in conjunction with a preferred embodiment and relevant drawings:
The main design idea of the present embodiment is, develops a set of automatically according to compiling of instruction module interface (Complie Interfaces), defines a set of interface specification, and write automatized script (Automate scripts).The App of different programming language and compiler, all accept identical instruction set, and instruction set can go according to the difference of input instruction type the functional module selecting this App belonging, then adopts the compiler belonging to this App to go collector.In this way, avoid because the different programming language in multiple terminals carries out processing the drawback produced, avoid the duplication of labour of different business simultaneously, avoid code overlapping development, greatly save time and the cost of exploitation.
Below describe the technical scheme of the present embodiment in detail:
As shown in Figure 4, the client generative process in the present embodiment needs three modules:
Github code module center, is code trustship center, is in charge of modular code.Github not only has good user interface, also supports Secure Shell (Secure Shell, referred to as SSH) protocol access, generates customer end A pp even if also can manage when working outside office like this.
TestFlight pushes center, and under the cooperation at Jenkins continuous integrating center and Github code module center, after generating the client required for user, TestFlight is responsible for sending client and tests for client to the machine of client.
Jenkins continuous integrating center, primary responsibility continues to concentrate and the service (namely Jenkins resolves corresponding traffic order according to the script command inputted, after being resolved to traffic order, fill order) of time scheduling.The supercentral modular code of Github code module can be monitored and whether have change, whether occur mistake, and the developer of the announcement of generation error report in time.
Specific implementation process is as follows:
Arrange two-server (Server), a Server installs and loads Github, and one is run Jenkins.When submitting code and business function module to Github Server (namely depositing the server of developer's code), an other Jenkins (namely performing the execution server of the script finished writing in advance) checks the change running Github by the time scheduling set in advance, according to current input instruction, select the business function module required for compiling.
A Testflight (Push Service, be used for pushing when after the compiled client of Jenkins, send mail and also enclose generated client to corresponding tester) after receiving the App that Jenkins transmits, according to the user list that backstage has configured, these lists are exactly the registered user that can run active client, send client installation kit to user installation by the mode of webpage or mail.
In sum, following beneficial effect is above embodiments enabled:
The business function of application program can configure based on script (Shell), eliminate repetition step when many language and the conversion of platform communication interaction, such as, exploitation is write code and is only consumed little time, after developer has paid block code exploitation, do not spend the compiling managing whole flow process, test job and client generation work.Only can be absorbed in the realization of business function, allow all the work of robotization all can give automatic flow and gone.
In another embodiment, additionally provide a kind of software, this software is for performing the technical scheme described in above-described embodiment and preferred implementation.
In another embodiment, additionally provide a kind of storage medium, store above-mentioned software in this storage medium, this storage medium includes but not limited to: CD, floppy disk, hard disk, scratch pad memory etc.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, and in some cases, step shown or described by can performing with the order be different from herein, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
These are only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a compile processing method for application program, is characterized in that, comprising:
Receive the triggering command being used for application programs and carrying out compiling;
The specified services functional module that in the business function module of described application program, selection is corresponding with described triggering command is subordinated to according to described triggering command;
Call the compiler corresponding with described application program to compile described specified services functional module.
2. method according to claim 1, is characterized in that, before being subordinated to the specified services functional module that in the business function module of described application program, selection is corresponding with described triggering command, also comprises according to described triggering command:
The business demand of described application program is split into described business function module, and wherein, different business function module corresponds to different business functions.
3. method according to claim 1, is characterized in that, calls after the compiler corresponding with described application program compile described specified services functional module, also comprises:
The client of described application program is generated according to the described specified services functional module after compiling.
4. the method according to any one of claims 1 to 3, is characterized in that, also comprises:
The code corresponding to all described business function module is monitored;
When described code changes, output notice information.
5. method according to claim 4, is characterized in that, the code corresponding to all described business function module is monitored, and comprising:
According to predetermined period, described code is monitored.
6. a process of compilation device for application program, is characterized in that, comprising:
Receiver module, carries out for application programs the triggering command that compiles for receiving;
Select module, for be subordinated to described application program according to described triggering command business function module in select the specified services functional module corresponding with described triggering command;
Calling module, compiles described specified services functional module for calling the compiler corresponding with described application program.
7. device according to claim 6, is characterized in that, also comprises:
Split module, for the business demand of described application program is split into described business function module, wherein, different business function module corresponds to different business functions.
8. device according to claim 6, is characterized in that, also comprises:
Generation module, for generating the client of described application program according to the described specified services functional module after compiling.
9. the device according to any one of claim 6 to 8, is characterized in that, also comprises:
Monitoring module, monitors for the code corresponding to all described business function module;
Output module, for when described code changes, output notice information.
10. device according to claim 9, is characterized in that, described monitoring module, for monitoring described code according to predetermined period.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310560494.4A CN104239114A (en) | 2013-11-12 | 2013-11-12 | Application compiling method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310560494.4A CN104239114A (en) | 2013-11-12 | 2013-11-12 | Application compiling method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104239114A true CN104239114A (en) | 2014-12-24 |
Family
ID=52227249
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310560494.4A Pending CN104239114A (en) | 2013-11-12 | 2013-11-12 | Application compiling method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104239114A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105138387A (en) * | 2015-08-31 | 2015-12-09 | 惠州Tcl移动通信有限公司 | Method, device and system for compiling software |
CN105607896A (en) * | 2015-09-25 | 2016-05-25 | 中国铁路总公司 | Application program development method and system |
CN105975276A (en) * | 2016-05-09 | 2016-09-28 | 上海携程商务有限公司 | Distributed construction system and method |
CN106547548A (en) * | 2016-10-19 | 2017-03-29 | 青岛海信电器股份有限公司 | A kind of Compilation Method and device of software version |
CN106897072A (en) * | 2017-02-28 | 2017-06-27 | 北京三快在线科技有限公司 | Traffic engineered call method, device and electronic equipment |
CN107273165A (en) * | 2017-06-19 | 2017-10-20 | 郑州云海信息技术有限公司 | A kind of system and method for realizing module dynamic call |
CN108241502A (en) * | 2016-12-26 | 2018-07-03 | 航天信息股份有限公司 | A kind of method and device of code continuous integrating |
CN109145042A (en) * | 2018-07-18 | 2019-01-04 | 优信拍(北京)信息科技有限公司 | A kind of transmission method of installation kit, device, system, the construction method of system |
CN109885311A (en) * | 2019-01-28 | 2019-06-14 | 平安科技(深圳)有限公司 | A kind of generation method and equipment of application program |
CN110990137A (en) * | 2019-11-28 | 2020-04-10 | 北京字节跳动网络技术有限公司 | Application program function module scheduling method, scheduling information processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515232A (en) * | 2008-02-21 | 2009-08-26 | 卓望数码技术(深圳)有限公司 | Software continuous integration system and method |
CN102693183A (en) * | 2012-05-30 | 2012-09-26 | 瑞斯康达科技发展股份有限公司 | Method and system for realizing automatic software testing |
CN103077111A (en) * | 2011-10-26 | 2013-05-01 | 阿里巴巴集团控股有限公司 | Method and system for locating continuous integration failed case |
US20130174117A1 (en) * | 2011-12-29 | 2013-07-04 | Christina Watters | Single development test environment |
US20130227557A1 (en) * | 2012-02-29 | 2013-08-29 | Jiri Pechanec | Systems and methods for providing priority build execution in a continuous integration system |
-
2013
- 2013-11-12 CN CN201310560494.4A patent/CN104239114A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515232A (en) * | 2008-02-21 | 2009-08-26 | 卓望数码技术(深圳)有限公司 | Software continuous integration system and method |
CN103077111A (en) * | 2011-10-26 | 2013-05-01 | 阿里巴巴集团控股有限公司 | Method and system for locating continuous integration failed case |
US20130174117A1 (en) * | 2011-12-29 | 2013-07-04 | Christina Watters | Single development test environment |
US20130227557A1 (en) * | 2012-02-29 | 2013-08-29 | Jiri Pechanec | Systems and methods for providing priority build execution in a continuous integration system |
CN102693183A (en) * | 2012-05-30 | 2012-09-26 | 瑞斯康达科技发展股份有限公司 | Method and system for realizing automatic software testing |
Non-Patent Citations (3)
Title |
---|
CARLOSK: "TestFlight使用心得", 《HTTP://WWW.CNBLOGS.COM/CARLOSK/ARCHIVE/2013/01/28/2880112.HTML》 * |
H@H@: "Jenkins + git + Robot 实现持续集成", 《HTTP://WWW.CNBLOGS.COM/GGHHLL/ARCHIVE/2013/06/07/3123536.HTML》 * |
ITECH: "Jenkins入门总结", 《HTTP://WWW.CNBLOGS.COM/ITECH/ARCHIVE/2011/11/23/2260009.HTML》 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105138387A (en) * | 2015-08-31 | 2015-12-09 | 惠州Tcl移动通信有限公司 | Method, device and system for compiling software |
CN105607896B (en) * | 2015-09-25 | 2018-10-02 | 中国铁路总公司 | The development approach and system of application program |
CN105607896A (en) * | 2015-09-25 | 2016-05-25 | 中国铁路总公司 | Application program development method and system |
CN105975276A (en) * | 2016-05-09 | 2016-09-28 | 上海携程商务有限公司 | Distributed construction system and method |
CN105975276B (en) * | 2016-05-09 | 2019-04-09 | 上海携程商务有限公司 | Distribution building system and method |
CN106547548A (en) * | 2016-10-19 | 2017-03-29 | 青岛海信电器股份有限公司 | A kind of Compilation Method and device of software version |
CN108241502A (en) * | 2016-12-26 | 2018-07-03 | 航天信息股份有限公司 | A kind of method and device of code continuous integrating |
CN106897072A (en) * | 2017-02-28 | 2017-06-27 | 北京三快在线科技有限公司 | Traffic engineered call method, device and electronic equipment |
CN107273165A (en) * | 2017-06-19 | 2017-10-20 | 郑州云海信息技术有限公司 | A kind of system and method for realizing module dynamic call |
CN109145042A (en) * | 2018-07-18 | 2019-01-04 | 优信拍(北京)信息科技有限公司 | A kind of transmission method of installation kit, device, system, the construction method of system |
CN109885311A (en) * | 2019-01-28 | 2019-06-14 | 平安科技(深圳)有限公司 | A kind of generation method and equipment of application program |
CN109885311B (en) * | 2019-01-28 | 2023-09-29 | 平安科技(深圳)有限公司 | Application program generation method and device |
CN110990137A (en) * | 2019-11-28 | 2020-04-10 | 北京字节跳动网络技术有限公司 | Application program function module scheduling method, scheduling information processing method and device |
CN110990137B (en) * | 2019-11-28 | 2022-08-26 | 北京字节跳动网络技术有限公司 | Application program function module scheduling method, scheduling information processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104239114A (en) | Application compiling method and device | |
KR101882426B1 (en) | Software updating method, system, and device | |
CN107479867B (en) | Application software plug-in operation method and device | |
CN102591724B (en) | Method and device for information interaction | |
CN102035896B (en) | TTCN-3-based distributed testing framework applicable to software system | |
CN110300082B (en) | Interface generation method and device and storage medium | |
RU2636112C1 (en) | Object of interface management service, function service object and method of control of elements | |
JP2015534688A (en) | Application development, compilation, and debugging method and apparatus | |
CN101707399A (en) | Method and system for acquiring electric energy information | |
CN106230977B (en) | A kind of client functionality loading method, system, client and server-side | |
CN103457761A (en) | Cross-platform command line configuration interface implementation method | |
CN103530097A (en) | Implement method and device of module crossing middleware platform | |
CN113296742A (en) | APP data processing method and device and mobile terminal | |
CN104572054A (en) | Capability calling method and capability calling equipment | |
CN114205230A (en) | Method, system, medium and electronic device for configuring cloud native network element | |
CN112306851A (en) | Automatic testing method and device | |
CN102520927A (en) | Method, device and terminal for generation logic business of embedded terminal | |
CN105404530B (en) | It is a kind of to realize easy deployment and the system and method using private clound | |
CN113297055A (en) | Cloud testing system and method | |
CN113992695A (en) | Method for service collaboration between network element devices and network element device | |
CN101826985A (en) | Plugin-based centralized signaling tracing method and system | |
CN111131440A (en) | Resource scheduling method and device and server | |
KR20140037605A (en) | Method for active processing ami using cim schema and system topology information | |
CN102708008A (en) | Implementation method of linking download strategy | |
CN102196010A (en) | System and method for implementing application open interface at terminal side |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141224 |
|
RJ01 | Rejection of invention patent application after publication |