<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [<!ENTITY buildfile SYSTEM "file:./build-user.xml">]>
<project basedir="." default="main" name="CharteDevJavaJ2EE">
    
	<!-- Patch pour maven-checkstyle plugin pr maven1 -->
	<target name="main">
		<echo>
		*===============================================================*
		*																*
		*	Configuration of checkstyle-maven plugin.												*
		*																*
		*===============================================================*
		</echo>		
	    <property name="HOME" 			value=""/>
	    <property name="checks_file" 	value=""/><!-- Warning do NOT append the .xml at the end this filename.-->
	    <property name="maven.cache.checkstyle-plugin" value="${HOME}/.maven/cache/maven-checkstyle-plugin-X.X.X/"/>
	    <property name="plugin-file" 	value="plugin.properties"/>
	    <property name="extensionId"	value="extensionCheckstyleSODA"/>	
	    
	    <!-- Editing property file -->
	    <propertyfile
	        file="${maven.cache.checkstyle-plugin}/${plugin-file}">
	        <!-- Warning this operation removes all comment in the .properties file... -->
	        <entry  key="maven.checkstyle.format" value="${extensionId}"/>
	    </propertyfile>
	    <echo>Checkstyle-plugin has been configured.</echo>
	    
	    <!-- Adding/Updating your checks. -->
	    <copy file="${checks_file}.xml" tofile="${target}/${checks_file}_checks.xml"/>
	    <echo>Checkstyle checks list is up to date.</echo>
	    
	</target>
</project>
