1 | <?xml version="1.0"?>
|
---|
2 | <project default="cleanup" basedir=".">
|
---|
3 | <target name="init">
|
---|
4 | <mkdir dir="result" />
|
---|
5 | </target>
|
---|
6 |
|
---|
7 | <target name="cleanup">
|
---|
8 | <delete dir="result" />
|
---|
9 | </target>
|
---|
10 |
|
---|
11 | <target name="test1" depends="init">
|
---|
12 | <fixcrlf srcdir="input" destdir="result"
|
---|
13 | includes="Junk1.java"
|
---|
14 | javafiles="true"
|
---|
15 | tab="add"
|
---|
16 | eol="crlf"
|
---|
17 | eof="asis"
|
---|
18 | />
|
---|
19 | </target>
|
---|
20 |
|
---|
21 | <target name="test2" depends="init">
|
---|
22 | <fixcrlf srcdir="input" destdir="result"
|
---|
23 | includes="Junk2.java"
|
---|
24 | javafiles="true"
|
---|
25 | tab="add"
|
---|
26 | cr="add"
|
---|
27 | eol="crlf"
|
---|
28 | eof="asis"
|
---|
29 | />
|
---|
30 | </target>
|
---|
31 |
|
---|
32 | <target name="test3" depends="init">
|
---|
33 | <fixcrlf srcdir="input" destdir="result"
|
---|
34 | includes="Junk3.java"
|
---|
35 | javafiles="true"
|
---|
36 | tab="remove"
|
---|
37 | eol="lf"
|
---|
38 | eof="asis"
|
---|
39 | />
|
---|
40 | </target>
|
---|
41 |
|
---|
42 | <target name="test4" depends="init">
|
---|
43 | <fixcrlf srcdir="input" destdir="result"
|
---|
44 | includes="Junk4.java"
|
---|
45 | javafiles="true"
|
---|
46 | tab="remove"
|
---|
47 | eol="lf"
|
---|
48 | eof="asis"
|
---|
49 | />
|
---|
50 | </target>
|
---|
51 |
|
---|
52 | <target name="test5" depends="init">
|
---|
53 | <fixcrlf srcdir="input" destdir="result"
|
---|
54 | includes="Junk5.java"
|
---|
55 | tab="remove"
|
---|
56 | eol="lf"
|
---|
57 | eof="asis"
|
---|
58 | />
|
---|
59 | </target>
|
---|
60 |
|
---|
61 | <target name="test6" depends="init">
|
---|
62 | <fixcrlf srcdir="input" destdir="result"
|
---|
63 | includes="Junk6.java"
|
---|
64 | tab="add"
|
---|
65 | cr="remove"
|
---|
66 | eol="crlf"
|
---|
67 | eof="asis"
|
---|
68 | />
|
---|
69 | </target>
|
---|
70 |
|
---|
71 | <target name="test7" depends="init">
|
---|
72 | <fixcrlf srcdir="input" destdir="result"
|
---|
73 | includes="Junk7.java"
|
---|
74 | tab="add"
|
---|
75 | cr="add"
|
---|
76 | eof="asis"
|
---|
77 | />
|
---|
78 | </target>
|
---|
79 |
|
---|
80 | <target name="test8" depends="init">
|
---|
81 | <fixcrlf srcdir="input" destdir="result"
|
---|
82 | includes="Junk8.java"
|
---|
83 | javafiles="true"
|
---|
84 | tab="add"
|
---|
85 | cr="add"
|
---|
86 | eof="add"
|
---|
87 | />
|
---|
88 | </target>
|
---|
89 |
|
---|
90 | <target name="test9" depends="init">
|
---|
91 | <fixcrlf srcdir="input" destdir="result"
|
---|
92 | includes="Junk9.java"
|
---|
93 | javafiles="true"
|
---|
94 | tab="remove"
|
---|
95 | cr="remove"
|
---|
96 | eof="remove"
|
---|
97 | />
|
---|
98 | </target>
|
---|
99 |
|
---|
100 | <target name="testMacLines" depends="init">
|
---|
101 | <fixcrlf srcdir="input" destdir="result"
|
---|
102 | includes="Mac2Unix"
|
---|
103 | eol="lf"
|
---|
104 | />
|
---|
105 | </target>
|
---|
106 |
|
---|
107 | <target name="testEncoding" depends="init">
|
---|
108 | <fixcrlf srcdir="input" destdir="result"
|
---|
109 | includes="input.crlf.utf16"
|
---|
110 | javafiles="false"
|
---|
111 | cr="remove"
|
---|
112 | encoding="UnicodeBig"
|
---|
113 | />
|
---|
114 | </target>
|
---|
115 |
|
---|
116 | <target name="testLongLines" depends="init">
|
---|
117 | <fixcrlf srcdir="input" destdir="result"
|
---|
118 | includes="longlines.crlf"
|
---|
119 | javafiles="false"
|
---|
120 | cr="remove"
|
---|
121 | />
|
---|
122 | </target>
|
---|
123 |
|
---|
124 | <target name="testCrCrLfSequence-unix" depends="init">
|
---|
125 | <fixcrlf srcdir="input" destdir="result"
|
---|
126 | includes="crcrlf"
|
---|
127 | eol="lf"
|
---|
128 | />
|
---|
129 | </target>
|
---|
130 |
|
---|
131 | <target name="testCrCrLfSequence-dos" depends="init">
|
---|
132 | <fixcrlf srcdir="input" destdir="result"
|
---|
133 | includes="crcrlf"
|
---|
134 | eol="crlf"
|
---|
135 | />
|
---|
136 | </target>
|
---|
137 |
|
---|
138 | <target name="testCrCrLfSequence-mac" depends="init">
|
---|
139 | <fixcrlf srcdir="input" destdir="result"
|
---|
140 | includes="crcrlf"
|
---|
141 | eol="cr"
|
---|
142 | />
|
---|
143 | </target>
|
---|
144 |
|
---|
145 | <target name="testFixlastDos" depends="init">
|
---|
146 | <fixcrlf srcdir="input" destdir="result"
|
---|
147 | includes="fixlastfalse.lf"
|
---|
148 | eol="crlf"
|
---|
149 | />
|
---|
150 | </target>
|
---|
151 |
|
---|
152 | <target name="testFixlastFalseMac" depends="init">
|
---|
153 | <fixcrlf srcdir="input" destdir="result"
|
---|
154 | includes="fixlastfalse.lf"
|
---|
155 | eol="cr"
|
---|
156 | fixlast="false"
|
---|
157 | />
|
---|
158 | </target>
|
---|
159 |
|
---|
160 | <!-- Bugzilla Report 20840 -->
|
---|
161 | <target name="createParentDirs" depends="init">
|
---|
162 | <fixcrlf srcdir="." destdir="result" includes="input/Junk1.java"/>
|
---|
163 | </target>
|
---|
164 |
|
---|
165 | </project>
|
---|