Show plugin usage on invalid arguments
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xplugin
|
||||
dist/kotlinc/lib/android-compiler-plugin.jar
|
||||
-P
|
||||
plugin:org.jetbrains.kotlin.android:androidManifest=$TESTDATA_DIR$/androidPlugin/AndroidManifest.xml
|
||||
$TESTDATA_DIR$/pluginSimple.kt
|
||||
$TESTDATA_DIR$/androidPlugin/androidApp.kt
|
||||
$TESTDATA_DIR$/androidPlugin/androidView.kt
|
||||
$TESTDATA_DIR$/androidPlugin/androidWidget.kt
|
||||
@@ -0,0 +1,8 @@
|
||||
import android.view.*
|
||||
import android.app.*
|
||||
import android.widget.*
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
|
||||
class MyActivity : Activity() {
|
||||
{ textView.setText("Some text") }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
ERROR: Required plugin option not present: org.jetbrains.kotlin.android:androidRes
|
||||
|
||||
Plugin "org.jetbrains.kotlin.android" usage:
|
||||
androidRes <path> Android resources path (required)
|
||||
androidManifest <path> Android manifest file (required)
|
||||
|
||||
COMPILATION_ERROR
|
||||
Reference in New Issue
Block a user