LUCENE-4187: Allow disabling validation tasks and javadocs-linting from jenkins

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1371745 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2012-08-10 15:37:31 +00:00
parent 436dc8eb2c
commit 06df30453f
1 changed files with 18 additions and 7 deletions

View File

@ -51,7 +51,14 @@
</sequential> </sequential>
</target> </target>
<target name="validate" description="Validate dependencies, licenses, etc."> <target name="validate" description="Validate dependencies, licenses, etc." depends="-validate-source-patterns">
<subant target="validate" inheritall="false" failonerror="true">
<fileset dir="lucene" includes="build.xml" />
<fileset dir="solr" includes="build.xml" />
</subant>
</target>
<target name="-validate-source-patterns" unless="disable.source-patterns">
<!-- check that there are no nocommits or @author javadoc tags: --> <!-- check that there are no nocommits or @author javadoc tags: -->
<property name="validate.currDir" location="."/> <property name="validate.currDir" location="."/>
<pathconvert pathsep="${line.separator}" dirsep="/" property="validate.patternsFound" setonempty="false"> <pathconvert pathsep="${line.separator}" dirsep="/" property="validate.patternsFound" setonempty="false">
@ -66,11 +73,6 @@
<map from="${validate.currDir}${file.separator}" to="* "/> <map from="${validate.currDir}${file.separator}" to="* "/>
</pathconvert> </pathconvert>
<fail if="validate.patternsFound">The following files contain @author tags or nocommits:${line.separator}${validate.patternsFound}</fail> <fail if="validate.patternsFound">The following files contain @author tags or nocommits:${line.separator}${validate.patternsFound}</fail>
<!-- run validate for both lucene and solr: -->
<subant target="validate" inheritall="false" failonerror="true">
<fileset dir="lucene" includes="build.xml" />
<fileset dir="solr" includes="build.xml" />
</subant>
</target> </target>
<target name="rat-sources" description="Runs rat across all sources and tests"> <target name="rat-sources" description="Runs rat across all sources and tests">
@ -247,7 +249,16 @@
</target> </target>
<!-- Jenkins tasks --> <!-- Jenkins tasks -->
<target name="jenkins-hourly" depends="clean,test,validate,javadocs-lint,-svn-status"/> <target name="jenkins-hourly" depends="clean,test,validate,-jenkins-javadocs-lint,-svn-status"/>
<!-- we need this extra condition, as we want to match only on "true", not solely if property is set: -->
<property name="disable.javadocs-lint" value="false" />
<condition property="-disable.javadocs-lint">
<equals arg1="${disable.javadocs-lint}" arg2="true"/>
</condition>
<target name="-jenkins-javadocs-lint" unless="-disable.javadocs-lint">
<antcall target="javadocs-lint"/>
</target>
<!-- define here, as common-build is not included! --> <!-- define here, as common-build is not included! -->
<property name="svn.exe" value="svn" /> <property name="svn.exe" value="svn" />