Built-in Types

1.  JAR
2.  WAR
3.  EAR
4.  Libraries
5.  Global
6.  Project
7.  Test
8.  Future Types

NOTE: For more details, refer to the documentation automatically generated by the projectDocumentation dumper.

1. JAR

Description

The JAR component type compiles Java sources and packs them into a JAR file. 

A manifest file is created for the JAR file. It contains a Class-Path attribute with a list of JAR files that the created JAR depends on. The manifest also includes vendor name and version attributes.

The JAR type also supports defining a main Class for the created JAR file and specifying additional Class-Path dependencies.

A Javadoc documentation can be generated by the JAR type.

Main Targets

    init
    prepare
    compile
    compile.nodep
    pack
    pack.nodep
    clean
    clean.dep
    clean.classes
    clean.lib
    dist
    dist.nodep
    javadoc.nodep
    javadoc

Required Products

A product of the jar type.

Main Component Properties

Property

Default

product.dir

target/lib

jdk.version

1.3

javac.fork

false

manifest.additional.classpath

jar.main.class 

component.javadoc.required 

false

javadoc.maxmemory

32m

src.zip.required 

true

exclude 

false 

                                           

Main Project Properties

Property

Default

version

dist.dir

dist.product.dir

lib

vendor.name

Anonymous

 javac.executable.path.1.4 

javac

javac.executable.path.1.3 

javac    

        

Return to top

2. WAR

Description

Extends the JAR type. 

Creates a WAR file with the static and JSP files of a Web Application.  The WAR file also includes a JAR file of the compiled Java classes.

Copies static and JSP files of all components that the relevant component depends on.

Main Targets

All targets of the JAR type.

pack.war
pack.war.nodep
clean.war

Required Products

A product of the jar type.

A product of the war type.

Main Component Properties

Property

Default

All component properties of the JAR type.

jsp.files.flatten

true

war.without.jars

true

                                           

Main Project Properties

Property

Default

All project properties of the JAR type.

 

Return to top

3. EAR

Description

Packs multiple JAR, EJB (future) and WAR files in an EAR file while generating the application.xml descriptor file.

The packed files are the products of all components that the relevant component depends on.

A special dependencies JAR file is created and packed into the EAR file.

Main Targets

init
prepare
appxml.gen
create.dependencies.jar
pack.ear
pack.ear.nodep
pack
pack.nodep
clean
clean.dep
dist
dist.nodep

Main Component Properties

Property

Default

product.dir

target/lib

special.dependencies.jar

ProjectIntegration.jar

manifest.additional.classpath

                                           

Main Project Properties

Property

Default

version

dist.dir

dist.product.dir

lib

vendor.name

Anonymous

Return to top

4. Libraries

Description

A container of existing static external libraries (JAR, EAR, WAR, etc.).

Main Targets

init
copy.lib
dist

Required Products

Any kind of products.

Main Component Properties

Property

Default

exclude

false

dir.orig

lib

copy.required

false

Return to top

5. Global

Description

A type of a global component that all components depends on. 

Responsible for running Invicta and loading custom properties from files.

Main Targets

init
prepare
taskdefs
invicta
load.init
load.custom

Main Project Properties

Property

Default

invicta.dir

invicta.copy.required

false

invicta.should.run

true

invicta.additional.classpath

local.env.dir

remote.dir

remote.dir2

remote.dir3

documentation.enabled

false

documentation.dir

docs

dist.dir

6. Project

Description

A general project component type. Allows distributing project-scope files.

Main Targets

init
dist

Main Component Properties

Property

Default

dist.list

exclude

false

Main Project Properties

Property

Default

dist.dir

7. Test

Description

Extends the JAR type.

Runs JUnit test classes.

Main Targets

All targets of the JAR type.

test
test.specific

Main Component Properties

Property

Default

javadoc.required

false

test.type

Client

test

test

exclude

true

Main Project Properties

Property

Default

test.classpath.additional.component

test.classpath.additional.product

test.type.property

test.type

test.server.url.property

test.server.url

test.server.username.property

test.server.username

test.server.password.property

test.server.password

test.server.url

url

test.server.username

username

test.server.password

password

8. Future Types

Some more types are to be added to Invicta in the future.  You can read about them in the TODO List.

Return to top