-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.xml
81 lines (72 loc) · 3.08 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
75
76
77
78
79
80
81
<?xml version="1.0" encoding="UTF-8"?>
<project name="green-turtle" default="build" basedir=".">
<property file="version.properties"/>
<property name="dist.dir" location="build"/>
<property name="src.dir" location="src"/>
<property name="version.label" value="${version.major}.${version.minor}.${version.release}"/>
<property name="dist.dir" location="build"/>
<property name="product.label" value="green-turtle-${chrome.version.label}"/>
<target name="clean">
<delete dir="${dist.dir}"/>
</target>
<target name="build" depends="web"/>
<target name="web">
<delete file="${dist.dir}/RDFa.js"/>
<delete file="${dist.dir}/RDFa.${version.label}.js"/>
<delete file="${dist.dir}/RDFa.min.${version.label}.js"/>
<delete file="${dist.dir}/RDFa.min.js"/>
<concat destfile="${dist.dir}/RDFa.${version.label}.js">
<string>/** @preserve green-turtle version ${version.label} Copyright (c) 2011-2014, R. Alexander Milowski <[email protected]> All rights reserved. */
/**
</string>
<file file="license.txt"/>
<string>*/
</string>
<file file="${src.dir}/RDFa.prolog.js"/>
<string>
env.version = "${version.label}";
</string>
<file file="${src.dir}/URI.js"/>
<file file="${src.dir}/RDFaProcessor.js"/>
<file file="${src.dir}/RDFaGraph.js"/>
<file file="${src.dir}/GraphRDFaProcessor.js"/>
<file file="${src.dir}/RDFaAPI.js"/>
<file file="${src.dir}/TurtleParser.js"/>
<file file="${src.dir}/Microdata.js"/>
<file file="${src.dir}/JSONLDProcessor.js"/>
<file file="${src.dir}/RDFa.epilogue.js"/>
<file file="${src.dir}/RDFa.invoke.js"/>
</concat>
<delete file="${dist.dir}/RDFaProcessor.${version.label}.js"/>
<delete file="${dist.dir}/RDFaProcessor.min.${version.label}.js"/>
<delete file="${dist.dir}/RDFaProcessor.min.js"/>
<concat destfile="${dist.dir}/RDFaProcessor.${version.label}.js">
<string>/** @preserve green-turtle version ${version.label} Copyright (c) 2011-2013, R. Alexander Milowski <[email protected]> All rights reserved. */
/**
</string>
<file file="license.txt"/>
<string>*/
</string>
<file file="${src.dir}/URI.js"/>
<file file="${src.dir}/RDFaProcessor.js"/>
<file file="${src.dir}/RDFaGraph.js"/>
<file file="${src.dir}/GraphRDFaProcessor.js"/>
</concat>
<echo>Minifying RDFa.js ...</echo>
<java jar="tools/closure-compiler-20140508.jar" fork="true">
<arg value="--js"/>
<arg file="${dist.dir}/RDFa.${version.label}.js"/>
<arg value="--js_output_file"/>
<arg file="${dist.dir}/RDFa.min.${version.label}.js"/>
</java>
<echo>Minifying RDFaProcessor.js ...</echo>
<java jar="tools/closure-compiler-20140508.jar" fork="true">
<arg value="--js"/>
<arg file="${dist.dir}/RDFaProcessor.${version.label}.js"/>
<arg value="--js_output_file"/>
<arg file="${dist.dir}/RDFaProcessor.min.${version.label}.js"/>
</java>
<copy file="${dist.dir}/RDFa.${version.label}.js" tofile="${dist.dir}/RDFa.js"/>
<copy file="${dist.dir}/RDFa.min.${version.label}.js" tofile="${dist.dir}/RDFa.min.js"/>
</target>
</project>