OSDN Git Service

1.102.4版リリース準備。
[mikutoga/Pmd2XML.git] / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- ====================================================================== -->
4 <!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above.        -->
5 <!-- ====================================================================== -->
6
7 <project name="pmd2xml" default="package" basedir=".">
8
9 <!-- ====================================================================== -->
10 <!-- Import maven-build.xml into the current project                        -->
11 <!-- Maven2 command "mvn ant:ant" will put maven-build.xml                  -->
12 <!-- ====================================================================== -->
13
14     <import optional="true" file="maven-build.xml"/>
15
16 <!-- ====================================================================== -->
17 <!-- Help target                                                            -->
18 <!-- ====================================================================== -->
19
20     <target name="help">
21         <echo message="Please run: $ant -projecthelp"/>
22     </target>
23
24 <!-- ====================================================================== -->
25 <!-- sanitize files for native environment                                  -->
26 <!-- ====================================================================== -->
27
28     <target description="sanitize files" name="sanitize" >
29         <echo message="sanitize files..." />
30
31         <fixcrlf
32             srcDir="./src/" includes="**/*.java"
33             encoding="UTF-8" outputencoding="UTF-8"
34             tablength="4" tab="remove" javafiles="true"
35             eof="remove"
36         />
37
38         <fixcrlf
39             srcDir="./src/" includes="**/*.xml,**/*.xsd"
40             encoding="UTF-8" outputencoding="UTF-8"
41             tablength="8" tab="remove"
42             eol="lf"
43             eof="remove"
44         />
45
46         <fixcrlf
47             srcDir="./src/" includes="**/*.properties"
48             encoding="ISO-8859-1" outputencoding="ISO-8859-1"
49             eol="lf"
50             eof="remove"
51         />
52
53         <fixcrlf
54             srcDir="." includes="*.txt"
55             encoding="UTF-8" outputencoding="UTF-8"
56             tablength="8" tab="remove"
57             eof="remove"
58         />
59
60         <chmod type="file" perm="a-x">
61             <fileset dir="." includes="**/*" excludes="**/*.sh" />
62         </chmod>
63
64     </target>
65
66 </project>
67
68 <!-- EOF -->