-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.xml
More file actions
86 lines (70 loc) · 2.18 KB
/
Copy pathrun.xml
File metadata and controls
86 lines (70 loc) · 2.18 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<project name="PSOBatchImporter" default="run" basedir=".">
<description>
Runs the PSO Batch Importer
</description>
<!-- set global properties for this build -->
<property environment="env" />
<property name="build.sysclasspath" value="ignore" />
<property environment="env" />
<property name="lib" location="lib" />
<property name="completed" location="content/completed"/>
<property name="errors" location="content/errors"/>
<property name="debug" location="content/debug"/>
<property name="completedArchive" location="${completed}/archive" />
<property name="errorArchive" location="${errors}/archive" />
<path id="classpath-deploy">
<path>
<fileset dir="build">
<include name="*.jar" />
</fileset>
</path>
<path>
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
</path>
<pathelement path="config"/>
</path>
<target name="createfolders">
<mkdir dir="${completed}"/>
<mkdir dir="${errors}"/>
<mkdir dir="${debug}"/>
</target>
<target name="archiveCompleted">
<move todir="${completedArchive}">
<fileset dir="${completed}" >
<include name="importbatch*" />
</fileset>
</move>
</target>
<target name="archiveError">
<move todir="${errorArchive}">
<fileset dir="${errors}" >
<include name="importbatch*" />
</fileset>
</move>
</target>
<target name="run" depends="createfolders,archiveCompleted, archiveError">
<echo>Running Importer</echo>
<path id="classpath" refid="classpath-deploy" />
<java
classname="com.percussion.pso.importer.Main"
classpathref="classpath"
jvmversion="1.8">
<arg value="-config=config/spring-custom.xml"/>
</java>
</target>
<target name="createfolders,run-service" >
<echo>Running Importer Service</echo>
<path id="classpath" refid="classpath-deploy" />
<java
classname="com.percussion.pso.importer.Main"
classpathref="classpath"
jvmversion="1.8">
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xnoagent"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=5556,server=y,suspend=y"/>
<arg value="-service"/>
</java>
</target>
</project>