Add package.html, code reformatting
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@368495 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
62c7704dff
commit
cc4590c47e
@ -26,24 +26,30 @@ import org.apache.bcel.classfile.JavaClass;
|
|||||||
* @author Kasper Nielsen
|
* @author Kasper Nielsen
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class JavaSourceTool {
|
public class JavaSourceTool
|
||||||
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses the java class file and returns an isntance of a Bcel Class
|
* Parses the java class file and returns an instance of a Bcel Class
|
||||||
*
|
*
|
||||||
* @param absoluteFileName the absolute file name to transform
|
* @param absoluteFileName the absolute file name to transform
|
||||||
* @return the Bcel Class.
|
* @return the Bcel Class.
|
||||||
* @throws IOException upon failure to read the java file
|
* @throws IOException upon failure to read the java file
|
||||||
*/
|
*/
|
||||||
public static final JavaClass getBcelClass(String absoluteFileName) throws IOException {
|
public static final JavaClass getBcelClass( String absoluteFileName )
|
||||||
try {
|
throws IOException
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
ClassParser parser = new ClassParser( absoluteFileName );
|
ClassParser parser = new ClassParser( absoluteFileName );
|
||||||
JavaClass clazz = parser.parse( );
|
JavaClass clazz = parser.parse( );
|
||||||
return clazz;
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
return clazz;
|
||||||
System.out.println("\nError parsing " + absoluteFileName + ": " + e + "\n");
|
}
|
||||||
|
catch ( Exception e )
|
||||||
|
{
|
||||||
|
System.out.println( "\nError parsing " + absoluteFileName + ": "
|
||||||
|
+ e + "\n" );
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
11
native/src/main/org/apache/maven/natives/util/package.html
Normal file
11
native/src/main/org/apache/maven/natives/util/package.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>org.apache.maven.natives.util</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<p>
|
||||||
|
Contains utility classes org.apache.maven.natives.util.
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user