mirror of https://github.com/apache/lucene.git
LUCENE-4187: Die, shell scripts, die, die, die!
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1371729 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
813f5344dd
commit
436dc8eb2c
58
build.xml
58
build.xml
|
@ -52,10 +52,25 @@
|
|||
</target>
|
||||
|
||||
<target name="validate" description="Validate dependencies, licenses, etc.">
|
||||
<sequential><subant target="validate" inheritall="false" failonerror="true">
|
||||
<fileset dir="lucene" includes="build.xml" />
|
||||
<fileset dir="solr" includes="build.xml" />
|
||||
</subant></sequential>
|
||||
<!-- 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">
|
||||
<fileset dir="${validate.currDir}">
|
||||
<include name="**/*.java"/>
|
||||
<exclude name="**/backwards/**"/>
|
||||
<or>
|
||||
<containsregexp expression="@author\b" casesensitive="yes"/>
|
||||
<containsregexp expression="\bno(n|)commit\b" casesensitive="no"/>
|
||||
</or>
|
||||
</fileset>
|
||||
<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">
|
||||
|
@ -185,15 +200,16 @@
|
|||
</sequential>
|
||||
</target>
|
||||
|
||||
<!-- define here, as common-build is not included! -->
|
||||
<property name="python32.exe" value="python3.2" />
|
||||
<property name="JAVA6_HOME" value="/usr/local/jdk1.6.0_27"/>
|
||||
<property name="JAVA7_HOME" value="/usr/local/jdk1.7.0_01"/>
|
||||
<property name="fakeRelease" value="lucene/build/fakeRelease"/>
|
||||
<property name="fakeReleaseTmp" value="lucene/build/fakeReleaseTmp"/>
|
||||
<property name="fakeReleaseVersion" value="5.0"/> <!-- *not* -SNAPSHOT, the real version -->
|
||||
|
||||
<target name="nightly-smoke" description="Builds an unsigned release and smoke tests it." depends="clean">
|
||||
<sequential>
|
||||
<fail unless="JAVA6_HOME">JAVA6_HOME property is not defined.</fail>
|
||||
<fail unless="JAVA7_HOME">JAVA7_HOME property is not defined.</fail>
|
||||
<subant target="prepare-release-no-sign" inheritall="false" failonerror="true">
|
||||
<fileset dir="lucene" includes="build.xml" />
|
||||
<fileset dir="solr" includes="build.xml" />
|
||||
|
@ -229,4 +245,34 @@
|
|||
<delete dir="${fakeReleaseTmp}"/>
|
||||
</sequential>
|
||||
</target>
|
||||
|
||||
<!-- Jenkins tasks -->
|
||||
<target name="jenkins-hourly" depends="clean,test,validate,javadocs-lint,-svn-status"/>
|
||||
|
||||
<!-- define here, as common-build is not included! -->
|
||||
<property name="svn.exe" value="svn" />
|
||||
|
||||
<target name="-svn-status">
|
||||
<exec executable="${svn.exe}" dir="." failonerror="true">
|
||||
<arg value="status"/>
|
||||
<redirector outputproperty="svn.status.output">
|
||||
<outputfilterchain>
|
||||
<linecontainsregexp>
|
||||
<regexp pattern="^\?" />
|
||||
</linecontainsregexp>
|
||||
<tokenfilter>
|
||||
<replaceregex pattern="^........" replace="* " />
|
||||
<replacestring from="${file.separator}" to="/" />
|
||||
</tokenfilter>
|
||||
</outputfilterchain>
|
||||
</redirector>
|
||||
</exec>
|
||||
<fail message="Source checkout is dirty after running tests!!! Offending files:${line.separator}${svn.status.output}">
|
||||
<condition>
|
||||
<not>
|
||||
<equals arg1="${svn.status.output}" arg2=""/>
|
||||
</not>
|
||||
</condition>
|
||||
</fail>
|
||||
</target>
|
||||
</project>
|
||||
|
|
Loading…
Reference in New Issue