mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
Check file encoding in build file
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2054 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
867052fff7
commit
571edf569c
10
build.xml
10
build.xml
@ -29,10 +29,18 @@
|
||||
</or>
|
||||
</condition>
|
||||
|
||||
<condition property="is.utf8">
|
||||
<equals arg1="${file.encoding}" arg2="UTF-8"/>
|
||||
</condition>
|
||||
|
||||
<target name="check-java6" unless="is.java6">
|
||||
<fail message="Java 6 needed to build DavMail, current version is ${ant.java.version}, check JAVA_HOME"/>
|
||||
</target>
|
||||
|
||||
<target name="check-encoding" unless="is.utf8">
|
||||
<fail message="Please force UTF-8 encoding to build debian package with set ANT_OPTS=-Dfile.encoding=UTF-8"/>
|
||||
</target>
|
||||
|
||||
<target name="svnrelease" if="is.svn">
|
||||
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml">
|
||||
<classpath>
|
||||
@ -53,7 +61,7 @@
|
||||
<property name="release" value="${version}"/>
|
||||
</target>
|
||||
|
||||
<target name="init" depends="check-java6, svnrelease, defaultrelease">
|
||||
<target name="init" depends="check-encoding, check-java6, svnrelease, defaultrelease">
|
||||
<echo message="Creating DavMail ${release} dist package"/>
|
||||
<mkdir dir="target/classes"/>
|
||||
</target>
|
||||
|
Loading…
Reference in New Issue
Block a user