summaryrefslogtreecommitdiff
path: root/src/main/java/org/apache/maven/plugin/nar/Library.java
diff options
context:
space:
mode:
authorMark Donszelmann <Mark.Donszelmann@gmail.com>2009-10-06 14:44:29 +0200
committerMark Donszelmann <Mark.Donszelmann@gmail.com>2009-10-06 14:44:29 +0200
commit3dca89f0015613ab3f287945965e9f92a6079cd8 (patch)
treea00619a63c55b74c16ac8116d04b21f322e1747b /src/main/java/org/apache/maven/plugin/nar/Library.java
parent75b9fcffc6709f9c65990f6d04d593d3bfb4743d (diff)
downloadmaven-nar-plugin-3dca89f0015613ab3f287945965e9f92a6079cd8.tar.gz
maven-nar-plugin-3dca89f0015613ab3f287945965e9f92a6079cd8.tar.bz2
maven-nar-plugin-3dca89f0015613ab3f287945965e9f92a6079cd8.tar.xz
maven-nar-plugin-3dca89f0015613ab3f287945965e9f92a6079cd8.zip
Reformat all source files and add licenses to tests
Diffstat (limited to 'src/main/java/org/apache/maven/plugin/nar/Library.java')
-rw-r--r--src/main/java/org/apache/maven/plugin/nar/Library.java212
1 files changed, 112 insertions, 100 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/Library.java b/src/main/java/org/apache/maven/plugin/nar/Library.java
index 5026d4d..f5727f6 100644
--- a/src/main/java/org/apache/maven/plugin/nar/Library.java
+++ b/src/main/java/org/apache/maven/plugin/nar/Library.java
@@ -28,107 +28,119 @@ import java.util.List;
*
* @author Mark Donszelmann
*/
-public class Library implements Executable {
-
- public static final String STATIC = "static";
- public static final String SHARED = "shared";
- public static final String EXECUTABLE = "executable";
- public static final String JNI = "jni";
- public static final String PLUGIN = "plugin";
- public static final String NONE = "none"; // no library produced
-
- /**
- * Type of the library to generate. Possible choices are: "plugin",
- * "shared", "static", "jni" or "executable". Defaults to "shared".
- *
- * @parameter expression=""
- */
- protected String type = "shared";
-
- /**
- * Link with stdcpp if necessary Defaults to true.
- *
- * @parameter expression=""
- */
- protected boolean linkCPP = true;
-
- /**
- * Link with fortran runtime if necessary Defaults to false.
- *
- * @parameter expression=""
- */
- protected boolean linkFortran = false;
-
- /**
- * If specified will create the NarSystem class with methods
- * to load a JNI library.
- *
- * @parameter expression=""
- */
- protected String narSystemPackage = null;
-
- /**
- * Name of the NarSystem class
- *
- * @parameter expression="NarSystem"
- * @required
- */
- protected String narSystemName = "NarSystem";
-
- /**
- * The target directory into which to generate the output.
- *
- * @parameter expression="${project.build.dir}/nar/nar-generated"
- * @required
- */
- protected File narSystemDirectory = new File("target/nar/nar-generated");
-
- /**
- * When true and if type is "executable" run this executable.
- * Defaults to false;
- *
- * @parameter expression=""
- */
- protected boolean run=false;
-
- /**
- * Arguments to be used for running this executable.
- * Defaults to empty list. This option is
- * only used if run=true and type=executable.
- *
- * @parameter expression=""
- */
- protected List/*<String>*/ args = new ArrayList();
-
- public String getType() {
- return type;
- }
-
- public boolean linkCPP() {
- return linkCPP;
- }
-
- public boolean linkFortran() {
- return linkFortran;
- }
-
- public String getNarSystemPackage() {
- return narSystemPackage;
- }
-
- public boolean shouldRun() {
- return run;
- }
-
- public List/*<String>*/ getArgs() {
- return args;
+public class Library
+ implements Executable
+{
+
+ public static final String STATIC = "static";
+
+ public static final String SHARED = "shared";
+
+ public static final String EXECUTABLE = "executable";
+
+ public static final String JNI = "jni";
+
+ public static final String PLUGIN = "plugin";
+
+ public static final String NONE = "none"; // no library produced
+
+ /**
+ * Type of the library to generate. Possible choices are: "plugin", "shared", "static", "jni" or "executable".
+ * Defaults to "shared".
+ *
+ * @parameter expression=""
+ */
+ protected String type = "shared";
+
+ /**
+ * Link with stdcpp if necessary Defaults to true.
+ *
+ * @parameter expression=""
+ */
+ protected boolean linkCPP = true;
+
+ /**
+ * Link with fortran runtime if necessary Defaults to false.
+ *
+ * @parameter expression=""
+ */
+ protected boolean linkFortran = false;
+
+ /**
+ * If specified will create the NarSystem class with methods to load a JNI library.
+ *
+ * @parameter expression=""
+ */
+ protected String narSystemPackage = null;
+
+ /**
+ * Name of the NarSystem class
+ *
+ * @parameter expression="NarSystem"
+ * @required
+ */
+ protected String narSystemName = "NarSystem";
+
+ /**
+ * The target directory into which to generate the output.
+ *
+ * @parameter expression="${project.build.dir}/nar/nar-generated"
+ * @required
+ */
+ protected File narSystemDirectory = new File( "target/nar/nar-generated" );
+
+ /**
+ * When true and if type is "executable" run this executable. Defaults to false;
+ *
+ * @parameter expression=""
+ */
+ protected boolean run = false;
+
+ /**
+ * Arguments to be used for running this executable. Defaults to empty list. This option is only used if run=true
+ * and type=executable.
+ *
+ * @parameter expression=""
+ */
+ protected List/* <String> */args = new ArrayList();
+
+ public String getType()
+ {
+ return type;
+ }
+
+ public boolean linkCPP()
+ {
+ return linkCPP;
}
- public String getNarSystemName() {
- return narSystemName;
- }
+ public boolean linkFortran()
+ {
+ return linkFortran;
+ }
- public File getNarSystemDirectory() {
- return narSystemDirectory;
- }
+ public String getNarSystemPackage()
+ {
+ return narSystemPackage;
+ }
+
+ public boolean shouldRun()
+ {
+ return run;
+ }
+
+ public List/* <String> */getArgs()
+ {
+ return args;
+ }
+
+ public String getNarSystemName()
+ {
+ return narSystemName;
+ }
+
+ public File getNarSystemDirectory()
+ {
+ return narSystemDirectory;
+ }
}