-
Notifications
You must be signed in to change notification settings - Fork 0
/
neo4j-build.xml
33 lines (26 loc) · 910 Bytes
/
neo4j-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 basedir="." name="neo4j-build">
<description>
Script for Controlling Neo4j (to be imported in main build)
</description>
<property name="neo4j.location" value="/opt/neo4j-community-3.2.3"/>
<target name="start-neo4j" description="start NEO4J server">
<exec executable="/bin/bash">
<arg value="${neo4j.location}/bin/neo4j"/>
<arg value="start"/>
</exec>
</target>
<target name="stop-neo4j" description="stop NEO4J server">
<exec executable="/bin/bash">
<arg value="${neo4j.location}/bin/neo4j"/>
<arg value="stop"/>
</exec>
</target>
<target name="clear-and-restart-neo4j" description="clear NEO4J DB and start NEO4J server">
<antcall target="stop-neo4j"/>
<sleep seconds="3"/>
<delete dir="${neo4j.location}/data/databases/graph.db" />
<sleep seconds="5"/>
<antcall target="start-neo4j"/>
</target>
</project>