net.sf.jpackit.util
Class JarScanner

java.lang.Object
  extended by net.sf.jpackit.notification.AbstractJPackitEventProducer
      extended by net.sf.jpackit.util.JarScanner
All Implemented Interfaces:
Constants, JPackitEventProducer

public class JarScanner
extends AbstractJPackitEventProducer
implements Constants

Jar scanner that searches jar for classes with main methods

Author:
Kamil K. Shamgunov

Field Summary
 
Fields inherited from interface net.sf.jpackit.Constants
JAR_LIBRARIES_PATH, KEY_BASE_DIR, KEY_BUILD_TYPE, KEY_DEFAULT_ARGS, KEY_DEPENDANT_JARS, KEY_ENC_TYPE, KEY_HASHER_TYPE, KEY_MAIN_CLASS, KEY_MAIN_JAR, KEY_PACKAGE_LOCATION, KEY_PACKAGE_NAME, KEY_PREDEF_ARGS, MANIFEST_DEFAULT_ARGS, MANIFEST_ENC_TYPE, MANIFEST_MAIN_CLASS, MANIFEST_PHASHER_TYPE, MANIFEST_PREDEF_ARGS, URL_JPACKIT_PROTOCOL
 
Constructor Summary
JarScanner(java.lang.String jarPath, java.util.List executables)
          Creates a new instance of JarScanner
 
Method Summary
 void process()
          Lists all executable classes that are included in given jar.
 
Methods inherited from class net.sf.jpackit.notification.AbstractJPackitEventProducer
addNotificationListener, cancelAction, fireActionInterrupted, fireErrorMessageChanged, fireErrorMessageChanged, fireProgressInfoChanged, fireProgressInfoChanged, fireStateChanged, fireStateChanged, isCancelled, removeNotificationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarScanner

public JarScanner(java.lang.String jarPath,
                  java.util.List executables)
Creates a new instance of JarScanner

Parameters:
jarPath - full path to jar file
executables - list that will be filled with full class names represented as strings
Method Detail

process

public void process()
             throws java.io.IOException
Lists all executable classes that are included in given jar. Class is executable if it contains correct "main" method

Throws:
java.io.IOException