File: prepare-jboss.xml

package info (click to toggle)
postgis 1.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 17,296 kB
  • sloc: sql: 77,621; ansic: 59,025; xml: 18,553; sh: 11,043; java: 6,061; perl: 2,133; makefile: 981; yacc: 299; python: 192
file content (39 lines) | stat: -rw-r--r-- 1,442 bytes parent folder | download | duplicates (4)
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
<?xml version="1.0" encoding="UTF-8"?>

<project basedir=".">
	
  <!-- PROPERTY DEFINITIONS -->
  <property name="tmp.dir" value="tmp"/>
  
  <target name="install-DataSource" description="Copy DataSource definition file into JBOSS deploy dir." >
    <echo message="Copy DataSource definition file into JBOSS deploy dir"/> 

    <copy file="${resources.dir}/${datasource.file.name}"  todir="${tmp.dir}"/>

    <mkdir dir="${tmp.dir}"/>	

    <replace  file="${tmp.dir}/${datasource.file.name}">
      <replacefilter token="@datasource.name@" value="${datasource.name}"/>
      <replacefilter token="@database.connection.url@" value="${database.connection.url}"/>
      <replacefilter token="@database.driver@" value="${database.driver}"/>
      <replacefilter token="@database.login@" value="${database.login}"/>
      <replacefilter token="@database.password@" value="${database.password}"/>
    </replace> 

    <copy file="${tmp.dir}/${datasource.file.name}"  todir="${jboss.deploy.dir}"/>	

    <delete dir="${tmp.dir}" />	 
 </target>
  
  
  <target name="install-JDBC-driver" description="Copy Postgresql JDBC Driver into JBOSS deploy dir." >
    <echo message="Postgresql JDBC Driver into JBOSS deploy dir"/> 

    <copy   todir="${jboss.deploy.dir}">
      <fileset dir="${compiletime.lib.dir}"> 
        <include name="postgres*.jar"/>
      </fileset>
    </copy>
  </target>  
  
</project>