com.threerings.jpkg.ant.dpkg.scripts.runner
Class EncodedScript

java.lang.Object
  extended by com.threerings.jpkg.ant.dpkg.scripts.runner.EncodedScript

public class EncodedScript
extends Object

A base64 encoded version of a PackageScript suitable for input to the uuencode command. This class is public as required by Velocity, and should not be considered part of the public API.


Constructor Summary
EncodedScript(PackageScript source, DpkgData data)
          Construct a new EncodedScript from the supplied PackageScript.
 
Method Summary
 boolean failOnError()
          Returns whether this scripts failure should be reported to the packaging system.
 String getEncodedSource()
          Returns the original script source base64 encoded.
 String getFriendlyName()
          Returns a human readable name for this script.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodedScript

public EncodedScript(PackageScript source,
                     DpkgData data)
              throws IOException
Construct a new EncodedScript from the supplied PackageScript.

Parameters:
source - The PackageScript to encode.
data - The DpkgData to pass to the script.
Throws:
IOException - If the encoding fails.
Method Detail

getFriendlyName

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

See Also:
PackageScript.getFriendlyName()

failOnError

public boolean failOnError()
Returns whether this scripts failure should be reported to the packaging system.

See Also:
PackageScript.failOnError()

getEncodedSource

public String getEncodedSource()
Returns the original script source base64 encoded.



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