4. Groovy LDAP Building the software has been edited by Stefan Zoerner (Feb 16, 2009).

(View changes)

Content:

Building the software

Obtaining the source code

Source code of the proof of concept is currently available for review here :
http://svn.apache.org/repos/asf/directory/sandbox/szoerner/groovyldap

In order to check it out, simply type

D:\Apache>svn co http://svn.apache.org/repos/asf/directory/sandbox/szoerner/groovyldap
A    groovyldap\src
A    groovyldap\src\main
A    groovyldap\src\main\java
A    groovyldap\src\main\java\org
A    groovyldap\src\main\java\org\apache
...
Checked out revision 558335.

D:\Apache>_

Resolving the dependencies

Groovy LDAP needs Java 5 to compile. Besides this, it has only one dependency: Groovy itself. For LDAP communication, JNDI and its LDAP provider are used. These are part of the JDK since ages.

In order to build the software, Apache ant is used. For dependency resolution we use Ivy. You need to configure your ant tool to use Ivy. One option is to place the corresponding jar file ivy-1.4.1.jar (or later) in the lib folder of your ant distribution.

Building

Simply change to the groovyldap directory and type ant.

D:\Apache>cd groovyldap
D:\Apache\groovyldap>ant
Buildfile: build.xml

prepare:
    [mkdir] Created dir: D:\Apache\groovyldap\dist
    [mkdir] Created dir: D:\Apache\groovyldap\dist\classes
    [mkdir] Created dir: D:\Apache\groovyldap\lib

resolve:
[ivy:retrieve] :: Ivy 1.4.1 - 20061109165313 :: http://ivy.jayasoft.org/ ::

...

jarfile:
      [jar] Building jar: D:\Apache\groovyldap\dist\groovy-ldap.jar

BUILD SUCCESSFUL
Total time: 7 seconds
D:\Apache\groovyldap>_

Done.

The jarfile which includes the software, groovy-ldap.jar, is created in the dist directory. Feel free to call ant clean afterwards.

Powered by Atlassian Confluence (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request

Unsubscribe or edit your notifications preferences