CN108196825A - The construction method and system of software project - Google Patents

The construction method and system of software project Download PDF

Info

Publication number
CN108196825A
CN108196825A CN201711461711.9A CN201711461711A CN108196825A CN 108196825 A CN108196825 A CN 108196825A CN 201711461711 A CN201711461711 A CN 201711461711A CN 108196825 A CN108196825 A CN 108196825A
Authority
CN
China
Prior art keywords
module
triggering command
project
frame
task
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
Application number
CN201711461711.9A
Other languages
Chinese (zh)
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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies 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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN201711461711.9A priority Critical patent/CN108196825A/en
Publication of CN108196825A publication Critical patent/CN108196825A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present embodiments relate to the construction method and system of a kind of software project, including:The structure instruction of acquisition project frame;Structure project frame is instructed according to the structure;Wherein, the project frame includes multiple property files;The multiple property file is detected;In the case where detecting the operation of the modification to the property file, according to the modification operation generation triggering command;The triggering command is sent to continuous integrating module, so that the continuous integrating module is compiled software project according to the triggering command update of the one or more task in task, verification task and deployment task.The construction method and system of software project according to embodiments of the present invention can quickly create project frame, and compiling automatically, verification, deployment for completing software project etc., realize standardizing, fast, simply managing for software project.

Description

The construction method and system of software project
Technical field
The present invention relates to field of computer technology more particularly to a kind of construction methods and system of project software project.
Background technology
With the development of programming language, the exploitation of software is developing progressively by the closed production in individual manual mill For industrialization, the industrialized production of pipeline system.In order to adapt to above-mentioned development, various code generating frameworks are produced, The program code instructions of corresponding language can be generated using above-mentioned code generating framework.
By taking java applet language as an example, java applet language corresponds to different code generating frameworks, for example, including: The frames such as rapid-generatora, JunJava, XDoclet AutoCoder.Since code generating framework type is more, opening When sending out software project, it is susceptible to that program language is mashed up, code structure is in disorder, the generation of the setting of file directory and unit testing The problem of missing or mistake, therefore lack unified, standardization management.
Invention content
In view of this, the present invention proposes the construction method and system of a kind of software project, quickly to create project frame, Complete automatic compiling, verification, deployment of software project etc., realize the standardizing of software project, fast, simple management.
In a first aspect, the present invention provides a kind of construction method of software project, the method includes:
The structure instruction of acquisition project frame;
Structure project frame is instructed according to the structure;Wherein, the project frame includes multiple property files;
The multiple property file is detected;
In the case where detecting the operation of the modification to the property file, referred to according to the modification operation generation triggering It enables;
The triggering command is sent to continuous integrating module, so that the continuous integrating module is according to the triggering command pair Software project is compiled the update of the one or more task in task, verification task and deployment task.
With reference to first aspect, in the first possible implementation, it is described to be referred to according to the modification operation generation triggering It enables, including:
Determine the modification action type of the modification operation;
Corresponding triggering command is generated according to the modification action type.
The possible realization method of with reference to first aspect the first, in second of possible realization method, the modification Operate the update for the verification rule to continuous integrating module;
It is described that corresponding triggering command is generated according to the modification action type, including:
Obtain the verification rule of the updated continuous integrating module;
First triggering command is generated according to the verification rule of the updated continuous integrating module, so that described hold Continuous integration module modifies to the verification rule of inspection task according to the first triggering command.
The possible realization method of with reference to first aspect the first, in the third possible realization method, the modification It operates as the update to deployment parameters;
It is described that corresponding triggering command is generated according to the modification action type, including:
Obtain the deployment parameters of continuous integrating module after the update;
The second triggering command is generated according to the updated deployment parameters, so that the continuous integrating module is according to Second triggering command modifies to the deployment parameters of deployment task.
The possible realization method of with reference to first aspect the first, in the 4th kind of possible realization method, the modification The modification for the translation and compiling environment to project is operated, it is described that corresponding triggering command is generated according to the modification action type, including:
Obtain the updated translation and compiling environment;
According to the updated translation and compiling environment generation third triggering command, so that the continuous integrating module is according to Third triggering command modifies to the translation and compiling environment of compiler task.
The possible realization method of with reference to first aspect the first, in the 5th kind of possible realization method, the modification Operate the change for the bibliographic structure to software project;The method further includes:
Obtain the bibliographic structure of the software project after change;
The bibliographic structure of the software project is updated according to the bibliographic structure.
With reference to first aspect, in the 6th kind of possible realization method, the structure instruction includes item types and frame Type;
It is described that structure project frame is instructed according to the structure, including:
Determine whether to support the item types;
In the case where supporting the item types, the corresponding frame of the framework type is determined;
Determine the corresponding dependence of the frame;
The project frame is built according to the frame and described rely on.
In second aspect, the present invention provides a kind of structure system of software project, the system comprises:
First acquisition module, for obtaining the instruction of the structure of project frame;
Module is built, for instructing structure project frame according to the structure;Wherein, the project frame includes multiple categories Property file;
Detecting module, for being detected to the multiple property file;
Generation module, in the case where detecting the operation of the modification to the property file, being grasped according to the modification Make generation triggering command;
Sending module, for sending the triggering command to continuous integrating module so that the continuous integrating module according to The triggering command is compiled software project the one or more task in task, verification task and deployment task Update.
With reference to second aspect, in the first possible implementation, the generation module includes:
First determination sub-module, for determining the modification action type of the modification operation;
Submodule is generated, for generating corresponding triggering command according to the modification action type.
With reference to the first possible realization method of second aspect, in second of possible realization method, the modification Operate the update for the verification rule to continuous integrating module;
The generation submodule, is additionally operable to:
Obtain the verification rule of the updated continuous integrating module;
First triggering command is generated according to the verification rule of the updated continuous integrating module, so that described hold Continuous integration module modifies to the verification rule of inspection task according to the first triggering command.
With reference to the first possible realization method of second aspect, in the third possible realization method, the modification It operates as the update to deployment parameters;
The generation submodule, is additionally operable to:
Obtain the deployment parameters of continuous integrating module after the update;
The second triggering command is generated according to the updated deployment parameters, so that the continuous integrating module is according to Second triggering command modifies to the deployment parameters of deployment task.
With reference to the first possible realization method of second aspect, in the 4th kind of possible realization method, the modification Operate the modification for the translation and compiling environment to project;
The generation submodule, is additionally operable to:
Obtain the updated translation and compiling environment;
According to the updated translation and compiling environment generation third triggering command, so that the continuous integrating module is according to Third triggering command modifies to the translation and compiling environment of compiler task.
With reference to the first possible realization method of second aspect, in the 5th kind of possible realization method, the modification Operate the change for the bibliographic structure to software project;The system also includes:
Second acquisition module, for obtaining the bibliographic structure of the software project after changing;
Update module, for updating the bibliographic structure of the software project according to the bibliographic structure.
With reference to second aspect, in the 6th kind of possible realization method, the structure instruction includes item types and frame Type;
The structure module, including:
Second determination sub-module is used to determine whether to support the item types;
Third determination sub-module, in the case where supporting the item types, determining that the framework type is corresponding Frame;
4th determination sub-module, for determining the corresponding dependence of the frame;
Submodule is built, for building the project frame according to the frame and described rely on.
So, terminal device can instruct structure project frame, and to project frame according to the structure of project frame In multiple property files detected, detect property file modification operation in the case of, according to modification generation triggering Instruction, and triggering command is sent to continuous integrating module, so that continuous integrating module is compiled project according to triggering command The update of task, verification task and the one or more task in deployment task.The software provided according to embodiments of the present invention The construction method and system of project can quickly create project frame, and complete automatic compiling, verification, the deployment of software project Deng, can realize the standardizing of software project, fast, simple management.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, other feature of the invention and aspect It is clear.
Description of the drawings
Comprising in the description and the attached drawing of a part for constitution instruction and specification together illustrate the present invention's Exemplary embodiment, feature and aspect, and principle for explaining the present invention.
Fig. 1 shows the flow chart of the construction method of software project according to an embodiment of the invention.
Fig. 2 shows the flow charts of the construction method according to an illustrative software project of the invention.
Fig. 3 shows the flow chart of the construction method of software project according to an embodiment of the invention.
Fig. 4 shows the flow chart of the construction method according to an illustrative software project of the invention.
Fig. 5 shows the structure diagram of the structure system of software project according to an embodiment of the invention.
Fig. 6 shows the structure diagram of the structure system of software project according to an embodiment of the invention.
Fig. 7 is the hardware block diagram according to a kind of construction device of software project shown in an exemplary embodiment.
Specific embodiment
Below with reference to attached drawing various exemplary embodiments, feature and the aspect that the present invention will be described in detail.It is identical in attached drawing Reference numeral represent functionally the same or similar element.Although the various aspects of embodiment are shown in the drawings, remove It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details is given in specific embodiment below. It will be appreciated by those skilled in the art that without certain details, the present invention can equally be implemented.In some instances, for Method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight the purport of the present invention.
Fig. 1 shows the flow chart of the construction method of software project according to an embodiment of the invention, can be applied to carry The terminal device of software project structure system.As shown in Figure 1, this method includes the following steps.
Step 101, the structure instruction for obtaining project frame.
Above-mentioned structure instruction generates the instruction of software project for instruction terminal equipment.For example, structure instruction includes Item types and framework type are used to indicate terminal device and generate software project according to the item types and framework type.
In one example, user can input structure instruction by order line.Correspondingly, terminal device can obtain use Family is instructed by the structure that order line inputs;Alternatively, terminal device can provide item class on the display interface of display equipment The option of type in response to user to the trigger action of the option of item types, the further option for providing framework type, and is rung Corresponding structure instruction should be obtained in user to the trigger action of the option of framework type.
Step 102 instructs structure project frame according to the structure.
Terminal device instructs according to above-mentioned structure and determines corresponding project frame, and completes the initialization structure of the project frame It builds.Wherein, the project frame includes multiple property files.
For example, terminal device can instruct the property file needed for creating multiple projects according to above-mentioned structure, such as: The file of record verification rule, the file for recording deployment parameters, the file for recording translation and compiling environment, the file for recording bibliographic structure etc. Wait property files.
Step 103 detects the multiple property file.
Step 104, detect the modification to the property file operation in the case of, according to it is described modification operation generation Triggering command.
Terminal device detects multiple property files, can in the case of the modification operation for detecting property file To generate corresponding triggering command according to modification operation.
For example, terminal device can pass through the Grunt plug-in units of installation and Grunt-contrib-watch plug-in units pair The path of specified attribute file carries out monitoring detection.
It is above-mentioned according to the modification operation generation triggering command in a kind of possible realization method, it can include following Step:
Determine the modification action type of the modification operation;
Corresponding triggering command is generated according to the modification action type.
For example, above-mentioned modification operation can include the file to record verification rule, the file for recording deployment parameters, The file for recording translation and compiling environment, the modification of file for recording bibliographic structure etc..Wherein, when modification operation is to record verification rule File modification when, the modification action type of modification operation is the regular update of the verification to continuous integrating module;When repairing Change operation be to record deployment parameters file modification when, the modification operation modification action type for deployment parameters more Newly;When modification operation is the modification to recording the file of translation and compiling environment, the modification action type of modification operation is to project Translation and compiling environment modification.
Terminal device generates different triggering commands according to different modification operations, to indicate that continuous integrating module being capable of root The update of task (including compiler task, verification task and deployment task) is performed according to triggering command.
Step 105 sends the triggering command to continuous integrating module, so that the continuous integrating module is touched according to described The update for the one or more task being compiled to software project in task, verification task and deployment task that sends instructions.
Terminal device sends above-mentioned triggering command to continuous integrating module.Wherein, continuous integrating module is also software project A function module in structure system.Continuous integrating module performs corresponding compiler task, verification according to above-mentioned triggering command The update of one or more task in task and deployment task.
So, terminal device instructs structure project frame according to the structure of project frame, and in project frame Multiple property files are detected, and in the case of the modification operation for detecting property file, generation triggering is operated according to modification Instruction, and triggering command is sent to continuous integrating module, so that continuous integrating module is compiled project according to triggering command The update of task, verification task and the one or more task in deployment task.
The construction method of the software project provided according to embodiments of the present invention can quickly create project frame, and complete item Purpose is compiled, verifies, is disposed automatically, can realize standardizing, fast, simply managing for project.
Fig. 2 shows the flow charts of the construction method according to an illustrative software project of the invention.
In a kind of possible realization method, with reference to Fig. 2, above-mentioned modification action type is the verification to continuous integrating module The update of rule;It is then described that corresponding triggering command is generated according to the modification action type, it may comprise steps of:
Obtain the verification rule of the updated continuous integrating module;
First triggering command is generated according to the verification rule of the updated continuous integrating module, so that described hold Continuous integration module modifies to the verification rule of inspection task according to the first triggering command.
Terminal device is obtained when the file for detecting record verification rule is changed from the file of record verification rule The verification rule of updated continuous integrating module is taken, and according to the verification rule of updated continuous integrating module generation the One triggering command, the first triggering command include the verification rule of above-mentioned updated continuous integrating module.Continuous integrating mould After block receives the first triggering command, the verification rule of modification verification task is the verification of above-mentioned updated continuous integrating module Rule.Continuous integrating module can verify software project according to updated verification rule.
In a kind of possible realization method, with reference to Fig. 2, above-mentioned modification action type is the update to deployment parameters;On It states and corresponding triggering command is generated according to the modification action type, may comprise steps of:
Obtain the deployment parameters of continuous integrating module after the update;
The second triggering command is generated according to the updated deployment parameters, so that the continuous integrating module is according to Second triggering command modifies to the deployment parameters of deployment task.
Terminal device is obtained when the file for detecting record deployment parameters is changed from the file of record deployment parameters It takes updated deployment parameters, and the second triggering command is generated according to the updated deployment parameters, in second triggering command Including above-mentioned updated deployment parameters.After continuous integrating module receives second triggering command, the deployment of deployment task is changed Parameter is above-mentioned updated deployment parameters.Continuous integrating module is according to updated deployment parameters to software project carry out portion Administration.
For example, deployment time is updated to daily by user in the file of record deployment parameters by daily 10 points deployment 12 points of deployment, system can obtain updated deployment parameters when detecting the modification, and according to deployment parameters generation the So that after continuous integrating module receives the second triggering command, deployment time is updated by daily 10 points deployment for two triggering commands For daily 12 points deployment.
In a kind of possible realization method, with reference to Fig. 2, above-mentioned modification action type is repairing to the translation and compiling environment of project Change, it is described that corresponding triggering command is generated according to the modification action type, including:
Obtain the updated translation and compiling environment;
According to the updated translation and compiling environment generation third triggering command, so that the continuous integrating module is according to Third triggering command modifies to the translation and compiling environment of compiler task.
Terminal device is obtained when the file for detecting record translation and compiling environment is changed from the file of record translation and compiling environment It takes updated translation and compiling environment, and third triggering command is generated according to the updated translation and compiling environment, in the third triggering command Including above-mentioned updated translation and compiling environment.After continuous integrating module receives the third triggering command, the compiling of compiler task is changed Environment is above-mentioned updated translation and compiling environment.Continuous integrating module compiles software project according to updated translation and compiling environment It translates.
In a kind of possible realization method, above-mentioned modification action type can be the change to the bibliographic structure of software project More;The method can also include the following steps:
Obtain the bibliographic structure of the software project after change;
The bibliographic structure of the software project is updated according to the bibliographic structure.
Terminal device is when detecting the file of bibliographic structure of logging software project and changing, from logging software project Bibliographic structure file in obtain the bibliographic structure of updated software project, and can be according to the updated bibliographic structure Update the bibliographic structure of software project.Above-mentioned modification operation can be to the increase operation of bibliographic structure or delete operation, be System can increase or delete corresponding property file according to the above-mentioned project frame that is revised as.
Fig. 3 shows the flow chart of the construction method of software project according to an embodiment of the invention, wherein, step in Fig. 3 301st, step 306 is identical to step 105 to step 308 and step 101, step 103 in previous embodiment, and the embodiment of the present invention exists This is repeated no more.
In a kind of possible realization method, above-mentioned structure instruction can include:Item types and framework type, above-mentioned side Method may comprise steps of:
Step 301, the structure instruction for obtaining project frame.
Step 302 determines whether to support the item types.
Terminal device can support a variety of item types, such as:Java projects (SSH frames Struts-Spring- Hibernate, SSM frame SpringMVC-Spring-Mybatis, Web frame SSH-AngularJS, SSM-EmberJS, SSM-AngularJS, SSM-Angular4, SSM-Freemarker), it, can be in the structure instruction for receiving project frame Determine whether to support the item types that structure instruction includes, when structure is not supported to instruct the item types included, can generate Prompt message, custom system to be prompted not support the item types.
Step 303, in the case where supporting the item types, determine the corresponding frame of the framework type.
When structure is supported to instruct the item types included, terminal device can determine corresponding frame according to item types Type, and show said frame type option on the display interface of display equipment, it is corresponding to provide a user framework type Option.
Terminal device determines corresponding framework type in response to the selection operation of user's corresponding option to framework type. Terminal device can go in framework template library to obtain the corresponding framework template of the frame after frame is determined.
For example, the template generation that JavaDoc can be combined in the embodiment of the present invention meets item of the user using rule Mesh template.Wherein, upper frame module library is the database or file for storing framework template.
Step 304 determines the corresponding dependence of the frame.
For example, terminal device can determine from dependence library according to frame and obtain corresponding dependence, wherein, it relies on Library is for the database or file of the correspondence of the dependence corresponding to storing framework and its.
Alternatively, terminal device can obtain dependence instruction information, dependence instruction information can be that user passes through order line Etc. the information that inputs of modes, the corresponding dependence of frame can be included in dependence instruction information, terminal device can be in response to upper Dependence instruction information is stated to determine and obtain the corresponding dependence of frame.
Illustratively, the dependence that can carry out the corresponding frame of each framework type in the embodiment of the present invention in advance arranges, really Determine the corresponding dependence of each frame, and stored in this, as packet into the data management system CouchDB of Oriented Documents, to build During project frame, terminal device can be loaded with quick indexing in the associated project frame for relying on and being built to user.
Step 305 builds the project frame according to the frame and described rely on.
Continuous integrating module can be verified, compiled and disposed, to build item according to frame module and corresponding dependence Mesh frame.
Step 306 detects the multiple property file.
Step 307, detect the modification to the property file operation in the case of, according to it is described modification operation generation Triggering command.
Step 308 sends the triggering command to continuous integrating module, so that the continuous integrating module is touched according to described The update for the one or more task being compiled to software project in task, verification task and deployment task that sends instructions.
In the embodiment of the present invention, terminal device can be according to user's needs, scripting generation key-course, service layer, persistently Layer identification code, and according to the currently used corresponding Code automatic build tool of frame selective ensemble, the structure of bottom is called to order It enables, automates structure project.
The embodiment of the present invention can also give tacit consent to joint configuration file and Ant configuration outputs when building project frame JavaDoc illustrates document and performs code check work;Joint configuration file and Jekins ensured sustained developments integrate, trifling to reduce Setup time.
Wherein, the main described project relevant information of above-mentioned configuration file, the path of the file of code inspection rule, lasting collection Trigger condition and run time, continuous integrating module operation task list into module etc., Ant are configured main definitions task and appoint Business performs program, after being monitored using watch plug-in units, the task of Ant can be called to carry out task distribution.
Illustratively, in the embodiment of the present invention, can Java language be recommended to user by interactive mode, also may be used To recommend Python, Ruby.The data management system CouchDB that Oriented Documents may be used in the embodiment of the present invention is carried out The storage of frame, the configuration of frame and relevant dependence, such as:By current JAVA often with frame such as Spring Sercutity, The configuration of the mainstreams frame such as Spring Data, Spring MVC, Struts, Struts2, Log4j, JSON, Hibernate into Row CouchDB is achieved, and by order line interactive programming, obtains the required frame finished item object of active user The initialization structure of model M aven project builds and frame.And it in the initialization building process of project, completes to file directory The combing of structure.And can determine that current user code version control system belongs to SVN or Git by interactive mode, And it generates and ignores file accordingly.Configuration file during structure can also be removed.
Illustratively, the embodiment of the present invention can also generate frame in project framework establishment according to currently integrated frame Property code and testability code, code head is kept:Description information, author, the template for meeting JavaDoc specifications of time substantially Annotation, wherein, specific author can read from project profile, and the time can take current time and be exported by form.
It can be opened in the embodiment of the present invention according to the generation for being used to determine whether to carry out test code in project profile Pass condition adjudgement automation structure project frame subsequent operation (such as:Whether continuous integrating is carried out).
The embodiment of the present invention can also build a set of workflow, carry out verification, detection of development environment etc..
So, terminal device can instruct structure project frame, and to project frame according to the structure of project frame In multiple property files detected, detect property file modification operation in the case of, according to modification generation triggering Instruction, and triggering command is sent to continuous integrating module, so that continuous integrating module is compiled project according to triggering command The update of task, verification task and the one or more task in deployment task.The software provided according to embodiments of the present invention The construction method and system of project can quickly create project frame, and complete automatic compiling, verification, the deployment of software project Deng, can realize the standardizing of software project, fast, simple management.
Fig. 4 shows the flow chart of the construction method according to an illustrative software project of the invention.
Step 401 obtains item types to be built input by user.
Step 402 determines whether to support above-mentioned item types.
Step 403, when supporting above-mentioned item types, obtain the corresponding all framework types of the item types, and show The option of associated frame members type.
Step 404, in response to triggering of the user to the option of framework type, determine the corresponding frame of the option.
Step 405 obtains the corresponding dependence of said frame, and according to frame and relies on the corresponding attribute of establishment software project File.
Step 406, automation detect property file, in the modification operation for detecting property file, according to this Modification operation generates corresponding triggering command.
Step 407 sends triggering command to continuous integrating module so that continuous integrating module according to above-mentioned triggering command into Row verification, compiling and the update of deployment task.
Correspondingly, Fig. 5 shows the structure diagram of the structure system of software project according to an embodiment of the invention.Such as Fig. 5 Shown, which can include:First acquisition module 501, structure module 502, detecting module 503, generation module 504 and transmission Module 505;Wherein,
First acquisition module 501 can be used for the structure instruction of acquisition project frame;
Module 502 is built, can be used for instructing structure project frame according to the structure;Wherein, the project frame packet Include multiple property files;
Detecting module 503 can be used for detecting the multiple property file;
Generation module 504 can be used in the case where detecting the operation of the modification to the property file, according to described Modification operation generation triggering command;
Sending module 505 can be used for sending the triggering command to continuous integrating module, so that the continuous integrating mould Root tuber is compiled software project according to the triggering command one or more in task, verification task and deployment task The update of task.
Correspondingly, Fig. 6 shows the structure diagram of the structure system of software project according to an embodiment of the invention, the present invention In embodiment, which can include:First acquisition module 601, structure module 602, detecting module 603, generation module 604 and Sending module 605.Wherein, above-mentioned first acquisition module 601, structure module 602, detecting module 603, generation module 604 and hair Send module 605 and aforementioned first acquisition module 501, structure module 502, detecting module 503, generation module 504 and sending module 505 is similar, and details are not described herein for the embodiment of the present invention.
In a kind of possible realization method, with reference to Fig. 6, above-mentioned generation module 604 can include:
First determination sub-module 6041 can be used to determine the modification action type of the modification operation;
Submodule 6042 is generated, can be used for generating corresponding triggering command according to the modification action type.
In a kind of possible realization method, with reference to Fig. 6, the modification operation is the verification rule to continuous integrating module Update;The generation submodule 6042, can be also used for:
Obtain the verification rule of the updated continuous integrating module;
First triggering command is generated according to the verification rule of the updated continuous integrating module, so that described hold Continuous integration module modifies to the verification rule of inspection task according to the first triggering command.
In a kind of possible realization method, with reference to Fig. 6, the modification operation is the update to deployment parameters;The life Into submodule 6042, can be also used for:
Obtain the deployment parameters of continuous integrating module after the update;
The second triggering command is generated according to the updated deployment parameters, so that the continuous integrating module is according to Second triggering command modifies to the deployment parameters of deployment task.
In a kind of possible realization method, with reference to Fig. 6, the modification operation is the modification to the translation and compiling environment of project;
The generation submodule 6042, can be also used for:
Obtain the updated translation and compiling environment;
According to the updated translation and compiling environment generation third triggering command, so that the continuous integrating module is according to Third triggering command modifies to the translation and compiling environment of compiler task.
In a kind of possible realization method, with reference to Fig. 6, the modification operation is the change to the bibliographic structure of software project More;Above system can also include:
Second acquisition module 606 can be used for obtaining the bibliographic structure of the software project after changing;
Update module 607 can be used for updating the bibliographic structure of the software project according to the bibliographic structure.
In a kind of possible realization method, with reference to Fig. 6, the structure instruction includes item types and framework type;Institute Structure module 602 is stated, can be included:
Second determination sub-module 6021 can be used to determine whether to support the item types;
Third determination sub-module 6022 can be used for, in the case where supporting the item types, determining the frame clsss The corresponding frame of type;
4th determination sub-module 6023 can be used to determine the corresponding dependence of the frame;
Submodule 6024 is built, can be used for building the project frame according to the frame and described rely on.
Terminal device can instruct structure project frame, and to multiple categories in project frame according to the structure of project frame Property file detected, in the case of the modification operation for detecting property file, triggering command is generated according to modification, and is sent Triggering command is to continuous integrating module, so that continuous integrating module is compiled project according to triggering command task, verification is appointed Business and the update of the one or more task in deployment task.The structure of the software project provided according to embodiments of the present invention Method and system can quickly create project frame, and automatic compiling, verification, deployment for completing software project etc., can realize Software project standardizes, fast, simply manages.
Correspondingly, Fig. 7 is the hardware configuration according to a kind of construction device of software project shown in an exemplary embodiment Block diagram.In practical applications, which can be realized by server.With reference to Fig. 7, which may include processor 701, deposits Contain the machine readable storage medium 702 of machine-executable instruction.Processor 701 and machine readable storage medium 702 can be via System bus 703 communicates.Also, processor 701 by read machine readable storage medium storing program for executing 702 with data processing method logic Corresponding machine-executable instruction is to perform the construction method of software project described above.
Machine readable storage medium 702 referred to herein can be any electronics, magnetism, optics or other physical stores Device can include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be:With Machine access memory (English:Radom Access Memory, referred to as:RAM), volatile memory, nonvolatile memory, sudden strain of a muscle It deposits, memory driver (such as hard disk drive), solid state disk, any kind of storage dish (such as CD, dvd) or similar Storage medium or combination thereof.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport In the principle for best explaining each embodiment, practical application or to the technological improvement of the technology in market or lead this technology Other those of ordinary skill in domain are understood that each embodiment disclosed herein.

Claims (14)

1. a kind of construction method of software project, which is characterized in that the method includes:
The structure instruction of acquisition project frame;
Structure project frame is instructed according to the structure;Wherein, the project frame includes multiple property files;
The multiple property file is detected;
In the case where detecting the operation of the modification to the property file, according to the modification operation generation triggering command;
The triggering command is sent to continuous integrating module so that the continuous integrating module according to the triggering command to software Project is compiled the update of the one or more task in task, verification task and deployment task.
It is 2. according to the method described in claim 1, it is characterized in that, described according to the modification operation generation triggering command, packet It includes:
Determine the modification action type of the modification operation;
Corresponding triggering command is generated according to the modification action type.
3. according to the method described in claim 2, it is characterized in that, the modification operation is the verification rule to continuous integrating module Update then;
It is described that corresponding triggering command is generated according to the modification action type, including:
Obtain the verification rule of the updated continuous integrating module;
First triggering command is generated according to the verification rule of the updated continuous integrating module, so that the lasting collection It is modified into module according to the first triggering command to the verification rule of inspection task.
4. according to the method described in claim 2, it is characterized in that, the modification operation is the update to deployment parameters;
It is described that corresponding triggering command is generated according to the modification action type, including:
Obtain the deployment parameters of continuous integrating module after the update;
The second triggering command is generated according to the updated deployment parameters, so that the continuous integrating module is according to described second Triggering command modifies to the deployment parameters of deployment task.
5. according to the method described in claim 2, it is characterized in that, the modification operation is repairing to the translation and compiling environment of project Change, it is described that corresponding triggering command is generated according to the modification action type, including:
Obtain the updated translation and compiling environment;
According to the updated translation and compiling environment generation third triggering command, so that the continuous integrating module is according to the third Triggering command modifies to the translation and compiling environment of compiler task.
6. according to the method described in claim 2, it is characterized in that, the modification operation is to the bibliographic structure of software project Change;The method further includes:
Obtain the bibliographic structure of the software project after change;
The bibliographic structure of the software project is updated according to the bibliographic structure.
7. according to the method described in claim 1, it is characterized in that, the structure instruction includes item types and framework type;
It is described that structure project frame is instructed according to the structure, including:
Determine whether to support the item types;
In the case where supporting the item types, the corresponding frame of the framework type is determined;
Determine the corresponding dependence of the frame;
The project frame is built according to the frame and described rely on.
8. a kind of structure system of software project, which is characterized in that the system comprises:
First acquisition module, for obtaining the instruction of the structure of project frame;
Module is built, for instructing structure project frame according to the structure;Wherein, the project frame includes multiple attributes text Part;
Detecting module, for being detected to the multiple property file;
Generation module, in the case where detecting the operation of the modification to the property file, being given birth to according to the modification operation Into triggering command;
Sending module, for sending the triggering command to continuous integrating module, so that the continuous integrating module is according to Triggering command is compiled software project the update of the one or more task in task, verification task and deployment task.
9. system according to claim 8, which is characterized in that the generation module includes:
First determination sub-module, for determining the modification action type of the modification operation;
Submodule is generated, for generating corresponding triggering command according to the modification action type.
10. system according to claim 9, which is characterized in that the modification operation is the verification to continuous integrating module The update of rule;
The generation submodule, is additionally operable to:
Obtain the verification rule of the updated continuous integrating module;
First triggering command is generated according to the verification rule of the updated continuous integrating module, so that the lasting collection It is modified into module according to the first triggering command to the verification rule of inspection task.
11. system according to claim 9, which is characterized in that the modification operation is the update to deployment parameters;
The generation submodule, is additionally operable to:
Obtain the deployment parameters of continuous integrating module after the update;
The second triggering command is generated according to the updated deployment parameters, so that the continuous integrating module is according to described second Triggering command modifies to the deployment parameters of deployment task.
12. system according to claim 9, which is characterized in that the modification operation is repairing to the translation and compiling environment of project Change;
The generation submodule, is additionally operable to:
Obtain the updated translation and compiling environment;
According to the updated translation and compiling environment generation third triggering command, so that the continuous integrating module is according to the third Triggering command modifies to the translation and compiling environment of compiler task.
13. system according to claim 9, which is characterized in that the modification operation is the bibliographic structure to software project Change;The system also includes:
Second acquisition module, for obtaining the bibliographic structure of the software project after changing;
Update module, for updating the bibliographic structure of the software project according to the bibliographic structure.
14. system according to claim 8, which is characterized in that the structure instruction includes item types and framework type;
The structure module, including:
Second determination sub-module is used to determine whether to support the item types;
Third determination sub-module, in the case where supporting the item types, determining the corresponding frame of the framework type;
4th determination sub-module, for determining the corresponding dependence of the frame;
Submodule is built, for building the project frame according to the frame and described rely on.
CN201711461711.9A 2017-12-28 2017-12-28 The construction method and system of software project Pending CN108196825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711461711.9A CN108196825A (en) 2017-12-28 2017-12-28 The construction method and system of software project

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711461711.9A CN108196825A (en) 2017-12-28 2017-12-28 The construction method and system of software project

Publications (1)

Publication Number Publication Date
CN108196825A true CN108196825A (en) 2018-06-22

Family

ID=62585477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711461711.9A Pending CN108196825A (en) 2017-12-28 2017-12-28 The construction method and system of software project

Country Status (1)

Country Link
CN (1) CN108196825A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572838A (en) * 2018-07-02 2018-09-25 北京航天数据股份有限公司 The upgrade method of industrial software, apparatus and system
CN109445835A (en) * 2018-09-03 2019-03-08 平安普惠企业管理有限公司 Method, terminal device and the computer readable storage medium of building project frame
CN109460214A (en) * 2018-11-06 2019-03-12 上海航天测控通信研究所 Spacecraft software configuration method based on IDEF modeling
CN109814854A (en) * 2019-01-24 2019-05-28 平安科技(深圳)有限公司 Project skeleton generating method, device, computer equipment and storage medium
CN111464552A (en) * 2020-04-11 2020-07-28 北京天地和兴科技有限公司 Firewall automatic test system based on packet filtering rule
CN111506322A (en) * 2020-04-16 2020-08-07 瑞纳智能设备股份有限公司 Automatic integrated construction development deployment platform and method
CN112286580A (en) * 2020-10-31 2021-01-29 成都新潮传媒集团有限公司 Method and device for processing pipeline operation and computer equipment
CN113094085A (en) * 2021-04-13 2021-07-09 北京房江湖科技有限公司 Component integration method and device, computer-readable storage medium and electronic equipment
CN113805877A (en) * 2021-09-26 2021-12-17 工银科技有限公司 Project engineering construction method and device based on IDEA plug-in

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060041870A1 (en) * 2004-08-19 2006-02-23 Microsoft Corporation Systems and methods for varying software build properties using primary and supplemental build files
CN105739966A (en) * 2016-01-19 2016-07-06 浪潮软件集团有限公司 Continuous integration method and device
CN107450933A (en) * 2017-08-18 2017-12-08 郑州云海信息技术有限公司 A kind of software continuous integrated approach and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060041870A1 (en) * 2004-08-19 2006-02-23 Microsoft Corporation Systems and methods for varying software build properties using primary and supplemental build files
CN105739966A (en) * 2016-01-19 2016-07-06 浪潮软件集团有限公司 Continuous integration method and device
CN107450933A (en) * 2017-08-18 2017-12-08 郑州云海信息技术有限公司 A kind of software continuous integrated approach and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
VEGETABLE蔬菜: "GitLab创建新项目", 《GITLAB创建新项目》 *
寻梦的尕柳: "使用jenkins进行项目的自动构建部署", 《HTTPS://WWW.JIANSHU.COM/P/DCEAA1C7BB49》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572838A (en) * 2018-07-02 2018-09-25 北京航天数据股份有限公司 The upgrade method of industrial software, apparatus and system
CN109445835A (en) * 2018-09-03 2019-03-08 平安普惠企业管理有限公司 Method, terminal device and the computer readable storage medium of building project frame
CN109460214A (en) * 2018-11-06 2019-03-12 上海航天测控通信研究所 Spacecraft software configuration method based on IDEF modeling
CN109460214B (en) * 2018-11-06 2021-07-27 上海航天测控通信研究所 Spacecraft software structuring method based on IDEF modeling
CN109814854A (en) * 2019-01-24 2019-05-28 平安科技(深圳)有限公司 Project skeleton generating method, device, computer equipment and storage medium
CN109814854B (en) * 2019-01-24 2024-05-03 平安科技(深圳)有限公司 Project framework generation method, device, computer equipment and storage medium
CN111464552B (en) * 2020-04-11 2022-11-15 北京天地和兴科技有限公司 Firewall automatic test system based on packet filtering rule
CN111464552A (en) * 2020-04-11 2020-07-28 北京天地和兴科技有限公司 Firewall automatic test system based on packet filtering rule
CN111506322A (en) * 2020-04-16 2020-08-07 瑞纳智能设备股份有限公司 Automatic integrated construction development deployment platform and method
CN111506322B (en) * 2020-04-16 2023-03-14 瑞纳智能设备股份有限公司 Automatic integrated construction development deployment platform and method
CN112286580A (en) * 2020-10-31 2021-01-29 成都新潮传媒集团有限公司 Method and device for processing pipeline operation and computer equipment
CN113094085B (en) * 2021-04-13 2024-01-19 贝壳找房(北京)科技有限公司 Component integration method, device, computer readable storage medium and electronic equipment
CN113094085A (en) * 2021-04-13 2021-07-09 北京房江湖科技有限公司 Component integration method and device, computer-readable storage medium and electronic equipment
CN113805877A (en) * 2021-09-26 2021-12-17 工银科技有限公司 Project engineering construction method and device based on IDEA plug-in

Similar Documents

Publication Publication Date Title
CN108196825A (en) The construction method and system of software project
US11200143B2 (en) Software development framework for a cloud computing platform
US9021438B2 (en) Automatic framework for parallel testing on multiple testing environments
US8788239B2 (en) Methods, apparatus and articles of manufacture to test batch configurations
US9501596B2 (en) Graphical design verification environment generator
US9268672B1 (en) Automated test case generation for applications
KR102341154B1 (en) High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices
CN105143895B (en) Test class precompiled header is automatically generated from interactive graphical user interface
CN101689111A (en) The automatic management of software requirements verification
US20120116561A1 (en) Program testing apparatus, method of testing a program, and program testing program
US8745727B2 (en) Graphical user interface tester
US11138097B2 (en) Automated web testing framework for generating and maintaining test scripts
US7729786B2 (en) Natively retaining project documentation in a controller
CN103518393A (en) Systems and methods for testing content of mobile communication devices
CN104199767B (en) Test method and device
KR20080048454A (en) Building finite state machine model
CN104823159A (en) Method and device for changing objects in human-machine interface device
KR101491848B1 (en) Gui software test automatic system having functon for script maintenance and method of controlling the same
EP3869328A1 (en) System, device and method for debugging an industrial application
CN106713001A (en) Network inspection method and apparatus
CN105493033A (en) Declarative configuration elements
Pereira et al. Retrospective and Trends in Requirements Engineering for Embedded Systems: A Systematic Literature Review.
US8479152B2 (en) Representing non-functional requirements (NFRS) in unified modeling language (UML)
WO2022140650A2 (en) Systems and methods for building and deploying machine learning applications
Behjati et al. Model-based automated and guided configuration of embedded software systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180622

RJ01 Rejection of invention patent application after publication