forked from Everlaw/nbts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
30 lines (27 loc) · 1.39 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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="netbeans" name="netbeanstypescript">
<description>Builds, tests, and runs the project netbeanstypescript.</description>
<property environment="env"/>
<!-- If this line fails, open the project in NetBeans to create nbproject/private files. -->
<import file="nbproject/build-impl.xml"/>
<!-- Path to the TypeScript installation to use. -->
<property name="typescript" value="${env.HOME}/usr/typescript"/>
<target name="compile-ts-services-check" depends="basic-init">
<uptodate property="compile-ts-services.uptodate" targetfile="${cluster}/nbts-services.js">
<srcfiles dir="server"/>
</uptodate>
</target>
<target name="netbeans-extra" depends="compile-ts-services-check" unless="compile-ts-services.uptodate">
<copy file="${typescript}/lib/typescriptServices.d.ts" todir="build"/>
<echo>Building nbts-services.js</echo>
<exec executable="${typescript}/bin/tsc" failonerror="true">
<arg value="--project"/>
<arg value="server"/>
<arg value="--outFile"/>
<arg value="${cluster}/nbts-services.js"/>
<arg value="--noEmitOnError"/>
</exec>
<echo file="build/testuserdir/config/Preferences/netbeanstypescript.properties"
message="libDir=${typescript}/lib"/>
</target>
</project>