10
Development tools cvs, tkdiff, JBuilder, building GATE from the sources

Development tools cvs, tkdiff, JBuilder, building GATE from the sources

Embed Size (px)

Citation preview

Page 1: Development tools cvs, tkdiff, JBuilder, building GATE from the sources

Development tools

cvs, tkdiff, JBuilder,building GATE from the sources

Page 2: Development tools cvs, tkdiff, JBuilder, building GATE from the sources

2(10)

Windows setup

• Choose an apps directory (usually c:\apps or d:\apps)• Map it as W:\ (subst w: c:\apps)• Install all apps in w:\ or c:\Program Files

– Java 1.x.y goes into w:\jdk\j2sdk1.x.y

– JBuilder goes into w:\JBuilder

• Choose a work directory (e.g. c:\john\work)• Mount it as Z:\ (subst z: c:\john\work)

– All project directories go in z:\

(e.g. z:\gate, z:\sale, etc)

Page 3: Development tools cvs, tkdiff, JBuilder, building GATE from the sources

3(10)

http://redmires.dcs.shef.ac.uk

Page 4: Development tools cvs, tkdiff, JBuilder, building GATE from the sources

4(10)

Cygwin – www.cygwin.com

• cgygwil.dll – a Linux implementation for Win32 platform

• Contains most popular tools available for Linux

• Mount all partitions as Unix (i.e. do not convert new line characters)

• Make sure you install– make, autoconf, cvs.

Page 5: Development tools cvs, tkdiff, JBuilder, building GATE from the sources

5(10)

cvs – Concurrent Versions System

• Set a variable in your environment:CVSROOT=

:pserver:[email protected]:/share/nlp/src/CVS_Repository

• Get a local copy of a project (e.g. GATE):> cd z:/

> cvs co gate

Page 6: Development tools cvs, tkdiff, JBuilder, building GATE from the sources

6(10)

cvs - more• Update an existing local copy (get other people’s

changes):> cd z:/gate

> cvs update -dP

• Save your changes:Update first!

Fix any conflicts!

> cvs ci –m “message describing the changes”

• Get details on changes for a file (directory)> cvs log [file]

• Read the cvs documentation on http://redmires

Page 7: Development tools cvs, tkdiff, JBuilder, building GATE from the sources

7(10)

tkdiff – a Visual diff• Get from http://www.accurev.com/free/tkdiff/index.htm

• Copy tkdiff.tcl somewhere (e.g. w:\tkdiff\tkdiff.tcl)

• Make a script called tkdiff in a directory in your path containing:

#!/bin/sh

wish /cygdrive/w/tkdiff/tkdiff.tcl $* &

• Usage:– tkdiff fileA fileB– tkdiff file– tkdiff –r 1.12 file– tkdiff –r 1.12 –r 1.11 file

Page 8: Development tools cvs, tkdiff, JBuilder, building GATE from the sources

8(10)

Page 9: Development tools cvs, tkdiff, JBuilder, building GATE from the sources

9(10)

Borland JBuilder

• Set editing options as in “Team Conventions”:– Convert leading tabs to spaces– Use 2 spaces indents

• Use UTF-8 as the encoding

• Use Unix new lines

Page 10: Development tools cvs, tkdiff, JBuilder, building GATE from the sources

10(10)

Putting all together - building GATE• check out gate from cvs• configure the make script

> cd gate/build> ./configure

• make the dependencies> make depend

• compile the classes> make

• make the jar> make jar

• try it!> make run