Issue Details (XML | Word | Printable)

Key: IZPACK-365
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Kjell Braden
Reporter: Kjell Braden
Votes: 0
Watchers: 0
Operations

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

Allow compile-time variable substitution for <file> elements

Created: 06/Apr/09 08:45 AM   Updated: 08/Apr/09 09:07 AM   Resolved: 08/Apr/09 09:06 AM
Return to search
Component/s: Compiler
Affects Version/s: 3.11.0, 4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.3.0, 4.3.1, 4.4.0
Fix Version/s: 4.3.0

Time Tracking:
Original Estimate: 30 minutes
Original Estimate - 30 minutes
Remaining Estimate: 0 minutes
Remaining Estimate - 0 minutes
Time Spent: 20 minutes
Time Spent - 20 minutes Time Not Required

File Attachments: 1. Text File izpack-365.patch (2 kB)



 Description  « Hide

Another feature I'd like to see in IzPack is being able to use variables for adding files.

Example use case:

My project ships in multiple flavors, they all have a very similar design but each flavor need to include a, say, different database dump. Now I would not like to maintain multiple configuration files, but rather have a install-base.xml containing basicly everything (and a <singlefile src="${FLAVOR}.dump" ...>) and a install.xml which looks something like this:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<installation version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
	<xi:include href="install-base.xml" />

	<variables>
		<variable name="FLAVOR" value="foo" />
	</variables>
</installation>

Now I could create one of these small files for each flavor and adjust the variable, and every flavor would use the same configuration, but a different dump file.



Kjell Braden made changes - 06/Apr/09 08:46 AM
Field Original Value New Value
Time Spent 10 minutes [ 600 ]
Remaining Estimate 30 minutes [ 1800 ] 20 minutes [ 1200 ]
Kjell Braden logged work - 06/Apr/09 08:50 AM
Time Worked: 10 minutes
<No comment>
Kjell Braden made changes - 06/Apr/09 09:01 AM
Time Spent 10 minutes [ 600 ] 20 minutes [ 1200 ]
Remaining Estimate 20 minutes [ 1200 ] 0 minutes [ 0 ]
Kjell Braden made changes - 06/Apr/09 09:05 AM
Attachment izpack-365.patch [ 41167 ]
Kjell Braden made changes - 06/Apr/09 09:41 AM
Status Open [ 1 ] In Progress [ 3 ]
Kjell Braden made changes - 06/Apr/09 09:41 AM
Status In Progress [ 3 ] Open [ 1 ]
Kjell Braden logged work - 06/Apr/09 03:20 PM
Time Worked: 10 minutes
Initial implementation done, will do some testing now.
Kjell Braden made changes - 08/Apr/09 09:06 AM
Resolution Fixed [ 1 ]
Fix Version/s 4.3.0 [ 14763 ]
Status Open [ 1 ] Resolved [ 5 ]
Kjell Braden made changes - 08/Apr/09 09:07 AM
Status Resolved [ 5 ] Closed [ 6 ]