Package org.hotswap.agent.distribution
Class PluginDocs
- java.lang.Object
-
- org.hotswap.agent.distribution.PluginDocs
-
public class PluginDocs extends Object
Generate plugin info and documentation into target/html. FIXME - if generated via maven, resources are inside JAR and generation fails with URI is not hierarchical exception need to resolve path inside JAR. Currently it can be launched from the IDE.
-
-
Field Summary
Fields Modifier and Type Field Description static StringTARGET_DIR
-
Constructor Summary
Constructors Constructor Description PluginDocs()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidassertDirExists(URL targetFile)Create all required directories in path for a filestatic StringgetBaseURL(Class clazz)From a class definition resolve base URL common for all files in a maven project (project base directory).static voidmain(String[] args)Generate the docs.voidscan()
-
-
-
Field Detail
-
TARGET_DIR
public static final String TARGET_DIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(String[] args)
Generate the docs.- Parameters:
args- no arguments necessary.
-
getBaseURL
public static String getBaseURL(Class clazz)
From a class definition resolve base URL common for all files in a maven project (project base directory).- Parameters:
clazz- class to use- Returns:
- base path (e.g. file:/J:/HotswapAgent/HibernatePlugin)
-
assertDirExists
public static void assertDirExists(URL targetFile)
Create all required directories in path for a file
-
-