org.freehep.maven.nar
Class Library

java.lang.Object
  extended by org.freehep.maven.nar.Library
All Implemented Interfaces:
Executable

public class Library
extends Object
implements Executable

Sets up a library to create

Version:
$Id: Library.java 13280 2007-09-04 23:36:51Z duns $
Author:
Mark Donszelmann

Field Summary
protected  List args
          Arguments to be used for running this executable.
static String EXECUTABLE
           
static String JNI
           
protected  boolean linkCPP
          Link with stdcpp if necessary Defaults to true.
protected  boolean linkFortran
          Link with fortran runtime if necessary Defaults to false.
protected  File narSystemDirectory
          The target directory into which to generate the output.
protected  String narSystemName
          Name of the NarSystem class
protected  String narSystemPackage
          If specified will create the NarSystem class with methods to load a JNI library.
static String NONE
           
static String PLUGIN
           
protected  boolean run
          When true and if type is "executable" run this executable.
static String SHARED
           
static String STATIC
           
protected  String type
          Type of the library to generate.
 
Constructor Summary
Library()
           
 
Method Summary
 List getArgs()
           
 File getNarSystemDirectory()
           
 String getNarSystemName()
           
 String getNarSystemPackage()
           
 String getType()
           
 boolean linkCPP()
           
 boolean linkFortran()
           
 boolean shouldRun()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATIC

public static final String STATIC
See Also:
Constant Field Values

SHARED

public static final String SHARED
See Also:
Constant Field Values

EXECUTABLE

public static final String EXECUTABLE
See Also:
Constant Field Values

JNI

public static final String JNI
See Also:
Constant Field Values

PLUGIN

public static final String PLUGIN
See Also:
Constant Field Values

NONE

public static final String NONE
See Also:
Constant Field Values

type

protected String type
Type of the library to generate. Possible choices are: "plugin", "shared", "static", "jni" or "executable". Defaults to "shared".


linkCPP

protected boolean linkCPP
Link with stdcpp if necessary Defaults to true.


linkFortran

protected boolean linkFortran
Link with fortran runtime if necessary Defaults to false.


narSystemPackage

protected String narSystemPackage
If specified will create the NarSystem class with methods to load a JNI library.


narSystemName

protected String narSystemName
Name of the NarSystem class


narSystemDirectory

protected File narSystemDirectory
The target directory into which to generate the output.


run

protected boolean run
When true and if type is "executable" run this executable. Defaults to false;


args

protected List args
Arguments to be used for running this executable. Defaults to empty list. This option is only used if run=true and type=executable.

Constructor Detail

Library

public Library()
Method Detail

getType

public String getType()

linkCPP

public boolean linkCPP()

linkFortran

public boolean linkFortran()

getNarSystemPackage

public String getNarSystemPackage()

shouldRun

public boolean shouldRun()
Specified by:
shouldRun in interface Executable

getArgs

public List getArgs()
Specified by:
getArgs in interface Executable

getNarSystemName

public String getNarSystemName()

getNarSystemDirectory

public File getNarSystemDirectory()


Copyright © 2000-2007 FreeHEP. All Rights Reserved.