inline-java-0.9.1: Java interop via inline Java code in Haskell modules.
Safe HaskellNone
LanguageHaskell2010

Language.Java.Inline.Cabal

Description

This module contains Cabal Setup.hs hooks to set the CLASSPATH to use when compiling inline code. The CLASSPATH environment variable specifies where to find JVM package dependencies, such as third party packages downloaded from Maven Central.

You can set the CLASSPATH manually, or extract one from an external build system configuration. Currently supported build systems:

Synopsis

Documentation

gradleHooks :: UserHooks -> UserHooks Source #

Adds the prependClasspathWithGradle and gradleBuild hooks.

Also adds the jar produced by gradle to the data-files.

prependClasspathWithGradle :: Args -> b -> IO HookedBuildInfo Source #

Prepends the CLASSPATH with the classpath from a Gradle build configuration.

gradleBuild :: PackageDescription -> LocalBuildInfo -> UserHooks -> BuildFlags -> IO () Source #

Call gradle build as part of the Cabal build. Useful to e.g. build auxiliary Java source code and to create packages.

addJarsToClasspath :: [FilePath] -> UserHooks -> UserHooks Source #

Prepends the given jar paths to the CLASSPATH.