Daemon Platforms

Platforms

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:

  • aix-ppc-32
  • aix-ppc-64
  • linux-x86-32
  • macosx-x86-universal-32
  • solaris-x86-32
  • windows-x86-32

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>

Avaiable Platforms

Currently the following platforms are available:

  • aix-ppc-32
  • aix-ppc-64
  • hpux-parisc-64
  • linux-x86-32
  • linux-x86-64
  • linux-ppc-64
  • macosx-ppc-32
  • macosx-x86-universal-32
  • macosx-universal-32
  • macosx-universal-64
  • solaris-sparc-32
  • solaris-sparc-64
  • solaris-x86-32
  • windows-x86-32
  • windows-x86-64