Skip to content

Overwrite external config options in pom.xml #48

@tofi86

Description

@tofi86

It would be great to have the following available in your plugin:

<configuration>
	<infile>${project.basedir}/src/build/launch4j-config.xml</infile>
	
	<versionInfo>
		<fileVersion>${my.version.number}.${my.build.number}</fileVersion>
		<txtFileVersion>${my.version.number}</txtFileVersion>
		<productVersion>${my.version.number}.${my.build.number}</productVersion>
		<txtProductVersion>${my.version.number}</txtProductVersion>
	</versionInfo>
</configuration>

so to be able to use an external config file but override several configuration options like version numbers, which are naturally handled within maven.

With the launch4j ant task, this is possible like this:

<launch4j
	jar="${out.dir}/my.jar"
	outfile="${out.dir}/my.exe"
	configFile="${build.dir}/launch4j/launch4j-config.xml"
	fileVersion="${program.version.number}"
	txtFileVersion="${program.version.txtNumber}"
	productVersion="${program.version.number}"
	txtProductVersion="${program.version.txtNumber}"
/>

Any chance to include this in a future version?

Thanks,
Tobias

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions