project/plugins.sbt
addSbtPlugin("com.github.xuwei-k" % "sbtend" % "0.2.0")
sbt xtend plugin
License: MIT License
project/plugins.sbt
addSbtPlugin("com.github.xuwei-k" % "sbtend" % "0.2.0")
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
>>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.