CN104360845A - Collaborative development construction method based on SVN (switching virtual networking) - Google Patents
Collaborative development construction method based on SVN (switching virtual networking) Download PDFInfo
- Publication number
- CN104360845A CN104360845A CN201410580401.9A CN201410580401A CN104360845A CN 104360845 A CN104360845 A CN 104360845A CN 201410580401 A CN201410580401 A CN 201410580401A CN 104360845 A CN104360845 A CN 104360845A
- Authority
- CN
- China
- Prior art keywords
- file
- source
- compiling
- bag
- output
- 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
Abstract
The invention discloses a collaborative development construction method based on SVN. The method provides central compile environment by providing association between a task package and sound code files, timely compiles and constructs a construction package, further provides complete and increment construction methods, can flexibly construct an upgrade package aiming at a certain requirement or bug, is convenient for a client to perform upgrading and packaging at any moment, and improves the client response rate.
Description
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of collaborative development construction method based on SVN.
Background technology
SVN is the version control system of an open source code, it adopts branch management system meter, SVN stand in higher level on to safety product, carried out the integration of " organic " and " zero-clearance ", its convenient management from the angle of system and control, logic is clear and definite, meet common people's thinking habit, be easy to management, centralized server more can ensure security, and code consistance is very high.
SVN is because it is increased income and convenience is used as Version when developing by a lot of team, although there are at present some research and development management tools based on SVN, but generally provide integrated project to build, developer's Persisting exploitation, regularly construct the structure bag that comprises the nearest all modifications of developer, build in bag the demand or bug that comprise a series of client proposition, client cannot only upgrade one of them demand, and for the more urgent problem of client, be difficult to construct in time and build bag, timely response can not be accomplished.
Therefore, for the defect that above-mentioned prior art exists, be necessary to develop research in fact, to provide a kind of scheme, under collaborative development, the AKU for certain demand or bug can be constructed flexibly, be convenient to client's upgrading, can pack at any time, improve client response speed.
Summary of the invention
For solving the problem, the object of the present invention is to provide a kind of collaborative development construction method based on SVN, so that under collaborative development, the AKU for certain demand or bug can be constructed flexibly, be convenient to client's upgrading, can pack at any time, improve client response speed.
For achieving the above object, technical scheme of the present invention is:
Based on a collaborative development construction method of SVN, comprise the steps:
S10: set up associating of the sound code file of task agent and exploitation, single demand or Bug are associated with sound code file;
S11: obtain correct FileVersion, calculates the source file version that developer submits to, obtains the file up-to-date with version in this source file submitted to of developer built, as the target built;
S12: for compiling structure provides central translation and compiling environment, all structures all carry out in central translation and compiling environment;
S13: full dose and incremental build mode are provided, are built into full dose bag and delta package according to actual needs.
Further, in units of task agent, the source file version associated is detected translation and compiling environment through calculating and carries out compiling structure, the corresponding structure bag solving this demand or bug can be obtained in task agent.
Further, in step S13, the step building full dose bag is as follows:
S1300: empty the content under source-bak file, the content under the source file under backup constructing environment is to source-bak;
S1301: obtain correct FileVersion, detects in source file;
S1302: empty the content in the output file under constructing environment;
S1303: perform script compile java file or other files that need compile, if compiling makes mistakes, uses source in source-bak reduction constructing environment; If compiling is correct, exports corresponding class or construct jar and wrap in the corresponding catalogue of output, and according to path, other All Fileses are outputted in output, the file in output is broken into zip bag, formed and build bag.
Further, in step S13, the step building delta package is as follows:
S1311: empty the content under source-bak file, the content under the source file under backup constructing environment is to source-bak;
S1312: other catalogues emptying non-java file directory below source;
S1313: obtain correct FileVersion, detects in source file;
S1314: perform script compile java file or other files that need compile (as js etc.).If compiling makes mistakes, use source in source-bak reduction constructing environment; If compiling is correct, exports corresponding class or construct jar and wrap in the corresponding catalogue of output, and according to path, other All Fileses are outputted in output, the file in output is broken into zip bag, namely formed and build bag.
Compared to prior art, the collaborative development construction method that the present invention is based on SVN can construct the AKU for certain demand or bug flexibly, is convenient to client's upgrading, can packs at any time, improve client response speed.
Term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the term used like this can exchange in the appropriate case, this is only describe in embodiments of the invention the differentiation mode that the object of same alike result adopts when describing.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, to comprise the process of a series of unit, method, system, product or equipment being not necessarily limited to those unit, but can comprise clearly do not list or for intrinsic other unit of these processes, method, product or equipment.
Below be described in detail respectively.
A kind of collaborative development construction method based on SVN of the present invention, comprises the steps:
S10: set up associating of the sound code file of task agent and exploitation, single demand or Bug are associated with sound code file.
Particularly, what distinguish each demand of client or bug completes the source file related to, and is associated with sound code file by task agent, each demand or the corresponding task agent of bug, and task agent associates with the source file realizing this demand or bug; When building, in units of task agent, the source file version associated being detected translation and compiling environment through calculating and carries out compiling structure, the corresponding structure bag solving this demand or bug can be obtained in task agent.Wherein, task agent and source file association store are in Table A LM_TASK_SOURCE_FILE.
S11: obtain correct FileVersion, calculates the source file version that developer submits to, obtains the file up-to-date with version in this source file submitted to of developer built, as the target built.
In collaborative development situation, developer can submit task agent to, can comprise the different editions of same file in task agent.Structure is at any time, so need to determine each structure needs to build what version.Each file and version number of comprising in this task is obtained from task agent associated source file (ALM_TASK_SOURCE_FILE) table.Maximum version, task number, the action type of respective file is obtained from task agent associated source file (ALM_TASK_SOURCE_FILE) table built, relatively version number's size on both sides, if the latter's fileversion number is larger, record changes history and changes in daily record (ALM_BUILD_FILE_CHANGELOG) table at compiling structure FileVersion.The large up-to-date of the former version number is in translation and compiling environment.
S12: central translation and compiling environment is provided
For compiling structure provides central translation and compiling environment, all structures all carry out in central translation and compiling environment.Particularly, translation and compiling environment is file system, and bibliographic structure is as follows, comprising: output temp directory, deposits structure output file.Under class after src compiling outputs to WEB_INF/classes, and the alternative document under copying source is come.Before each compiling, need to empty.Source assembly root directory, sub-directory is comprised: the jsp catalogue in assembly, the source code catalogue in src assembly, sql assembly complete the backup directory of sql catalogue, source under source assembly root directory, before each compiling, the backup directory of source empties, then backs up All Files in source catalogue.
S13: construct full dose bag and and delta package
Full dose and incremental build mode are provided, are built into full dose bag and delta package according to actual needs.Full dose bag refers to all program files building and contain project in bag, and each builds bag is the complete packet that can directly dispose; Delta package refers to the file building and only comprise this amendment in bag, and single structure bag can not independently be disposed.According to different project needs, provide full dose bag and delta package.
Particularly, the step building full dose bag is as follows:
S1300: empty the content under source-bak file, the content under the source file under backup constructing environment is to source-bak;
S1301: obtain correct FileVersion, detects in source file;
S1302: empty the content in the output file under constructing environment;
S1303: perform script compile java file or other files that need compile (as js etc.), if compiling makes mistakes, uses source in source-bak reduction constructing environment; If compiling is correct, exports corresponding class or construct jar and wrap in the corresponding catalogue of output, and according to path, other All Fileses are outputted in output, the file in output is broken into zip bag, formed and build bag.
The step building delta package is as follows:
S1311: empty the content under source-bak file, the content under the source file under backup constructing environment is to source-bak;
S1312: other catalogues emptying non-java file directory below source;
S1313: obtain correct FileVersion, detects in source file;
S1314: perform script compile java file or other files that need compile (as js etc.).If compiling makes mistakes, use source in source-bak reduction constructing environment; If compiling is correct, exports corresponding class or construct jar and wrap in the corresponding catalogue of output, and according to path, other All Fileses are outputted in output, the file in output is broken into zip bag, namely formed and build bag.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, and can certainly comprise special IC, dedicated cpu, private memory, special components and parts etc. realize by specialized hardware.Generally, all functions completed by computer program can realize with corresponding hardware easily, and the particular hardware structure being used for realizing same function also can be diversified, such as mimic channel, digital circuit or special circuit etc.But under more susceptible for the purpose of the present invention condition, software program realizes is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computing machine, USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform method described in the present invention each embodiment.
In sum, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to above-described embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in the various embodiments described above, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Accompanying drawing explanation
Fig. 1 is method flow of the present invention diagram.
Embodiment
Embodiments provide a kind of collaborative development construction method based on SVN, so that under collaborative development, the AKU for certain demand or bug can be constructed flexibly, be convenient to client's upgrading, can pack at any time, improve client response speed.
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only the present invention's part embodiments, and not all embodiments.Based on the embodiment in the present invention, the every other embodiment that those skilled in the art obtains, all belongs to the scope of protection of the invention.
Claims (4)
1., based on a collaborative development construction method of SVN, it is characterized in that, comprise the steps:
S10: set up associating of the sound code file of task agent and exploitation, single demand or Bug are associated with sound code file;
S11: obtain correct FileVersion, calculates the source file version that developer submits to, obtains the file up-to-date with version in this source file submitted to of developer built, as the target built;
S12: for compiling structure provides central translation and compiling environment, all structures all carry out in central translation and compiling environment;
S13: full dose and incremental build mode are provided, are built into full dose bag and delta package according to actual needs.
2. as claimed in claim 1 based on the collaborative development construction method of SVN, it is characterized in that: in units of task agent, the source file version associated in task agent is detected translation and compiling environment through calculating and carries out compiling structure, the corresponding structure bag solving this demand or bug can be obtained.
3. as claimed in claim 2 based on the collaborative development construction method of SVN, it is characterized in that, in step S13, the step building full dose bag is as follows:
S1300: empty the content under source-bak file, the content under the source file under backup constructing environment is to source-bak;
S1301: obtain correct FileVersion, detects in source file;
S1302: empty the content in the output file under constructing environment;
S1303: perform script compile java file or other files that need compile, if compiling makes mistakes, uses source in source-bak reduction constructing environment; If compiling is correct, exports corresponding class or construct jar and wrap in the corresponding catalogue of output, and according to path, other All Fileses are outputted in output, the file in output is broken into zip bag, formed and build bag.
4. as claimed in claim 2 based on the collaborative development construction method of SVN, it is characterized in that, in step S13, the step building delta package is as follows:
S1311: empty the content under source-bak file, the content under the source file under backup constructing environment is to source-bak;
S1312: other catalogues emptying non-java file directory below source;
S1313: obtain correct FileVersion, detects in source file;
S1314: perform script compile java file or other files that need compile (as js etc.); If compiling makes mistakes, use source in source-bak reduction constructing environment; If compiling is correct, exports corresponding class or construct jar and wrap in the corresponding catalogue of output, and according to path, other All Fileses are outputted in output, the file in output is broken into zip bag, namely formed and build bag.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410580401.9A CN104360845A (en) | 2014-10-27 | 2014-10-27 | Collaborative development construction method based on SVN (switching virtual networking) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410580401.9A CN104360845A (en) | 2014-10-27 | 2014-10-27 | Collaborative development construction method based on SVN (switching virtual networking) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104360845A true CN104360845A (en) | 2015-02-18 |
Family
ID=52528109
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410580401.9A Pending CN104360845A (en) | 2014-10-27 | 2014-10-27 | Collaborative development construction method based on SVN (switching virtual networking) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104360845A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105094851A (en) * | 2015-09-06 | 2015-11-25 | 浪潮软件股份有限公司 | Method for momentarily issuing codes based on Git |
CN106250148A (en) * | 2016-08-01 | 2016-12-21 | 浪潮软件集团有限公司 | ANT-based project difference upgrading method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035892A (en) * | 2010-12-23 | 2011-04-27 | 中科方德软件有限公司 | System and method for automatically releasing operating system version and automatically updating software package |
CN103294514A (en) * | 2013-06-26 | 2013-09-11 | 深圳Tcl新技术有限公司 | System software release integrated method, compiling server and system |
CN103955429A (en) * | 2014-05-16 | 2014-07-30 | 北京金山网络科技有限公司 | Method and device for determining regression testing range |
-
2014
- 2014-10-27 CN CN201410580401.9A patent/CN104360845A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035892A (en) * | 2010-12-23 | 2011-04-27 | 中科方德软件有限公司 | System and method for automatically releasing operating system version and automatically updating software package |
CN103294514A (en) * | 2013-06-26 | 2013-09-11 | 深圳Tcl新技术有限公司 | System software release integrated method, compiling server and system |
CN103955429A (en) * | 2014-05-16 | 2014-07-30 | 北京金山网络科技有限公司 | Method and device for determining regression testing range |
Non-Patent Citations (1)
Title |
---|
佚名: "测试管理功能需求整理", 《HTTP://WENKU.BAIDU.COM/VIEW/F2F73ADB0242A8956BECE4F9.HTML?FROM=SEARCH》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105094851A (en) * | 2015-09-06 | 2015-11-25 | 浪潮软件股份有限公司 | Method for momentarily issuing codes based on Git |
CN106250148A (en) * | 2016-08-01 | 2016-12-21 | 浪潮软件集团有限公司 | ANT-based project difference upgrading method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019023286A1 (en) | Blockchain-based systems, methods, and apparatus for securing access to information stores | |
US11327744B2 (en) | Equivalency of revisions on modern version control systems | |
US8914780B2 (en) | Incremental generation of managed assemblies | |
US11494665B2 (en) | Multi-tenant knowledge graph databases with dynamic specification and enforcement of ontological data models | |
US10922213B2 (en) | Embedded quality indication data for version control systems | |
CN104267978A (en) | Method and device for generating differential packet | |
CN102722370A (en) | Modular development method for Android | |
CN104220987A (en) | Application installation | |
CN106919398A (en) | A kind of software distribution method and device | |
CN103873460B (en) | Service resources group implementation method and device | |
CN105608382A (en) | Software maintenance method, software problem judgment method and corresponding apparatuses | |
CN104965760A (en) | Method and apparatus for managing life cycle of software function module | |
CN108268609A (en) | A kind of foundation of file path, access method and device | |
CN107169000A (en) | Static resource dissemination method and device | |
Kakantousis et al. | Horizontally scalable ml pipelines with a feature store | |
CN105678118B (en) | A kind of software version generation method and device containing digital certificate | |
CN110134646B (en) | Knowledge platform service data storage and integration method and system | |
US20140136708A1 (en) | Orchestration management of information technology | |
CN104360845A (en) | Collaborative development construction method based on SVN (switching virtual networking) | |
CN102779045A (en) | Interface generating method, interface editor and electronic equipment | |
CN102982043B (en) | The disposal route of PE file and device | |
CN104281471A (en) | Multi-version software OTA (on the air) updating method | |
US20160283226A1 (en) | Smart hashing to reduce server memory usage in a distributed system | |
CN109542657A (en) | The processing method and server of system exception | |
CN110941422B (en) | Code automatic generation method, code generator and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150218 |
|
WD01 | Invention patent application deemed withdrawn after publication |