File: build.xml

package info (click to toggle)
postgis 2.1.4%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 35,424 kB
  • ctags: 8,886
  • sloc: sql: 113,491; ansic: 97,254; xml: 41,127; sh: 11,925; java: 5,662; perl: 3,113; makefile: 2,265; python: 1,198; yacc: 438; lex: 114
file content (71 lines) | stat: -rw-r--r-- 2,813 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!--
 * build file
 * 
 * PostGIS extension for PostgreSQL JDBC driver - EJB3 Support
 * 
 * (C) 2006  Norman Barker <norman.barker@gmail.com>
 * 
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 2.1 of the License.
 * 
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library; if not, write to the Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or visit the web at
 * http://www.gnu.org.
 * 
 * $Id: build.xml 9324 2012-02-27 22:08:12Z pramsey $
 -->
<project name="PostGIS EJB3 Tutorial" default="compile" basedir=".">
    <property name="build.dir" value="bin"/>
    <property name="lib.dir" value="lib"/>
    <property name="src.dir" value="src"/>
    <property name="dist.dir" value="dist"/>
    <property name="jboss.home" value="C:/jboss-4.0.4.GA"/>
    <property name="jbossconf" value="jboss"/>

    <path id="class.path">
        <pathelement location="${build.dir}"/>
        <fileset dir="${lib.dir}" includes="*.jar"/>
        <fileset dir="${jboss.home}/client">
            <include name="*.jar"/>
        </fileset>
        <fileset dir="${jboss.home}/server/default/lib" includes="hibernate3.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.dir}"/>
        </javac>
        <copy todir="${build.dir}">
            <fileset dir="${src.dir}"
                includes="**/images/*,**/*.properties" excludes="**/.svn/*"/>  
        </copy>
    </target>
    
    <target name="dist" depends="clean, compile">
        <mkdir dir="${dist.dir}"/>
        <jar jarfile="${dist.dir}/ingest.jar" basedir="${build.dir}" includes="**/ejb/*, **/mdb/*, **/UserBean/*, **/hibernate/*">
            <metainf dir="${src.dir}/META-INF" includes="*.xml"/>
        </jar>
    </target>

    <target name="deploy" description="deploys the service to JBoss" depends="dist">
      <copy todir="${jboss.home}/server/default/deploy">
        <fileset dir="${dist.dir}" includes="ingest.jar, people.war"/>
        <fileset dir="${jbossconf}" includes="*.xml"/>
      </copy>
    </target>
    
</project>