forked from JMRI/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
87 lines (75 loc) · 2.95 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
82
83
84
85
86
87
<?xml version="1.0" encoding="UTF-8"?>
<!-- Ant build.xml file for JMRI development -->
<!-- Bob Jacobsen, Copyright 2002-2016 -->
<!-- This file is part of JMRI. -->
<!-- -->
<!-- JMRI is free software; you can redistribute it and/or modify it under -->
<!-- the terms of version 2 of the GNU General Public License as published -->
<!-- by the Free Software Foundation. See the "COPYING" file for a copy -->
<!-- of this license. -->
<!-- -->
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -->
<!-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -->
<!-- for more details. -->
<project name="JMRI/website" default="" basedir=".">
<!-- basedir="." means all paths are relative to the top level -->
<!-- directory in the project. -->
<description>
Provides build services for JMRI website
</description>
<property name="jmri.copyright.year" value="1997-2016"/>
<!-- check for bad line ends, e.g. not ready to go into Git -->
<!-- May not (probably will not) work on Windows -->
<target name="checklineends" description="mark files with CRLF line ends">
<exec executable="sh" outputproperty="checklineeds.files">
<arg value="-c" />
<arg value="find . -not -type d -exec file '{}' ';' | grep CRLF" />
</exec>
<fail message="${checklineeds.files}">
<condition>
<length string="${checklineeds.files}" when="greater" length="0" />
</condition>
</fail>
</target>
<!-- end of file-checking targets -->
<target name="fixlineends" description="convert specific files to LF line ends">
<fixcrlf eol="unix" srcdir="." includes="
**/*.csh
**/*.css
**/*.df
**/*.dtd
**/*htm
**/*html
**/*.java
**/*.js
**/*.json
**/*.jsp
**/*.jspf
**/*.lcf
**/*.md
**/*.php
**/*.pl
**/*.plist
**/*.policy
**/*.prefs
**/*.properties
**/*.project
**/*.py
**/*.sh
**/*.svg
**/*.tld
**/*.txt
**/*.xml
**/*.xsd
**/*.xsl
**/COPYING
**/Footer
**/Header
**/README*
**/Sidebar
**/TODO
" />
</target>
<!-- end of file-checking targets -->
</project>