mirror of https://github.com/apache/lucene.git
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:
parent
436dc8eb2c
commit
06df30453f
25
build.xml
25
build.xml
|
@ -51,7 +51,14 @@
|
|||
</sequential>
|
||||
</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: -->
|
||||
<property name="validate.currDir" location="."/>
|
||||
<pathconvert pathsep="${line.separator}" dirsep="/" property="validate.patternsFound" setonempty="false">
|
||||
|
@ -66,11 +73,6 @@
|
|||
<map from="${validate.currDir}${file.separator}" to="* "/>
|
||||
</pathconvert>
|
||||
<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 name="rat-sources" description="Runs rat across all sources and tests">
|
||||
|
@ -247,7 +249,16 @@
|
|||
</target>
|
||||
|
||||
<!-- 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! -->
|
||||
<property name="svn.exe" value="svn" />
|
||||
|
|
Loading…
Reference in New Issue