CN107357593A - Source code file construction method, device, electric terminal and readable storage medium storing program for executing - Google Patents

Source code file construction method, device, electric terminal and readable storage medium storing program for executing Download PDF

Info

Publication number
CN107357593A
CN107357593A CN201710735908.0A CN201710735908A CN107357593A CN 107357593 A CN107357593 A CN 107357593A CN 201710735908 A CN201710735908 A CN 201710735908A CN 107357593 A CN107357593 A CN 107357593A
Authority
CN
China
Prior art keywords
file
subdirectory
catalogue
source code
functional module
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
CN201710735908.0A
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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710735908.0A priority Critical patent/CN107357593A/en
Publication of CN107357593A publication Critical patent/CN107357593A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/37Compiler construction; Parser generation

Landscapes

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

Abstract

The embodiment of the present invention provides source code file construction method, device, electric terminal and readable storage medium storing program for executing.In one embodiment, the source code file construction method includes:Multiple functional module catalogues are created according to the difference in functionality of application program, and the subdirectory of multiple preset kinds is created under each functional module catalogue;The subdirectory includes being used for the catalogue of source file and the catalogue of the resource file for depositing corresponding function for depositing corresponding function;The bibliographic structure of the functional module catalogue of establishment is write in the compiling path of compiler so that compiler can be compiled to corresponding functional module.

Description

Source code file construction method, device, electric terminal and readable storage medium storing program for executing
Technical field
The present invention relates to field of computer technology, in particular to a kind of source code file construction method, device, electricity Sub- terminal and readable storage medium storing program for executing.
Background technology
Generally can all there are many source files and resource files in software development process, usually by source file and resource File is stored in two independent catalogues or file respectively.But with service code and resource file exploitation increasingly It is more, cause the quantity of documents in the two unique files folder more and more, subsequently search some functional module if desired When source file or its resource file, then manual retrieval is carried out from into numerous files, this is one extremely complex and time-consuming Work.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of source code file construction method, device, electronics end End and readable storage medium storing program for executing.
A kind of source code file construction method provided in an embodiment of the present invention, the source code file construction method include:
Multiple functional module catalogues are created according to the difference in functionality of application program, and created under each functional module catalogue The subdirectory of multiple preset kinds;The subdirectory includes being used to deposit the catalogue of the source file of corresponding function and for storage pair Answer the catalogue of the resource file of function;
The bibliographic structure of the functional module catalogue of establishment is write in the compiling path of compiler so that compiler can be right Corresponding functional module is compiled.
The embodiment of the present invention also provides a kind of source code file construction apparatus, and the source code file construction apparatus includes:
Creation module, for creating multiple functional module catalogues according to the difference in functionality of application program, and in each function The subdirectory of multiple preset kinds is created under module directory;The subdirectory includes the mesh for being used to deposit the source file of corresponding function Record and the catalogue of the resource file for depositing corresponding function;
Writing module, for the bibliographic structure of the functional module catalogue of establishment to be write in the compiling path of compiler, make Obtaining compiler can be compiled to corresponding functional module.
The embodiment of the present invention also provides a kind of electric terminal, including:
Memory;
Processor;
Install/be stored in the memory and by the above-mentioned source code file construction apparatus of the computing device.
The embodiment of the present invention also provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, the computer journey Sequence realizes above-mentioned source code file construction method upon execution.
Compared with prior art, the source code file construction method in the embodiment of the present invention, device, electric terminal and readable Storage medium, by the way that the file of difference in functionality module is carried out into automatic clustering storage respectively, so that the source document of difference in functionality module Part is stored in the source file that diverse location facilitates user or developer requires to look up some functional module.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the block diagram for the electric terminal that present pre-ferred embodiments provide.
Fig. 2 is the flow chart for the source code file construction method that present pre-ferred embodiments provide.
Fig. 3 is the flow chart for the source code file construction method that another preferred embodiment of the present invention provides.
Fig. 4 is the step S103 for the source code file construction method that present pre-ferred embodiments provide detail flowchart.
Fig. 5 is the high-level schematic functional block diagram for the source code file construction apparatus that present pre-ferred embodiments provide.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be configured to arrange and design with a variety of herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
As shown in figure 1, it is the block diagram of an electric terminal 100.The electric terminal 100 includes source code file group Build device 110, memory 111, storage control 112, processor 113, Peripheral Interface 114, input-output unit 115, display Unit 116.It will appreciated by the skilled person that the structure shown in Fig. 1 is only to illustrate, it is not to electric terminal 100 Structure cause to limit.For example, electric terminal 100 may also include more either less components than shown in Fig. 1 or have The configuration different from shown in Fig. 1.Electric terminal 100 described in the present embodiment can be that personal computer or mobile electron are set It is standby to wait computing device.
The memory 111, storage control 112, processor 113, Peripheral Interface 114, input-output unit 115 and aobvious Show that 116 each element of unit is directly or indirectly electrically connected between each other, to realize the transmission of data or interaction.For example, these Element can be realized by one or more communication bus or signal wire be electrically connected between each other.The source code file sets up dress Putting 110 can be stored in the memory 111 or be solidificated in the form of software or firmware (Firmware) including at least one Software function module in the operating system (Operating System, OS) of the electric terminal 100.The processor 113 For performing the executable module stored in memory, such as the software function that the source code file construction apparatus 110 includes Module or computer program.
Wherein, the memory 111 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 111 is used for storage program, the processor 113 after execute instruction is received, Described program is performed, the method performed by electric terminal 100 that the process that any embodiment of the embodiment of the present invention discloses defines can To be realized applied in processor 113, or by processor 113.
The processor 113 is probably a kind of IC chip, has the disposal ability of signal.Above-mentioned processor 113 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processes Device (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), application specific integrated circuit (ASIC), field programmable gate array (FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..
Various input/output devices are coupled to processor 113 and memory 111 by the Peripheral Interface 114.At some In embodiment, Peripheral Interface 114, processor 113 and storage control 112 can be realized in one single chip.Other one In a little examples, they can be realized by independent chip respectively.
The input-output unit 115 is used to be supplied to user input data.The input-output unit 115 can be, But it is not limited to, mouse and keyboard etc..
The display unit 116 provided between the electric terminal 100 and user an interactive interface (such as user behaviour Make interface) or for display image data give user reference.In the present embodiment, the display unit can be liquid crystal display Or touch control display.If touch control display, it can be the capacitance type touch control screen or resistance for supporting single-point and multi-point touch operation Formula touch screen etc..Single-point and multi-point touch operation is supported to refer to that touch control display can sense on the touch control display one Or multiple opening positions touch control operation with caused by, and the touch control operation that this is sensed transfers to processor to be calculated and located Reason.
A kind of hierarchical relationship catalogue of existing Android application codes is described below.The hierarchical structure relation mesh Record includes build and main.File corresponding to the build is for depositing compiling file, file corresponding to main It is for depositing whole project.Wherein main catalogues include java subdirectories and res subdirectories.The java subdirectories are corresponding File be for depositing source file, file corresponding to res subdirectories is for depositing resource file.That is, one Either as long as any functional module source file all deposits file corresponding to java under main catalogues in individual application program In, as long as resource file is just stored in file corresponding to the res under main catalogues.The hierarchical relationship mesh of above-mentioned code The division of record can cause the quantity of documents in file corresponding to java and res sudden and violent with the superposition of business function in application program Increase, needs are expend a great deal of time when causing subsequently to look for a source file or resource file, greatly reduce exploitation effect Rate.
Therefore, the method that the embodiment of the present invention provides the hierarchical relationship catalogue generation of other software code, below by Several embodiments are described in detail.
Referring to Fig. 2, it is the source code for being applied to the electric terminal 100 shown in Fig. 1 that present pre-ferred embodiments provide The flow chart of file construction method.The idiographic flow shown in Fig. 2 will be described in detail below.
Step S101, multiple functional module catalogues are created according to the difference in functionality of application program, and in each functional module The subdirectory of multiple preset kinds is created under catalogue.
In the present embodiment, the subdirectory includes being used to deposit the catalogue of the source file of corresponding function and for depositing correspondingly The catalogue of the resource file of function.
In the present embodiment, the functional module catalogue quantity of establishment can determine according to the function achieved by a software.
Method in the present embodiment can be used for the generation of the hierarchical relationship catalogue of Android application codes.Wherein, The hierarchical relationship catalogue of the Android application codes includes build catalogues and src catalogues, source file and resource text Catalogue corresponding to part is placed under the src catalogues.
In an example, the application program includes " present panel " functional module, can be created under src catalogues " gitPanel " catalogue arranged side by side with main catalogues, subdirectory java and res are created under " gitPanel " catalogue.This example In, file corresponding to subdirectory java is used for the source file for depositing " present panel " functional module, text corresponding to subdirectory res Part presss from both sides the resource file for depositing " present panel " functional module.
In the present embodiment, the application program can also include other functional modules, and the electric terminal can be according to tool Body function module establishes corresponding and main catalogues catalogue arranged side by side and the subdirectory for depositing source file and resource file.
In one embodiment, the electric terminal can be established according to the functional module title for receiving user's input Corresponding functional module catalogue.Specifically, when need for One function module creation catalogue when, the electric terminal display circle An input dialogue frame is shown in face, the input dialogue frame is used for the title for receiving the functional module catalogue of user's input.This In embodiment, after often creating One function module directory, the subdirectory corresponding to establishment under the functional module catalogue.
In another embodiment, the electric terminal can also automatically generate according to the keyword in the source file The functional module catalogue.
Step S102, the bibliographic structure of the functional module catalogue of establishment is write in the compiling path of compiler so that compile Translating device can be compiled to corresponding functional module.
In the present embodiment, the step S102 includes:By calling default write-in function will be each in the bibliographic structure Corresponding configuration information in the path write-in compiling configuration file of individual catalogue, it is described to compile corresponding configuration information in configuration file Configuration information including source file and resource file.
In the present embodiment, the electric terminal is by calling a write functions with compiling configuration file Configuration information is write in build.gradle files.In an example, can be in compiling configuration file build.gradle files In write configuration information java.srcDirs and res.srcDirs.The value of the two configuration informations fills in the functional module mesh respectively The path of file corresponding to the subdirectory of record.In an example, subdirectory includes subdirectory java and subdirectory res.Tool Body, the path of java files and configuration information corresponding to configuration information java.srcDirs write-in subdirectories java The path of res files corresponding to res.srcDirs write-in subdirectories.In the present embodiment, if the application program include it is more Individual functional module, the configuration information of multiple java.srcDirs and res.srcDirs classes can lead to corresponding to multiple functional modules Comma is crossed to be split.
Source code file construction method according to embodiments of the present invention, by the way that the file of difference in functionality module is deposited respectively Storage, so that the source file of difference in functionality module is stored in diverse location and facilitates user or developer to require to look up some The source file of functional module.
The embodiment of the present invention also provides another source code file construction method, the method in the present embodiment and above-mentioned source generation Code file construction method embodiment is similar, and its difference is, as shown in figure 3, the described method comprises the following steps.
Step S101, multiple functional module catalogues are created according to the difference in functionality of application program, and in each functional module The subdirectory of multiple preset kinds is created under catalogue.
In the present embodiment, the subdirectory includes being used to deposit the catalogue of the source file of corresponding function and for depositing correspondingly The catalogue of the resource file of function.
Step S102, the bibliographic structure of the functional module catalogue of establishment is write in the compiling path of compiler so that compile Translating device can be compiled to corresponding functional module.
Detailed description on above-mentioned steps S101 and step S102 may be referred to the description in a upper embodiment, herein not Repeat again.
Step S103, when a type of subdirectory has file destination write-in, judge identical with the type of the subdirectory Subdirectory in whether exist and the file destination bear the same name file.
When judging the file born the same name with the file destination be present, then step S104 is performed.Otherwise, the mesh is write After marking file, flow terminates.
It is stored in due to the resource file of difference in functionality module in different files, therefore even if when the resource of a function File and the resource file of other functional modules are born the same name and can also stored.But compiler can be distribution when finally compile All resource file subdirectories under all resource files unified all resource files are entered again to after under a catalogue Row compiling, if in the presence of two different resource subdirectories given a definition filename identical resource file when, compiler compiling When the problem of will reporting an error.Therefore, the embodiment of the present invention also provides the determination methods of file duplication of name.
In one embodiment, as shown in figure 4, step S103 may include step S1031 to step S1033.
Step S1031, start a monitor and monitor the file created under the subdirectory of the type in real time.
Step S1032, when having listened to file destination and being created, judge with the subdirectory type identical subdirectory Whether the file born the same name with the filename of the file destination be present.
In the present embodiment, the file destination can be whole resource files that the application program newly creates.
In the present embodiment, because the file under java catalogues typically has different bag names or class name, therefore under java catalogues Source file will not typically bear the same name.Monitor described in the present embodiment can listen only to create under catalogue corresponding to the resource file File.Certainly, in other embodiments, the monitor can also monitor the text created under catalogue corresponding to the source file Part.
Step S104, named again for the file destination.
In one embodiment, functional module corresponding to the file destination is increased in the filename of the file destination Module title.
In an example, if " gitPanel " catalogue, one is created in the subdirectory res under " gitPanel " catalogue Resource file, the resource file are born the same name with the resource file in existing other functional modules, then can be in resource text Increase character string " gitPanel " before part name.
In another embodiment, designated character string is increased in the filename of the file destination.The designated word It can be the characters such as numeral, letter to accord with string.
In an example, if " gitPanel " catalogue, one is created in the subdirectory res under " gitPanel " catalogue Resource file, the resource file are born the same name with the resource file in existing other functional modules, then can be in resource text Increase character 1,2,3 before part name, character a, b, c etc. can also be increased before the resource file name.The designated character string also may be used Be numeral with letter combination.
Source code file construction method according to embodiments of the present invention, by the way that new resource text will be added in subdirectory During part, first judge whether there is the resource file of duplication of name under the catalogue of the type, it is identical to avoid different resource files from using Filename cause compiler be when finally compiling under all resource file subdirectories distribution all resources text Part is unified after under a catalogue to be again compiled all resource files, if in the presence of fixed under two different resource subdirectories During justice filename identical resource file, the problem of compiler will report an error when compiling.
Referring to Fig. 5, it is the work(of the source code file construction apparatus 110 shown in Fig. 1 of present pre-ferred embodiments offer Can module diagram.Modules in source code file construction apparatus 110 and unit in the present embodiment are used to performing above-mentioned Each step in embodiment of the method.The source code file construction apparatus 110 includes creation module 1101 and writing module 1102。
The creation module 1101, for creating multiple functional module catalogues according to the difference in functionality of application program, and The subdirectory of multiple preset kinds is created under each functional module catalogue.
In the present embodiment, the subdirectory includes being used to deposit the catalogue of the source file of corresponding function and for depositing correspondingly The catalogue of the resource file of function.
Said write module 1102, for the bibliographic structure of the functional module catalogue of establishment to be write to the compiling road of compiler In footpath so that compiler can be compiled to corresponding functional module.
In the present embodiment, said write module 1102 is additionally operable to by calling default write-in function by the bibliographic structure In each catalogue path write-in compiling configuration file in corresponding configuration information, it is described compiling configuration file in corresponding configuration Information includes the configuration information of source file and resource file.
In an example, above-mentioned modules are realized by writing a plug-in unit in Android Studio.It is described Android Studio are an Android Integrated Development Tools, based on IntelliJ IDEA similar to Eclipse ADT, Android Studio provide integrated Android developing instruments and are used to develop and debug.
In the present embodiment, the source code file construction apparatus 110 may also include:Judge module 1103 and renamer module 1104。
The judge module 1103, for when a type of subdirectory has file destination write-in, judging and the specific item Whether the file born the same name with the file destination be present in the type identical subdirectory of record.
In one embodiment, the judge module 1103 includes monitoring unit and judging unit.
The monitoring unit, the file created under the subdirectory of the type is monitored in real time for starting a monitor.
The judging unit, for when having listened to file destination and being created, judging and the subdirectory type identical Whether the file born the same name with the filename of the file destination be present in subdirectory.
The renamer module 1104, for when the file born the same name with the file destination be present, being again then The file destination name.
The renamer module 1104 is additionally operable to increase corresponding to the file destination in the filename of the file destination The module title of functional module.
The renamer module 1104 can be also used for increasing designated character string in the filename of the file destination.Institute It can be the characters such as numeral, letter to state designated character string.
Other details on the present embodiment can also further refer to the description in above method embodiment, herein not Repeat again.
Source code file construction apparatus in the embodiment of the present invention, by the way that the file of difference in functionality module is stored respectively, So that the source file of difference in functionality module is stored in diverse location and facilitates user or developer to require to look up some work( The source file of energy module.
The embodiment of the present invention provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, the computer program The source code file construction method in above-described embodiment is realized upon execution.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can also pass through Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing Show the device of multiple embodiments according to the present invention, method and computer program product architectural framework in the cards, Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code Part, a part for the module, program segment or code include one or more and are used to realize holding for defined logic function Row instruction.It should also be noted that at some as in the implementation replaced, the function that is marked in square frame can also with different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially perform substantially in parallel, they are sometimes It can perform in the opposite order, this is depending on involved function.It is it is also noted that every in block diagram and/or flow chart The combination of individual square frame and block diagram and/or the square frame in flow chart, function or the special base of action as defined in performing can be used Realize, or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with Another entity or operation make a distinction, and not necessarily require or imply between these entities or operation any this reality be present The relation or order on border.Moreover, term " comprising ", "comprising" or its any other variant are intended to the bag of nonexcludability Contain, so that process, method, article or equipment including a series of elements not only include those key elements, but also including The other element being not expressly set out, or also include for this process, method, article or the intrinsic key element of equipment. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, other identical element also be present in article or equipment.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing It is further defined and explained.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (10)

1. a kind of source code file construction method, it is characterised in that the source code file construction method includes:
Multiple functional module catalogues are created according to the difference in functionality of application program, and created under each functional module catalogue multiple The subdirectory of preset kind;The subdirectory includes being used to deposit the catalogue of the source file of corresponding function and for depositing corresponding work( The catalogue of the resource file of energy;
The bibliographic structure of the functional module catalogue of establishment is write in the compiling path of compiler so that compiler can be to corresponding Functional module be compiled.
2. source code file construction method as claimed in claim 1, it is characterised in that the functional module catalogue by establishment Bibliographic structure write-in compiler compiling path in step include:
By calling default write-in function will be right in the path write-in compiling configuration file of each catalogue in the bibliographic structure The configuration information answered, it is described to compile configuration information of the corresponding configuration information including source file and resource file in configuration file.
3. source code file construction method as claimed in claim 1, it is characterised in that methods described also includes:
When a type of subdirectory has file destination write-in, judge with the type identical subdirectory of the subdirectory whether The file born the same name with the file destination be present;
If the file born the same name with the file destination be present, named again for the file destination.
4. source code file construction method as claimed in claim 3, it is characterised in that described when a type of subdirectory has When file destination writes, judge whether existed and the file destination weight in the type identical subdirectory with the subdirectory The step of file of name, includes:
Start a monitor and monitor the file created under the subdirectory of the type in real time;
When having listened to file destination and being created, judge with whether existed in the subdirectory type identical subdirectory with The file that the filename of the file destination is born the same name.
5. source code file construction method as claimed in claim 3, it is characterised in that be again file destination name Step includes:
Increase the module title of functional module corresponding to the file destination in the filename of the file destination.
6. a kind of source code file construction apparatus, it is characterised in that the source code file construction apparatus includes:
Creation module, for creating multiple functional module catalogues according to the difference in functionality of application program, and in each functional module The subdirectory of multiple preset kinds is created under catalogue;The subdirectory include be used for deposit corresponding function source file catalogue and For the catalogue for the resource file for depositing corresponding function;
Writing module, for the bibliographic structure of the functional module catalogue of establishment to be write in the compiling path of compiler so that compile Translating device can be compiled to corresponding functional module.
7. source code file construction apparatus as claimed in claim 6, it is characterised in that said write module is additionally operable to pass through tune Match somebody with somebody confidence by corresponding in the path write-in compiling configuration file of each catalogue in the bibliographic structure with default write-in function Breath, it is described to compile configuration information of the corresponding configuration information including source file and resource file in configuration file.
8. source code file construction apparatus as claimed in claim 6, it is characterised in that described device also includes:
Judge module, for when a type of subdirectory has file destination write-in, judging identical with the type of the subdirectory Subdirectory in whether exist and the file destination bear the same name file;
Renamer module, for being then the file destination again when the file born the same name with the file destination be present Name.
A kind of 9. electric terminal, it is characterised in that including:
Memory;
Processor;
Install/be stored in the memory and as the source code text described in the claim any one of 6-8 of the computing device Part construction apparatus.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, it is characterised in that the computer program is performing Source code file construction method in Shi Shixian the claims 1-5 described in any one.
CN201710735908.0A 2017-08-24 2017-08-24 Source code file construction method, device, electric terminal and readable storage medium storing program for executing Pending CN107357593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710735908.0A CN107357593A (en) 2017-08-24 2017-08-24 Source code file construction method, device, electric terminal and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710735908.0A CN107357593A (en) 2017-08-24 2017-08-24 Source code file construction method, device, electric terminal and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN107357593A true CN107357593A (en) 2017-11-17

Family

ID=60290020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710735908.0A Pending CN107357593A (en) 2017-08-24 2017-08-24 Source code file construction method, device, electric terminal and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN107357593A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522295A (en) * 2018-11-16 2019-03-26 中国银行股份有限公司 A kind of database object constructs automatically, dispositions method and device
CN109725907A (en) * 2019-01-03 2019-05-07 百度在线网络技术(北京)有限公司 Installation method, device, equipment and the computer-readable medium of preset application
CN110096280A (en) * 2019-03-18 2019-08-06 中国平安人寿保险股份有限公司 Creation method, device, computer installation and the storage medium of code engineering
CN110647319A (en) * 2019-10-08 2020-01-03 中国工商银行股份有限公司 Functional module decoupling method and system
CN111273943A (en) * 2018-12-04 2020-06-12 北京嘀嘀无限科技发展有限公司 Application file generation method and device and electronic equipment
CN111290801A (en) * 2020-02-13 2020-06-16 北京字节跳动网络技术有限公司 Data processing method, data processing device, computer equipment and storage medium
CN111367510A (en) * 2020-02-24 2020-07-03 腾讯音乐娱乐科技(深圳)有限公司 Android function module development method and device
CN111782197A (en) * 2020-08-03 2020-10-16 网易(杭州)网络有限公司 Resource publishing method and device
CN112615779A (en) * 2021-02-18 2021-04-06 北京融禾昌信息技术有限公司 Interface route generation method and device
CN112650530A (en) * 2020-12-31 2021-04-13 五八有限公司 Multi-class library integration method and device, electronic equipment and readable storage medium
CN113535220A (en) * 2020-04-15 2021-10-22 北京京东振世信息技术有限公司 Code packet management method and device
CN113590550A (en) * 2021-07-30 2021-11-02 展讯通信(天津)有限公司 File creation method and device and electronic equipment
CN113672229A (en) * 2020-05-14 2021-11-19 武汉斗鱼网络科技有限公司 Directory registration method, device, equipment and storage medium
CN114398102A (en) * 2022-01-18 2022-04-26 杭州米络星科技(集团)有限公司 Application package generation method and device, compiling server and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6102966A (en) * 1998-03-20 2000-08-15 Preemptive Solutions, Inc. Method for renaming identifiers of a computer program
US20080126440A1 (en) * 2006-11-28 2008-05-29 International Business Machines Corporation Methods, systems, and computer program products for file version control management
CN102053855A (en) * 2010-12-13 2011-05-11 浪潮(北京)电子信息产业有限公司 Software generation system and method
CN102402452A (en) * 2011-12-12 2012-04-04 深圳市共进电子股份有限公司 Compiling method and device
CN102929643A (en) * 2012-11-09 2013-02-13 北京中电普华信息技术有限公司 Method and system developing Java 2 platform enterprise edition (J2EE) application
CN103699389A (en) * 2013-12-30 2014-04-02 北京大学 Linux kernel module relation extracting method based on compiling options
US20140173561A1 (en) * 2012-12-13 2014-06-19 Microsoft Corporation Association of metadata with source code and applications and services premised thereon
CN104461508A (en) * 2014-11-12 2015-03-25 国云科技股份有限公司 Method for solving problem of duplication of names of functions in JS files
US20170017474A1 (en) * 2015-02-23 2017-01-19 International Business Machines Corporation Per tenant initialization check removal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6102966A (en) * 1998-03-20 2000-08-15 Preemptive Solutions, Inc. Method for renaming identifiers of a computer program
US20080126440A1 (en) * 2006-11-28 2008-05-29 International Business Machines Corporation Methods, systems, and computer program products for file version control management
CN102053855A (en) * 2010-12-13 2011-05-11 浪潮(北京)电子信息产业有限公司 Software generation system and method
CN102402452A (en) * 2011-12-12 2012-04-04 深圳市共进电子股份有限公司 Compiling method and device
CN102929643A (en) * 2012-11-09 2013-02-13 北京中电普华信息技术有限公司 Method and system developing Java 2 platform enterprise edition (J2EE) application
US20140173561A1 (en) * 2012-12-13 2014-06-19 Microsoft Corporation Association of metadata with source code and applications and services premised thereon
CN103699389A (en) * 2013-12-30 2014-04-02 北京大学 Linux kernel module relation extracting method based on compiling options
CN104461508A (en) * 2014-11-12 2015-03-25 国云科技股份有限公司 Method for solving problem of duplication of names of functions in JS files
US20170017474A1 (en) * 2015-02-23 2017-01-19 International Business Machines Corporation Per tenant initialization check removal

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522295B (en) * 2018-11-16 2021-07-20 中国银行股份有限公司 Automatic database object constructing and deploying method and device
CN109522295A (en) * 2018-11-16 2019-03-26 中国银行股份有限公司 A kind of database object constructs automatically, dispositions method and device
CN111273943A (en) * 2018-12-04 2020-06-12 北京嘀嘀无限科技发展有限公司 Application file generation method and device and electronic equipment
CN109725907A (en) * 2019-01-03 2019-05-07 百度在线网络技术(北京)有限公司 Installation method, device, equipment and the computer-readable medium of preset application
CN110096280A (en) * 2019-03-18 2019-08-06 中国平安人寿保险股份有限公司 Creation method, device, computer installation and the storage medium of code engineering
CN110647319A (en) * 2019-10-08 2020-01-03 中国工商银行股份有限公司 Functional module decoupling method and system
CN110647319B (en) * 2019-10-08 2023-08-29 中国工商银行股份有限公司 Functional module decoupling method and system
CN111290801A (en) * 2020-02-13 2020-06-16 北京字节跳动网络技术有限公司 Data processing method, data processing device, computer equipment and storage medium
CN111367510A (en) * 2020-02-24 2020-07-03 腾讯音乐娱乐科技(深圳)有限公司 Android function module development method and device
CN111367510B (en) * 2020-02-24 2024-03-19 腾讯音乐娱乐科技(深圳)有限公司 Android function module development method and device
CN113535220A (en) * 2020-04-15 2021-10-22 北京京东振世信息技术有限公司 Code packet management method and device
CN113535220B (en) * 2020-04-15 2023-11-03 北京京东振世信息技术有限公司 Code packet management method and device
CN113672229A (en) * 2020-05-14 2021-11-19 武汉斗鱼网络科技有限公司 Directory registration method, device, equipment and storage medium
CN111782197A (en) * 2020-08-03 2020-10-16 网易(杭州)网络有限公司 Resource publishing method and device
CN111782197B (en) * 2020-08-03 2023-12-29 网易(杭州)网络有限公司 Resource release method and device
CN112650530A (en) * 2020-12-31 2021-04-13 五八有限公司 Multi-class library integration method and device, electronic equipment and readable storage medium
CN112615779A (en) * 2021-02-18 2021-04-06 北京融禾昌信息技术有限公司 Interface route generation method and device
CN113590550A (en) * 2021-07-30 2021-11-02 展讯通信(天津)有限公司 File creation method and device and electronic equipment
CN114398102A (en) * 2022-01-18 2022-04-26 杭州米络星科技(集团)有限公司 Application package generation method and device, compiling server and computer readable storage medium
CN114398102B (en) * 2022-01-18 2023-08-08 杭州米络星科技(集团)有限公司 Application package generation method and device, compiling server and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN107357593A (en) Source code file construction method, device, electric terminal and readable storage medium storing program for executing
US20240078096A1 (en) Systems and methods for code clustering analysis and transformation
US11726760B2 (en) Systems and methods for entry point-based code analysis and transformation
US11789715B2 (en) Systems and methods for transformation of reporting schema
US11436006B2 (en) Systems and methods for code analysis heat map interfaces
CN108027833B (en) Method for creating structured data language query
US20150293764A1 (en) Method and system to compose and execute business rules
US9213707B2 (en) Ordered access of interrelated data files
US7441188B1 (en) Web construction framework presentation tier
CN107408049B (en) Computing system and computer-implemented method
US7984115B2 (en) Extensible application platform
US8108360B2 (en) Database object update order determination
CN103425468B (en) Plug-in type software integrating method and device
US20050114479A1 (en) System and method for hierarchically representing configuration items
CN102054217B (en) Entity morphing in metamodel-based tools
AU2017216248B2 (en) Systems and methods for generating electronic document templates and electronic documents
WO2013067238A1 (en) Inheritance of rules across hierarchical levels
CN111427577A (en) Code processing method and device and server
EP3822821B1 (en) Dynamic modular ontology
CN110889013A (en) Data association method, device, server and storage medium based on XML
CN113434542A (en) Data relation identification method and device, electronic equipment and storage medium
EP4046024A1 (en) Generating and attributing unique identifiers representing performance issues within a call stack
CN110222032A (en) A kind of generalised event model based on software data analysis
CN110244934A (en) Product demand document, the generation method and device for testing information
CN113900956A (en) Test case generation method and device, computer equipment and storage medium

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
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20240531