Set permissions for kotlin compiler on linux and mac even on teamcity
This commit is contained in:
+16
-11
@@ -223,20 +223,11 @@
|
|||||||
</not>
|
</not>
|
||||||
<then>
|
<then>
|
||||||
<!-- Download bootstrap compiler for local build -->
|
<!-- Download bootstrap compiler for local build -->
|
||||||
<get src="https://teamcity.jetbrains.com/guestAuth/repository/download/bt345/bootstrap.tcbuildtag/kotlin-plugin-{build.number}.zip"
|
<get
|
||||||
|
src="https://teamcity.jetbrains.com/guestAuth/repository/download/bt345/bootstrap.tcbuildtag/kotlin-plugin-{build.number}.zip"
|
||||||
dest="dependencies/download/bootstrap-compiler.zip" usetimestamp="true"/>
|
dest="dependencies/download/bootstrap-compiler.zip" usetimestamp="true"/>
|
||||||
<delete dir="dependencies/bootstrap-compiler" failonerror="false"/>
|
<delete dir="dependencies/bootstrap-compiler" failonerror="false"/>
|
||||||
<unzip src="dependencies/download/bootstrap-compiler.zip" dest="dependencies/bootstrap-compiler"/>
|
<unzip src="dependencies/download/bootstrap-compiler.zip" dest="dependencies/bootstrap-compiler"/>
|
||||||
<if>
|
|
||||||
<matches pattern="mac\.zip|tar\.gz" string="${os.tag}"/>
|
|
||||||
<then>
|
|
||||||
<!-- Java can't manipulate permissions -->
|
|
||||||
<exec executable="find">
|
|
||||||
<arg value="dependencies/bootstrap-compiler/Kotlin/kotlinc/bin"/>
|
|
||||||
<arg line="-name 'kotlin*' ! -name '*.bat' -exec chmod a+x '{}' ;"/>
|
|
||||||
</exec>
|
|
||||||
</then>
|
|
||||||
</if>
|
|
||||||
</then>
|
</then>
|
||||||
<else>
|
<else>
|
||||||
<!-- Teamcity should provide bootstrap compiler with dependency feature -->
|
<!-- Teamcity should provide bootstrap compiler with dependency feature -->
|
||||||
@@ -249,10 +240,24 @@
|
|||||||
<then>
|
<then>
|
||||||
<fail message="Bootstrap compiler is expected to be downloaded to 'dependencies/bootstrap-compiler' by TeamCity"/>
|
<fail message="Bootstrap compiler is expected to be downloaded to 'dependencies/bootstrap-compiler' by TeamCity"/>
|
||||||
</then>
|
</then>
|
||||||
|
<else>
|
||||||
|
<echo message="Bootstrap compiler found in 'dependencies/bootstrap-compiler'"/>
|
||||||
|
</else>
|
||||||
</if>
|
</if>
|
||||||
</else>
|
</else>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
<if>
|
||||||
|
<matches pattern="mac\.zip|tar\.gz" string="${os.tag}"/>
|
||||||
|
<then>
|
||||||
|
<!-- Java can't manipulate permissions -->
|
||||||
|
<exec executable="find">
|
||||||
|
<arg value="dependencies/bootstrap-compiler/Kotlin/kotlinc/bin"/>
|
||||||
|
<arg line="-name 'kotlin*' ! -name '*.bat' -exec chmod a+x '{}' ;"/>
|
||||||
|
</exec>
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
|
|
||||||
<!-- Markdown parser -->
|
<!-- Markdown parser -->
|
||||||
<get src="https://teamcity.jetbrains.com/guestAuth/repository/download/IntelliJMarkdownParser_Build/.lastFinished/markdown_jar/markdown.jar"
|
<get src="https://teamcity.jetbrains.com/guestAuth/repository/download/IntelliJMarkdownParser_Build/.lastFinished/markdown_jar/markdown.jar"
|
||||||
dest="dependencies/markdown.jar" usetimestamp="true"/>
|
dest="dependencies/markdown.jar" usetimestamp="true"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user