net.sf.jpkgmk.pkgmap
Class PkgMapBuilder

java.lang.Object
  extended by net.sf.jpkgmk.pkgmap.PkgMapBuilder

public class PkgMapBuilder
extends java.lang.Object

Utility that helps creating a PkgMap file from a given prototype.

Since:
1.0
Version:
$Revision: 2 $ $Date: 2008-08-20 21:14:19 +0200 (Mi, 20 Aug 2008) $
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $

Constructor Summary
PkgMapBuilder(java.io.File targetDir, Prototype prototype)
          Setup a new instance of the builder that helps creating a pkgmap.
 
Method Summary
 java.io.File clean()
           
 java.io.File create()
          Creates all files to be included in the package by copying them from the original location to the new pkgdir given as targetDir in the constructor.
 java.io.File getFile()
           
 PkgMap getPkgMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PkgMapBuilder

public PkgMapBuilder(java.io.File targetDir,
                     Prototype prototype)
Setup a new instance of the builder that helps creating a pkgmap.

Parameters:
targetDir - The target directory in which all artifacts are created
prototype - The prototype that contains information about all artifacts to be included in the package
Method Detail

getPkgMap

public PkgMap getPkgMap()

getFile

public java.io.File getFile()

clean

public java.io.File clean()

create

public java.io.File create()
                    throws java.io.IOException
Creates all files to be included in the package by copying them from the original location to the new pkgdir given as targetDir in the constructor. Finally generates a pkgmap file.

Returns:
The pkgmap file reference
Throws:
java.io.IOException


Copyright © 2007-2008. All Rights Reserved.