Skip to content

Commit

Permalink
new installer version which uses the installed Java version in the OS
Browse files Browse the repository at this point in the history
  • Loading branch information
shahaal authored and shahaal committed Sep 2, 2019
1 parent 894764d commit 33b502e
Show file tree
Hide file tree
Showing 26 changed files with 1,673 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry combineaccessrules="false" kind="src" path="/HttpManager"/>
<classpathentry combineaccessrules="false" kind="src" path="/VersionManager"/>
<classpathentry combineaccessrules="false" kind="src" path="/ZipManager"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
23 changes: 23 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Installer_Win10_Internal</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
6 changes: 6 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
4 changes: 4 additions & 0 deletions .settings/org.eclipse.m2e.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
165 changes: 165 additions & 0 deletions LICENCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.


This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.

0. Additional Definitions.

As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.

A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".

The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.

The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

1. Exception to Section 3 of the GNU GPL.

You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.

2. Conveying Modified Versions.

If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:

a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or

b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.

3. Object Code Incorporating Material from Library Header Files.

The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the object code with a copy of the GNU GPL and this license
document.

4. Combined Works.

You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:

a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.

c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.

d) Do one of the following:

0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.

1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.

e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)

5. Combined Libraries.

You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:

a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.

b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.

6. Revised Versions of the GNU Lesser General Public License.

The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.

If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
24 changes: 24 additions & 0 deletions config/githubConfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>Github configuration</comment>

<entry key="Github.RepositoryName">catalogue-browser</entry> <!-- name of the repository you want to connect/download -->
<entry key="Github.RepositoryOwner">openefsa</entry> <!-- github username of who created the repository -->
<entry key="Application.JavaPath">.\jre1.8.0_221\bin\java.exe</entry> <!-- java path, use simply "java" without quotes to use the java installed in your machine (starts from the app folder!) -->

<entry key="Application.Keyword">onlyapp-win-64bit</entry> <!-- keyword which needs to be contained in the .zip filename for identifying the file to be downloaded from github -->

<entry key="Application.Folder">EFSA_Catalogue_browser_x64bit</entry> <!-- path of the main folder which contains all the application -->
<entry key="Application.ConfigFile">config\appConfig.xml</entry> <!-- configuration file of the real application (starting from the real application directory) -->
<entry key="Application.JarPath">app.jar</entry> <!-- path of the jar to execute after having checked the updates -->
<entry key="Application.IconFolder">icons</entry> <!-- folder of the application icons -->

<!-- List of properties which are entries in the real application configuration file (used to be consistent without having a copy of the information) -->
<entry key="Application.NameEntry">Application.Name</entry> <!-- entry of the configuration file which contains the application name -->
<entry key="Application.VersionEntry">Application.Version</entry> <!-- entry of the configuration file which contains the application version (used to check if version is the latest)-->
<entry key="Application.IconEntry">Application.Icon</entry> <!-- entry of the configuration file of the real app which contains the application icon -->

<!-- List of names used to avoid their removal while updating the new tool version -->
<entry key="Application.DatabaseFolder">Database</entry> <!-- folder in which there is the database of the application -->
</properties>
15 changes: 15 additions & 0 deletions config/proxyConfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>Proxy configuration</comment>
<entry key="Proxy.Mode">NO_PROXY</entry>
<!--
NO_PROXY to ignore any proxy setting,
AUTO to automatically detect the proxy (for Win10 internal user the AUTO proxy cannot be used because of the jna***.dll file blocked from the antivirus, use the MANUAL configuration instead!),
MANUAL to use below address and port as proxy setting
-->

<!-- MANUAL PROXY CONFIGURATION -->
<entry key="Proxy.ManualHostName">tmgproxy.efsa.eu.int</entry> <!-- hostname or ip of the proxy, example tmgproxy.efsa.eu.int or 192.168.1.1 -->
<entry key="Proxy.ManualPort">8080</entry> <!-- port of the proxy, example 8080 -->
</properties>
Binary file added doc/flow_general_installer.vsd
Binary file not shown.
Binary file added doc/flow_internal_installer.vsd
Binary file not shown.
24 changes: 24 additions & 0 deletions githubConfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>Github configuration</comment>

<entry key="Github.RepositoryName">catalogue-browser</entry> <!-- name of the repository you want to connect/download -->
<entry key="Github.RepositoryOwner">openefsa</entry> <!-- github username of who created the repository -->
<entry key="Application.JavaPath">.\jre1.8.0_221\bin\java.exe</entry> <!-- java path, use simply "java" without quotes to use the java installed in your machine (starts from the app folder!) -->

<entry key="Application.Keyword">onlyapp-win-64bit</entry> <!-- keyword which needs to be contained in the .zip filename for identifying the file to be downloaded from github -->

<entry key="Application.Folder">EFSA_Catalogue_browser_x64bit</entry> <!-- path of the main folder which contains all the application -->
<entry key="Application.ConfigFile">config\appConfig.xml</entry> <!-- configuration file of the real application (starting from the real application directory) -->
<entry key="Application.JarPath">app.jar</entry> <!-- path of the jar to execute after having checked the updates -->
<entry key="Application.IconFolder">icons</entry> <!-- folder of the application icons -->

<!-- List of properties which are entries in the real application configuration file (used to be consistent without having a copy of the information) -->
<entry key="Application.NameEntry">Application.Name</entry> <!-- entry of the configuration file which contains the application name -->
<entry key="Application.VersionEntry">Application.Version</entry> <!-- entry of the configuration file which contains the application version (used to check if version is the latest)-->
<entry key="Application.IconEntry">Application.Icon</entry> <!-- entry of the configuration file of the real app which contains the application icon -->

<!-- List of names used to avoid their removal while updating the new tool version -->
<entry key="Application.DatabaseFolder">Database</entry> <!-- folder in which there is the database of the application -->
</properties>
75 changes: 75 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>github-release-installer-master.zip_expanded</groupId>
<artifactId>github-release-installer-master.zip_expanded</artifactId>
<version>1.0.0</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>Cp1252</project.build.sourceEncoding>
</properties>

<build>

<sourceDirectory>src</sourceDirectory>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>main.InternalLauncherMain</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>version_manager</groupId>
<artifactId>VersionManager</artifactId>
<version>[1.0.0,)</version>
</dependency>
<dependency>
<groupId>HttpManager</groupId>
<artifactId>HttpManager</artifactId>
<version>[1.0.0,)</version>
</dependency>
<dependency>
<groupId>ZipManager</groupId>
<artifactId>ZipManager</artifactId>
<version>[1.0.0,)</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>[2.6,)</version>
</dependency>
<dependency>
<groupId>com.eclipsesource.minimal-json</groupId>
<artifactId>minimal-json</artifactId>
<version>[0.9.5,)</version>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit 33b502e

Please sign in to comment.