polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject Re: [7/9] polygene-java git commit: POLYGENE-29 Fix Kotlin Script file extension: *.kts
Date Mon, 10 Apr 2017 11:57:53 GMT
Paul,
I looked at exactly the same page as you, but I didn't trust the
documentation and went to
https://github.com/JetBrains/kotlin/tree/master/libraries/examples/kotlin-jsr223-local-example/src/test/kotlin/org/jetbrains/kotlin/script/jsr223
where it ultimately points to, and there it is a .kt file. Maybe add
multiple extensions...

On Mon, Apr 10, 2017 at 7:54 PM, <paulmerlin@apache.org> wrote:

> POLYGENE-29 Fix Kotlin Script file extension: *.kts
>
> See https://kotlinlang.org/docs/reference/whatsnew11.html#
> javaxscript-support
>
>
> Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
> Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/
> commit/a5bf65b8
> Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/a5bf65b8
> Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/a5bf65b8
>
> Branch: refs/heads/develop
> Commit: a5bf65b857ef31d89210557d008e8e3334f68c78
> Parents: 7f4048d
> Author: Paul Merlin <paulmerlin@apache.org>
> Authored: Mon Apr 10 12:54:21 2017 +0200
> Committer: Paul Merlin <paulmerlin@apache.org>
> Committed: Mon Apr 10 12:54:21 2017 +0200
>
> ----------------------------------------------------------------------
>  .../main/java/org/apache/polygene/library/scripting/Scripting.java | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> ----------------------------------------------------------------------
>
>
> http://git-wip-us.apache.org/repos/asf/polygene-java/blob/
> a5bf65b8/libraries/scripting/src/main/java/org/apache/
> polygene/library/scripting/Scripting.java
> ----------------------------------------------------------------------
> diff --git a/libraries/scripting/src/main/java/org/apache/polygene/
> library/scripting/Scripting.java b/libraries/scripting/src/
> main/java/org/apache/polygene/library/scripting/Scripting.java
> index 119b8a1..ad97b42 100644
> --- a/libraries/scripting/src/main/java/org/apache/polygene/
> library/scripting/Scripting.java
> +++ b/libraries/scripting/src/main/java/org/apache/polygene/
> library/scripting/Scripting.java
> @@ -27,7 +27,7 @@ public class Scripting
>      public static final Scripting ECMASCRIPT = new Scripting( "nashorn",
> ".js" );
>      public static final Scripting GROOVY = new Scripting( "groovy",
> ".groovy" );
>      public static final Scripting JAVASCRIPT = new Scripting( "nashorn",
> ".js" );
> -    public static final Scripting KOTLIN = new Scripting( "kotlin", ".kt"
> );
> +    public static final Scripting KOTLIN = new Scripting( "kotlin",
> ".kts" );
>      public static final Scripting LUA = new Scripting( "lua", ".lua" );
>      public static final Scripting PYTHON = new Scripting( "python", ".py"
> );
>      public static final Scripting RUBY = new Scripting( "jruby", ".rb" );
>
>


-- 
Niclas Hedhman, Software Developer
http://polygene.apache.org - New Energy for Java

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message