org.jdesktop.wonderland.common.modules.utils
Class ModuleJarWriter

java.lang.Object
  extended by org.jdesktop.wonderland.common.modules.utils.ModuleJarWriter

public class ModuleJarWriter
extends java.lang.Object

Write the elements of a module out to a jar file programatically.

Author:
Jordan Slott

Constructor Summary
ModuleJarWriter()
           
 
Method Summary
 void addArtFile(java.lang.String path, java.io.File file)
           
 void addDirectory(java.io.File dir)
          Add a directory and all it's children (recursively) to the module
 java.util.Map<java.lang.String,java.io.File> getArtFiles()
           
 ModuleInfo getModuleInfo()
           
 ModuleRepository getModuleRepository()
           
 ModuleRequires getModuleRequires()
           
static void main(java.lang.String[] args)
           
 void removeArtFile(java.lang.String path)
           
 void removeDirectory(java.io.File dir)
          Remove the directory and all it's children
 void setModuleInfo(ModuleInfo moduleInfo)
           
 void setModuleRepository(ModuleRepository moduleRepository)
           
 void setModuleRequires(ModuleRequires moduleRequires)
           
 void writeToJar(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleJarWriter

public ModuleJarWriter()
Method Detail

getModuleInfo

public ModuleInfo getModuleInfo()

setModuleInfo

public void setModuleInfo(ModuleInfo moduleInfo)

getModuleRepository

public ModuleRepository getModuleRepository()

setModuleRepository

public void setModuleRepository(ModuleRepository moduleRepository)

getModuleRequires

public ModuleRequires getModuleRequires()

setModuleRequires

public void setModuleRequires(ModuleRequires moduleRequires)

addArtFile

public void addArtFile(java.lang.String path,
                       java.io.File file)

getArtFiles

public java.util.Map<java.lang.String,java.io.File> getArtFiles()

addDirectory

public void addDirectory(java.io.File dir)
Add a directory and all it's children (recursively) to the module

Parameters:
dir -

removeDirectory

public void removeDirectory(java.io.File dir)
Remove the directory and all it's children

Parameters:
dir -

removeArtFile

public void removeArtFile(java.lang.String path)

writeToJar

public void writeToJar(java.io.File file)
                throws java.io.IOException,
                       javax.xml.bind.JAXBException
Throws:
java.io.IOException
javax.xml.bind.JAXBException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        javax.xml.bind.JAXBException
Throws:
java.io.IOException
javax.xml.bind.JAXBException


Open Wonderland - http://openwonderland.org