org.apache.maven.deb
Class ControlFile

java.lang.Object
  extended by org.apache.maven.deb.ControlFile

public final class ControlFile
extends java.lang.Object

This class builds the control file used by the debian archive. The getters only for use by the tests.

Version:
$Id: ControlFile.java,v 1.2 2003/09/22 21:25:54 trygvis Exp $
Author:
Trygve Laugst?l

Constructor Summary
ControlFile()
           
 
Method Summary
 void build()
          This function build the control file.
 java.lang.String getContents()
           
 java.lang.String getDebFileName()
           
 java.lang.String getErrors()
           
 java.lang.String getLicense()
           
 java.lang.String getSnapshot()
          Returns the snapshot signature.
 boolean isNonUs()
           
 void setArchitecture(java.lang.String architecture)
          Sets the package architecture.
 void setConflicts(java.lang.String conflicts)
          Sets the other packages this package conflicts with.
 void setDebFileName(java.lang.String debFileName)
          Sets the package file name.
 void setDepends(java.lang.String depends)
          Sets the dependencies of the package.
 void setEnhances(java.lang.String enhances)
          Sets the other packages this package enhances
 void setEssential(java.lang.String essential)
          Sets the essential flag.
 void setLicense(java.lang.String license)
          Sets the license of the package.
 void setMaintainer(java.lang.String maintainer)
          Sets the maintainer field.
 void setNonUs(boolean nonUs)
          Sets the non-us flag.
 void setPackageName(java.lang.String packageName)
          Sets the package name.
 void setPrepedends(java.lang.String predepends)
          Sets the pre dependent packages.
 void setPriority(java.lang.String priority)
          Sets the priority of this package.
 void setProject(org.apache.maven.project.Project project)
          Sets the POM of the project
 void setProvides(java.lang.String provides)
          Sets the packages this package provides.
 void setRecommends(java.lang.String recommends)
          Sets the other packages this package recommends.
 void setReplaces(java.lang.String replaces)
          Sets the packages this package replaces.
 void setSection(java.lang.String section)
          Sets the section this package goes in.
 void setSnapshot(java.lang.String snapshot)
          Sets the snapshot signature.
 void setSuggests(java.lang.String suggests)
          Sets the other packages this package suggests.
 void setVersion(java.lang.String version)
          Sets the package version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlFile

public ControlFile()
Method Detail

setPackageName

public void setPackageName(java.lang.String packageName)
Sets the package name.

Parameters:
packageName - The package name.

setVersion

public void setVersion(java.lang.String version)
Sets the package version.

Parameters:
version - The package version.

setSection

public void setSection(java.lang.String section)
Sets the section this package goes in.

Parameters:
section - The section name.

setPriority

public void setPriority(java.lang.String priority)
Sets the priority of this package.

Parameters:
priority - The priority of the package.

setArchitecture

public void setArchitecture(java.lang.String architecture)
Sets the package architecture.

Parameters:
architecture - The package architecture.

setEssential

public void setEssential(java.lang.String essential)
Sets the essential flag.

Parameters:
essential - The essential flag.

setDepends

public void setDepends(java.lang.String depends)
Sets the dependencies of the package.

Parameters:
depends - The dependencies.

setRecommends

public void setRecommends(java.lang.String recommends)
Sets the other packages this package recommends.

Parameters:
recommends - The recommenden packages.

setSuggests

public void setSuggests(java.lang.String suggests)
Sets the other packages this package suggests.

Parameters:
suggests - The suggested packages.

setEnhances

public void setEnhances(java.lang.String enhances)
Sets the other packages this package enhances

Parameters:
enhances - The packages this package enhances.

setPrepedends

public void setPrepedends(java.lang.String predepends)
Sets the pre dependent packages.

Parameters:
predepends - The predependent package names.

setConflicts

public void setConflicts(java.lang.String conflicts)
Sets the other packages this package conflicts with.

Parameters:
conflicts - The packages this package conflicts with.

setReplaces

public void setReplaces(java.lang.String replaces)
Sets the packages this package replaces.

Parameters:
replaces - The packages this package replaces.

setProvides

public void setProvides(java.lang.String provides)
Sets the packages this package provides.

Parameters:
provides - The packages this package provides.

setMaintainer

public void setMaintainer(java.lang.String maintainer)
Sets the maintainer field.

Parameters:
maintainer - The maintainer field.

setNonUs

public void setNonUs(boolean nonUs)
Sets the non-us flag.

Parameters:
nonUs - The non-us flag.

isNonUs

public boolean isNonUs()
Returns:
Returns the non-us flag.

setLicense

public void setLicense(java.lang.String license)
Sets the license of the package.

Parameters:
license - The license.

getLicense

public java.lang.String getLicense()
Returns:
Returns the license.

setProject

public void setProject(org.apache.maven.project.Project project)
Sets the POM of the project

Parameters:
project - The project.

setDebFileName

public void setDebFileName(java.lang.String debFileName)
Sets the package file name.

Parameters:
debFileName - The package file name.

getDebFileName

public java.lang.String getDebFileName()
Returns:
Returns the deb package file name.

setSnapshot

public void setSnapshot(java.lang.String snapshot)
Sets the snapshot signature. If null this package will be a release.

Parameters:
snapshot - The snapshot signature.

getSnapshot

public java.lang.String getSnapshot()
Returns the snapshot signature. Will return null if this package is a release.

Returns:
Returns the snapshot signature.

build

public void build()
This function build the control file. It will create sensible default values for all fields that are null.


getErrors

public java.lang.String getErrors()
Returns:
Returns a list of errors.

getContents

public java.lang.String getContents()
Returns:
Returns the content of the control file.


Copyright © 2003-2011 SourceForge. All Rights Reserved.