-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
74 lines (64 loc) · 2.64 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
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="rowdy" default="test" basedir=".">
<target name="-test-release-dir" depends="release.dir.check" if="dir.exists">
<delete><fileset dir="./release/"/></delete>
</target>
<target name="release.dir.check">
<condition property="dir.exists">
<available file="./release" type="dir"/>
</condition>
</target>
<target name="copy.dependant.RowdyLib" depends="RowdyLib.check" if="file.exists">
<copy file="../RowdyLib/dist/RowdyLib.jar" todir="./bin"/>
</target>
<target name="RowdyLib.check">
<condition property="file.exists">
<available file="../RowdyLib/dist/RowdyLib.jar"/>
</condition>
</target>
<target name="copy.dependant.Growdy" depends="GRowdy.check" if="file.exists">
<copy file="../GRowdy/dist/GRowdy.jar" todir="./travis-ci"/>
</target>
<target name="GRowdy.check">
<condition property="file.exists">
<available file="../GRowdy/dist/GRowdy.jar"/>
</condition>
</target>
<target name="-post-jar" depends="release.dir.check,copy.dependant.RowdyLib,copy.dependant.Growdy">
<!-- <copy file="../GRowdy/dist/GRowdy.jar" todir="./travis-ci"/>
<copy file="../RowdyLib/dist/RowdyLib.jar" todir="./bin"/> -->
<copy todir="./test/rowdy/testlang/lang">
<fileset dir="./src/rowdy/lang"/>
</copy>
<copy todir="./dist/bin/rowdy">
<fileset dir="bin/rowdy"/>
</copy>
<copy todir="./dist/bin/">
<fileset dir="bin/"/>
</copy>
<mkdir dir="./release/" />
<mkdir dir="./release/demo_code/"/>
<mkdir dir="./release/dist/"/>
<copy todir="./release/demo_code/">
<fileset dir="./demo_code/"/>
</copy>
<copy todir="./release/dist/">
<fileset dir="./dist"/>
</copy>
<copy file="RowdyForNotepad" todir="./release"/>
<copy file="LICENSE" todir="./release"/>
<copy file="README.md" todir="./release"/>
<replace file="./test/rowdy/testlang/lang/RowdyGrammarConstants.java"
token="rowdy.lang;"
value="rowdy.testlang.lang;"/>
</target>
<import file="nbproject/build-impl.xml"/>
</project>