-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
33 lines (33 loc) · 1.61 KB
/
build.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Pathway" default="replace" basedir=".">
<target name="replace" depends="mail_exist,adminEmails_exist,debugFlag_exist,port_exist,folder_root_exist,queueURL_exist,queueName_exist">
<replace file="config.ini" token="@mailServer@" value="${mailServer}"/>
<replace file="config.ini" token="@adminEmails@" value="${adminEmails}"/>
<replace file="config.ini" token="@debugFlag@" value="${debugFlag}"/>
<replace file="config.ini" token="@port@" value="${port}"/>
<replace file="config.ini" token="@folderRoot@" value="${folderRoot}"/>
<replace file="config.ini" token="@queueURL@" value="${queueURL}"/>
<replace file="config.ini" token="@queueName@" value="${queueName}"/>
</target>
<target name="mail_exist" unless="mailServer">
<fail> Mail Server is not set, stop</fail>
</target>
<target name="adminEmails_exist" unless="adminEmails">
<fail> Admin emails are not set, stop</fail>
</target>
<target name="debugFlag_exist" unless="debugFlag">
<fail> Debug flag is not set, stop</fail>
</target>
<target name="port_exist" unless="port">
<fail> Port is not set, stop</fail>
</target>
<target name="folder_root_exist" unless="folderRoot">
<fail> Folder Root is not set, stop</fail>
</target>
<target name="queueURL_exist" unless="queueURL">
<fail> Queue URL is not set, stop</fail>
</target>
<target name="queueName_exist" unless="debugFlag">
<fail> Queue Name is not set, stop</fail>
</target>
</project>