OSDN Git Service

Merge commit '2234b50cfbe7c86237086a3bf4e62397814a390e'
[jindolf/JinParser.git] / fixcrlf.xml
similarity index 51%
rename from build.xml
rename to fixcrlf.xml
index cbf30f2..90a7b46 100644 (file)
--- a/build.xml
@@ -1,25 +1,14 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8" ?>
 
 <!-- ====================================================================== -->
-<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above.        -->
+<!-- Ant build file (http://ant.apache.org/) for Ant 1.8.0 or later.        -->
 <!-- ====================================================================== -->
 
-<project name="jinparser" default="package" basedir=".">
-
-<!-- ====================================================================== -->
-<!-- Import maven-build.xml into the current project                        -->
-<!-- Maven2 command "mvn ant:ant" will put maven-build.xml                  -->
-<!-- ====================================================================== -->
-
-    <import optional="true" file="maven-build.xml"/>
-
-<!-- ====================================================================== -->
-<!-- Help target                                                            -->
-<!-- ====================================================================== -->
-
-    <target name="help">
-        <echo message="Please run: $ant -projecthelp"/>
-    </target>
+<project basedir=".">
+<description>
+CAUTION : This is not build-file for project-building.
+It's just adapting project-files for native environment.
+</description>
 
 <!-- ====================================================================== -->
 <!-- sanitize files for native environment                                  -->
         <echo message="sanitize files..." />
 
         <fixcrlf
-            srcDir="./" includes="**/*.java"
+            srcDir="." includes="*.txt"
             encoding="UTF-8" outputencoding="UTF-8"
-            tablength="4" tab="remove" javafiles="true"
+            tablength="8" tab="remove"
             eof="remove"
         />
 
         <fixcrlf
-            srcDir="./" includes="**/*.xml,**/*.xsd"
+            srcDir="./src/" includes="**/*.java"
             encoding="UTF-8" outputencoding="UTF-8"
-            tablength="8" tab="remove"
-            eol="lf"
+            tablength="4" tab="remove" javafiles="true"
             eof="remove"
         />
 
         <fixcrlf
-            srcDir="./" includes="**/*.properties"
+            srcDir="./src/" includes="**/*.properties"
             encoding="ISO-8859-1" outputencoding="ISO-8859-1"
             eol="lf"
             eof="remove"
         />
 
         <fixcrlf
-            srcDir="./" includes="*.txt"
+            srcDir="./src/" includes="**/*.xml,**/*.xsd,**/*.dtd"
             encoding="UTF-8" outputencoding="UTF-8"
             tablength="8" tab="remove"
+            eol="lf"
+            eof="remove"
+        />
+
+        <fixcrlf
+            srcDir="./src/" includes="**/*.html,**/*.htm,**/*.css"
+            encoding="UTF-8" outputencoding="UTF-8"
+            tablength="8" tab="remove"
+            eol="lf"
             eof="remove"
         />
 
         <chmod type="file" perm="a-x">
-            <fileset dir="./" includes="**/*" excludes="**/*.sh" />
+            <fileset dir="." includes="**/*" excludes="**/*.sh" />
         </chmod>
 
     </target>