com.threerings.jpkg.ant.dpkg.scripts.runner
Interface PackageScript

All Known Subinterfaces:
ValidationScript
All Known Implementing Classes:
AbstractTypeScript, BaseTemplateScript, HelloWorld, PostInst, PostRm, PreInst, PreRm, TemplateScript

public interface PackageScript

The generic representation of a Debian package maintainer script used in Ant tasks.


Method Summary
 boolean failOnError()
          Whether to report the failure of this script to the package system.
 String getFriendlyName()
          Returns a human readable name for this script.
 InputStream getSource(DpkgData data)
          Returns the script text source.
 Set<MaintainerScript.Type> getTypes()
          Returns the MaintainerScript.Type objects implemented by this script.
 

Method Detail

getFriendlyName

String getFriendlyName()
Returns a human readable name for this script.


getTypes

Set<MaintainerScript.Type> getTypes()
Returns the MaintainerScript.Type objects implemented by this script.


failOnError

boolean failOnError()
Whether to report the failure of this script to the package system. If true, then a failure in this script will fail the package installation or removal.


getSource

InputStream getSource(DpkgData data)
                      throws IOException
Returns the script text source.

Throws:
IOException


Copyright © 2007-2008 Three Rings Design, Inc. All Rights Reserved. Released under a BSD license.