[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    RE: [postgis-users] SpatialEJB3: (PostGIS and Hibernate)
From:       "Norman Barker" <nbarker () ittvis ! com>
Date:       2007-01-30 16:54:58
Message-ID: B67A5FB7A8114B47A70517C9C0D102E8131D84 () bath ! uk ! rsinc ! com
[Download RAW message or body]

Hi Markus,

Here is an ANT script to help you on your way :-)  It is a simple
script, the only trick is excludes="org/postgresql/*" when building the
postgis.jar.

Dropping build.xml in postgis.xxx/java, and creating a subfolder called
lib containing the postgres driver jar files, then running 'ant' will
create the postgis jar file in the dist folder.

It is relatively easy to add the other source projects to the build file
by editing src.dir etc.

Norman

-----Original Message-----
From: postgis-users-bounces@postgis.refractions.net
[mailto:postgis-users-bounces@postgis.refractions.net] On Behalf Of
Markus Schaber
Sent: 29 January 2007 13:51
To: postgis-users@postgis.refractions.net
Subject: Re: [postgis-users] SpatialEJB3: (PostGIS and Hibernate)

Hi, Norman,

"Norman Barker" <nbarker@ittvis.com> wrote:

> I know the jars are built with a makefile at the moment, is it
possible
> to use an ant script for future releases, (I can provide a simple
one),
> it would perhaps solve some of these issues.

I was thinking about using ant instead of make several times now, but
abandoned it for the sake of binary package creators.

However, the pain caused by make is growing, and so it's likely that
the build will be changed to ant eventually.

Regards,
Markus

-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

["build.xml" (text/xml)]

<project name="PostGIS" default="dist" basedir=".">
    <property name="build.dir" value="bin"/>
    <property name="lib.dir" value="lib"/>
    <property name="src.jdbc.dir" value="jdbc/src"/>
    <property name="src.jdbc.stubs" value="jdbc/stubs"/>
    <property name="dist.dir" value="dist"/>

    <path id="class.path">
        <pathelement location="${build.dir}"/>
        <fileset dir="${lib.dir}" includes="*.jar"/>
    </path>

    <target name="clean" description="Removes all generated files">
        <delete dir="${build.dir}"/>
        <delete dir="${dist.dir}"/>
    </target>

    <target name="compile">
        <mkdir dir="${build.dir}"/>
        <javac destdir="${build.dir}" fork="true" classpathref="class.path" source="1.5" target="1.5">
            <src path="${src.jdbc.dir}"/>
            <src path="${src.jdbc.stubs}"/>
            <exclude name="examples/**"/>
            <exclude name="**/ejb/**"/>
        </javac>
        <copy todir="${build.dir}">
            <fileset dir="${src.jdbc.dir}" includes="**/*.properties"/>
        </copy>
    </target>
    
    <target name="dist" depends="clean, compile">
        <mkdir dir="${dist.dir}"/>
        <jar destfile="${dist.dir}/postgis.jar" basedir="${build.dir}" excludes="org/postgresql/*"/>
    </target>
</project>


_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic