Fix maven build: rename namespace class to package class

This commit is contained in:
Natalia.Ukhorskaya
2013-01-18 12:07:01 +04:00
parent fb9c4b92c4
commit 5c56900a09
7 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -67,7 +67,7 @@
</execution>
</executions>
<configuration>
<mainClass>org.jetbrains.kotlin.site.namespace</mainClass>
<mainClass>org.jetbrains.kotlin.site.SitePackage</mainClass>
<arguments>
<argument>${basedir}</argument>
</arguments>
+1 -1
View File
@@ -106,7 +106,7 @@
<phase>test</phase>
<configuration>
<target>
<java fork="true" classpathref="maven.test.classpath" classname="io.kool.javafx.namespace">
<java fork="true" classpathref="maven.test.classpath" classname="io.kool.javafx.JavafxPackage">
<arg value="file://sample-javafx.html"/>
</java>
</target>
@@ -9,7 +9,7 @@
</div>
<script type="text/kotlin">
sample.namespace.myApp()
sample.SamplePackage.myApp()
</script>
</body>
@@ -1,7 +1,7 @@
package test.kotlin.jtests;
import static kotlin.namespace.*;
import static kotlin.util.namespace.*;
import static kotlin.KotlinPackage.*;
import static kotlin.util.UtilPackage.*;
import jet.Function1;
import junit.framework.TestCase;
+2 -2
View File
@@ -63,7 +63,7 @@
</execution>
</executions>
<configuration>
<mainClass>demo.namespace</mainClass>
<mainClass>demo.DemoPackage</mainClass>
<classpathScope>test</classpathScope>
<systemProperties>
<systemProperty>
@@ -98,7 +98,7 @@
<phase>test</phase>
<configuration>
<target>
<java fork="true" classpathref="maven.test.classpath" classname="demo.namespace"/>
<java fork="true" classpathref="maven.test.classpath" classname="demo.DemoPackage"/>
</target>
</configuration>
<goals>
+1 -1
View File
@@ -38,7 +38,7 @@
</execution>
</executions>
<configuration>
<mainClass>org.jetbrains.kotlin.tools.namespace</mainClass>
<mainClass>org.jetbrains.kotlin.tools.ToolsPackage</mainClass>
<classpathScope>test</classpathScope>
</configuration>
</plugin>
@@ -171,7 +171,7 @@ abstract class KClassOrPackage(model: KModel, declarationDescriptor: Declaration
class SourceInfo(val psi: JetFile, val relativePath: String, val htmlPath: String)
class KModel(val context: BindingContext, val config: KDocConfig, val sourceDirs: List<File>, val sources: List<JetFile>) {
// TODO generates java.lang.NoSuchMethodError: kotlin.util.namespace.hashMap(Ljet/TypeInfo;Ljet/TypeInfo;)Ljava/util/HashMap;
// TODO generates java.lang.NoSuchMethodError: kotlin.util.UtilPackage.hashMap(Ljet/TypeInfo;Ljet/TypeInfo;)Ljava/util/HashMap;
//val packages = sortedMap<String,KPackage>()
public val packageMap: SortedMap<String, KPackage> = TreeMap<String, KPackage>()
@@ -942,7 +942,7 @@ class KPackage(model: KModel, val descriptor: NamespaceDescriptor,
var useExternalLink: Boolean = false): KClassOrPackage(model, descriptor), Comparable<KPackage> {
// TODO generates java.lang.NoSuchMethodError: kotlin.util.namespace.hashMap(Ljet/TypeInfo;Ljet/TypeInfo;)Ljava/util/HashMap;
// TODO generates java.lang.NoSuchMethodError: kotlin.util.UtilPackage.hashMap(Ljet/TypeInfo;Ljet/TypeInfo;)Ljava/util/HashMap;
//val classes = sortedMap<String,KClass>()
public val classMap: SortedMap<String, KClass> = TreeMap<String, KClass>()