[open-ils-commits] r7754 - trunk/Open-ILS/src/java
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 30 15:19:01 EDT 2007
Author: erickson
Date: 2007-08-30 15:12:58 -0400 (Thu, 30 Aug 2007)
New Revision: 7754
Modified:
trunk/Open-ILS/src/java/Makefile
Log:
upated to reflect some changes in the opensrf layout. this makefile is still dependent on how local repos are layed out. it is not a complete makefile
Modified: trunk/Open-ILS/src/java/Makefile
===================================================================
--- trunk/Open-ILS/src/java/Makefile 2007-08-30 19:11:05 UTC (rev 7753)
+++ trunk/Open-ILS/src/java/Makefile 2007-08-30 19:12:58 UTC (rev 7754)
@@ -1,18 +1,25 @@
JAVA_LIBDIR = .lib
JAVAC = javac -J-Xmx256m
JAVA = java -Xmx256m
-OSRF_HOME = ../../../OpenSRF/src/java
-OSRF_JAVA = $(OSRF_HOME)/.lib
+OSRF_HOME = ../../../../../OpenSRF/trunk/src/java
+OSRF_JAVA = $(OSRF_HOME)/opensrf.jar
EXT = $(OSRF_HOME)/ext
JAVA_LIBS = .:$(JAVA_LIBDIR):$(OSRF_JAVA):$(EXT)/json-jdk1.5-2007-05-01.jar:$(EXT)/wstx-lgpl-3.2.1.jar:$(EXT)/stax-api-1.0.1.jar:$(EXT)/java_memcached-release_1.5.1.jar
JAVA_SRC = \
+ org/open_ils/*.java\
org/open_ils/idl/*.java\
org/open_ils/test/*.java
-all:
+all: jar
+
+jar:
mkdir -p $(JAVA_LIBDIR)
$(JAVAC) -d $(JAVA_LIBDIR) -cp $(JAVA_LIBS) $(JAVA_SRC) 2>&1
+ rm -f openils.jar
+ echo "creating openils.jar"
+ jar cf openils.jar -C .lib org
+
# only prints the first 30 lines of errors
slim:
mkdir -p $(JAVA_LIBDIR)
@@ -25,7 +32,7 @@
@echo -e "\nTruncating at 30 lines"
run:
- @$(JAVA) -cp $(JAVA_LIBS) $(JAVA_EXE) $(JAVA_ARGS)
+ @$(JAVA) -cp $(JAVA_LIBS):openils.jar $(JAVA_EXE) $(JAVA_ARGS)
deps:
mkdir -p ext
More information about the open-ils-commits
mailing list