Holger's
Java API

com.antelmann
Class AntManifestTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.antelmann.AntManifestTask
All Implemented Interfaces:
ThirdParty

public class AntManifestTask
extends org.apache.tools.ant.Task
implements ThirdParty

creates a manifest file for an ant Task. Values are prefilled with info from this package's Version class. At a minimum, the the manifestFile has to be set. This class requires the package org.apache.tools.ant to be found in your classpath (usually, the ant.jar file will do in your classpath). See http://jakarta.apache.org/ant/ for details.

Author:
Holger Antelmann
See Also:
Version

Field Summary
protected  String classpath
           
protected  String implementationTitle
           
protected  String implementationVendor
           
protected  String implementationVendorURL
           
protected  String implementationVersion
           
protected  String mainclass
          preconfigured with com.antelmann.Main
protected  MyFile manifestFile
           
protected  String name
           
protected  boolean sealed
           
protected  String specificationTitle
           
protected  String specificationVendor
           
protected  String specificationVersion
           
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
AntManifestTask()
           
 
Method Summary
 String createContent()
           
 void execute()
          writes the defined content into the specified manifest file
 void setClassPath(String path)
          takes a space separated list of jar files and/or directories, null by default
 void setImplementationTitle(String title)
           
 void setImplementationVendor(String vendor)
           
 void setImplementationVendorURL(String url)
           
 void setImplementationVersion(String version)
           
 void setMainClass(String mainclass)
           
 void setManifestFile(String fileName)
           
 void setName(String name)
           
 void setSealed(boolean sealed)
           
 void setSpecificationTitle(String title)
           
 void setSpecificationVendor(String vendor)
           
 void setSpecificationVersion(String version)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manifestFile

protected MyFile manifestFile

mainclass

protected String mainclass
preconfigured with com.antelmann.Main


classpath

protected String classpath

name

protected String name

sealed

protected boolean sealed

specificationTitle

protected String specificationTitle

specificationVersion

protected String specificationVersion

specificationVendor

protected String specificationVendor

implementationTitle

protected String implementationTitle

implementationVersion

protected String implementationVersion

implementationVendor

protected String implementationVendor

implementationVendorURL

protected String implementationVendorURL
Constructor Detail

AntManifestTask

public AntManifestTask()
Method Detail

createContent

public String createContent()

setManifestFile

public void setManifestFile(String fileName)

setMainClass

public void setMainClass(String mainclass)

setSealed

public void setSealed(boolean sealed)

setName

public void setName(String name)

setSpecificationTitle

public void setSpecificationTitle(String title)

setSpecificationVersion

public void setSpecificationVersion(String version)

setSpecificationVendor

public void setSpecificationVendor(String vendor)

setImplementationTitle

public void setImplementationTitle(String title)

setImplementationVersion

public void setImplementationVersion(String version)

setImplementationVendor

public void setImplementationVendor(String vendor)

setImplementationVendorURL

public void setImplementationVendorURL(String url)

setClassPath

public void setClassPath(String path)
takes a space separated list of jar files and/or directories, null by default


execute

public void execute()
             throws org.apache.tools.ant.BuildException
writes the defined content into the specified manifest file

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException


(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads