org.ninjasoft.macpackager
Class MacPackager

java.lang.Object
  extended byorg.ninjasoft.macpackager.MacPackager

public class MacPackager
extends java.lang.Object

Ant task that will create a Mac OS X application bundle. This task expects a nested fileset of *.jar files Requires: jar files (in nested fileset) Version - Application version InfoString - Name, version, copyright information Icon file - *.icns file containing application icon(s) VM Options - Optional things to pass to the VM (name in app menu, shiny metal look, etc) mainclass - main class Derives: BundleIdentifier: from mainclass + version

Author:
Brian Enigma

Constructor Summary
MacPackager()
           
 
Method Summary
 void addJar(java.lang.String jar)
           
 void buildApplication()
           
 void setAppName(java.lang.String appName)
           
 void setIcon(java.lang.String icon)
           
 void setInfoString(java.lang.String infoString)
           
 void setMainClass(java.lang.String mainClass)
           
 void setVersion(java.lang.String version)
           
 void setVmOptions(java.lang.String vmOptions)
           
 void validate()
          Check that all of the required attributes have been set, source files exist, and required executables exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacPackager

public MacPackager()
Method Detail

buildApplication

public void buildApplication()
                      throws PackageException
Throws:
PackageException

validate

public void validate()
              throws PackageException
Check that all of the required attributes have been set, source files exist, and required executables exist.

Throws:
BuildException
PackageException

addJar

public void addJar(java.lang.String jar)

setIcon

public void setIcon(java.lang.String icon)

setInfoString

public void setInfoString(java.lang.String infoString)

setMainClass

public void setMainClass(java.lang.String mainClass)

setVersion

public void setVersion(java.lang.String version)

setVmOptions

public void setVmOptions(java.lang.String vmOptions)

setAppName

public void setAppName(java.lang.String appName)


Copyright © 2004 Ninjasoft. All Rights Reserved.