CN109375929A - Installation kit generation method, device, storage medium and the equipment of Java web application - Google Patents

Installation kit generation method, device, storage medium and the equipment of Java web application Download PDF

Info

Publication number
CN109375929A
CN109375929A CN201811400812.XA CN201811400812A CN109375929A CN 109375929 A CN109375929 A CN 109375929A CN 201811400812 A CN201811400812 A CN 201811400812A CN 109375929 A CN109375929 A CN 109375929A
Authority
CN
China
Prior art keywords
installation
environment
packet type
application
target application
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
CN201811400812.XA
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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201811400812.XA priority Critical patent/CN109375929A/en
Publication of CN109375929A publication Critical patent/CN109375929A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

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

This disclosure relates to a kind of installation kit generation method, device, storage medium and the equipment of Java web application, this method comprises: passing through the source code for obtaining target application to be disposed from target platform;Compiling is executed according to source code, to construct target application;Obtain the installation Packet type of target application, the type for the operating system that installation Packet type is used to indicate that the target application to be disposed;Obtain pre-stored script corresponding with installation Packet type and environment;According to the target application constructed, environment and script generate application installation package corresponding with installation Packet type.Since application installation package has contained script and environment, no longer need to by manually carrying out deployment early period, and the script and environment are script corresponding with the type of the operating system to be disposed and environment.Therefore it is many and diverse to be able to solve web application deploying step, it, can be in several operation systems realization automatically dispose the problem of heavy workload and poor universality.

Description

Installation kit generation method, device, storage medium and the equipment of Java web application
Technical field
This disclosure relates to Java Web technical field, and in particular, to a kind of installation kit generation side of Java web application Method, device, storage medium and equipment.
Background technique
Java Web, is the technology summation that related web internet area is solved with Java technology, and web includes web services Device and web client two parts.Web application (abbreviation Web application) is server side application programs, and a web application is By one group of Servlet, HTML (HyperText Markup Language, HyperText Markup Language) page, class (class), And the complete application program of the operation of other resources compositions on a web server, with a kind of having levels for structuring Catalogue form exists.
Currently, the deployment way of Java Web application requires to complete by artificial substantially, and need to carry out a large amount of Deployment early period, such as need to prepare various environment (such as Tomcat, support library) and data (such as Web application, script).With For supporting library, preparatory manual installation database is needed in the prior art, is gone to connect the database in deployment and is executed support Library script, and Tomcat, Web application, script etc. are also required to by manually installing or generating.Therefore, existing Java Web The deployment way step of application is many and diverse, heavy workload.In addition, needing to prepare the ring of different editions for different operating system Border, poor universality.
Summary of the invention
Purpose of this disclosure is to provide a kind of installation kit generation method of Java web application, device, storage medium and set It is standby, for solving the problem of many and diverse heavy workload of existing Java web application dispositions method step and poor universality.
To achieve the goals above, the disclosure in a first aspect, provide a kind of Java web dispositions method of application, it is described Method includes:
The source code of target application to be disposed is obtained from target platform, the target platform is to be stored with the source code Any website;
Compiling is executed according to the source code, to construct the target application;
The installation Packet type of the target application is obtained, the installation Packet type is for indicating target application institute mian part The type of the operating system of administration;
Obtain pre-stored script corresponding with the installation Packet type and environment;
According to the target application constructed, the environment and the script are generated corresponding with the installation Packet type Application installation package.
It is optionally, described to obtain pre-stored script corresponding with the installation Packet type and environment, comprising:
Preconfigured command script corresponding with the installation Packet type, branch are obtained from installation kit the build tool software Support library, Java Runtime Environment and middleware.
Optionally, be provided in advance in installation kit the build tool software at least one operating system command script, Library, Java Runtime Environment and middleware are supported, it is described that the pre-stored and peace is obtained from installation kit the build tool software Fill the corresponding command script of Packet type, support library, Java Runtime Environment and middleware, comprising:
When the installation Packet type is the first system installation kit, obtained from installation kit the build tool software preparatory The first system command script of configuration, the first system support library, the first system Java Runtime Environment and middleware, described first System is any operation system at least one operating system.
Optionally, at least one operating system includes: Windows system and linux system.
Optionally, the system type of the installation kit for obtaining the target application, the system type is for indicating institute State the type for the operating system that target application to be disposed, comprising:
The installation Packet type of the target application is obtained, the installation Packet type includes Windows installation kit or Linux peace Dress packet, when the installation Packet type is the Windows installation kit, the operating system for indicating that the target application to be disposed is Windows system indicates the operation to be disposed of the target application when installation Packet type is the Linux installation kit System is linux system.
Optionally, the target application that the basis has constructed, the environment and the script generate and the installation The corresponding application installation package of Packet type, comprising:
When the installation Packet type is Windows installation kit, according to the target application constructed, the environment and The script generates the application installation package of zip format;
When the installation Packet type is Linux installation kit, according to the target application constructed, the environment and institute Script is stated, the application installation package of tar.gz format is generated.
Second aspect, provides a kind of installation package generating device of Java web application, and described device includes:
Code obtaining module, for obtaining the source code of target application to be disposed, the target platform from target platform For any website for being stored with the source code;
Application build module, for executing compiling according to the source code, to construct the target application;
Type acquisition module, for obtaining the installation Packet type of the target application, the installation Packet type is for indicating The type of the operating system to be disposed of the target application;
Environment obtains module, for obtaining pre-stored script corresponding with the installation Packet type and environment;
Generation module, for generating and the peace according to the target application constructed, the environment and the script Fill the corresponding application installation package of Packet type.
Optionally, the environment obtains module, is used for:
Preconfigured command script corresponding with the installation Packet type, branch are obtained from installation kit the build tool software Support library, Java Runtime Environment and middleware.
Optionally, be provided in advance in installation kit the build tool software at least one operating system command script, Library, Java Runtime Environment and middleware are supported, the environment obtains module, is used for:
When the installation Packet type is the first system installation kit, obtained from installation kit the build tool software preparatory The first system command script of configuration, the first system support library, the first system Java Runtime Environment and middleware, described first System is any operation system at least one operating system.
Optionally, at least one operating system includes: Windows system and linux system.
Optionally, the type acquisition module, is used for: obtaining the installation Packet type of the target application, the installation kit Type includes Windows installation kit or Linux installation kit, when the installation Packet type is the Windows installation kit, indicates institute Stating the operating system that target application to be disposed is Windows system, when the installation Packet type is the Linux installation kit, Indicate that the operating system that the target application to be disposed is linux system.
Optionally, the generation module, is used for:
When the installation Packet type is Windows installation kit, according to the target application constructed, the environment and The script generates the application installation package of zip format;
When the installation Packet type is Linux installation kit, according to the target application constructed, the environment and institute Script is stated, the application installation package of tar.gz format is generated.
The third aspect provides a kind of computer readable storage medium, is stored thereon with computer program, the computer journey The step of first aspect the method is realized when sequence is executed by processor.
Fourth aspect provides a kind of electronic equipment, comprising: memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize first aspect the method Step.
In above-mentioned technical proposal, by the source code for obtaining target application to be disposed from target platform;According to the source generation Code executes compiling, to construct the target application;The installation Packet type of the target application is obtained, the installation Packet type is for indicating this The type of the operating system to be disposed of target application;Obtain pre-stored script corresponding with the installation Packet type and ring Border;According to the target application constructed, environment and script generate application installation package corresponding with the installation Packet type.Due to The application installation package generated through the above technical solution has contained script and environment, no longer needs to by manually carrying out deployment early period, And the script and environment are script corresponding with the type of the operating system to be disposed and environment.Therefore above-mentioned technical proposal It is many and diverse to be able to solve existing Java web application dispositions method step, the problem of heavy workload and poor universality, thus should Application installation package can realize automatically dispose in several operation systems, i.e., no matter be deployed in which kind of operating system, can be real The now effect of decompression i.e..
Other feature and advantage of the disclosure will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is and to constitute part of specification for providing further understanding of the disclosure, with following tool Body embodiment is used to explain the disclosure together, but does not constitute the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is a kind of installation kit generation method of Java web application shown according to one exemplary embodiment of the disclosure Flow diagram;
Fig. 2 is the installation kit generation method of another Java web application shown according to one exemplary embodiment of the disclosure Flow diagram;
Fig. 3 is the installation kit generation method according to another Java web application shown in one exemplary embodiment of the disclosure Flow diagram;
Fig. 4 is a kind of installation package generating device of Java web application shown according to one exemplary embodiment of the disclosure;
Fig. 5 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment;
Fig. 6 is the block diagram of another electronic equipment shown according to an exemplary embodiment.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the disclosure.It should be understood that this place is retouched The specific embodiment stated is only used for describing and explaining the disclosure, is not limited to the disclosure.
Fig. 1 is a kind of installation kit generation method of Java web application shown according to one exemplary embodiment of the disclosure Flow diagram, as shown in Figure 1, this method comprises:
Step 101, the source code of target application to be disposed is obtained from target platform, which is to be stored with the source Any website of code.
It is exemplary, the target application can be downloaded from any one website for the source code for being capable of providing the target application Source code the source of the target application particularly can be downloaded from the platform of the newest source code with the target application Code.In the present embodiment, step 101 can be executed to 105 by preconfigured installation kit the build tool software, the peace Dress packet the build tool software is preconfigured for constructing the tool software of Java web application installation package.It is therefore, exemplary, The newest source code that the target application can be downloaded by the Source Code Control System in installation kit the build tool software.
Step 102, compiling is executed according to the source code, to construct the target application.
Step 103, the installation Packet type of target application is obtained, installation Packet type is for indicating what target application to be disposed The type of operating system.
Exemplary, by taking most common Windows system and linux system as an example, which may include: Windows installation kit or Linux installation kit, the Windows installation kit can be deployed in Windows system, Linux installation kit Linux installation kit can be deployed in.Therefore, when installing Packet type is Windows installation kit, indicate that target application to be disposed Operating system be Windows system, installation Packet type be Linux installation kit when, indicate the operation to be disposed of target application System is linux system, so as to execute step 104 according to installation Packet type.
Step 104, pre-stored script corresponding with installation Packet type and environment are obtained.
It is exemplary, by taking Windows system and linux system as an example, when installing Packet type is Windows system, then obtain The script and environment for taking Windows system then obtain the script and ring of linux system when installing Packet type is linux system Border.
Step 105, it according to the target application constructed, environment and script, generates application corresponding with installation Packet type and pacifies Dress packet.
The target application that will have been constructed, environment and script are packaged, to generate application corresponding with Packet type is installed Installation kit, it is exemplary, when installing Packet type is Windows system, the installation kit of zip format is generated, when installation Packet type is When linux system, the application installation package of tar.gz format is generated.
In above-mentioned technical proposal, by the source code for obtaining target application to be disposed from target platform;According to the source generation Code executes compiling, to construct the target application;The installation Packet type of the target application is obtained, the installation Packet type is for indicating this The type of the operating system to be disposed of target application;Obtain pre-stored script corresponding with the installation Packet type and ring Border;According to the target application constructed, environment and script generate application installation package corresponding with the installation Packet type.Due to The application installation package generated through the above technical solution has contained script and environment, no longer needs to by manually carrying out deployment early period, And the script and environment are script corresponding with the type of the operating system to be disposed and environment.Therefore above-mentioned technical proposal It is many and diverse to be able to solve existing Java web application dispositions method step, the problem of heavy workload and poor universality, thus should Application installation package can realize automatically dispose in several operation systems, i.e., no matter be deployed in which kind of operating system, can be real The now effect of decompression i.e..
Fig. 2 is the installation kit generation method of another Java web application shown according to one exemplary embodiment of the disclosure Flow diagram, as shown in Fig. 2, acquisition described in step 104 is pre-stored with the corresponding script of installation Packet type and ring The step of border, may comprise steps of:
Step 1041, preconfigured order foot corresponding with installation Packet type is obtained from installation kit the build tool software Originally, support library, Java Runtime Environment and middleware.
Wherein, command script, the support of at least one operating system are provided in installation kit the build tool software in advance Library, Java Runtime Environment and middleware.
By taking the first operating system at least one operating system as an example, step 1041 can be specifically included:
When the installation Packet type is the first system installation kit, obtained from installation kit the build tool software preconfigured The first system command script, the first system support Java Runtime Environment (the Java Runtime in library, the first system Environment, JRE) and middleware.
Wherein, which is any operation system at least one operating system.It is exemplary, at least one Operating system includes: Windows system and linux system, then the first system can be Windows system or linux system, Windows command script, Windows support library, Windows system can be pre-configured in installation kit the build tool software Java Runtime Environment and middleware and Linux command script, Linux support library, linux system Java Runtime Environment and Middleware.Exemplary, which can be Tomcat (tom cat), and Tomcat is a kind of application server, be referred to as Tomcat server, Tomcat are the Web Application Servers of a free open source code, belong to lightweight application service Device.Tomcat is held by a Servlet (Server Applet, servlet or service adapter) for Apache exploitation Device realizes the support to Servlet and JSP (Java Server Pages, the java server page), and provides conduct Some peculiar functions of Web server, such as Tomcat manage and control platform, security domain management and Tomcat valve.
Fig. 3 a is the installation kit generation side according to another Java web application shown in one exemplary embodiment of the disclosure The flow diagram of method, as shown in figure 3, according to the target application that has constructed, environment and script described in step 105, generate with The step of installing Packet type corresponding application installation package, may comprise steps of:
Step 1051, when installing Packet type is Windows installation kit, according to the target application constructed, environment And script, generate the application installation package of zip format.
Step 1052, when installing Packet type is Linux installation kit, according to the target application constructed, environment and script, Generate the application installation package of tar.gz format.
Below by taking the operating system that can dispose is Windows system and linux system as an example, to the process of the above method into Row for example:
Fig. 3 b is the installation kit generation side according to another Java web application shown in one exemplary embodiment of the disclosure The flow diagram of method after the building process of Java web application starts, may comprise steps of as shown in Figure 3b:
Firstly, downloading the newest source code of target application by the Source Code Control System in installation kit the build tool software;
Secondly, compiling is executed according to newest source code, to construct target application;
Then, the installation Packet type to be constructed is obtained, i.e. determination is Windows installation kit or Linux installation kit, works as peace It when dress Packet type is Windows installation kit, successively executes: (from installation kit the build tool software) copy Windows order foot This, copy Windows supports library, copies the JRE of Windows system, copies the target application that Tomcat and copy have constructed; Wherein, Windows command script is copied, copy Windows supports library, copies JRE and the copy targeting application of Windows system Sequencing between these steps be not it is fixed, it is above-mentioned shown in execution sequence be exemplary.
To support JRE, the Tomcat in library, Windows system according to the Windows command script of copy, Windows And target application is packaged, and the application installation package of zip format is generated.
It when installing Packet type is Linux installation kit, successively executes: (from installation kit the build tool software) copy Linux command script, copy Linux support library, copy the JRE of linux system, copy the mesh that Tomcat and copy have constructed Mark application;
JRE, the Tomcat and target in library, linux system are finally supported according to the Linux command script of copy, Linux Using being packaged, the application installation package of tar.gz format is generated.
Wherein, the either application installation package of zip format or the application installation package of tar.gz format install pack arrangement It may each comprise content as shown in Table 1:
Table 1
Wherein, as shown in table 1, bin catalogue is start command catalogue, for storing some control commands of application, is such as opened It is dynamic order, cease and desist order, log-in command, De-REGistration CoMmanD etc..Config catalogue is configuration file catalogue, is answered for storing web Some configuration informations, such as access interface.Ire catalogue is JRE catalogue, for storing copy in the above method JRE.Lib catalogue is to be same as the catalogue (suffix that jar is JAR formatted file) of storage program correlation jar packet.JAR(Java Archive, Java archive file) format is based on popular zip file format, unlike zip file, jar file It is applied not only to compress and issue, but also for disposing and encapsulating library, component and plug-in card program, and can be by as compiler and JVM Tool as (Java Virtual Machine, Java Virtual Machine) directly uses.Log catalogue is Log Directory, for remembering Running log is applied in record.Repository catalogue is support library directory, for storing the support library for copying and in the above method, Server catalogue is application server catalogue, i.e. Tomcat catalogue, the Tomcat come for storing copy.Webapps catalogue is Web application catalogue, for storing the above-mentioned target application constructed.
After generating application installation package, that is, it is provided to the equipment for needing to dispose the target application, is solved on the device It presses the application installation package that the deployment of the target application can be realized, therefore had not both needed manually to carry out deployment early period, avoid cumbersome Map out the work, can also be suitable for the operating system of the equipment, to realize decompression purpose i.e..In addition, above-mentioned Windows system or linux system are exemplary, and including but not limited to, for other operating systems, can also be used upper State the deployment that method carries out Java web application.
It can be seen that above-mentioned technical proposal enough solves existing Java web application dispositions method step many and diverse, workload The problem of big and poor universality, so that no matter the application installation package can realize automatically dispose in several operation systems, i.e., It is deployed in which kind of operating system, may be implemented to decompress effect i.e..
Fig. 4 is a kind of installation package generating device of Java web application shown according to one exemplary embodiment of the disclosure, As shown in figure 4, the device 400 includes:
Code obtaining module 401, for obtaining the source code of target application to be disposed from target platform, the target platform For any website for storing source code.
Application build module 402, for executing compiling according to the source code, to construct the target application;
Type acquisition module 403, for obtaining the installation Packet type of the target application, the installation Packet type is for indicating this The type of the operating system to be disposed of target application;
Environment obtains module 404, for obtaining pre-stored script corresponding with the installation Packet type and environment;
Generation module 405, for generating and the installation Packet type according to the target application constructed, environment and script Corresponding application installation package.
Optionally, which obtains module 404, is used for:
Preconfigured command script corresponding with the installation Packet type, support are obtained from installation kit the build tool software Library, Java Runtime Environment and middleware.
Further, be provided in advance in installation kit the build tool software at least one operating system command script, Supporting library, Java Runtime Environment and middleware, then the environment obtains module 404, it is used for:
When the installation Packet type is the first system installation kit, obtains and be pre-configured with from installation kit the build tool software The first system command script, the first system support library, the first system Java Runtime Environment and middleware, which is Any operation system at least one operating system.
Wherein, which includes: Windows system or linux system.
Correspondingly, the type obtains module 403, it is used for:
The installation Packet type of the target application is obtained, which includes Windows installation kit or Linux installation Packet when the installation Packet type is Windows installation kit, indicates that the operating system that the target application to be disposed is Windows system System when the installation Packet type is Linux installation kit, indicates that the operating system that the target application to be disposed is linux system.
Optionally, the generation module 405, is used for:
When the installation Packet type is Windows installation kit, according to the target application constructed, environment and script are raw At the application installation package of zip format;
When the installation Packet type is Linux installation kit, according to the target application constructed, environment and script are generated The application installation package of tar.gz format.
In above-mentioned technical proposal, by the source code for obtaining target application to be disposed from target platform;According to the source generation Code executes compiling, to construct the target application;The installation Packet type of the target application is obtained, the installation Packet type is for indicating this The type of the operating system to be disposed of target application;Obtain pre-stored script corresponding with the installation Packet type and ring Border;According to the target application constructed, environment and script generate application installation package corresponding with the installation Packet type.Due to The application installation package generated through the above technical solution has contained script and environment, no longer needs to by manually carrying out deployment early period, And the script and environment are script corresponding with the type of the operating system to be disposed and environment.Therefore above-mentioned technical proposal It is many and diverse to be able to solve existing Java web application dispositions method step, the problem of heavy workload and poor universality, thus should Application installation package can realize automatically dispose in several operation systems, i.e., no matter be deployed in which kind of operating system, can be real The now effect of decompression i.e..
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 5 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.As shown in figure 5, the electronic equipment 500 may include: processor 501, memory 502.The electronic equipment 500 can also include multimedia component 503, input/defeated One or more of (I/O) interface 504 and communication component 505 out.
Wherein, processor 501 is used to control the integrated operation of the electronic equipment 500, is answered with the Java web for completing above-mentioned All or part of the steps in installation kit generation method.Memory 502 is for storing various types of data to support The operation of the electronic equipment 500, these data for example may include any using journey for what is operated on the electronic equipment 500 The instruction of sequence or method and the relevant data of application program, such as contact data, the message of transmitting-receiving, picture, audio, view Frequency etc..The memory 502 can realize by any kind of volatibility or non-volatile memory device or their combination, Such as static random access memory (Static Random Access Memory, abbreviation SRAM), electrically erasable is only It reads memory (Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), it is erasable Except programmable read only memory (Erasable Programmable Read-Only Memory, abbreviation EPROM), may be programmed only It reads memory (Programmable Read-Only Memory, abbreviation PROM), read-only memory (Read-Only Memory, Abbreviation ROM), magnetic memory, flash memory, disk or CD.Multimedia component 503 may include screen and audio component. Wherein screen for example can be touch screen, and audio component is used for output and/or input audio signal.For example, audio component can be with Including a microphone, microphone is for receiving external audio signal.The received audio signal can be further stored in Memory 502 is sent by communication component 505.Audio component further includes at least one loudspeaker, is used for output audio signal. I/O interface 504 provides interface between processor 501 and other interface modules, other above-mentioned interface modules can be keyboard, mouse Mark, button etc..These buttons can be virtual push button or entity button.Communication component 505 is for the electronic equipment 500 and its Wired or wireless communication is carried out between his equipment.Wireless communication, such as Wi-Fi, bluetooth, near-field communication (Near Field Communication, abbreviation NFC), 2G, 3G or 4G or they one or more of combination, therefore corresponding communication Component 505 may include: Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, electronic equipment 500 can be by one or more application specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device, Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array (Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member Part is realized, for executing the installation kit generation method of above-mentioned Java web application.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should The step of installation kit generation method of above-mentioned Java web application is realized when program instruction is executed by processor.For example, the meter Calculation machine readable storage medium storing program for executing can be the above-mentioned memory 502 including program instruction, and above procedure instruction can be by electronic equipment 500 Processor 501 execute to complete the installation kit generation method of above-mentioned Java web application.
Fig. 6 is the block diagram of another electronic equipment shown according to an exemplary embodiment.For example, electronic equipment 600 can To be provided as a server.Referring to Fig. 6, electronic equipment 600 includes processor 622, and quantity can be one or more, with And memory 632, for storing the computer program that can be executed by processor 622.The computer program stored in memory 632 May include it is one or more each correspond to one group of instruction module.In addition, processor 622 can be configured as The computer program is executed, to execute the installation kit generation method of above-mentioned Java web application.
In addition, electronic equipment 600 can also include power supply module 626 and communication component 650, which can be with It is configured as executing the power management of electronic equipment 600, which, which can be configured as, realizes electronic equipment 600 Communication, for example, wired or wireless communication.In addition, the electronic equipment 600 can also include input/output (I/O) interface 658.Electricity Sub- equipment 600 can be operated based on the operating system for being stored in memory 632, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM etc..
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should The step of installation kit generation method of above-mentioned Java web application is realized when program instruction is executed by processor.For example, the meter Calculation machine readable storage medium storing program for executing can be the above-mentioned memory 632 including program instruction, and above procedure instruction can be by electronic equipment 600 Processor 622 execute to complete the installation kit generation method of above-mentioned Java web application.
The preferred embodiment of the disclosure is described in detail in conjunction with attached drawing above, still, the disclosure is not limited to above-mentioned reality The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure Monotropic type, these simple variants belong to the protection scope of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance In the case where shield, can be combined in any appropriate way, in order to avoid unnecessary repetition, the disclosure to it is various can No further explanation will be given for the combination of energy.
In addition, any combination can also be carried out between a variety of different embodiments of the disclosure, as long as it is without prejudice to originally Disclosed thought equally should be considered as disclosure disclosure of that.

Claims (10)

1. a kind of installation kit generation method of Javaweb application, which is characterized in that the described method includes:
The source code of target application to be disposed is obtained from target platform, the target platform is to be stored with appointing for the source code One website;
Compiling is executed according to the source code, to construct the target application;
The installation Packet type of the target application is obtained, the installation Packet type is for indicating what the target application to be disposed The type of operating system;
Obtain pre-stored script corresponding with the installation Packet type and environment;
According to the target application constructed, the environment and the script generate answer corresponding with the installation Packet type Use installation kit.
2. the method according to claim 1, wherein described obtain the pre-stored and installation Packet type pair The script and environment answered, comprising:
Preconfigured command script corresponding with the installation Packet type, support are obtained from installation kit the build tool software Library, Java Runtime Environment and middleware.
3. according to the method described in claim 2, it is characterized in that, be provided in advance in installation kit the build tool software to Command script, support library, Java Runtime Environment and the middleware of a kind of few operating system, it is described from installation kit the build tool software It is middle to obtain pre-stored command script corresponding with the installation Packet type, support library, Java Runtime Environment and middleware, packet It includes:
When the installation Packet type is the first system installation kit, obtains and be pre-configured with from installation kit the build tool software The first system command script, the first system support library, the first system Java Runtime Environment and middleware, the first system For any operation system at least one operating system.
4. method according to claim 1-3, which is characterized in that the target that the basis has constructed is answered With the environment and the script generate application installation package corresponding with the installation Packet type, comprising:
When the installation Packet type is Windows installation kit, according to the target application constructed, the environment and described Script generates the application installation package of zip format;
When the installation Packet type is Linux installation kit, according to the target application constructed, the environment and the foot This, generates the application installation package of tar.gz format.
5. a kind of installation package generating device of Java web application, which is characterized in that described device includes:
Code obtaining module, for obtaining the source code of target application to be disposed from target platform, the target platform is to deposit Contain any website of the source code;
Application build module, for executing compiling according to the source code, to construct the target application;
Type acquisition module, for obtaining the installation Packet type of the target application, the installation Packet type is for indicating described The type of the operating system to be disposed of target application;
Environment obtains module, for obtaining pre-stored script corresponding with the installation Packet type and environment;
Generation module, for generating and the installation kit according to the target application constructed, the environment and the script The corresponding application installation package of type.
6. device according to claim 5, which is characterized in that the environment obtains module, is used for:
Preconfigured command script corresponding with the installation Packet type, support are obtained from installation kit the build tool software Library, Java Runtime Environment and middleware.
7. device according to claim 6, which is characterized in that be provided in advance in installation kit the build tool software to Command script, support library, Java Runtime Environment and the middleware of a kind of few operating system, the environment acquisition module are used for:
When the installation Packet type is the first system installation kit, obtains and be pre-configured with from installation kit the build tool software The first system command script, the first system support library, the first system Java Runtime Environment and middleware, the first system For any operation system at least one operating system.
8. according to the described in any item devices of claim 5-7, which is characterized in that the generation module is used for:
When the installation Packet type is Windows installation kit, according to the target application constructed, the environment and described Script generates the application installation package of zip format;
When the installation Packet type is Linux installation kit, according to the target application constructed, the environment and the foot This, generates the application installation package of tar.gz format.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The step of any one of claim 1-4 the method is realized when processor executes.
10. a kind of electronic equipment characterized by comprising
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize described in any one of claim 1-4 The step of method.
CN201811400812.XA 2018-11-22 2018-11-22 Installation kit generation method, device, storage medium and the equipment of Java web application Pending CN109375929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811400812.XA CN109375929A (en) 2018-11-22 2018-11-22 Installation kit generation method, device, storage medium and the equipment of Java web application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811400812.XA CN109375929A (en) 2018-11-22 2018-11-22 Installation kit generation method, device, storage medium and the equipment of Java web application

Publications (1)

Publication Number Publication Date
CN109375929A true CN109375929A (en) 2019-02-22

Family

ID=65377233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811400812.XA Pending CN109375929A (en) 2018-11-22 2018-11-22 Installation kit generation method, device, storage medium and the equipment of Java web application

Country Status (1)

Country Link
CN (1) CN109375929A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825429A (en) * 2019-11-13 2020-02-21 中孚安全技术有限公司 Web project packaging method and system
CN112148297A (en) * 2020-08-26 2020-12-29 广州市保伦电子有限公司 Intelligent server encryption and packaging method and device
CN114356439A (en) * 2021-12-21 2022-04-15 四川启睿克科技有限公司 Method for starting WEB application without installation in offline mode

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140188980A1 (en) * 2013-01-03 2014-07-03 Tapjoy, Inc. Completing mobile app conversions
CN104572237A (en) * 2015-01-19 2015-04-29 上海动联信息技术股份有限公司 Automatic quick generation system and method for UKey installation package
CN104881304A (en) * 2015-05-13 2015-09-02 小米科技有限责任公司 Resource downloading method and device
CN107450941A (en) * 2017-06-26 2017-12-08 深圳市小牛在线互联网信息咨询有限公司 Automatic packaging method, device, storage medium and computer equipment
CN107797806A (en) * 2016-08-29 2018-03-13 北京雪球信息科技有限公司 A kind of dispositions method of program
CN108847950A (en) * 2018-04-02 2018-11-20 重庆金融资产交易所有限责任公司 Electronic device, cloud system software automatic deployment method and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140188980A1 (en) * 2013-01-03 2014-07-03 Tapjoy, Inc. Completing mobile app conversions
CN104572237A (en) * 2015-01-19 2015-04-29 上海动联信息技术股份有限公司 Automatic quick generation system and method for UKey installation package
CN104881304A (en) * 2015-05-13 2015-09-02 小米科技有限责任公司 Resource downloading method and device
CN107797806A (en) * 2016-08-29 2018-03-13 北京雪球信息科技有限公司 A kind of dispositions method of program
CN107450941A (en) * 2017-06-26 2017-12-08 深圳市小牛在线互联网信息咨询有限公司 Automatic packaging method, device, storage medium and computer equipment
CN108847950A (en) * 2018-04-02 2018-11-20 重庆金融资产交易所有限责任公司 Electronic device, cloud system software automatic deployment method and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825429A (en) * 2019-11-13 2020-02-21 中孚安全技术有限公司 Web project packaging method and system
CN112148297A (en) * 2020-08-26 2020-12-29 广州市保伦电子有限公司 Intelligent server encryption and packaging method and device
CN114356439A (en) * 2021-12-21 2022-04-15 四川启睿克科技有限公司 Method for starting WEB application without installation in offline mode
CN114356439B (en) * 2021-12-21 2023-06-13 四川启睿克科技有限公司 Method for starting WEB application in offline installation-free manner

Similar Documents

Publication Publication Date Title
US8612947B2 (en) System and method for remotely compiling multi-platform native applications for mobile devices
US8448161B2 (en) Application tracking for application execution environment
US7930273B1 (en) Version management for application execution environment
US8375381B1 (en) Management user interface for application execution environment
US8694988B2 (en) Runtime extensions
US8402437B2 (en) System and method for updating initialization parameters for application software from within a software development environment
US8230417B1 (en) Combined application and execution environment install
CN109375929A (en) Installation kit generation method, device, storage medium and the equipment of Java web application
US20130167136A1 (en) Component-based installation
CN102981915B (en) A kind of inter-application communication method and device
CN106325847B (en) Method and device for acquiring application program function based on iOS platform
US20140040877A1 (en) Application execution and installation environment
JP5916002B2 (en) Software application distribution and launch system
Jadhav et al. Universal Mobile Application Development (UMAD) On Home Automation
CN102667717A (en) A method, apparatuses and a system for compilation
CN104156243A (en) Application distribution and rapid loading and running system and method
AU2013213683B2 (en) A method and system of application development for multiple device client platforms
KR20160040462A (en) Live tiles without application-code execution
CN111142884A (en) Applet version deployment method and device, electronic equipment and storage medium
CN105653448A (en) Application debugging method, application debugging device and terminal
CN112199567A (en) Distributed data acquisition method, system, server and storage medium
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
CN112115056B (en) Project deployment method and device, server and storage medium
JP2006244211A (en) Portable terminal device provided with ic card control function, and its program
CN112395096A (en) Remote function call processing method and device, electronic 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190222

RJ01 Rejection of invention patent application after publication