Nuxeo Enterprise Platform 5.4

Class Archetype

java.lang.Object
  extended by Archetype

public class Archetype
extends java.lang.Object

Author:
Bogdan Stefanescu

Constructor Summary
Archetype()
           
 
Method Summary
static void copyToFile(java.io.InputStream in, java.io.File file)
           
static void deleteTree(java.io.File dir)
           
static void emptyDirectory(java.io.File dir)
           
static java.lang.String expandVars(java.lang.String expression, java.util.Map<?,?> properties)
           
static java.lang.String getShortName(java.lang.String name)
           
static void launch(java.lang.String[] args)
           
static org.w3c.dom.Document load(java.io.File file)
           
static org.w3c.dom.Document load(java.io.InputStream in)
           
static void main(java.lang.String[] args)
           
static void processArchetype(org.w3c.dom.Document doc, java.util.Map<java.lang.Object,java.lang.Object> vars)
           
static void processResources(org.w3c.dom.Element root, java.io.File dir, java.util.Map<java.lang.Object,java.lang.Object> vars)
           
static void processVars(org.w3c.dom.Element root, java.util.Map<java.lang.Object,java.lang.Object> vars)
           
static java.lang.String read(java.io.InputStream in)
           
static java.lang.String readFile(java.io.File file)
           
static java.lang.String readVar(java.lang.String key, java.lang.String value)
           
static void unzip(java.io.File zip, java.io.File dir)
           
static void unzip(java.util.zip.ZipInputStream in, java.io.File dir)
           
static java.io.File unzipArchetype(java.io.File zipFile)
           
static void writeFile(java.io.File file, byte[] buf)
           
static void writeFile(java.io.File file, java.lang.String buf)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Archetype

public Archetype()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

unzip

public static void unzip(java.io.File zip,
                         java.io.File dir)
                  throws java.io.IOException
Throws:
java.io.IOException

unzip

public static void unzip(java.util.zip.ZipInputStream in,
                         java.io.File dir)
                  throws java.io.IOException
Throws:
java.io.IOException

getShortName

public static java.lang.String getShortName(java.lang.String name)

expandVars

public static java.lang.String expandVars(java.lang.String expression,
                                          java.util.Map<?,?> properties)

readFile

public static java.lang.String readFile(java.io.File file)
                                 throws java.io.IOException
Throws:
java.io.IOException

read

public static java.lang.String read(java.io.InputStream in)
                             throws java.io.IOException
Throws:
java.io.IOException

copyToFile

public static void copyToFile(java.io.InputStream in,
                              java.io.File file)
                       throws java.io.IOException
Throws:
java.io.IOException

load

public static org.w3c.dom.Document load(java.io.File file)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

load

public static org.w3c.dom.Document load(java.io.InputStream in)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

processVars

public static void processVars(org.w3c.dom.Element root,
                               java.util.Map<java.lang.Object,java.lang.Object> vars)
                        throws java.lang.Exception
Throws:
java.lang.Exception

processResources

public static void processResources(org.w3c.dom.Element root,
                                    java.io.File dir,
                                    java.util.Map<java.lang.Object,java.lang.Object> vars)
                             throws java.lang.Exception
Throws:
java.lang.Exception

processArchetype

public static void processArchetype(org.w3c.dom.Document doc,
                                    java.util.Map<java.lang.Object,java.lang.Object> vars)
                             throws java.lang.Exception
Throws:
java.lang.Exception

readVar

public static java.lang.String readVar(java.lang.String key,
                                       java.lang.String value)
                                throws java.io.IOException
Throws:
java.io.IOException

unzipArchetype

public static java.io.File unzipArchetype(java.io.File zipFile)
                                   throws java.io.IOException
Throws:
java.io.IOException

deleteTree

public static void deleteTree(java.io.File dir)

emptyDirectory

public static void emptyDirectory(java.io.File dir)

writeFile

public static void writeFile(java.io.File file,
                             byte[] buf)
                      throws java.io.IOException
Throws:
java.io.IOException

writeFile

public static void writeFile(java.io.File file,
                             java.lang.String buf)
                      throws java.io.IOException
Throws:
java.io.IOException

launch

public static void launch(java.lang.String[] args)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.