Re: [Configuration] How do I traverse an XML configuration?

2017-04-06 Thread Gary Gregory
I might have hit pay-dirt
with 
org.apache.commons.configuration2.BaseHierarchicalConfiguration.getNodeModel()...

Gary

On Thu, Apr 6, 2017 at 9:39 PM, Gary Gregory  wrote:

> Thanks Woonsan, but using DOM defeats the purpose of using Commons Config
> :-(
>
> I was hopping to get access to some object model where I do not have to
> worry about collapsing white space and other XML messy stuff.
>
> getKeys() gives me ALL the keys for the whole document, all I need
> something like getChildKeys() for the current config. Then I can,
> presumably, get make a config out of each child and keep going.
>
> Is that not possible?
>
> If I have to use DOM, then I do not need Commons Config :-(
>
> Gary
>
> On Thu, Apr 6, 2017 at 8:46 PM, Woonsan Ko  wrote:
>
>> If you meant to traverse dom tree of the xml document, perhaps you can
>> use XMLConfiguration#getDocument().
>>
>> Regards,
>>
>> Woonsan
>>
>> On Thu, Apr 6, 2017 at 11:00 PM, Gary Gregory 
>> wrote:
>> > Hi All:
>> >
>> > I have an XMLConfiguration and I need to get all of the child nodes from
>> > the root. Once I have each node I need to get the children of each.
>> This is
>> > not about preorder or postorder or depth-first searches. I just need to
>> be
>> > able to navigate the tree.
>> >
>> > Clues?
>> >
>> > Thank you,
>> > Gary
>> >
>> > --
>> > E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
>> > Java Persistence with Hibernate, Second Edition
>> > > ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&link
>> Code=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8>
>> >
>> > > am2&o=1&a=1617290459>
>> > JUnit in Action, Second Edition
>> > > ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&link
>> Code=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22>
>> >
>> > > am2&o=1&a=1935182021>
>> > Spring Batch in Action
>> > > ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&link
>> Code=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Bli
>> nk_id%7D%7D%22%3ESpring+Batch+in+Action>
>> > > am2&o=1&a=1935182951>
>> > Blog: http://garygregory.wordpress.com
>> > Home: http://garygregory.com/
>> > Tweet! http://twitter.com/GaryGregory
>>
>> -
>> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
>> For additional commands, e-mail: dev-h...@commons.apache.org
>>
>>
>
>
> --
> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> Java Persistence with Hibernate, Second Edition
> 
>
> 
> JUnit in Action, Second Edition
> 
>
> 
> Spring Batch in Action
> 
> 
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter

Build failed in Jenkins: commons-beanutils #20

2017-04-06 Thread Apache Jenkins Server
See 


Changes:

[kinow] Apply patch to fix typo (thanks to @kryger). This closes #3

--
[...truncated 8.66 KB...]
AU
src/test/java/org/apache/commons/beanutils/priv/PrivateBeanFactory.java
AUsrc/test/java/org/apache/commons/beanutils/priv/PrivateIndirect.java
AUsrc/test/java/org/apache/commons/beanutils/PropertyUtilsTestCase.java
AU
src/test/java/org/apache/commons/beanutils/ConstructorUtilsTestCase.java
AUsrc/test/java/org/apache/commons/beanutils/TestBean.java
AU
src/test/java/org/apache/commons/beanutils/DefaultIntrospectionContextTestCase.java
A src/test/java/org/apache/commons/beanutils/memoryleaktests
AU
src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java
A src/test/java/org/apache/commons/beanutils/memoryleaktests/pojotests
AU
src/test/java/org/apache/commons/beanutils/memoryleaktests/pojotests/SomeMappedPojo.java
AU
src/test/java/org/apache/commons/beanutils/memoryleaktests/pojotests/CustomInteger.java
AU
src/test/java/org/apache/commons/beanutils/memoryleaktests/pojotests/SomePojo.java
AU
src/test/java/org/apache/commons/beanutils/ThrowExceptionConverter.java
AU
src/test/java/org/apache/commons/beanutils/DynaPropertyUtilsTestCase.java
AU
src/test/java/org/apache/commons/beanutils/DynaBeanMapDecoratorTestCase.java
AUsrc/test/java/org/apache/commons/beanutils/A.java
AUsrc/test/java/org/apache/commons/beanutils/SonOfAlphaBean.java
AU
src/test/java/org/apache/commons/beanutils/TestBeanPackageSubclass.java
AUsrc/test/java/org/apache/commons/beanutils/LazyDynaMapTestCase.java
AUsrc/test/java/org/apache/commons/beanutils/TestResultSet.java
AUsrc/test/java/org/apache/commons/beanutils/TestResultSetMetaData.java
AUsrc/test/java/org/apache/commons/beanutils/DynaRowSetTestCase.java
AU
src/test/java/org/apache/commons/beanutils/MappedPropertyTestInterface.java
AU
src/test/java/org/apache/commons/beanutils/FluentPropertyBeanIntrospectorTestCase.java
AUsrc/test/java/org/apache/commons/beanutils/TestBeanPublicSubclass.java
AUsrc/test/java/org/apache/commons/beanutils/BenchBean.java
AUsrc/test/java/org/apache/commons/beanutils/IndexedTestBean.java
AUsrc/test/java/org/apache/commons/beanutils/MappedPropertyTestCase.java
AUsrc/test/java/org/apache/commons/beanutils/AbstractChild.java
A src/test/java/org/apache/commons/beanutils/converters
AU
src/test/java/org/apache/commons/beanutils/converters/ConverterTestSuite.java
AU
src/test/java/org/apache/commons/beanutils/converters/IntegerConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/SqlDateConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/ClassReloader.java
AU
src/test/java/org/apache/commons/beanutils/converters/LongConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/ShortConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/URLConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/ByteConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/StringArrayConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/FloatConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/ClassConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/StringConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/CalendarConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/DoubleConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/DateConverterTestBase.java
AU
src/test/java/org/apache/commons/beanutils/converters/DateConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/SqlTimeConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/ArrayConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/BooleanArrayConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/BigIntegerConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/BooleanConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/FileConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/BigDecimalConverterTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/MemoryTestCase.java
AU
src/test/java/org/apache/commons/beanutils/converters/SqlTimestampConverterTestCase.

Re: [Configuration] How do I traverse an XML configuration?

2017-04-06 Thread Gary Gregory
Thanks Woonsan, but using DOM defeats the purpose of using Commons Config
:-(

I was hopping to get access to some object model where I do not have to
worry about collapsing white space and other XML messy stuff.

getKeys() gives me ALL the keys for the whole document, all I need
something like getChildKeys() for the current config. Then I can,
presumably, get make a config out of each child and keep going.

Is that not possible?

If I have to use DOM, then I do not need Commons Config :-(

Gary

On Thu, Apr 6, 2017 at 8:46 PM, Woonsan Ko  wrote:

> If you meant to traverse dom tree of the xml document, perhaps you can
> use XMLConfiguration#getDocument().
>
> Regards,
>
> Woonsan
>
> On Thu, Apr 6, 2017 at 11:00 PM, Gary Gregory 
> wrote:
> > Hi All:
> >
> > I have an XMLConfiguration and I need to get all of the child nodes from
> > the root. Once I have each node I need to get the children of each. This
> is
> > not about preorder or postorder or depth-first searches. I just need to
> be
> > able to navigate the tree.
> >
> > Clues?
> >
> > Thank you,
> > Gary
> >
> > --
> > E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> > Java Persistence with Hibernate, Second Edition
> >  tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&
> linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8>
> >
> >  1617290459>
> > JUnit in Action, Second Edition
> >  tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&
> linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22
> >
> >
> >  1935182021>
> > Spring Batch in Action
> >  tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&
> linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%
> 7Blink_id%7D%7D%22%3ESpring+Batch+in+Action>
> >  1935182951>
> > Blog: http://garygregory.wordpress.com
> > Home: http://garygregory.com/
> > Tweet! http://twitter.com/GaryGregory
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [beanutils] Merge pull request sent via GitHub, but src in SVN

2017-04-06 Thread Bruno P. Kinoshita
Thanks Gary & sebb. Downloaded the patch from GitHub (TIL!), and applied with 
`patch apply -p1 -i ~/3.patch`


I included the "Closes #3" text in the commit message, but looks like SVN 
repositories take a bit longer to sync.  GitHub repo should be updated in some 
minutes/hours, and hopefully the pull request will be marked as merged too.

Cheers
Bruno





From: Gary Gregory 
To: Commons Developers List  
Cc: Bruno P. Kinoshita 
Sent: Friday, 7 April 2017 5:40 AM
Subject: Re: [beanutils] Merge pull request sent via GitHub, but src in SVN



I would use a diff file like 
https://patch-diff.githubusercontent.com/raw/apache/commons-beanutils/pull/3.diff
 

Whether you use a diff or patch file depends on your tooling.
I would add a comment "Closes #123" in your commit comment along with a comment 
that refers to a JIRA ticket. That will close the PR.

I'm not sure what we should do in the long run about duplicating PRs and JIRAs.

Gary


On Thu, Apr 6, 2017 at 6:30 AM, sebb  wrote:

On 6 April 2017 at 13:16, Bruno P. Kinoshita
> wrote:
>> Hi,
>>
>>
>> We have a pending pull request for [beanutils] https://github.com/apache/ 
>> commons-beanutils/pull/3
>>
>> As the component is still using Subversion, I am not able to use my normal 
>> workflow to merge the pull request (i.e. clone the ASF upstream, checkout 
>> GitHub remote branch, merge, push).
>>
>> What are the steps to merge a pull request sent via GitHub, for components 
>> using Subversion? Should someone simply apply it manually (i.e. edit the 
>> code, or maybe generate a patch from the git repository)?
>
>It's trivial to change a PR into a patch; just append '.patch':
>
>https://patch-diff. githubusercontent.com/raw/ apache/commons-beanutils/pull/ 
>3.patch
>
>This can then be applied to SVN as normal.
>
>> I believe the commit message must contain "This closes #123" as well, in 
>> order to close the PR?
>
>I think so.
>
>
>> Thanks
>> Bruno
>>
>> -- -- -
>> To unsubscribe, e-mail: dev-unsubscribe@commons. apache.org
>> For additional commands, e-mail: dev-h...@commons.apache.org
>>
>
>-- -- -
>To unsubscribe, e-mail: dev-unsubscribe@commons. apache.org
>For additional commands, e-mail: dev-h...@commons.apache.org
>
>


-- 

E-Mail: garydgreg...@gmail.com | ggreg...@apache.org 
Java Persistence with Hibernate, Second Edition 
JUnit in Action, Second Edition 
Spring Batch in Action
Blog: http://garygregory.wordpress.com 
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: [Configuration] How do I traverse an XML configuration?

2017-04-06 Thread Woonsan Ko
If you meant to traverse dom tree of the xml document, perhaps you can
use XMLConfiguration#getDocument().

Regards,

Woonsan

On Thu, Apr 6, 2017 at 11:00 PM, Gary Gregory  wrote:
> Hi All:
>
> I have an XMLConfiguration and I need to get all of the child nodes from
> the root. Once I have each node I need to get the children of each. This is
> not about preorder or postorder or depth-first searches. I just need to be
> able to navigate the tree.
>
> Clues?
>
> Thank you,
> Gary
>
> --
> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> Java Persistence with Hibernate, Second Edition
> 
>
> 
> JUnit in Action, Second Edition
> 
>
> 
> Spring Batch in Action
> 
> 
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



[Configuration] How do I traverse an XML configuration?

2017-04-06 Thread Gary Gregory
Hi All:

I have an XMLConfiguration and I need to get all of the child nodes from
the root. Once I have each node I need to get the children of each. This is
not about preorder or postorder or depth-first searches. I just need to be
able to navigate the tree.

Clues?

Thank you,
Gary

-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [beanutils] Merge pull request sent via GitHub, but src in SVN

2017-04-06 Thread Gary Gregory
I would use a diff file like
https://patch-diff.githubusercontent.com/raw/apache/commons-beanutils/pull/3.diff


Whether you use a diff or patch file depends on your tooling.

I would add a comment "Closes #123" in your commit comment along with a
comment that refers to a JIRA ticket. That will close the PR.

I'm not sure what we should do in the long run about duplicating PRs and
JIRAs.

Gary

On Thu, Apr 6, 2017 at 6:30 AM, sebb  wrote:

> On 6 April 2017 at 13:16, Bruno P. Kinoshita
>  wrote:
> > Hi,
> >
> >
> > We have a pending pull request for [beanutils]
> https://github.com/apache/commons-beanutils/pull/3
> >
> > As the component is still using Subversion, I am not able to use my
> normal workflow to merge the pull request (i.e. clone the ASF upstream,
> checkout GitHub remote branch, merge, push).
> >
> > What are the steps to merge a pull request sent via GitHub, for
> components using Subversion? Should someone simply apply it manually (i.e.
> edit the code, or maybe generate a patch from the git repository)?
>
> It's trivial to change a PR into a patch; just append '.patch':
>
> https://patch-diff.githubusercontent.com/raw/
> apache/commons-beanutils/pull/3.patch
>
> This can then be applied to SVN as normal.
>
> > I believe the commit message must contain "This closes #123" as well, in
> order to close the PR?
>
> I think so.
>
> > Thanks
> > Bruno
> >
> > -
> > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> > For additional commands, e-mail: dev-h...@commons.apache.org
> >
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [beanutils] Merge pull request sent via GitHub, but src in SVN

2017-04-06 Thread sebb
On 6 April 2017 at 13:16, Bruno P. Kinoshita
 wrote:
> Hi,
>
>
> We have a pending pull request for [beanutils] 
> https://github.com/apache/commons-beanutils/pull/3
>
> As the component is still using Subversion, I am not able to use my normal 
> workflow to merge the pull request (i.e. clone the ASF upstream, checkout 
> GitHub remote branch, merge, push).
>
> What are the steps to merge a pull request sent via GitHub, for components 
> using Subversion? Should someone simply apply it manually (i.e. edit the 
> code, or maybe generate a patch from the git repository)?

It's trivial to change a PR into a patch; just append '.patch':

https://patch-diff.githubusercontent.com/raw/apache/commons-beanutils/pull/3.patch

This can then be applied to SVN as normal.

> I believe the commit message must contain "This closes #123" as well, in 
> order to close the PR?

I think so.

> Thanks
> Bruno
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Jenkins build is back to normal : Commons-Compress #239

2017-04-06 Thread Apache Jenkins Server
See 



-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Jenkins build is back to normal : Commons-Compress ยป Apache Commons Compress #239

2017-04-06 Thread Apache Jenkins Server
See 



-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



[beanutils] Merge pull request sent via GitHub, but src in SVN

2017-04-06 Thread Bruno P. Kinoshita
Hi,


We have a pending pull request for [beanutils] 
https://github.com/apache/commons-beanutils/pull/3

As the component is still using Subversion, I am not able to use my normal 
workflow to merge the pull request (i.e. clone the ASF upstream, checkout 
GitHub remote branch, merge, push).

What are the steps to merge a pull request sent via GitHub, for components 
using Subversion? Should someone simply apply it manually (i.e. edit the code, 
or maybe generate a patch from the git repository)?

I believe the commit message must contain "This closes #123" as well, in order 
to close the PR?

Thanks
Bruno

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org