Makefile and build.bat removed since we've switched to ant
README moved up to parent
This commit is contained in:
@ -1,35 +0,0 @@
|
|||||||
# This makefile constructs the SAM Server i2psam.jar
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# jython compilation command
|
|
||||||
JYTHON_COMPILE=jython
|
|
||||||
|
|
||||||
# change this to wherever you put your i2p jars
|
|
||||||
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
|
|
||||||
JARLINKOPTIONS=--all
|
|
||||||
|
|
||||||
# uncomment this to enable '--addpackages' option, but this doesn't
|
|
||||||
# seem to work, so we don't use it.
|
|
||||||
#EXTRAPACKAGES=--addpackages net.i2p,net.i2p.client.mstreaming
|
|
||||||
|
|
||||||
jar: i2psam.jar
|
|
||||||
|
|
||||||
i2psam.jar: $(JYTHON_SOURCES) Makefile
|
|
||||||
CLASSPATH=$(CLASSPATH) \
|
|
||||||
$(JYTHON_COMPILE) \
|
|
||||||
--jar i2psam.jar \
|
|
||||||
$(JARLINKOPTIONS) \
|
|
||||||
$(EXTRAPACKAGES) \
|
|
||||||
$(JYTHON_SOURCES)
|
|
||||||
|
|
@ -1,57 +0,0 @@
|
|||||||
-----------------------------------
|
|
||||||
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
|
|
||||||
|
|
||||||
IMPORTANT - when installing jython, and run java on jython_n.n.class,
|
|
||||||
make sure you run the java.exe that's in your SDK, not the one in your
|
|
||||||
JRE.
|
|
||||||
|
|
||||||
---------------------------------------------------------
|
|
||||||
|
|
||||||
2) Preparation
|
|
||||||
|
|
||||||
Edit the Makefile, and set JYTHONJAR to where your jython.jar lives
|
|
||||||
|
|
||||||
Don't worry about this if your're on windows
|
|
||||||
|
|
||||||
----------------------------------------------------------
|
|
||||||
|
|
||||||
3) Building
|
|
||||||
|
|
||||||
To build i2psam.jar on regular *nix OSs, simply type 'make'.
|
|
||||||
|
|
||||||
To build i2psam.jar on Windows, type 'build.bat'
|
|
||||||
|
|
||||||
----------------------------------------------------------
|
|
||||||
|
|
||||||
4) Installing
|
|
||||||
|
|
||||||
Copy i2psam.jar to wherever the jar files live on your i2p installation,
|
|
||||||
usually <i2pbasedir>/lib
|
|
||||||
|
|
||||||
Find jython.jar, and copy it there too
|
|
||||||
|
|
||||||
----------------------------------------------------------
|
|
||||||
|
|
||||||
5) Running
|
|
||||||
|
|
||||||
(assuming that you're putting the start script into your main i2p
|
|
||||||
runtime directory, where the I2P jars live in a 'lib' subdirectory)
|
|
||||||
|
|
||||||
You will need to launch i2psam.jar with a command like:
|
|
||||||
|
|
||||||
java -cp lib/jython.jar:lib/i2p.jar:lib/mstreaming.jar:lib/i2psam.jar i2psam
|
|
||||||
|
|
||||||
or on windows,
|
|
||||||
|
|
||||||
java -cp lib\jython.jar;lib\i2p.jar;lib\mstreaming.jar;lib\i2psam.jar i2psam
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
@echo off
|
|
||||||
rem This makefile constructs the SAM Server i2psam.jar
|
|
||||||
rem Once you've built i2psam.jar, you'll need to copy it and
|
|
||||||
rem jython.jar into the main jars directory
|
|
||||||
|
|
||||||
@echo Ensuring i2p jars are built
|
|
||||||
cd ..\..\..\..
|
|
||||||
ant build
|
|
||||||
cd apps\sam\jython\build
|
|
||||||
|
|
||||||
@echo Building i2psam.jar
|
|
||||||
@echo on
|
|
||||||
set CLASSPATH=..\..\..\..\build\i2p.jar;..\..\..\..\build\mstreaming.jar
|
|
||||||
|
|
||||||
@echo Building i2psam.jar
|
|
||||||
jythonc --jar i2psam.jar ..\src\i2psam.py
|
|
Reference in New Issue
Block a user