robrohan / coldfusion.tmbundle

Coldfusion textmate bundle

This URL has Read+Write access

coldfusion.tmbundle / build.xml
100644 74 lines (64 sloc) 2.756 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
<project name="ColdFusion Textmate Bundle">
<!-- The xslt process needs an XSLT 2.0 processor, so I am using Saxon-->
<property name="saxon.path" value="/Applications/saxonb9-0-0-4j/saxon9.jar" />
 
<!-- Probably wont need to change this unless you are going to try to use
a different cfeclipse dictionary file. -->
<property name="dictionary.file" value="Resources/cfml.xml" />
<property name="output.name" value="ColdFusion" />
<property name="output.bundle" value="${output.name}.tmbundle" />
 
<property name="bundle.uuid" value="1A09BE0B-E81A-4CB7-AF69-AFC845162D1F" />
<property name="snytax.uuid" value="97CAD6F7-0807-4EB4-876E-DA9E9C1CEC14" />
<property name="cmddoc.uuid" value="9902B0A3-0523-4190-B541-374AC09CC72F" />
<property name="tagcomplete.uuid" value="A51C20E9-244A-4E9B-8150-B3D55F6CA839" />
<property name="attcomplete.uuid" value="C6F3F140-863E-442D-8ECA-830C4002884E" />
 
<property name="xsl.file" value="dictToBundle.xsl" />
<property name="doc.xsl.file" value="dictToAPI.xsl" />
<property name="base.bundle" value="ColdFusion.bun" />
 
<target name="clean">
<delete dir="build/${output.bundle}" />
</target>
 
<target name="superclean">
<delete dir="build" />
</target>
 
<target name="createSnippets">
<java jar="${saxon.path}" fork="true">
<arg value="-o:build/${output.bundle}/info.plist" />
<arg value="${dictionary.file}" />
<arg value="${xsl.file}" />
<arg value="bundle-uuid=${bundle.uuid}" />
<arg value="bundle-name=${output.name}" />
 
<arg value="syntax-uuid=${snytax.uuid}" />
<arg value="cmddoc-uuid=${cmddoc.uuid}" />
<arg value="tagcomplete-uuid=${tagcomplete.uuid}" />
<arg value="attcomplete-uuid=${attcomplete.uuid}" />
</java>
</target>
 
<target name="createAPIDoc">
<java jar="${saxon.path}" fork="true">
<arg value="-o:doc/${output.name}.html" />
<arg value="${dictionary.file}" />
<arg value="${doc.xsl.file}" />
<!-- <arg value="bundle-uuid=${bundle.uuid}" />
<arg value="bundle-name=${output.name}" /> -->
</java>
</target>
 
<target name="createBundle">
<copy todir="build/${output.bundle}">
<fileset dir="${base.bundle}"/>
<filterset>
<filter token="BUNDLE_NAME" value="${output.name}"/>
<filter token="BUNDLE_UUID" value="${bundle.uuid}"/>
<filter token="SYNTAX_UUID" value="${syntax.uuid}"/>
<filter token="CMDDOC_UUID" value="${cmddoc.uuid}"/>
<filter token="TAGCOMPLETE_UUID" value="${tagcomplete.uuid}"/>
<filter token="ATTRCOMPLETE_UUID" value="${attcomplete.uuid}"/>
</filterset>
</copy>
</target>
 
<target name="build">
<mkdir dir="build" />
<antcall target="createBundle" />
<antcall target="createSnippets" />
<antcall target="createAPIDoc" />
</target>
</project>