eu.lindenbaum.maven
Class ErlangStdLayout

java.lang.Object
  extended by eu.lindenbaum.maven.ErlangStdLayout
All Implemented Interfaces:
SourceLayout

public class ErlangStdLayout
extends Object
implements SourceLayout

Implementation of the SourceLayout interface for projects with packaging type PackagingType.ERLANG_STD. Packaging type for Erlang/OTP applications with Erlang/OTP standard directory layout:

  BASE
    +-- doc/overview.edoc
    +-- ebin ([ARTIFACTID].app, [ARTIFACTID].appup)
    +-- include (*.hrl)
    +-- priv (*)
    +-- src (*.erl, private *.hrl)
    +-- mibs (*.mib)
    +-- test_include (*.hrl)
    +-- test_priv (*)
    +-- test_src (*.erl)
    +-- test (*.erl)
    +-- target (build artifacts)
    +-- pom.xml
 

Since:
2.1.0
Author:
Tobias Schlager

Constructor Summary
ErlangStdLayout(org.apache.maven.project.MavenProject project)
           
 
Method Summary
 File appFile()
          Returns the application resource file of an application project.
 File appupFile()
          Returns the application upgrade file of an application project.
 File base()
          Returns the base project directory.
 File ebin()
          Returns the directory where the application (upgrade) files reside.
 File include()
          Returns the directory where header files reside.
 File mibs()
          Returns the directory where MIB soruces reside.
 File overviewEdoc()
          Returns the path to the application overview file overview.edoc.
 File priv()
          Returns the directory where the private resources reside.
 File relFile()
          Returns the release file of a release project.
 File relupFile()
          Returns the release upgrade file of a release project.
 File src()
          Returns the directory where the erlang sources reside.
 File sysConfigFile()
          Returns the system configuration file of a release project.
 File testInclude()
          Returns the directory where erlang include files for tests reside.
 File testPriv()
          Returns the directory where private test resources reside.
 Collection<File> testSrcs()
          Returns the directory where the erlang test source files reside.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErlangStdLayout

public ErlangStdLayout(org.apache.maven.project.MavenProject project)
Method Detail

base

public File base()
Description copied from interface: SourceLayout
Returns the base project directory.

Specified by:
base in interface SourceLayout

ebin

public File ebin()
Description copied from interface: SourceLayout
Returns the directory where the application (upgrade) files reside.

Specified by:
ebin in interface SourceLayout

appFile

public File appFile()
Description copied from interface: SourceLayout
Returns the application resource file of an application project. The returned File is not guaranteed to exist.

Specified by:
appFile in interface SourceLayout

appupFile

public File appupFile()
Description copied from interface: SourceLayout
Returns the application upgrade file of an application project. The returned File is not guaranteed to exist.

Specified by:
appupFile in interface SourceLayout

include

public File include()
Description copied from interface: SourceLayout
Returns the directory where header files reside.

Specified by:
include in interface SourceLayout

priv

public File priv()
Description copied from interface: SourceLayout
Returns the directory where the private resources reside.

Specified by:
priv in interface SourceLayout

src

public File src()
Description copied from interface: SourceLayout
Returns the directory where the erlang sources reside.

Specified by:
src in interface SourceLayout

mibs

public File mibs()
Description copied from interface: SourceLayout
Returns the directory where MIB soruces reside.

Specified by:
mibs in interface SourceLayout

testInclude

public File testInclude()
Description copied from interface: SourceLayout
Returns the directory where erlang include files for tests reside.

Specified by:
testInclude in interface SourceLayout

testPriv

public File testPriv()
Description copied from interface: SourceLayout
Returns the directory where private test resources reside.

Specified by:
testPriv in interface SourceLayout

testSrcs

public Collection<File> testSrcs()
Description copied from interface: SourceLayout
Returns the directory where the erlang test source files reside.

Specified by:
testSrcs in interface SourceLayout

overviewEdoc

public File overviewEdoc()
Description copied from interface: SourceLayout
Returns the path to the application overview file overview.edoc.

Specified by:
overviewEdoc in interface SourceLayout

relFile

public File relFile()
Description copied from interface: SourceLayout
Returns the release file of a release project. The returned File is not guaranteed to exist.

Specified by:
relFile in interface SourceLayout

relupFile

public File relupFile()
Description copied from interface: SourceLayout
Returns the release upgrade file of a release project. The returned File is not guaranteed to exist.

Specified by:
relupFile in interface SourceLayout

sysConfigFile

public File sysConfigFile()
Description copied from interface: SourceLayout
Returns the system configuration file of a release project. The returned File is not guaranteed to exist.

Specified by:
sysConfigFile in interface SourceLayout


Copyright © 2012 Lindenbaum GmbH. All Rights Reserved.