Skip to content

Commit

Permalink
Rename module "build" -> "build-common"
Browse files Browse the repository at this point in the history
  • Loading branch information
bashor committed Jan 26, 2016
1 parent 8ec63bd commit aebf681
Show file tree
Hide file tree
Showing 29 changed files with 21 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .idea/artifacts/KotlinJpsPlugin.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions build/build.iml → build-common/build-common.iml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/testData" type="java-test-resource" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
Expand All @@ -16,4 +14,4 @@
<orderEntry type="module" module-name="compiler-tests" scope="TEST" />
<orderEntry type="library" scope="TEST" name="idea-full" level="project" />
</component>
</module>
</module>
24 changes: 12 additions & 12 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -603,15 +603,15 @@
</jar>
</target>

<target name="kotlin-build">
<cleandir dir="${output}/classes/kotlin-build"/>
<target name="kotlin-build-common">
<cleandir dir="${output}/classes/kotlin-build-common"/>

<javac2 destdir="${output}/classes/kotlin-build" debug="true" debuglevel="lines,vars,source" includeAntRuntime="false"
<javac2 destdir="${output}/classes/kotlin-build-common" debug="true" debuglevel="lines,vars,source" includeAntRuntime="false"
source="${java.target}" target="${java.target}">
<withKotlin modulename="kotlin-build"/>
<withKotlin modulename="kotlin-build-common"/>
<skip pattern="kotlin/jvm/internal/.*"/>
<src>
<pathelement path="build/src"/>
<pathelement path="build-common/src"/>
</src>
<classpath>
<pathelement path="${bootstrap.runtime}"/>
Expand All @@ -621,28 +621,28 @@
</classpath>
</javac2>

<jar destfile="${kotlin-home}/lib/kotlin-build.jar">
<fileset dir="${output}/classes/kotlin-build"/>
<jar destfile="${kotlin-home}/lib/kotlin-build-common.jar">
<fileset dir="${output}/classes/kotlin-build-common"/>
<zipfileset file="${kotlin-home}/build.txt" prefix="META-INF"/>

<manifest>
<attribute name="Built-By" value="${manifest.impl.vendor}"/>

<attribute name="Implementation-Vendor" value="${manifest.impl.vendor}"/>
<attribute name="Implementation-Title" value="${manifest.impl.title.kotlin.build}"/>
<attribute name="Implementation-Title" value="${manifest.impl.title.kotlin.build.common}"/>
<attribute name="Implementation-Version" value="${build.number}"/>
</manifest>
</jar>

<jar jarfile="${output}/kotlin-build-sources.jar">
<fileset dir="build/src"/>
<jar jarfile="${output}/kotlin-build-common-sources.jar">
<fileset dir="build-common/src"/>
<zipfileset file="${kotlin-home}/build.txt" prefix="META-INF"/>

<manifest>
<attribute name="Built-By" value="${manifest.impl.vendor}"/>

<attribute name="Implementation-Vendor" value="${manifest.impl.vendor}"/>
<attribute name="Implementation-Title" value="${manifest.impl.title.kotlin.build.sources}"/>
<attribute name="Implementation-Title" value="${manifest.impl.title.kotlin.build.common.sources}"/>
<attribute name="Implementation-Version" value="${build.number}"/>
</manifest>
</jar>
Expand Down Expand Up @@ -1054,7 +1054,7 @@
depends="builtins,stdlib,kotlin-test,core,reflection,pack-runtime,pack-runtime-sources,mock-runtime-for-test"/>

<target name="dist"
depends="clean,init,prepare-dist,preloader,runner,serialize-builtins,compiler,compiler-sources,kotlin-build,ant-tools,jdk-annotations,android-sdk-annotations,runtime,kotlin-js-stdlib,android-compiler-plugin,daemon-client"
depends="clean,init,prepare-dist,preloader,runner,serialize-builtins,compiler,compiler-sources,kotlin-build-common,ant-tools,jdk-annotations,android-sdk-annotations,runtime,kotlin-js-stdlib,android-compiler-plugin,daemon-client"
description="Builds redistributables from sources"/>

<target name="dist-quick"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import java.util.*

class GenerateProtoBufCompare {
companion object {
val DEST_FILE: File = File("build/src/org/jetbrains/kotlin/incremental/ProtoCompareGenerated.kt")
val DEST_FILE: File = File("build-common/src/org/jetbrains/kotlin/incremental/ProtoCompareGenerated.kt")

@JvmStatic
fun main(args: Array<String>) {
Expand Down
4 changes: 2 additions & 2 deletions jps-plugin/jps-plugin.iml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="idea-jps-common" />
<orderEntry type="module" module-name="cli-common" />
<orderEntry type="module" module-name="build" />
<orderEntry type="module" module-name="build-common" />
<orderEntry type="library" name="jps" level="project" />
<orderEntry type="library" scope="TEST" name="jps-test" level="project" />
<orderEntry type="library" scope="TEST" name="idea-full" level="project" />
Expand All @@ -25,4 +25,4 @@
<orderEntry type="module" module-name="daemon-common" />
<orderEntry type="library" scope="TEST" name="kotlin-test" level="project" />
</component>
</module>
</module>
4 changes: 2 additions & 2 deletions resources/kotlinManifest.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ manifest.impl.title.kotlin.android.sdk.annotations=Kotlin Compiler Android SDK A

manifest.impl.title.kotlin.daemon-client=Kotlin Compile Daemon Client

manifest.impl.title.kotlin.build=Kotlin Builder
manifest.impl.title.kotlin.build.sources=Kotlin Builder Sources
manifest.impl.title.kotlin.build.common=Kotlin Build Common
manifest.impl.title.kotlin.build.common.sources=Kotlin Build Common Sources

0 comments on commit aebf681

Please sign in to comment.