Giter VIP home page Giter VIP logo

sbtend's Introduction

sbtend's People

Contributors

xuwei-k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sbtend's Issues

SettingKey[File]("xtend-source") should be SettingKey[Seq[File]]("xtend-source") ?

I don't know what I do this problem :-(
Does anyone else have anything to say?

Hi Kenji

Thanks for your quick reply!

That example does make sense to me. However, this build file only defines one source location, "foo".

https://gist.github.com/3715764#file_build.scala (line 10)

I don't think it is possible for me to use another source location, like "bar", like this:

+-- foo                   
¦   +-- Hello.xtend        
+-- bar                   
¦   +-- Hi.xtend        
+-- project               
    +-- build.properties 
    +-- build.scala       
    +-- plugins.sbt                

because xtendSource is defined as a SettingKey[File], not a SettingKey[Seq[File]]:

https://github.com/xuwei-k/sbtend/blob/0.1.3/src/main/scala/Plugin.scala#L13

My actual situation is more like this:

+-- example                   
¦   +-- src
|        +-- main
|        |    +-- xtend
|        |         +-- Hello.xtend
|        |
|        +-- test
|             +-- xtend
|                  +-- Hi.xtend
|        
+-- project               
    +-- build.properties 
    +-- build.scala       
    +-- plugins.sbt

Would it be possible to change the definition of xtendSource to a SettingKey[Seq[File]] (or you can use a SettingKey[Set[File]] or similar) so I can achieve what I want? Is that a lot of work for you? I don't have a lot of experience with writing "new style" SBT plugins.

Thanks a lot for your help,
Andrew

>
>On Thu, Sep 13, 2012 at 6:58 PM, Kenji Yoshida <[email protected]> wrote:
>Hi. thanks for try my plugin :-)
>
>I had been configurable xtend source directory.
>
>https://github.com/xuwei-k/sbtend/blob/0.1.3/src/main/scala/Plugin.scala#L13
>
>than I wrote sample codes.
>
>https://gist.github.com/3715764
>
>Does it make sense to you ?
>
>
>2012/9/14 Andrew Shewring <[email protected]>:
>> Hi Kenji
>>
>> I would like to use your plugin in my project. I just have a question:
>>
>> Is it possible to configure multiple directories containing the Xtend files
>> to be compiled, for example, src/main/xtend and src/test/xtend? Ideally I
>> don't want to just set "src" to be the root directory, as this would slow
>> things down. How would I configure my SBT build for the above? I am using
>> the "full" configuration.
>>
>> Thanks and regards,
>> Andrew
>>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.