org.nuiton.wikitty.publication.externalize
Class WikittyPublicationExternalize

java.lang.Object
  extended by org.nuiton.wikitty.publication.externalize.WikittyPublicationExternalize

public class WikittyPublicationExternalize
extends Object

Entry point for the main externalize functionality

Author:
mfortun

Field Summary
static String COMPILED_EXTENSION
           
static String DEFAULT_JAR_NAME
           
static String JAR_CLASSPATH_DIR
           
static String MIME_SUFFIX
           
static String SOURCE_EXTENSION
           
static String TEMPORARY_FILE_NAME
           
static String VERSION_SUFFIX
           
 
Method Summary
static void externalize(org.nuiton.util.ApplicationConfig conf)
          Externalize all the wikitty found on the wikitty service designed by the application config
static void externalize(org.nuiton.util.ApplicationConfig conf, Criteria crit)
          Externalize all the wikitty found(with the criteria) on the wikitty service designed by the application config
static void externalize(org.nuiton.util.ApplicationConfig conf, Criteria crit, File targetDir)
          Externalize all the wikitty found(with the criteria) on the wikitty service designed by the application config and put the result jar in the target dir
static File externalize(org.nuiton.util.ApplicationConfig conf, Criteria crit, File TargetDir, String jarName)
          Externalize all the wikitty found(with the criteria) on the wikitty service designed by the application config and put the result jar in the target dir with the specific name
protected static List<File> extractJarFromServiceForCompil(WikittyProxy prox)
           
static void main(String[] args)
          Externalize the current dir as if it was a wikitty service on file system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAR_CLASSPATH_DIR

public static String JAR_CLASSPATH_DIR

TEMPORARY_FILE_NAME

public static String TEMPORARY_FILE_NAME

DEFAULT_JAR_NAME

public static String DEFAULT_JAR_NAME

VERSION_SUFFIX

public static String VERSION_SUFFIX

MIME_SUFFIX

public static String MIME_SUFFIX

SOURCE_EXTENSION

public static String SOURCE_EXTENSION

COMPILED_EXTENSION

public static String COMPILED_EXTENSION
Method Detail

main

public static void main(String[] args)
                 throws org.nuiton.util.ArgumentsParserException,
                        IOException
Externalize the current dir as if it was a wikitty service on file system. Create the Jar in the current directory

Parameters:
args -
Throws:
org.nuiton.util.ArgumentsParserException
IOException

externalize

public static void externalize(org.nuiton.util.ApplicationConfig conf)
                        throws org.nuiton.util.ArgumentsParserException,
                               IOException
Externalize all the wikitty found on the wikitty service designed by the application config

Parameters:
conf - application config initialized to create a wikitty service
Throws:
org.nuiton.util.ArgumentsParserException
IOException

externalize

public static void externalize(org.nuiton.util.ApplicationConfig conf,
                               Criteria crit)
                        throws org.nuiton.util.ArgumentsParserException,
                               IOException
Externalize all the wikitty found(with the criteria) on the wikitty service designed by the application config

Parameters:
conf - application config initialized to create a wikitty service
crit - the criteria for the wikitty to externalize
Throws:
org.nuiton.util.ArgumentsParserException
IOException

externalize

public static void externalize(org.nuiton.util.ApplicationConfig conf,
                               Criteria crit,
                               File targetDir)
                        throws org.nuiton.util.ArgumentsParserException,
                               IOException
Externalize all the wikitty found(with the criteria) on the wikitty service designed by the application config and put the result jar in the target dir

Parameters:
conf - application config initialized to create a wikitty service
crit - the criteria for the wikitty to externalize
targetDir - where the jar will be create
Throws:
org.nuiton.util.ArgumentsParserException
IOException

externalize

public static File externalize(org.nuiton.util.ApplicationConfig conf,
                               Criteria crit,
                               File TargetDir,
                               String jarName)
                        throws org.nuiton.util.ArgumentsParserException,
                               IOException
Externalize all the wikitty found(with the criteria) on the wikitty service designed by the application config and put the result jar in the target dir with the specific name

Parameters:
conf - application config initialized to create a wikitty service
crit - the criteria for the wikitty to externalize
targetDir - where the jar will be create
jarName - the name for the jar
Returns:
the jar created
Throws:
org.nuiton.util.ArgumentsParserException
IOException

extractJarFromServiceForCompil

protected static List<File> extractJarFromServiceForCompil(WikittyProxy prox)


Copyright © 2010-2011 CodeLutin. All Rights Reserved.