mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Source-rebuild testing: Fix building actual source-pacakge and improve output
Adjust for the actual build-directory where sources were extracted Also print out how the necessary source-package can be created
This commit is contained in:
parent
1aa1fd6273
commit
1dcb799127
@ -27,11 +27,14 @@ Before running this, you should execute the "jar" target in the main build.gradl
|
||||
<property name="dist" value="../build/dist"/>
|
||||
<property name="build" value="../build/distsourcebuild"/>
|
||||
|
||||
<condition property="gradle.executable" value="../gradlew.bat" else="../gradlew">
|
||||
<!-- Gradle is executed in ../build/poi-<version>, so three ".." are needed to use gradle from the root-dir -->
|
||||
<condition property="gradle.executable" value="../../../gradlew.bat" else="../../../gradlew">
|
||||
<os family="windows" />
|
||||
</condition>
|
||||
|
||||
<target name="init" depends="">
|
||||
<echo message="Using Ant: ${ant.version} from ${ant.home}, Ant detected Java ${ant.java.version} (may be different than actual Java sometimes...)" />
|
||||
<echo message="Using Java: ${java.version}/${java.runtime.version}/${java.vm.version}/${java.vm.name} from ${java.vm.vendor} on ${os.name}: ${os.version}" />
|
||||
</target>
|
||||
|
||||
<target name="run" depends="init,runSourceBuild,runCompileTest"/>
|
||||
@ -55,7 +58,7 @@ Before running this, you should execute the "jar" target in the main build.gradl
|
||||
</last>
|
||||
</pathconvert>
|
||||
|
||||
<echo message="Found source package at ${srcpackage}"/>
|
||||
<echo message="Found source package with pattern 'apache-poi-src-*.zip' in ${dist} at '${srcpackage}'. Run Gradle-task 'srcDistZip' in the main directory if it is missing"/>
|
||||
<unzip src="${srcpackage}" dest="${build}" failOnEmptyArchive="true"/>
|
||||
|
||||
<!-- look for name of sub-dir, do this dynamically as it changes with every (beta|rc)-release -->
|
||||
@ -74,7 +77,7 @@ Before running this, you should execute the "jar" target in the main build.gradl
|
||||
<!-- finally call Ant on the extracted source to check if we can build the packages -->
|
||||
<echo message="Building in temporary dir ${dirversion}/"/>
|
||||
<!--ant dir="${dirversion}" target="assemble" inheritAll="false" inheritRefs="false" useNativeBasedir="true"/-->
|
||||
<exec executable="${gradle.executable}" dir="." failonerror="true">
|
||||
<exec executable="${gradle.executable}" dir="${dirversion}" failonerror="true">
|
||||
<arg value="assemble" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user