Issue Details (XML | Word | Printable)

Key: IZPACK-84
Type: New Feature New Feature
Status: Closed Closed
Resolution: Incomplete
Priority: Minor Minor
Assignee: Julien Ponge
Reporter: J. Chris Folsom
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IzPack

Install Script Locator Framework

Created: 13/May/08 08:29 PM   Updated: 25/Sep/08 02:45 AM
Component/s: Installer
Affects Version/s: 3.11.0
Fix Version/s: 4.1.0

Time Tracking:
Not Specified

File Attachments: 1. Text File islpatch.txt (19 kB)


Patch Submitted: Yes


 Description  « Hide
This provides an Abstract Factory for a new concept designed to allow the Automated Installer to load an installation script from multiple locations. A local version has been provided that adds the additional behavior of attempting to load the installation script from the classpath in addition to loading it from a file. Since the LocalInstallScriptLocator will attempt to load from the File first, this will not change any existing behavior, but it will add the ability to load the installation script from the classpath if the file does not exist.

Support for downloading a automated install file from http and ftp are planned.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Julien Ponge added a comment - 14/May/08 11:49 AM
I don't really understand what is the benefit of this patch... can you please elaborate on that?

Thanks


J. Chris Folsom added a comment - 14/May/08 12:17 PM
Sure.

The idea was to be able to pull automated installation scripts (generated by the finish panel) from multiple locations when executing the AutomatedInstaller. Currently when the AutomatedInstaller runs, it will only attempt to load the XML installation script file from a file. We had a need to load the installation script from the class path so that it could be bundled inside the installer jar file.

Basically the idea was to create a "Universal Installer:" similar to the one used by Oracle, except that it would be automated. This requires the use of multiple install scripts for multiple applications/versions.

Example:

Creating a single jar to update multiple applications A,B, C, D, is easy using the pack selection mechanism, but previously it also required distributing multiple files:

the installer.jar
A.auto.xml
B.auto.xml
C.auto.xml
D.auto.xml
...etc.

The LocalInstallScriptLocator allows loading install scripts from the class path so that now instead of distributing multiple files, we can bundle all of the installation scripts inside of the installer jar and just distribute the jar file. This makes it much easier on the end-technician (or end-user).

This will not change any existing IZPack behaviour since it will still attempt to load from the file first and only check inside the jar file if the file does not exist.

I would also like to add functionality for downloading installation scripts via HTTP and FTP, but I wanted to know what API (commons http client, java.net, etc. ) you prefer for doing so.

Thanks,

Chris


Julien Ponge added a comment - 08/Jul/08 01:52 PM
I got it now

Ok for inclusion, but I would need:

  1. that you add a license notice at the top of new files (we have templates in the src/ folder of IzPack)
  2. documentation text for end-users (plain text will do if you don't want to patch the documentation which is using docutils.sf.net).

Thanks!


Julien Ponge added a comment - 07/Aug/08 05:07 AM
Any news?

J. Chris Folsom added a comment - 13/Aug/08 08:07 AM
Yeah sorry. As much as I want to, I don't think I am gong to be able to get this done anytime soon. If I get back to a point where I am working less than 100 hours a week, I'll have time to do it, otherwise, you'll have to assign it to someone else.