[postgis-devel] JDBC updates
strk at refractions.net
strk at refractions.net
Tue Jan 18 05:50:21 PST 2005
On Tue, Jan 18, 2005 at 02:43:22PM +0100, Markus Schaber wrote:
> Hello,
>
> Markus Schaber schrieb:
>
> > I attached my first alpha release of my PostGIS JDBC extension rework.
>
> If you try to build it, please notice that the Makefile is out of sync
> (I did not update it although I changed the file layout), and the ant
> script is not tested. (I use eclipse which automatically builds it.)
>
> For the next release, I'll fix the ant file, but I do not know whether
> we should drop the Makefile completely (for the JDBC part).
Here is how I fixed the Makefile, Note that SRC and EXAMPLES must
point in the correct directory.
diff -rU2 jdbc/Makefile jdbc-strk/Makefile
--- jdbc/Makefile Tue Oct 19 23:26:46 2004
+++ jdbc-strk/Makefile Tue Jan 18 14:47:15 2005
@@ -3,5 +3,7 @@
JAR = jar
#CLASSPATH = /home/pramsey/geotools/extbin/postgis/lib/postgresql.jar:
-CLASSPATH=$CLASSPATH:.:/usr/share/java/postgresql.jar
+CLASSPATH+=:src:/usr/share/java/postgresql.jar
+SRC=src
+EXAMPLES=../../examples
@@ -11,30 +13,30 @@
jar:
- $(JAR) -cf postgis.jar org/postgis/*.java org/postgis/*.class README
+ $(JAR) -cf postgis.jar /org/postgis/*.java org/postgis/*.class README
ogis:
$(JAVAC) -classpath $(CLASSPATH) \
- org/postgis/Geometry.java \
- org/postgis/Point.java \
- org/postgis/MultiPoint.java \
- org/postgis/LineString.java \
- org/postgis/MultiLineString.java \
- org/postgis/LinearRing.java \
- org/postgis/Polygon.java \
- org/postgis/MultiPolygon.java
+ $(SRC)/org/postgis/Geometry.java \
+ $(SRC)/org/postgis/Point.java \
+ $(SRC)/org/postgis/MultiPoint.java \
+ $(SRC)/org/postgis/LineString.java \
+ $(SRC)/org/postgis/MultiLineString.java \
+ $(SRC)/org/postgis/LinearRing.java \
+ $(SRC)/org/postgis/Polygon.java \
+ $(SRC)/org/postgis/MultiPolygon.java
pgobjs:
$(JAVAC) -classpath $(CLASSPATH) \
- org/postgis/PGgeometry.java \
- org/postgis/PGbox3d.java
+ $(SRC)/org/postgis/PGgeometry.java \
+ $(SRC)/org/postgis/PGbox3d.java
test:
- $(JAVAC) -classpath $(CLASSPATH) examples/Test.java
- $(JAVA) -classpath $(CLASSPATH) examples/Test
+ $(JAVAC) -classpath $(CLASSPATH) $(EXAMPLES)/Test.java
+ $(JAVA) -classpath $(CLASSPATH) $(EXAMPELS)/Test
jtest:
- $(JAVAC) -classpath $(CLASSPATH) examples/TestServer.java
- $(JAVA) -classpath $(CLASSPATH) examples/TestServer
+ $(JAVAC) -classpath $(CLASSPATH) $(EXAMPLES)/TestServer.java
+ $(JAVA) -classpath $(CLASSPATH) $(EXAMPLES)/TestServer
--strk;
>
> Markus
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
--
For standing up against patentability of software,
Thank You, Poland!
Read the intervention: http://kwiki.ffii.org/ConsPolon041221En
Send your thanks: thankyoupoland.info
Read/do more: http://www.noepatents.org/
More information about the postgis-devel
mailing list