Corrected Makefile:

- removed relative path for jython.jar, replaced with a def
   which developer must edit

Added README
 - overviews the i2psam.jar building process

Added build.bat
 - an attempt at a build script which might work on Windows, for people
   who don't have 'make' installed
This commit is contained in:
aum
2004-04-11 07:21:28 +00:00
committed by zzz
parent a72e479e50
commit 22916c1904
3 changed files with 43 additions and 1 deletions

View File

@@ -3,6 +3,9 @@
# by default, it gets linked into a standalone .jar file, together
# with the I2P core classes, and the jython classes
# set this to wherever your jython.jar lives
JYTHONJAR=/usr/share/jython/jython.jar
# sources
JYTHON_SOURCES=../src/i2psam.py
@@ -10,7 +13,7 @@ JYTHON_SOURCES=../src/i2psam.py
JYTHON_COMPILE=jython
# change this to wherever you put your i2p jars
CLASSPATH=../../../../build/i2p.jar:../../../../build/mstreaming.jar:../../../jython/lib/jython.jar
CLASSPATH=../../../../build/i2p.jar:../../../../build/mstreaming.jar:$(JYTHONJAR)
# comment this out to prevent the kitchen sink (i2p code, jython code etc)
# from being linked into jar. Uncomment it to create a standalone .jar
@@ -29,3 +32,4 @@ i2psam.jar: $(JYTHON_SOURCES) Makefile
$(JARLINKOPTIONS) \
$(EXTRAPACKAGES) \
$(JYTHON_SOURCES)

View File

@@ -0,0 +1,27 @@
-----------------------------------
Instructions for building i2psam.jar
------------------------------------
1) Requirements
You will need:
- a decent java sdk, eg Sun J2SDK 1.4.2 or later
- jython - www.jython.org
Note that you don't need python to build the SAM server
2) Preparation
Edit the Makefile, and set JYTHONJAR to where your jython.jar lives
Or, if on windows, edit build.bat and set the first field of CLASSPATH
to where jython.jar lives
3) Building
To build i2psam.jar, simply type 'make'.
or if on Windows, type 'build.bat'
4) Installing
Copy i2psam.jar to wherever the jar files live on your i2p installation

View File

@@ -0,0 +1,11 @@
@echo off
rem This makefile constructs the SAM Server i2psam.jar
rem by default, it gets linked into a standalone .jar file, together
rem with the I2P core classes, and the jython classes
CLASSPATH=\path\to\my\jython.jar;..\..\..\..\build\i2p.jar;..\..\..\..\build\mstreaming.jar
@echo Building i2psam.jar
jythonc --jar i2psam.jar --all ..\src\i2psam.py