summaryrefslogtreecommitdiffstats
path: root/common.xml
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2016-04-22 15:41:35 +0300
committerHenri Sara <hesara@vaadin.com>2016-04-22 15:46:48 +0300
commitd05dbeb873d2a562926efd8172ac32e66deb3947 (patch)
tree3280a44706552ba3aafeb23d03130e961af2816b /common.xml
parenta74cf8cfe1288b7e8c579bb804be2b7995ff65d5 (diff)
downloadvaadin-framework-d05dbeb873d2a562926efd8172ac32e66deb3947.tar.gz
vaadin-framework-d05dbeb873d2a562926efd8172ac32e66deb3947.zip
Run checkstyle with Maven
Change-Id: I8590d2161d027827a5037f0b371ec620cea61733
Diffstat (limited to 'common.xml')
-rw-r--r--common.xml27
1 files changed, 1 insertions, 26 deletions
diff --git a/common.xml b/common.xml
index 339453ffd5..0c817afa1c 100644
--- a/common.xml
+++ b/common.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project name="common" basedir="." default="checkstyle" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:antcontrib="antlib:net.sf.antcontrib" xmlns:cs="antlib:com.puppycrawl.tools.checkstyle">
+<project name="common" basedir="." default="" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:antcontrib="antlib:net.sf.antcontrib" xmlns:cs="antlib:com.puppycrawl.tools.checkstyle">
<tstamp>
<format property="build.date" pattern="yyyy-MM-dd" />
@@ -14,29 +14,4 @@
<ivy:cachepath pathid="taskdefs.classpath" conf="taskdefs" />
<taskdef uri="antlib:net.sf.antcontrib" resource="net/sf/antcontrib/antlib.xml" classpathref="taskdefs.classpath" />
-
- <!-- Checkstyle conf -->
- <property name="cs.dir" location="${vaadin.basedir}/checkstyle" />
- <property name="cs.xml" location="${cs.dir}/vaadin-checkstyle.xml" />
- <property name="cs.header-file" location="${cs.dir}/header" />
- <property name="cs.import-control-file" location="${cs.dir}/import-control.xml" />
- <taskdef resource="checkstyletask.properties" uri="antlib:com.puppycrawl.tools.checkstyle" classpathref="taskdefs.classpath" />
-
- <target name="checkstyle">
- <fail unless="result.dir" message="No result.dir parameter given" />
- <fail unless="cs.src" message="No cs.src parameter given" />
- <property name="result.dir.full" location="${result.dir}" />
- <mkdir dir="${result.dir}" />
- <echo>##teamcity[importData type='checkstyle' path='${result.dir.full}/checkstyle-errors.xml']</echo>
- <cs:checkstyle config="${cs.xml}" failOnViolation="false">
- <fileset dir="${cs.src}" includes="**/*.java">
- <exclude name="com/vaadin/sass/internal/parser/Parser.java" />
- <exclude name="com/vaadin/sass/internal/parser/ParserConstants.java" />
- <exclude name="com/vaadin/sass/internal/parser/ParserTokenManager.java" />
- </fileset>
- <formatter type="xml" toFile="${result.dir}/checkstyle-errors.xml" />
- <property key="checkstyle.header.file" file="${cs.header-file}" />
- <property key="checkstyle.importControl.file" file="${cs.import-control-file}" />
- </cs:checkstyle>
- </target>
</project>