Sometimes you might want to define the platforms for which your Java Service Wrapper (JSW) will run or not or in other words which platform you would like to support.
The default is defined by giving within the configuration via the platforms tag:
<platforms> <platform>jsw</platform> </platforms>
which will generate for the following platforms by default:
Furthermore its possible to define the platforms via the generatorConfigurations like this:
<generatorConfigurations> <generatorConfiguration> <generator>jsw</generator> <includes> <include>linux-x86-32</include> <include>linux-x86-64</include> <include>windows-x86-32</include> </includes> </generatorConfiguration> </generatorConfigurations>
To make things a little bit more clear you will in the following example a complete configuration part:
<project> ... <build> <plugins> <plugin> ... <configuration> <daemons> <daemon> <id>daemon-1</id> <mainClass>org.codehaus.mojo.appassembler.example.helloworld.HelloWorld</mainClass> <commandLineArguments> <commandLineArgument>argument_one</commandLineArgument> </commandLineArguments> <generatorConfigurations> <generatorConfiguration> <generator>jsw</generator> <includes> <include>linux-x86-32</include> <include>linux-x86-64</include> <include>windows-x86-32</include> </includes> </generatorConfiguration> </generatorConfigurations> <platforms> <platform>jsw</platform> </platforms> </daemon> </daemons> </configuration> </plugin> </plugins> </build> </project>
But in some circumstances it might be useful to change the set of supported platforms which can be achieved by using the following configuration. In this case we only support Linux x86 32 bit.
<project> ... <build> <plugins> <plugin> ... <configuration> <daemons> <daemon> <id>daemon-1</id> <mainClass>org.codehaus.mojo.appassembler.example.helloworld.HelloWorld</mainClass> <commandLineArguments> <commandLineArgument>argument_one</commandLineArgument> </commandLineArguments> <generatorConfigurations> <generatorConfiguration> <generator>jsw</generator> <includes> <include>linux-x86-32</include> </includes> </generatorConfiguration> </generatorConfigurations> <platforms> <platform>jsw</platform> </platforms> </daemon> </daemons> </configuration> </plugin> </plugins> </build> </project>
Currently the following platforms are available: