polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhuangmz08" <zhuangm...@qq.com>
Subject 回复: UseDefaults with custom default value?
Date Fri, 15 Apr 2016 10:09:42 GMT
Thank you so much! You're so nice and sweet!




------------------ 原始邮件 ------------------
发件人: "Niclas Hedhman";<niclas@hedhman.org>;
发送时间: 2016年4月15日(星期五) 晚上6:06
收件人: "dev"<dev@zest.apache.org>; 

主题: Re: UseDefaults with custom default value?



Yes, it is pushed to the 'develop' branch, which will eventually become the
3.0 release.

I suggest that you try to build that yourself, so you can keep pace with
new stuff.

I recommend the following;

mkdir zest
cd zest
mkdir java
mkdir zest-web
git clone https://github.com/Apache/zest-java.git java
cd java


and then to build,

./gradlew -Dversion=3.0.alpha clean assemble install

and it should end up in your local Maven repository (sits hidden on your
hard disk), and you can depend on the Maven artifacts, versioned 3.0.alpha.
You should also get the SDK distro in tar/zip files in build/distributions/
directory, if you prefer that format.

The "project creator" should also be ready by tomorrow, if nothing
unexpected happens. Would love if you could check that out later and give
feedback. That would help a lot.

Cheers
Niclas


On Fri, Apr 15, 2016 at 5:47 PM, zhuangmz08 <zhuangmz08@qq.com> wrote:

> Hi, Niclas,
> The status of [https://issues.apache.org/jira/browse/ZEST-142] is
> [Resolved] by you. Does this mean you have fix the bug and upload your
> patch code?
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Niclas Hedhman";<niclas@hedhman.org>;
> 发送时间: 2016年4月15日(星期五) 下午4:05
> 收件人: "dev"<dev@zest.apache.org>;
>
> 主题: Re: UseDefaults with custom default value?
>
>
>
> Sure...
>
> The official way is that on https://zest.apache.org/ main page, under the
> Community menu, there is a "Issues" choice.
> That will transport you to https://issues.apache.org/jira/browse/ZEST
>
> JIRA will require you to have an account. It is self-service. In the top
> right corner, there should be a LOGIN, and a choice to create an account.
>
> Once that is completed, there is a BIG RED button near the middle at the
> top saying CREATE, click that and you get a form. Many fields can be left
> blank. It is no big deal if you skip or fill in wrongly, it can be edited
> later.
>
> HTH
> Niclas
>
> On Fri, Apr 15, 2016 at 3:50 PM, zhuangmz08 <zhuangmz08@qq.com> wrote:
>
> > Could you please send me a link about how to use JIRA to communicate with
> > zest-dev ?
> >
> >
> >
> >
> > ------------------ 原始邮件 ------------------
> > 发件人: "Niclas Hedhman";<niclas@hedhman.org>;
> > 发送时间: 2016年4月15日(星期五) 下午3:40
> > 收件人: "dev"<dev@zest.apache.org>;
> >
> > 主题: Re: UseDefaults with custom default value?
> >
> >
> >
> > But the problem is that 'value' has a type and limited to primitives,
> class
> > and String (IIRC), so it would need to be String and have a deserializer
> to
> > the actual type. Doable, but in your example it would be;
> >
> >  @UseDefaults(value="8080")
> >  Property<Integer> port();
> >
> > and "value" is not actually needed, so
> >
> >  @UseDefaults("8080")
> >  Property<Integer> port();
> >
> >
> >
> > On Fri, Apr 15, 2016 at 3:37 PM, Niclas Hedhman <niclas@hedhman.org>
> > wrote:
> >
> > > No, I don't think this has been implemented. A neat idea idea, though.
> > Add
> > > a Jira if you want to see it implemented (or implement it for us ;-) )
> > >
> > > On Fri, Apr 15, 2016 at 3:11 PM, zhuangmz08 <zhuangmz08@qq.com> wrote:
> > >
> > >> Hi,
> > >>   Could I define default value where I declare the Property, such as:
> > >>
> > >>
> > >> public interface ABC {
> > >>    @UseDefaults(value="127.0.0.1")
> > >>    Property<String> hostname();
> > >>
> > >>
> > >>    @UseDefaults(value=8080)
> > >>    Property<Integer> port();
> > >> }
> > >>
> > >>
> > >> Thanks a lot.
> > >
> > >
> > >
> > >
> > > --
> > > Niclas Hedhman, Software Developer
> > > http://zest.apache.org - New Energy for Java
> > >
> >
> >
> >
> > --
> > Niclas Hedhman, Software Developer
> > http://zest.apache.org - New Energy for Java
> >
>
>
>
> --
> Niclas Hedhman, Software Developer
> http://zest.apache.org - New Energy for Java
>



-- 
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message