Package com.barchart.udt.lib
Class PluginPropsUDT
java.lang.Object
com.barchart.udt.lib.PluginPropsUDT
maven-nar-plugin build-time properties which determine library name and path
conventions; AOL stands for "arch/os/linker"
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringsuffix for c++ compiler configured for platform inNAR_AOL_PROPERTIESfileprotected static final Stringsuffix for JNI library file extension as defined inNAR_AOL_PROPERTIESfileprotected static final Stringsuffix for dependency libraries as defined inNAR_AOL_PROPERTIESfileprotected static final Stringsuffix for shared library file prefix as defined inNAR_AOL_PROPERTIESfileprotected static final Stringmissing / invalid property value representationprotected static final org.slf4j.Loggerprotected static final StringNAR properties file; should be present in project root folder during build time for plug-in configuration and as a class path resource during run time for properties lookup.protected static final Stringcurrent architecture reported by JVMprotected static final Stringcurrent operating system reported by JVMprotected static final Propertiesproperties fromNAR_AOL_PROPERTIESfile -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondependency libraries specified inNAR_AOL_PROPERTIESfileprotected static Stringnar key prefix for current arch/os/linkprotected static StringcurrentNarKey(String suffix) full nar key built from arch/os/link prefix and the key suffixprotected static StringCPP compiler for the platformprotected static StringJNI extension for the platformprotected static Stringlist of dependencies for the platformprotected static Stringlibrary name prefix for the platformprotected static Stringnar aol path entry for current arch/os/linkcurrentReleaseLibraries(String coreName) list of release library paths expected to be resent for current platform; must be packaged in the jar; used during release deliverycurrentStagingLibraries(String coreName) list of staging library paths expected to be resent for current platform; must be located on test class path; used during NAR buildcurrentTestingLibraries(String coreName) list of testing library paths expected to be resent for current platform; must be located on test class path; used during CDT buildprotected static StringformatMainLibraryName(String coreName) make main library name withAOL_SHARED_PREFIXandAOL_JNI_EXTENSIONconventionprotected static StringformatMainReleasePath(String name) location of release main library and dependency libraries in release jarprotected static StringformatMainStagingPath(String coreName) location of staging main library on the test class pathprotected static StringformatMainTestingPath(String coreName) location of testing main library on the test class pathprotected static StringformatNarKey(String arch, String os, String link) NAR_AOL_PROPERTIESproperty key prefixprotected static StringformatNarPath(String arch, String os, String link) NAR_AOL_PROPERTIESaol path elementprotected static Stringlocation of dependency libraries on test class pathprotected static booleanis current platform defined inNAR_AOL_PROPERTIESfile?protected static StringnarARCH()map JVM arch name to NAR arch nameprotected static StringnarLINK()map JVM arch/os name to NAR tool chain nameprotected static StringnarOS()map JVM os name to NAR os nameprotected static Stringfind property entry in theNAR_AOL_PROPERTIESfile
-
Field Details
-
AOL_CPP_COMPILER
suffix for c++ compiler configured for platform inNAR_AOL_PROPERTIESfile- See Also:
-
AOL_JNI_EXTENSION
suffix for JNI library file extension as defined inNAR_AOL_PROPERTIESfile- See Also:
-
AOL_LINKER_DEPENDENCY
suffix for dependency libraries as defined inNAR_AOL_PROPERTIESfile- See Also:
-
AOL_SHARED_PREFIX
suffix for shared library file prefix as defined inNAR_AOL_PROPERTIESfile- See Also:
-
EMPTY_VALUE
missing / invalid property value representation- See Also:
-
log
protected static final org.slf4j.Logger log -
NAR_AOL_PROPERTIES
NAR properties file; should be present in project root folder during build time for plug-in configuration and as a class path resource during run time for properties lookup.- See Also:
-
OS_ARCH
current architecture reported by JVM -
OS_NAME
current operating system reported by JVM -
props
properties fromNAR_AOL_PROPERTIESfile
-
-
Constructor Details
-
PluginPropsUDT
public PluginPropsUDT()
-
-
Method Details
-
currentDependencyLibraries
dependency libraries specified inNAR_AOL_PROPERTIESfile -
currentNarKey
nar key prefix for current arch/os/link -
currentNarKey
full nar key built from arch/os/link prefix and the key suffix -
currentNarKeyCppCompiler
CPP compiler for the platform -
currentNarKeyJniExtension
JNI extension for the platform -
currentNarKeyLinkerDependency
list of dependencies for the platform -
currentNarPath
nar aol path entry for current arch/os/link -
currentReleaseLibraries
list of release library paths expected to be resent for current platform; must be packaged in the jar; used during release delivery -
currentStagingLibraries
list of staging library paths expected to be resent for current platform; must be located on test class path; used during NAR build -
currentTestingLibraries
list of testing library paths expected to be resent for current platform; must be located on test class path; used during CDT build -
formatMainLibraryName
make main library name withAOL_SHARED_PREFIXandAOL_JNI_EXTENSIONconvention -
formatMainReleasePath
location of release main library and dependency libraries in release jar -
formatMainStagingPath
location of staging main library on the test class path -
formatMainTestingPath
location of testing main library on the test class path -
formatNarKey
NAR_AOL_PROPERTIESproperty key prefix -
formatNarPath
NAR_AOL_PROPERTIESaol path element -
formatTestingDependencyPath
location of dependency libraries on test class path -
isSupportedPlatform
protected static boolean isSupportedPlatform()is current platform defined inNAR_AOL_PROPERTIESfile? -
narARCH
map JVM arch name to NAR arch name -
narLINK
map JVM arch/os name to NAR tool chain name -
narOS
map JVM os name to NAR os name -
property
find property entry in theNAR_AOL_PROPERTIESfile
-