Project

General

Profile

1 3066 perry
Building Metacat from cvs on Windows XP
2
Matthew Perry
3
10/24/2006
4
5
Note: This is not intended to be a complete, step-by-step tutorial but rather a general overview of the process along with some specific "gotchas" that I encountered along the way.
6
7
===============
8
9
Download and Install via the standard windows installers:
10
  Postgresql 8.1
11
  Java 1.5 JDK
12
  TortiseCVS
13
14
Download Tomacat5.5 windows installer and install to C:\tomcat5 (or another directory w/out spaces)
15
16
Download ant 1.6.5-bin and extract to C:\ant
17
18
Set environment variables (ctl panel > System > Advanced > Environment Variables).
19
 ANT_HOME => C:\ant
20
 JAVA_HOME => C:\Program_Files\jdk1.5.0_09
21
 PATH => { THE EXISTING PATH };C:\Program_Files\jdk1.5.0_09\bin;C:\ant\bin;C:\Program Files\TortoiseCVS
22
 CVS_RSH => C:\Program Files\TortoiseCVS\TortoisePlink
23
24
Use pgadmin to
25
* Create a new user named 'metacat'
26
* Create a new database named 'metacat', owned by user 'metacat',  with UTF8 Encoding
27
28
Download the cvs version of metacat
29
    cd c:\worskpace
30
    cvs -d:ext:{ USER }@cvs.ecoinformatics.org:/cvs co metacat
31
    cvs -d:ext:{ USER }@cvs.ecoinformatics.org:/cvs co utilities
32
    cd metacat
33
34
Adjust build.properties
35
  # Tomcat Properties
36
  tomcat=C:/tomcat5
37
  deploy.dir=C:/tomcat5/webapps
38
39
  # Server Properties
40
  config.hostname=localhost
41
  config.port=8080
42
43
  # Metacat database user and password and location of file stores
44
  user=metacat
45 3067 perry
  password=metacatpass
46 3066 perry
  datafilepath=C:/workspace/metacat-data
47
  inlinedatafilepath=C:/workspace/metacat-inline-data
48
49
  # give username for CVS access to retrieve latest EML
50
  cvsroot=:ext:perry@cvs.ecoinformatics.org:/cvs
51
52
Run
53
  ant clean install
54
55
Create tables
56
  "C:\Program Files\PostgreSQL\8.1\bin\psql.exe" -U metacat -W -h localhost -f build/src/xmltables-postgres.sql metacat
57
58
Register schemas with metacat db
59
  ant register-schemas
60
61
If all went well, you should be able to point your browser to http://localhost:8080/knb and see the default metacat skin
62
63
64