[jira] [Comment Edited] (IVY-1475) ivy:cachefileset fails with String index out of range on Windows

2017-06-01 Thread jaikiran pai (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034084#comment-16034084
 ] 

jaikiran pai edited comment on IVY-1475 at 6/2/17 3:32 AM:
---

{quote} I'll raise a discussion on the ant-dev mailing list to ask for opinions 
from developers who have more knowledge of the project.{quote}

Here's the mailing list discussion - 
https://www.mail-archive.com/dev@ant.apache.org/msg45646.html


was (Author: jaikiran):
>> I'll raise a discussion on the ant-dev mailing list to ask for opinions from 
>> developers who have more knowledge of the project.

Here's the mailing list discussion - 
https://www.mail-archive.com/dev@ant.apache.org/msg45646.html

> ivy:cachefileset fails with String index out of range on Windows
> 
>
> Key: IVY-1475
> URL: https://issues.apache.org/jira/browse/IVY-1475
> Project: Ivy
>  Issue Type: Bug
>  Components: Ant
>Affects Versions: 2.4.0-RC1
> Environment: Windows
>Reporter: Patrice Matignon
>
> On Windows, the ant task  can fail with the stack trace 
> below, when the resolve includes artifacts located in separate directories in 
> separate drives (e.g. c:\ivy2/cache/... ; d:\ivy2\cache ).
> The underlying issue is that cachefileset is an ant fileset and as such it 
> requires a base dir.
> Nevertheless, the implementation for this ant task doesn't handle this 
> scenario properly: it attempts to find the common base dir for all the 
> resolved artifacts, except that every time it runs into a conflicting 
> artifacts, it just loses the information and ends up reporting an invalid 
> base dir, which causes a fatal StringIndexOutOfBoundsException later in that 
> task.
> A sample stacktrace (the actual reported index varies):
> C:\src\trunk\build.xml:839: impossible to build ivy cache fileset: 
> java.lang.StringIndexOutOfBoundsException: String index out of range: -24
>   at java.lang.String.substring(String.java:1937)
>   at java.lang.String.substring(String.java:1904)
>   at org.apache.ivy.ant.IvyCacheFileset.getPath(IvyCacheFileset.java:114)
>   at org.apache.ivy.ant.IvyCacheFileset.doExecute(IvyCacheFileset.java:82)
>   at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:271)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (IVY-1475) ivy:cachefileset fails with String index out of range on Windows

2017-06-01 Thread jaikiran pai (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034084#comment-16034084
 ] 

jaikiran pai commented on IVY-1475:
---

>> I'll raise a discussion on the ant-dev mailing list to ask for opinions from 
>> developers who have more knowledge of the project.

Here's the mailing list discussion - 
https://www.mail-archive.com/dev@ant.apache.org/msg45646.html

> ivy:cachefileset fails with String index out of range on Windows
> 
>
> Key: IVY-1475
> URL: https://issues.apache.org/jira/browse/IVY-1475
> Project: Ivy
>  Issue Type: Bug
>  Components: Ant
>Affects Versions: 2.4.0-RC1
> Environment: Windows
>Reporter: Patrice Matignon
>
> On Windows, the ant task  can fail with the stack trace 
> below, when the resolve includes artifacts located in separate directories in 
> separate drives (e.g. c:\ivy2/cache/... ; d:\ivy2\cache ).
> The underlying issue is that cachefileset is an ant fileset and as such it 
> requires a base dir.
> Nevertheless, the implementation for this ant task doesn't handle this 
> scenario properly: it attempts to find the common base dir for all the 
> resolved artifacts, except that every time it runs into a conflicting 
> artifacts, it just loses the information and ends up reporting an invalid 
> base dir, which causes a fatal StringIndexOutOfBoundsException later in that 
> task.
> A sample stacktrace (the actual reported index varies):
> C:\src\trunk\build.xml:839: impossible to build ivy cache fileset: 
> java.lang.StringIndexOutOfBoundsException: String index out of range: -24
>   at java.lang.String.substring(String.java:1937)
>   at java.lang.String.substring(String.java:1904)
>   at org.apache.ivy.ant.IvyCacheFileset.getPath(IvyCacheFileset.java:114)
>   at org.apache.ivy.ant.IvyCacheFileset.doExecute(IvyCacheFileset.java:82)
>   at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:271)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Comment Edited] (IVY-1475) ivy:cachefileset fails with String index out of range on Windows

2017-06-01 Thread jaikiran pai (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034077#comment-16034077
 ] 

jaikiran pai edited comment on IVY-1475 at 6/2/17 3:19 AM:
---

You are right, this is indeed an issue. If you have caches that don't share a 
common base directory (which can happen) and if the artifacts resulting from a 
{{resolve}} end up across these caches (which is again possible), then there 
won't be a common base dir that the {{fileset}} generated by {{cachefileset}} 
can use. Given that there can't be a fileset without a base dir, like you say, 
there isn't really a "fix" for this issue and instead should be noted as a 
limitation of this task. 

You also note that this task could be deprecated in favour of {{ivy:resources}} 
task. Having read its documentation, I think it makes sense to do that. I'll 
raise a discussion on the ant-dev mailing list to ask for opinions from 
developers who have more knowledge of the project.


was (Author: jaikiran):
You are right, this is indeed an issue. If you have caches that don't share a 
common base directory (which can happen) and if the artifacts resulting from a 
`resolve` end up across these caches (which is again possible), then there 
won't be a common base dir that the `fileset` generated by `cachefileset` can 
use. Given that there can't be a fileset without a base dir, like you say, 
there isn't really a "fix" for this issue and instead should be noted as a 
limitation of this task. 

You also note that this task could be deprecated in favour of `ivy:resources` 
task. Having read its documentation, I think it makes sense to do that. I'll 
raise a discussion on the ant-dev mailing list to ask for opinions from 
developers who have more knowledge of the project.

> ivy:cachefileset fails with String index out of range on Windows
> 
>
> Key: IVY-1475
> URL: https://issues.apache.org/jira/browse/IVY-1475
> Project: Ivy
>  Issue Type: Bug
>  Components: Ant
>Affects Versions: 2.4.0-RC1
> Environment: Windows
>Reporter: Patrice Matignon
>
> On Windows, the ant task  can fail with the stack trace 
> below, when the resolve includes artifacts located in separate directories in 
> separate drives (e.g. c:\ivy2/cache/... ; d:\ivy2\cache ).
> The underlying issue is that cachefileset is an ant fileset and as such it 
> requires a base dir.
> Nevertheless, the implementation for this ant task doesn't handle this 
> scenario properly: it attempts to find the common base dir for all the 
> resolved artifacts, except that every time it runs into a conflicting 
> artifacts, it just loses the information and ends up reporting an invalid 
> base dir, which causes a fatal StringIndexOutOfBoundsException later in that 
> task.
> A sample stacktrace (the actual reported index varies):
> C:\src\trunk\build.xml:839: impossible to build ivy cache fileset: 
> java.lang.StringIndexOutOfBoundsException: String index out of range: -24
>   at java.lang.String.substring(String.java:1937)
>   at java.lang.String.substring(String.java:1904)
>   at org.apache.ivy.ant.IvyCacheFileset.getPath(IvyCacheFileset.java:114)
>   at org.apache.ivy.ant.IvyCacheFileset.doExecute(IvyCacheFileset.java:82)
>   at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:271)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (IVY-1475) ivy:cachefileset fails with String index out of range on Windows

2017-06-01 Thread jaikiran pai (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034077#comment-16034077
 ] 

jaikiran pai commented on IVY-1475:
---

You are right, this is indeed an issue. If you have caches that don't share a 
common base directory (which can happen) and if the artifacts resulting from a 
`resolve` end up across these caches (which is again possible), then there 
won't be a common base dir that the `fileset` generated by `cachefileset` can 
use. Given that there can't be a fileset without a base dir, like you say, 
there isn't really a "fix" for this issue and instead should be noted as a 
limitation of this task. 

You also note that this task could be deprecated in favour of `ivy:resources` 
task. Having read its documentation, I think it makes sense to do that. I'll 
raise a discussion on the ant-dev mailing list to ask for opinions from 
developers who have more knowledge of the project.

> ivy:cachefileset fails with String index out of range on Windows
> 
>
> Key: IVY-1475
> URL: https://issues.apache.org/jira/browse/IVY-1475
> Project: Ivy
>  Issue Type: Bug
>  Components: Ant
>Affects Versions: 2.4.0-RC1
> Environment: Windows
>Reporter: Patrice Matignon
>
> On Windows, the ant task  can fail with the stack trace 
> below, when the resolve includes artifacts located in separate directories in 
> separate drives (e.g. c:\ivy2/cache/... ; d:\ivy2\cache ).
> The underlying issue is that cachefileset is an ant fileset and as such it 
> requires a base dir.
> Nevertheless, the implementation for this ant task doesn't handle this 
> scenario properly: it attempts to find the common base dir for all the 
> resolved artifacts, except that every time it runs into a conflicting 
> artifacts, it just loses the information and ends up reporting an invalid 
> base dir, which causes a fatal StringIndexOutOfBoundsException later in that 
> task.
> A sample stacktrace (the actual reported index varies):
> C:\src\trunk\build.xml:839: impossible to build ivy cache fileset: 
> java.lang.StringIndexOutOfBoundsException: String index out of range: -24
>   at java.lang.String.substring(String.java:1937)
>   at java.lang.String.substring(String.java:1904)
>   at org.apache.ivy.ant.IvyCacheFileset.getPath(IvyCacheFileset.java:114)
>   at org.apache.ivy.ant.IvyCacheFileset.doExecute(IvyCacheFileset.java:82)
>   at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:271)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (IVY-1507) Ant retrieve task returns inconsistent jar order

2017-06-01 Thread jaikiran pai (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034061#comment-16034061
 ] 

jaikiran pai commented on IVY-1507:
---

AFAIK, there isn't a deterministic order for the artifacts retrieved by the 
retrieve task.

> Ant retrieve task returns inconsistent jar order
> 
>
> Key: IVY-1507
> URL: https://issues.apache.org/jira/browse/IVY-1507
> Project: Ivy
>  Issue Type: Question
>  Components: Ant, Core
>Affects Versions: 2.3.0, 2.4.0
> Environment: Red Hat Linux RHEL 5
>Reporter: Ron Knight
>
> Is it expected behavior that path variables set by the retrieve task will 
> have an inconsistent ordering, or is this a bug? 
> I am using the retrieve task within an Ant script and setting a path 
> variable.  When I run the script on Win7 the path contains the jars in the 
> order in which they are listed in the ivy.xml file; however, when i run the 
> script on Linux, the order of the two jars is reversed.
> I have two dependencies in a "test" configurationJMockit and JUnit.  My 
> "test" conf is the first conf listed.  JMockit is listed as the first 
> dependency and JUnit is listed as the second dependency.
> Due to the nature of the jars in use, the order of the entries in the path 
> variable important. 
> I've also cleared the .ivy2 cache several times just to be sure that I am 
> getting fresh resolutions.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


Jenkins build is back to normal : AntLib-antunit #34

2017-06-01 Thread Apache Jenkins Server
See 



Jenkins build is back to normal : AntLib-svn #15

2017-06-01 Thread Apache Jenkins Server
See 



Build failed in Jenkins: AntLib-antunit #33

2017-06-01 Thread Apache Jenkins Server
See 

--
[...truncated 8.85 KB...]
check-for-NOTICE:

antlib:
 [copy] Copying 1 file to 

  [jar] Building jar: 


ready-to-distribute:

distribution:
[mkdir] Created dir: 

[mkdir] Created dir: 


setup-properties:

setup:

download-ivy:
 [echo] installing ivy...
  [get] Getting: 
http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.4.0/ivy-2.4.0.jar
  [get] To: 
  [get] Not modified - so not downloaded

install-ivy:

-no-resolve:

resolve:
[ivy:resolve] :: Apache Ivy 2.4.0 - 20141213170938 :: 
http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: url = 
jar:
[ivy:resolve] :: resolving dependencies :: org.apache.ant#ant-antunit;1.4alpha
[ivy:resolve]   confs: [default, test]
[ivy:resolve]   found junit#junit;4.11 in default
[ivy:resolve]   found org.hamcrest#hamcrest-core;1.3 in default
[ivy:resolve] :: resolution report :: resolve 113ms :: artifacts dl 4ms
-
|  |modules||   artifacts   |
|   conf   | number| search|dwnlded|evicted|| number|dwnlded|
-
|  default |   2   |   0   |   0   |   0   ||   2   |   0   |
|   test   |   0   |   0   |   0   |   0   ||   0   |   0   |
-
[ivy:retrieve] :: retrieving :: org.apache.ant#ant-antunit [sync]
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  0 artifacts copied, 2 already retrieved (0kB/4ms)
[ivy:retrieve] :: retrieving :: org.apache.ant#ant-antunit [sync]
[ivy:retrieve]  confs: [test]
[ivy:retrieve]  0 artifacts copied, 0 already retrieved (0kB/2ms)

compile:

check-for-NOTICE:

antlib:

checksum-target-jar:

m2-init:

m2-copy-pom:
[expandingcopy] Copying 1 file to 


m2-make-pom:

m2-pom:

ivy-init:

copy-ivy.xml:
[expandingcopy] Copying 1 file to 


make-ivy.xml:

ivy.xml:

javadoc_check:

javadoc:
[mkdir] Created dir: 

  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package org.apache.ant.antunit...
  [javadoc] Loading source files for package org.apache.ant.antunit.junit3...
  [javadoc] Loading source files for package org.apache.ant.antunit.junit4...
  [javadoc] Loading source files for package org.apache.ant.antunit.listener...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.5.0_22
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...
  [javadoc] Patched 1 link injection vulnerable javadocs

bin-dist:
[mkdir] Created dir: 

 [copy] Copying 21 files to 

 [copy] Copying 54 files to 

 [copy] Copying 2 files to 


check-contributors:

style-contributors:
 [xslt] Processing 
 to 

 [xslt] Loading stylesheet 


check-changes:

style-changes:
 [xslt] Processing 
 to 

 [xslt] Loading stylesheet 

 [xslt] Processing 
 to 

 [xslt] Loading stylesheet 


create-readable-documents:
  [

Jenkins build is back to normal : AntLib-props #25

2017-06-01 Thread Apache Jenkins Server
See 



Build failed in Jenkins: AntLib-antunit #32

2017-06-01 Thread Apache Jenkins Server
See 


Changes:

[bodewig] ensure the next release, if any, uses proper ivy coordinates

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on H21 (ubuntu xenial) in workspace 

Cloning the remote Git repository
Cloning repository 
https://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit.git
 > git init  # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit.git
 > git --version # timeout=10
 > git fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # 
 > timeout=10
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit.git
 > git fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 66206e00ce188209cb5125dfa02b03c0fcd244e0 
(refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 66206e00ce188209cb5125dfa02b03c0fcd244e0
 > git rev-list b8dd17fb4cb0cece54451cf1ac8c15519e708880 # timeout=10
 > git remote # timeout=10
 > git submodule init # timeout=10
 > git submodule sync # timeout=10
 > git config --get remote.origin.url # timeout=10
 > git submodule init # timeout=10
 > git config -f .gitmodules --get-regexp ^submodule\.(.*)\.url # timeout=10
 > git config --get submodule.common.url # timeout=10
 > git config -f .gitmodules --get submodule.common.path # timeout=10
 > git submodule update --init --recursive common
[AntLib-antunit] $ /home/jenkins/tools/ant/latest/bin/ant -file prepare.xml 
bootstrap
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version 
number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Build step 'Invoke Ant' marked build as failure
[WARNINGS] Skipping publisher since build result is FAILURE
[TASKS] Skipping publisher since build result is FAILURE
Archiving artifacts
Recording test results
ERROR: Step ?Publish JUnit test result report? failed: No test report files 
were found. Configuration error?
Publishing Javadoc


ant-antlibs-vss git commit: update common submodule

2017-06-01 Thread bodewig
Repository: ant-antlibs-vss
Updated Branches:
  refs/heads/master f597e5111 -> fa746e69d


update common submodule


Project: http://git-wip-us.apache.org/repos/asf/ant-antlibs-vss/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-antlibs-vss/commit/fa746e69
Tree: http://git-wip-us.apache.org/repos/asf/ant-antlibs-vss/tree/fa746e69
Diff: http://git-wip-us.apache.org/repos/asf/ant-antlibs-vss/diff/fa746e69

Branch: refs/heads/master
Commit: fa746e69d88aef00b391aae426f80b9be8ed12b0
Parents: f597e51
Author: Stefan Bodewig 
Authored: Thu Jun 1 19:58:44 2017 +0200
Committer: Stefan Bodewig 
Committed: Thu Jun 1 19:58:44 2017 +0200

--
 common | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/ant-antlibs-vss/blob/fa746e69/common
--
diff --git a/common b/common
index 51f7f81..159f032 16
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 51f7f81979e31e6ca6d7711c16508a229e940e09
+Subproject commit 159f032c33839f0afea7c9c857a9e43da81e2969



Build failed in Jenkins: AntLib-svn #14

2017-06-01 Thread Apache Jenkins Server
See 

Changes:

[bodewig] update common submodule

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on beam1 (beam) in workspace 

Cloning the remote Git repository
Cloning repository https://git-wip-us.apache.org/repos/asf/ant-antlibs-svn.git
 > git init  # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/ant-antlibs-svn.git
 > git --version # timeout=10
 > git fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/ant-antlibs-svn.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/ant-antlibs-svn.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # 
 > timeout=10
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/ant-antlibs-svn.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/ant-antlibs-svn.git
 > git fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/ant-antlibs-svn.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision ff78acf19e632b510058ce7a97d5f95187e44cb3 
(refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f ff78acf19e632b510058ce7a97d5f95187e44cb3
 > git rev-list 21bb424ffdbce74f4b0552150aa88b3f423ffaf6 # timeout=10
 > git remote # timeout=10
 > git submodule init # timeout=10
 > git submodule sync # timeout=10
 > git config --get remote.origin.url # timeout=10
 > git submodule init # timeout=10
 > git config -f .gitmodules --get-regexp ^submodule\.(.*)\.url # timeout=10
 > git config --get submodule.common.url # timeout=10
 > git config -f .gitmodules --get submodule.common.path # timeout=10
 > git submodule update --init --recursive common
[AntLib-svn] $ /home/jenkins/tools/ant/latest/bin/ant -file prepare.xml 
bootstrap
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version 
number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Build step 'Invoke Ant' marked build as failure
[WARNINGS] Skipping publisher since build result is FAILURE
[TASKS] Skipping publisher since build result is FAILURE
Archiving artifacts
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files 
were found. Configuration error?
Publishing Javadoc


ant-antlibs-svn git commit: update common submodule

2017-06-01 Thread bodewig
Repository: ant-antlibs-svn
Updated Branches:
  refs/heads/master 21bb424ff -> ff78acf19


update common submodule


Project: http://git-wip-us.apache.org/repos/asf/ant-antlibs-svn/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-antlibs-svn/commit/ff78acf1
Tree: http://git-wip-us.apache.org/repos/asf/ant-antlibs-svn/tree/ff78acf1
Diff: http://git-wip-us.apache.org/repos/asf/ant-antlibs-svn/diff/ff78acf1

Branch: refs/heads/master
Commit: ff78acf19e632b510058ce7a97d5f95187e44cb3
Parents: 21bb424
Author: Stefan Bodewig 
Authored: Thu Jun 1 19:58:03 2017 +0200
Committer: Stefan Bodewig 
Committed: Thu Jun 1 19:58:03 2017 +0200

--
 common | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/ant-antlibs-svn/blob/ff78acf1/common
--
diff --git a/common b/common
index 51f7f81..159f032 16
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 51f7f81979e31e6ca6d7711c16508a229e940e09
+Subproject commit 159f032c33839f0afea7c9c857a9e43da81e2969



Build failed in Jenkins: AntLib-props #24

2017-06-01 Thread Apache Jenkins Server
See 


Changes:

[bodewig] update common submodule

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on beam5 (beam) in workspace 

Cloning the remote Git repository
Cloning repository https://git-wip-us.apache.org/repos/asf/ant-antlibs-props.git
 > git init  # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/ant-antlibs-props.git
 > git --version # timeout=10
 > git fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/ant-antlibs-props.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/ant-antlibs-props.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # 
 > timeout=10
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/ant-antlibs-props.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/ant-antlibs-props.git
 > git fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/ant-antlibs-props.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision f3d50ee1fe1c698ac07ce5a142a2281c50ab5183 
(refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f f3d50ee1fe1c698ac07ce5a142a2281c50ab5183
 > git rev-list 0d2009b5f4d52cecad25cfa3ca5ebcdfea4e78ba # timeout=10
 > git remote # timeout=10
 > git submodule init # timeout=10
 > git submodule sync # timeout=10
 > git config --get remote.origin.url # timeout=10
 > git submodule init # timeout=10
 > git config -f .gitmodules --get-regexp ^submodule\.(.*)\.url # timeout=10
 > git config --get submodule.common.url # timeout=10
 > git config -f .gitmodules --get submodule.common.path # timeout=10
 > git submodule update --init --recursive common
[AntLib-props] $ /home/jenkins/tools/ant/latest/bin/ant -file prepare.xml 
bootstrap
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version 
number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Build step 'Invoke Ant' marked build as failure
[WARNINGS] Skipping publisher since build result is FAILURE
[TASKS] Skipping publisher since build result is FAILURE
Archiving artifacts
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files 
were found. Configuration error?
Publishing Javadoc


ant-antlibs-props git commit: update common submodule

2017-06-01 Thread bodewig
Repository: ant-antlibs-props
Updated Branches:
  refs/heads/master 0d2009b5f -> f3d50ee1f


update common submodule


Project: http://git-wip-us.apache.org/repos/asf/ant-antlibs-props/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-antlibs-props/commit/f3d50ee1
Tree: http://git-wip-us.apache.org/repos/asf/ant-antlibs-props/tree/f3d50ee1
Diff: http://git-wip-us.apache.org/repos/asf/ant-antlibs-props/diff/f3d50ee1

Branch: refs/heads/master
Commit: f3d50ee1fe1c698ac07ce5a142a2281c50ab5183
Parents: 0d2009b
Author: Stefan Bodewig 
Authored: Thu Jun 1 19:57:13 2017 +0200
Committer: Stefan Bodewig 
Committed: Thu Jun 1 19:57:13 2017 +0200

--
 common | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/ant-antlibs-props/blob/f3d50ee1/common
--
diff --git a/common b/common
index 51f7f81..159f032 16
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 51f7f81979e31e6ca6d7711c16508a229e940e09
+Subproject commit 159f032c33839f0afea7c9c857a9e43da81e2969



ant-antlibs-dotnet git commit: ensure the next release, if any, uses proper ivy coordinates

2017-06-01 Thread bodewig
Repository: ant-antlibs-dotnet
Updated Branches:
  refs/heads/master 14bb7758a -> 08a0f37ce


ensure the next release, if any, uses proper ivy coordinates


Project: http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/commit/08a0f37c
Tree: http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/tree/08a0f37c
Diff: http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/diff/08a0f37c

Branch: refs/heads/master
Commit: 08a0f37ce3783c44961cc448763be8300dc01e09
Parents: 14bb775
Author: Stefan Bodewig 
Authored: Thu Jun 1 19:56:23 2017 +0200
Committer: Stefan Bodewig 
Committed: Thu Jun 1 19:56:23 2017 +0200

--
 changes.xml | 4 
 common  | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/blob/08a0f37c/changes.xml
--
diff --git a/changes.xml b/changes.xml
index ca881e3..6eea0bf 100644
--- a/changes.xml
+++ b/changes.xml
@@ -38,6 +38,10 @@
 
 
 
+  
+The coordinates inside the Ivy file have been changed to match
+those of the POM.
+  
   
 The  task now uses dmcs rather than gmcs as default
 on non-Windows systems.  The executable attribute of the task

http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/blob/08a0f37c/common
--
diff --git a/common b/common
index 51f7f81..159f032 16
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 51f7f81979e31e6ca6d7711c16508a229e940e09
+Subproject commit 159f032c33839f0afea7c9c857a9e43da81e2969



ant-antlibs-antunit git commit: ensure the next release, if any, uses proper ivy coordinates

2017-06-01 Thread bodewig
Repository: ant-antlibs-antunit
Updated Branches:
  refs/heads/master b8dd17fb4 -> 66206e00c


ensure the next release, if any, uses proper ivy coordinates


Project: http://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit/commit/66206e00
Tree: http://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit/tree/66206e00
Diff: http://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit/diff/66206e00

Branch: refs/heads/master
Commit: 66206e00ce188209cb5125dfa02b03c0fcd244e0
Parents: b8dd17f
Author: Stefan Bodewig 
Authored: Thu Jun 1 19:54:40 2017 +0200
Committer: Stefan Bodewig 
Committed: Thu Jun 1 19:54:40 2017 +0200

--
 changes.xml | 4 
 common  | 2 +-
 ivy.xml | 2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit/blob/66206e00/changes.xml
--
diff --git a/changes.xml b/changes.xml
index 4e43174..deef041 100644
--- a/changes.xml
+++ b/changes.xml
@@ -38,6 +38,10 @@
   
 
   
+
+  The coordinates inside the Ivy file have been changed to match
+  those of the POM.
+
 
   The br-replace template inside the XSLT stylesheets used by
   for reports could cause stack overflows or out-of-memory errors

http://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit/blob/66206e00/common
--
diff --git a/common b/common
index 51f7f81..159f032 16
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 51f7f81979e31e6ca6d7711c16508a229e940e09
+Subproject commit 159f032c33839f0afea7c9c857a9e43da81e2969

http://git-wip-us.apache.org/repos/asf/ant-antlibs-antunit/blob/66206e00/ivy.xml
--
diff --git a/ivy.xml b/ivy.xml
index 28316f2..79d4b56 100644
--- a/ivy.xml
+++ b/ivy.xml
@@ -18,7 +18,7 @@
 
 -->
 
-  



ant-antlibs-common git commit: mention fixing the release date

2017-06-01 Thread bodewig
Repository: ant-antlibs-common
Updated Branches:
  refs/heads/master 293e9c68e -> 159f032c3


mention fixing the release date


Project: http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/commit/159f032c
Tree: http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/tree/159f032c
Diff: http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/diff/159f032c

Branch: refs/heads/master
Commit: 159f032c33839f0afea7c9c857a9e43da81e2969
Parents: 293e9c6
Author: Stefan Bodewig 
Authored: Thu Jun 1 18:47:03 2017 +0200
Committer: Stefan Bodewig 
Committed: Thu Jun 1 18:47:03 2017 +0200

--
 ReleaseInstructions | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/blob/159f032c/ReleaseInstructions
--
diff --git a/ReleaseInstructions b/ReleaseInstructions
index ecb5aac..2716041 100644
--- a/ReleaseInstructions
+++ b/ReleaseInstructions
@@ -46,6 +46,8 @@ Note: this document is based on Ant core's 
ReleaseInstructions file
 * docs/index.html
 * version.properties (artefact.version property)
 
+Fix the release date inside changes.xml.
+
 Commit your changes.
 
 7.  Ensure you have all the external libraries that the Antlib uses



svn commit: r19857 - in /dev/ant/antlibs/compress: binaries/ source/

2017-06-01 Thread bodewig
Author: bodewig
Date: Thu Jun  1 16:46:05 2017
New Revision: 19857

Log:
RC2 of Compress Antlib 1.5

Modified:

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.bz2

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.bz2.asc

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.bz2.md5

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.bz2.sha1

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.bz2.sha512

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.gz

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.gz.asc

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.gz.md5

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.gz.sha1

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.gz.sha512
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.zip

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.zip.asc

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.zip.md5

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.zip.sha1

dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.zip.sha512
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.tar.bz2
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.tar.bz2.asc
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.tar.bz2.md5
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.tar.bz2.sha1
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.tar.bz2.sha512
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.tar.gz
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.tar.gz.asc
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.tar.gz.md5
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.tar.gz.sha1
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.tar.gz.sha512
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.zip
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.zip.asc
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.zip.md5
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.zip.sha1
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin.zip.sha512
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.tar.bz2
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.tar.bz2.asc
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.tar.bz2.md5
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.tar.bz2.sha1
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.tar.bz2.sha512
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.tar.gz
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.tar.gz.asc
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.tar.gz.md5
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.tar.gz.sha1
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.tar.gz.sha512
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.zip
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.zip.asc
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.zip.md5
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.zip.sha1
dev/ant/antlibs/compress/source/apache-ant-compress-1.5-src.zip.sha512

Modified: 
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.bz2
==
Binary files - no diff available.

Modified: 
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.bz2.asc
==
--- 
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.bz2.asc
 (original)
+++ 
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.bz2.asc
 Thu Jun  1 16:46:05 2017
@@ -1,7 +1,7 @@
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 
-iEYEABECAAYFAlkttpcACgkQohFa4V9ri3IQxwCfaw+833DVnUZdEc/JcjVN6dJO
-N5cAn12EwvlUuApoNqt3I84d4Fw64X7O
-=XJyd
+iEYEABECAAYFAlkwQzEACgkQohFa4V9ri3IBngCeMgSx/ndHnp0pWRxgIu2WUPFQ
+LwgAoN6iddXmqEv5zc/NIb2uLwCP06DE
+=btLj
 -END PGP SIGNATURE-

Modified: 
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.bz2.md5
==
--- 
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.bz2.md5
 (original)
+++ 
dev/ant/antlibs/compress/binaries/apache-ant-compress-1.5-bin-withdeps.tar.bz2.md5
 Thu Jun  1 16:46:05 2017
@@ -1 +1 @@
-69dbd7156f8ea055a20bb71f688e7b

[ant-antlibs-compress] Git Push Summary

2017-06-01 Thread bodewig
Repository: ant-antlibs-compress
Updated Tags:  refs/tags/1_5_RC2 [created] 4f88bf65d


ant-antlibs-compress git commit: record breaking change of Ivy coordinates

2017-06-01 Thread bodewig
Repository: ant-antlibs-compress
Updated Branches:
  refs/heads/master 52551cab9 -> dae117c95


record breaking change of Ivy coordinates


Project: http://git-wip-us.apache.org/repos/asf/ant-antlibs-compress/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/ant-antlibs-compress/commit/dae117c9
Tree: http://git-wip-us.apache.org/repos/asf/ant-antlibs-compress/tree/dae117c9
Diff: http://git-wip-us.apache.org/repos/asf/ant-antlibs-compress/diff/dae117c9

Branch: refs/heads/master
Commit: dae117c95cc2c4fc7ecdd4dfcb9927d4c8c7d935
Parents: 52551ca
Author: Stefan Bodewig 
Authored: Thu Jun 1 16:44:47 2017 +0200
Committer: Stefan Bodewig 
Committed: Thu Jun 1 16:45:43 2017 +0200

--
 changes.xml | 4 
 1 file changed, 4 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/ant-antlibs-compress/blob/dae117c9/changes.xml
--
diff --git a/changes.xml b/changes.xml
index 2efc183..44232d7 100644
--- a/changes.xml
+++ b/changes.xml
@@ -39,6 +39,10 @@
 
 
   
+The coordinates inside the Ivy file have been changed to match
+those of the POM.
+  
+  
 The Apache Compress Antlib now requires Apache Commons
 Compress 1.14 or later for 7z, DEFLATE, LZ4 and write support
 for LZMA and Snappy.



[jira] [Resolved] (IVY-1541) resolve failure when run in parallel

2017-06-01 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/IVY-1541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lalevée resolved IVY-1541.
--
   Resolution: Won't Fix
Fix Version/s: (was: master)

Indeed, the resolution report is not thread safe

> resolve failure when run in parallel
> 
>
> Key: IVY-1541
> URL: https://issues.apache.org/jira/browse/IVY-1541
> Project: Ivy
>  Issue Type: Bug
>  Components: Ant, Core
>Affects Versions: 2.4.0
>Reporter: Mick Reilly
>
> resolve fails when using the ant-contrib for task in parallel.
> The line that fails is this:
>  haltonfailure="${haltonfailure}" revision="1.0.0"/>
> I fixed this locally by making the parseDescriptor method in 
> XmlModuleDescriptorParser synchronized.
> The error output is as below:
>  [echo] BUILD FAILED
>  [echo] 
> D:\Development\DEV\workspace\UTPDemo\T24BuildDependencies\resources\t24ivy\t24ivy.xml:328:
>  syntax errors in ivy file: java.text.ParseException: exception occurred 
> while parsing 
> file:/D:/Development/DEV/workspace/UTPDemo/T24BuildDependencies/build/t24common-version-all.xml
>  [echo] at 
> org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.toIvyFile(XmlModuleDescriptorParser.java:167)
>  [echo] at 
> org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.toIvyFile(DefaultModuleDescriptor.java:560)
>  [echo] at 
> org.apache.ivy.core.cache.DefaultResolutionCacheManager.saveResolvedModuleDescriptor(DefaultResolutionCacheManager.java:167)
>  [echo] at 
> org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:243)
>  [echo] at 
> org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:195)
>  [echo] at org.apache.ivy.Ivy.resolve(Ivy.java:507)
>  [echo] at 
> org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:326)
>  [echo] at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
>  [echo] Errors:
>  [echo] at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
>  [echo] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>  [echo] | Generating  : DX_CloseoutAssign at 11/13/2015 11:11:07 AM
>  [echo] at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [echo] at java.lang.reflect.Method.invoke(Method.java:606)
>  [echo] at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>  [echo] at org.apache.tools.ant.Task.perform(Task.java:348)
>  [echo] at org.apache.tools.ant.Target.execute(Target.java:435)
>  [echo] at org.apache.tools.ant.Target.performTasks(Target.java:456)
>  [echo] at 
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
>  [echo] at 
> org.apache.tools.ant.Project.executeTarget(Project.java:1364)
>  [echo] at 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>  [echo] at 
> org.apache.tools.ant.Project.executeTargets(Project.java:1248)
>  [echo] at org.apache.tools.ant.Main.runBuild(Main.java:851)
>  [echo] at org.apache.tools.ant.Main.startAnt(Main.java:235)
>  [echo] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
>  [echo] at 
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
>  [echo] Caused by: org.xml.sax.SAXParseException; systemId: 
> file:/D:/Development/DEV/workspace/UTPDemo/T24BuildDependencies/build/t24common-version-all.xml;
>  lineNumber: 1; columnNumber: 1; Premature end of file.
>  [echo] at 
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
>  [echo] at 
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
>  [echo] at 
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441)
>  [echo] at 
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)
>  [echo] at 
> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1436)
>  [echo] at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1019)
>  [echo] at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
>  [echo] at 
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
>  [echo] at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
>  [echo] at 
> com.sun.org.apache.xerces.internal.parse

[jira] [Resolved] (IVY-1500) Command-line Ivy '-confs' option doesn't accept comma-separated list of configurations

2017-06-01 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/IVY-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lalevée resolved IVY-1500.
--
Resolution: Not A Problem

> Command-line Ivy '-confs' option doesn't accept comma-separated list of 
> configurations
> --
>
> Key: IVY-1500
> URL: https://issues.apache.org/jira/browse/IVY-1500
> Project: Ivy
>  Issue Type: Bug
>Affects Versions: 2.3.0, 2.4.0-RC1
>Reporter: Craig M. Brandenburg
>
> When using Ivy from the command line (by running {{java}} and passing in the 
> Ivy jar through the {{-jar}} option), the {{-confs}} option doesn't accept a 
> comma-separated list of configurations. Whereas, when using Ant, the 
> {{}} task attribute {{"conf"}} accepts a comma-separated list of 
> configurations.
> Here's the error when running from the command line.
> {code}
> $ java -DREPO_DIR=/home/cbrandenburg/art/research/ivy-tool/repo -jar 
> /home/cbrandenburg/art/research/ivy-tool/ivy-2.4.0-rc1.jar -settings 
> /home/cbrandenburg/art/research/ivy-tool/ivysettings.xml -confs foo,bar 
> -retrieve art/[artifact]-[revision].[ext]
> :: loading settings :: file = 
> /home/cbrandenburg/art/research/ivy-tool/ivysettings.xml
> :: resolving dependencies :: AgJunction#banana;working@antimony
>   confs: [foo,bar]
> :: problems summary ::
>  ERRORS
>   requested configuration not found in 
> AgJunction#banana;working@antimony: [ 'foo,bar' ]
> :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> Exception in thread "main" java.lang.IllegalArgumentException: requested 
> configuration not found in AgJunction#banana;working@antimony: [ 'foo,bar' ]
>   at 
> org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:556)
>   at 
> org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:236)
>   at 
> org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:197)
>   at org.apache.ivy.Ivy.resolve(Ivy.java:508)
>   at org.apache.ivy.Main.run(Main.java:311)
>   at org.apache.ivy.Main.main(Main.java:219)
> {code}
> Individually resolving either configuration ({{foo}} or {{bar}}) works fine.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Resolved] (IVY-1506) Add support for password protected Maven repositories in ibiblio resolver

2017-06-01 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/IVY-1506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lalevée resolved IVY-1506.
--
Resolution: Not A Problem

> Add support for password protected Maven repositories in ibiblio resolver
> -
>
> Key: IVY-1506
> URL: https://issues.apache.org/jira/browse/IVY-1506
> Project: Ivy
>  Issue Type: Improvement
>  Components: Maven Compatibility
>Affects Versions: 2.3.0
>Reporter: Andre-John Mas
>  Labels: ibiblio, ivy, ivy-resolver, maven
>
> There doesn't appear to be a way to access repositories that are protected by 
> username/password.
> In the case I encountered, the repository had public access, but when it is 
> provided with an authenticated user, then an extended set of artifacts is 
> made available. Not being able to specify the username/password via the 
> ivy-settings meant I was only able to access the public artefacts.
> The suggestion is to use a similar approach to the 'ssh' resolver and add 
> support for username/password elements.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Resolved] (IVY-1468) support maven:classifier on dependency element

2017-06-01 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/IVY-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lalevée resolved IVY-1468.
--
Resolution: Duplicate

> support maven:classifier on dependency element
> --
>
> Key: IVY-1468
> URL: https://issues.apache.org/jira/browse/IVY-1468
> Project: Ivy
>  Issue Type: Improvement
>  Components: Maven Compatibility
>Affects Versions: 2.3.0
> Environment: java version "1.7.0_55"
> Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)
> OS = Windows 7 6.1 Service Pack 1 amd64-64
> JAVA_HOME = C:\Program Files\Java\jdk1.7.0_55
> ant.version = Apache Ant(TM) version 1.9.3 compiled on December 23 2013
> ant.home = C:\Java\apache-ant-1.9.3
> ANT_OPTS = -XX:MaxPermSize=256m -Xmx2048m 
>Reporter: Gary Gregory
>
> Right now, I can say:
> {code:xml}
>  conf="ais.dist" rev="${teiid.version}" transitive="false">
>   
> 
> {code}
> But this does not work:
> {code:xml}
>  conf="ais.dist" rev="${teiid.version}" transitive="false" 
> maven:classifier="lib" />
> {code}
> which would be simpler.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[2/2] ant-ivy git commit: This closes #37

2017-06-01 Thread hibou
This closes #37


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/1493fda3
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/1493fda3
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/1493fda3

Branch: refs/heads/master
Commit: 1493fda3ddb4b9e9a88cf7b1aac06cc2fff1ed3e
Parents: 4d1551a cb91a10
Author: Nicolas Lalevée 
Authored: Thu Jun 1 14:18:09 2017 +0200
Committer: Nicolas Lalevée 
Committed: Thu Jun 1 14:18:09 2017 +0200

--
 test/java/org/apache/ivy/ant/IvyRetrieveBuildFile.xml | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)
--




[1/2] ant-ivy git commit: Don't pollute the source lib folder during ivy retrieval in test

2017-06-01 Thread hibou
Repository: ant-ivy
Updated Branches:
  refs/heads/master 4d1551a5d -> 1493fda3d


Don't pollute the source lib folder during ivy retrieval in test


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/cb91a106
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/cb91a106
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/cb91a106

Branch: refs/heads/master
Commit: cb91a10627d2e68bae924e425ad6f21353f5bf94
Parents: 1f0c99d
Author: Jaikiran Pai 
Authored: Wed May 31 13:13:28 2017 +0530
Committer: Jaikiran Pai 
Committed: Wed May 31 13:13:28 2017 +0530

--
 test/java/org/apache/ivy/ant/IvyRetrieveBuildFile.xml | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/cb91a106/test/java/org/apache/ivy/ant/IvyRetrieveBuildFile.xml
--
diff --git a/test/java/org/apache/ivy/ant/IvyRetrieveBuildFile.xml 
b/test/java/org/apache/ivy/ant/IvyRetrieveBuildFile.xml
index 359f17c..c133d29 100644
--- a/test/java/org/apache/ivy/ant/IvyRetrieveBuildFile.xml
+++ b/test/java/org/apache/ivy/ant/IvyRetrieveBuildFile.xml
@@ -19,17 +19,21 @@
 
   
 
+
   
 
   

+
   
 
   

-   
+   

-   
+   
   
 
 
\ No newline at end of file



[jira] [Commented] (IVY-1540) Infinite loop in dependencytree

2017-06-01 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-1540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032880#comment-16032880
 ] 

ASF GitHub Bot commented on IVY-1540:
-

Github user asfgit closed the pull request at:

https://github.com/apache/ant-ivy/pull/27


> Infinite loop in dependencytree
> ---
>
> Key: IVY-1540
> URL: https://issues.apache.org/jira/browse/IVY-1540
> Project: Ivy
>  Issue Type: Bug
>  Components: Ant
>Affects Versions: 2.4.0
>Reporter: Brett Wooldridge
>Assignee: Nicolas Lalevée
> Fix For: master
>
>
> A 3rd party library with circular dependencies causes an infinite loop 
> displaying the dependency tree.  The code needs to use a hashmap or hashset 
> to track what has been displayed in a given tree branch and bail when it 
> encounters a node previously occurring in the branch.
> This dependency is circular, and can be used for testing:
> org.apache.xmlgraphics#batik-bridge;1.7



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Resolved] (IVY-1540) Infinite loop in dependencytree

2017-06-01 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/IVY-1540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lalevée resolved IVY-1540.
--
   Resolution: Fixed
 Assignee: Nicolas Lalevée
Fix Version/s: master

> Infinite loop in dependencytree
> ---
>
> Key: IVY-1540
> URL: https://issues.apache.org/jira/browse/IVY-1540
> Project: Ivy
>  Issue Type: Bug
>  Components: Ant
>Affects Versions: 2.4.0
>Reporter: Brett Wooldridge
>Assignee: Nicolas Lalevée
> Fix For: master
>
>
> A 3rd party library with circular dependencies causes an infinite loop 
> displaying the dependency tree.  The code needs to use a hashmap or hashset 
> to track what has been displayed in a given tree branch and bail when it 
> encounters a node previously occurring in the branch.
> This dependency is circular, and can be used for testing:
> org.apache.xmlgraphics#batik-bridge;1.7



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[1/3] ant-ivy git commit: IVY-1540 Fix infinite loop in dependencytree, caused to due circular dependencies (coming in via Maven module descriptors)

2017-06-01 Thread hibou
Repository: ant-ivy
Updated Branches:
  refs/heads/master 0dbae4197 -> 4d1551a5d


IVY-1540 Fix infinite loop in dependencytree, caused to due circular 
dependencies (coming in via Maven module descriptors)


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/2f757454
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/2f757454
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/2f757454

Branch: refs/heads/master
Commit: 2f757454dc41f4d130234aea68b348da4f12a0fa
Parents: 5601c44
Author: Jaikiran Pai 
Authored: Tue May 23 13:45:39 2017 +0530
Committer: Jaikiran Pai 
Committed: Tue May 30 09:48:48 2017 +0530

--
 .../org/apache/ivy/ant/IvyDependencyTree.java   | 73 
 .../apache/ivy/ant/IvyDependencyTreeTest.java   | 30 +++-
 .../1/org/foo-bar/ivys/ivy-1.2.3.xml| 28 
 .../1/org/foo-bar/jars/foo-bar-1.2.3.jar|  0
 test/repositories/1/org/mod1/ivys/ivy-2.0.xml   | 27 
 test/repositories/1/org/mod1/jars/mod1-2.0.jar  |  0
 .../m2/org/circular/module1/1.0/module1-1.0.jar |  1 +
 .../m2/org/circular/module1/1.0/module1-1.0.pom | 35 ++
 .../m2/org/circular/module2/2.0/module2-2.0.jar |  1 +
 .../m2/org/circular/module2/2.0/module2-2.0.pom | 35 ++
 10 files changed, 201 insertions(+), 29 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/2f757454/src/java/org/apache/ivy/ant/IvyDependencyTree.java
--
diff --git a/src/java/org/apache/ivy/ant/IvyDependencyTree.java 
b/src/java/org/apache/ivy/ant/IvyDependencyTree.java
index b95aa91..5df9548 100644
--- a/src/java/org/apache/ivy/ant/IvyDependencyTree.java
+++ b/src/java/org/apache/ivy/ant/IvyDependencyTree.java
@@ -17,12 +17,6 @@
  */
 package org.apache.ivy.ant;
 
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
 import org.apache.ivy.core.module.id.ModuleRevisionId;
 import org.apache.ivy.core.report.ResolveReport;
 import org.apache.ivy.core.resolve.IvyNode;
@@ -30,18 +24,26 @@ import org.apache.ivy.core.resolve.IvyNodeCallers.Caller;
 import org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData;
 import org.apache.tools.ant.BuildException;
 
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
 public class IvyDependencyTree extends IvyPostResolveTask {
 
-private Map/* > */dependencies = new 
HashMap/*
-   
  * >
-   
  */();
+private final Map> dependencies = new 
HashMap>();
 
 private boolean showEvicted = false;
 
 public void doExecute() throws BuildException {
 prepareAndCheck();
 ResolveReport report = getResolvedReport();
+if (report == null) {
+throw new BuildException("No resolution report was available to 
run the post-resolve task. Make sure resolve was done before this task");
+}
 log("Dependency tree for " + report.getResolveId());
 ModuleRevisionId mrid = 
report.getModuleDescriptor().getModuleRevisionId();
 // make dependency tree easier to fetch information
@@ -49,20 +51,26 @@ public class IvyDependencyTree extends IvyPostResolveTask {
 IvyNode dependency = (IvyNode) iterator.next();
 populateDependencyTree(dependency, mrid, report);
 }
-List dependencyList = (List) dependencies.get(mrid);
+final List dependencyList = dependencies.get(mrid);
 if (dependencyList != null) {
-printDependencies(dependencyList, 0);
+printDependencies(mrid, dependencyList, 0, new 
HashSet());
 }
 }
 
-private void printDependencies(List/*  */dependencyList, int 
indent) {
-for (Iterator iterator = dependencyList.iterator(); 
iterator.hasNext();) {
-IvyNode dependency = (IvyNode) iterator.next();
-boolean evicted = dependency.isEvicted(getConf());
+private void printDependencies(final ModuleRevisionId mrid, final 
List dependencyList, final int indent,
+   final Set ancestors) {
+for (final Iterator iterator = dependencyList.iterator(); 
iterator.hasNext();) {
+final Set ancestorsForCurrentDep = new 
HashSet(ancestors);
+// previous ancestors plus the module to whom these dependencies 
belong to
+ancestorsForCurrentDep.add(mrid);
+final IvyNode dependency = (IvyNode) iterator.next();
+final ModuleRevisionId dependencyMrid = d

[3/3] ant-ivy git commit: release notes for IVY-1540

2017-06-01 Thread hibou
release notes for IVY-1540


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/4d1551a5
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/4d1551a5
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/4d1551a5

Branch: refs/heads/master
Commit: 4d1551a5d6b516987fbc6a987e93b964fab40fe6
Parents: fdeb6b8
Author: Nicolas Lalevée 
Authored: Thu Jun 1 14:11:14 2017 +0200
Committer: Nicolas Lalevée 
Committed: Thu Jun 1 14:11:14 2017 +0200

--
 doc/release-notes.html | 1 +
 1 file changed, 1 insertion(+)
--


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4d1551a5/doc/release-notes.html
--
diff --git a/doc/release-notes.html b/doc/release-notes.html
index 3462ef1..95a3e61 100644
--- a/doc/release-notes.html
+++ b/doc/release-notes.html
@@ -75,6 +75,7 @@ List of changes since Ivy 2.4.0:
 - FIX: Delay the processing of configured cache ttls, until the IvySettings 
object is usable (IVY-1495) (Thanks to Jaikiran Pai)
 - FIX: Including optional ivysettings of type 'file' doesn't work when file 
doesn't exist (IVY-1555) (Thanks to Jaikiran Pai)
 - FIX: Makepom ignores dependency classifiers (IVY-1528) (Thanks to Jaikiran 
Pai)
+- FIX: Infinite loop in dependencytree (IVY-1540) (Thanks to Jaikiran Pai)
 
 - IMPROVEMENT: Throw an IllegalStateException when retrieving the 
resolutionCacheRoot on the DefaultResolutionCacheManager if the basedir (or 
IvySettings) is not set (IVY-1482)
 - IMPROVEMENT: Optimization: limit the revision numbers scanned if revision 
prefix is specified (Thanks to Ernestas Vaiciukevičius)



[2/3] ant-ivy git commit: This closes #27

2017-06-01 Thread hibou
This closes #27


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/fdeb6b86
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/fdeb6b86
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/fdeb6b86

Branch: refs/heads/master
Commit: fdeb6b86219d13a370d325ee49c694631b7e9ff3
Parents: 0dbae41 2f75745
Author: Nicolas Lalevée 
Authored: Thu Jun 1 14:02:06 2017 +0200
Committer: Nicolas Lalevée 
Committed: Thu Jun 1 14:09:44 2017 +0200

--
 .../org/apache/ivy/ant/IvyDependencyTree.java   | 68 
 .../apache/ivy/ant/IvyDependencyTreeTest.java   | 25 +++
 .../1/org/foo-bar/ivys/ivy-1.2.3.xml| 28 
 .../1/org/foo-bar/jars/foo-bar-1.2.3.jar|  0
 test/repositories/1/org/mod1/ivys/ivy-2.0.xml   | 27 
 test/repositories/1/org/mod1/jars/mod1-2.0.jar  |  0
 .../m2/org/circular/module1/1.0/module1-1.0.jar |  1 +
 .../m2/org/circular/module1/1.0/module1-1.0.pom | 35 ++
 .../m2/org/circular/module2/2.0/module2-2.0.jar |  1 +
 .../m2/org/circular/module2/2.0/module2-2.0.pom | 35 ++
 10 files changed, 194 insertions(+), 26 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/fdeb6b86/src/java/org/apache/ivy/ant/IvyDependencyTree.java
--
diff --cc src/java/org/apache/ivy/ant/IvyDependencyTree.java
index b95aa91,5df9548..e2e5978
--- a/src/java/org/apache/ivy/ant/IvyDependencyTree.java
+++ b/src/java/org/apache/ivy/ant/IvyDependencyTree.java
@@@ -17,25 -17,24 +17,24 @@@
   */
  package org.apache.ivy.ant;
  
 -import org.apache.ivy.core.module.id.ModuleRevisionId;
 -import org.apache.ivy.core.report.ResolveReport;
 -import org.apache.ivy.core.resolve.IvyNode;
 -import org.apache.ivy.core.resolve.IvyNodeCallers.Caller;
 -import org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData;
 -import org.apache.tools.ant.BuildException;
 -
  import java.util.ArrayList;
  import java.util.HashMap;
+ import java.util.HashSet;
  import java.util.Iterator;
  import java.util.List;
  import java.util.Map;
+ import java.util.Set;
  
 +import org.apache.ivy.core.module.id.ModuleRevisionId;
 +import org.apache.ivy.core.report.ResolveReport;
 +import org.apache.ivy.core.resolve.IvyNode;
 +import org.apache.ivy.core.resolve.IvyNodeCallers.Caller;
 +import org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData;
 +import org.apache.tools.ant.BuildException;
 +
  public class IvyDependencyTree extends IvyPostResolveTask {
  
- private Map/* > */dependencies = new 
HashMap/*
-   
   * >
-   
   */();
 -private final Map> dependencies = new 
HashMap>();
++private final Map> dependencies = new 
HashMap<>();
  
  private boolean showEvicted = false;
  
@@@ -45,24 -47,30 +47,29 @@@
  log("Dependency tree for " + report.getResolveId());
  ModuleRevisionId mrid = 
report.getModuleDescriptor().getModuleRevisionId();
  // make dependency tree easier to fetch information
--for (Iterator iterator = report.getDependencies().iterator(); 
iterator.hasNext();) {
--IvyNode dependency = (IvyNode) iterator.next();
--populateDependencyTree(dependency, mrid, report);
++for (IvyNode dependency : report.getDependencies()) {
++populateDependencyTree(dependency);
  }
- List dependencyList = (List) dependencies.get(mrid);
+ final List dependencyList = dependencies.get(mrid);
  if (dependencyList != null) {
- printDependencies(dependencyList, 0);
+ printDependencies(mrid, dependencyList, 0, new 
HashSet());
  }
  }
  
- private void printDependencies(List/*  */dependencyList, int 
indent) {
- for (Iterator iterator = dependencyList.iterator(); 
iterator.hasNext();) {
- IvyNode dependency = (IvyNode) iterator.next();
- boolean evicted = dependency.isEvicted(getConf());
+ private void printDependencies(final ModuleRevisionId mrid, final 
List dependencyList, final int indent,
+final Set ancestors) {
+ for (final Iterator iterator = dependencyList.iterator(); 
iterator.hasNext();) {
 -final Set ancestorsForCurrentDep = new 
HashSet(ancestors);
++final Set ancestorsForCurrentDep = new 
HashSet<>(ancestors);
+ // previous ancestors plus the module to whom these dependencies 
belong to
+ ancestorsForCurrentDep.add(mrid);
+ final IvyNode dependency = (IvyNode) iterator.next();
 -final ModuleRevisionId dependencyMrid = dependency.getId();
 - 

[jira] [Resolved] (IVY-1528) Makepom ignores dependency classifiers

2017-06-01 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/IVY-1528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lalevée resolved IVY-1528.
--
   Resolution: Fixed
 Assignee: Jan Materne
Fix Version/s: master

> Makepom ignores dependency classifiers
> --
>
> Key: IVY-1528
> URL: https://issues.apache.org/jira/browse/IVY-1528
> Project: Ivy
>  Issue Type: Bug
>  Components: Maven Compatibility
>Affects Versions: 2.4.0
>Reporter: Matthias Hannen
>Assignee: Jan Materne
>Priority: Critical
> Fix For: master
>
>
> The classifier of a dependency like
> {code:xml}
>  m:classifier="wsdl" />
> {code}
> is ignored by the makepom task. I also checked the code of IvyMakePom.java. 
> The method to set the classifier of a dependency is never called anywhere.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


ant-ivy git commit: release notes for IVY-1528

2017-06-01 Thread hibou
Repository: ant-ivy
Updated Branches:
  refs/heads/master b6284ae1d -> 0dbae4197


release notes for IVY-1528


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/0dbae419
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/0dbae419
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/0dbae419

Branch: refs/heads/master
Commit: 0dbae4197d6694859bbba8d7d940bcf6f39c86be
Parents: b6284ae
Author: Nicolas Lalevée 
Authored: Thu Jun 1 13:52:29 2017 +0200
Committer: Nicolas Lalevée 
Committed: Thu Jun 1 13:52:29 2017 +0200

--
 doc/release-notes.html | 1 +
 1 file changed, 1 insertion(+)
--


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/0dbae419/doc/release-notes.html
--
diff --git a/doc/release-notes.html b/doc/release-notes.html
index 258dc4d..3462ef1 100644
--- a/doc/release-notes.html
+++ b/doc/release-notes.html
@@ -74,6 +74,7 @@ List of changes since Ivy 2.4.0:
 - FIX: Ivy 2.4.0 improperly handles modules with colon (:) in version 
(IVY-1522) (Thanks to Jaikiran Pai)
 - FIX: Delay the processing of configured cache ttls, until the IvySettings 
object is usable (IVY-1495) (Thanks to Jaikiran Pai)
 - FIX: Including optional ivysettings of type 'file' doesn't work when file 
doesn't exist (IVY-1555) (Thanks to Jaikiran Pai)
+- FIX: Makepom ignores dependency classifiers (IVY-1528) (Thanks to Jaikiran 
Pai)
 
 - IMPROVEMENT: Throw an IllegalStateException when retrieving the 
resolutionCacheRoot on the DefaultResolutionCacheManager if the basedir (or 
IvySettings) is not set (IVY-1482)
 - IMPROVEMENT: Optimization: limit the revision numbers scanned if revision 
prefix is specified (Thanks to Ernestas Vaiciukevičius)



[jira] [Resolved] (IVY-1490) dependencytree doesn't recognize circular references and dies with Stackoverflow

2017-06-01 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/IVY-1490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lalevée resolved IVY-1490.
--
Resolution: Duplicate

> dependencytree doesn't recognize circular references and dies with 
> Stackoverflow
> 
>
> Key: IVY-1490
> URL: https://issues.apache.org/jira/browse/IVY-1490
> Project: Ivy
>  Issue Type: Bug
>  Components: Ant
>Affects Versions: 2.4.0-RC1
>Reporter: Charlie Hubbard
>
> If you have a dependency, like batik libraries, in your project that have 
> circular dependencies dependencytree fails with a stack overflow exception.
> {code}
> 
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd";>
> 
> 
> 
> 
> 
>  
>  rev="1.7"/>
>  rev="1.7"/>
>  rev="1.7">
> 
> 
> 
> 
> 
>  
>
> 
> 
> {code} 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (IVY-1555) Including optional ivysettings of type 'file' doesn't work when file doesn't exist

2017-06-01 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-1555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032826#comment-16032826
 ] 

ASF GitHub Bot commented on IVY-1555:
-

Github user asfgit closed the pull request at:

https://github.com/apache/ant-ivy/pull/24


> Including optional ivysettings of type 'file' doesn't work when file doesn't 
> exist
> --
>
> Key: IVY-1555
> URL: https://issues.apache.org/jira/browse/IVY-1555
> Project: Ivy
>  Issue Type: Bug
>Affects Versions: 2.4.0
>Reporter: Janek Lehr
>Priority: Minor
> Fix For: master
>
>
> The 'optional' attribute of the  tag in  doesn't work 
> for regular file paths when using the 'file' include type, and the file 
> doesn't exist. It requires using URL format when providing the file path, 
> i.e. 'file:/path/to/settings'.
> Also, 'optional' doesn't do anything when using the 'url' type for include.
> The reason it fails is because 
> [urlFromFileAttribute|https://git-wip-us.apache.org/repos/asf?p=ant-ivy.git;a=blob;f=src/java/org/apache/ivy/core/settings/XmlSettingsParser.java;h=a40cc1ca601ef661b92c1b9ec1ed00fc155bac20;hb=HEAD#l415]
>  is called before checking the 'optional' attribute, which results in a 
> [java.io.FileNotFoundException|https://git-wip-us.apache.org/repos/asf?p=ant-ivy.git;a=blob;f=src/java/org/apache/ivy/core/settings/XmlSettingsParser.java;h=a40cc1ca601ef661b92c1b9ec1ed00fc155bac20;hb=HEAD#l457]
>  when trying to determine the URL path of the file that doesn't exist. 
> My current work around is to prepend the file path with 'file:' so that 
> [creating a URL 
> instance|https://git-wip-us.apache.org/repos/asf?p=ant-ivy.git;a=blob;f=src/java/org/apache/ivy/core/settings/XmlSettingsParser.java;h=a40cc1ca601ef661b92c1b9ec1ed00fc155bac20;hb=HEAD#l449]
>  succeeds in urlFromFileAttribute, which returns back to includeStarted where 
> the 'optional' attribute [is 
> checked|https://git-wip-us.apache.org/repos/asf?p=ant-ivy.git;a=blob;f=src/java/org/apache/ivy/core/settings/XmlSettingsParser.java;h=a40cc1ca601ef661b92c1b9ec1ed00fc155bac20;hb=HEAD#l421].
> Here is the exception I'm getting
> {code}
>  stderr 
> java.text.ParseException: failed to load settings from 
> file:/Users/janek.lehr//ivysettings.xml: io problem while parsing 
> config file: /path/does/not/exist
>at 
> org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:165)
>at 
> org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:150)
>at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:393)
>at org.apache.ivy.Ivy.configure(Ivy.java:417)
>at org.apache.ivy.Main.initSettings(Main.java:452)
>at org.apache.ivy.Main.run(Main.java:247)
>at org.apache.ivy.Main.main(Main.java:219)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>at java.lang.reflect.Method.invoke(Method.java:498)
>at com.martiansoftware.nailgun.NGSession.run(NGSession.java:280)
> Caused by: org.xml.sax.SAXException: io problem while parsing config file: 
> /path/does/not/exist
> java.io.FileNotFoundException: /path/does/not/exist
>at 
> org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:234)
>at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
>at 
> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
>at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)
>at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
>at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
>at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
>at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
>at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
>at 
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
>at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
>at 
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
>at 
> com.sun.org.apache.xerces.internal.jaxp.SA

[jira] [Resolved] (IVY-1555) Including optional ivysettings of type 'file' doesn't work when file doesn't exist

2017-06-01 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/IVY-1555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lalevée resolved IVY-1555.
--
   Resolution: Fixed
 Assignee: Nicolas Lalevée
Fix Version/s: master

> Including optional ivysettings of type 'file' doesn't work when file doesn't 
> exist
> --
>
> Key: IVY-1555
> URL: https://issues.apache.org/jira/browse/IVY-1555
> Project: Ivy
>  Issue Type: Bug
>Affects Versions: 2.4.0
>Reporter: Janek Lehr
>Assignee: Nicolas Lalevée
>Priority: Minor
> Fix For: master
>
>
> The 'optional' attribute of the  tag in  doesn't work 
> for regular file paths when using the 'file' include type, and the file 
> doesn't exist. It requires using URL format when providing the file path, 
> i.e. 'file:/path/to/settings'.
> Also, 'optional' doesn't do anything when using the 'url' type for include.
> The reason it fails is because 
> [urlFromFileAttribute|https://git-wip-us.apache.org/repos/asf?p=ant-ivy.git;a=blob;f=src/java/org/apache/ivy/core/settings/XmlSettingsParser.java;h=a40cc1ca601ef661b92c1b9ec1ed00fc155bac20;hb=HEAD#l415]
>  is called before checking the 'optional' attribute, which results in a 
> [java.io.FileNotFoundException|https://git-wip-us.apache.org/repos/asf?p=ant-ivy.git;a=blob;f=src/java/org/apache/ivy/core/settings/XmlSettingsParser.java;h=a40cc1ca601ef661b92c1b9ec1ed00fc155bac20;hb=HEAD#l457]
>  when trying to determine the URL path of the file that doesn't exist. 
> My current work around is to prepend the file path with 'file:' so that 
> [creating a URL 
> instance|https://git-wip-us.apache.org/repos/asf?p=ant-ivy.git;a=blob;f=src/java/org/apache/ivy/core/settings/XmlSettingsParser.java;h=a40cc1ca601ef661b92c1b9ec1ed00fc155bac20;hb=HEAD#l449]
>  succeeds in urlFromFileAttribute, which returns back to includeStarted where 
> the 'optional' attribute [is 
> checked|https://git-wip-us.apache.org/repos/asf?p=ant-ivy.git;a=blob;f=src/java/org/apache/ivy/core/settings/XmlSettingsParser.java;h=a40cc1ca601ef661b92c1b9ec1ed00fc155bac20;hb=HEAD#l421].
> Here is the exception I'm getting
> {code}
>  stderr 
> java.text.ParseException: failed to load settings from 
> file:/Users/janek.lehr//ivysettings.xml: io problem while parsing 
> config file: /path/does/not/exist
>at 
> org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:165)
>at 
> org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:150)
>at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:393)
>at org.apache.ivy.Ivy.configure(Ivy.java:417)
>at org.apache.ivy.Main.initSettings(Main.java:452)
>at org.apache.ivy.Main.run(Main.java:247)
>at org.apache.ivy.Main.main(Main.java:219)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>at java.lang.reflect.Method.invoke(Method.java:498)
>at com.martiansoftware.nailgun.NGSession.run(NGSession.java:280)
> Caused by: org.xml.sax.SAXException: io problem while parsing config file: 
> /path/does/not/exist
> java.io.FileNotFoundException: /path/does/not/exist
>at 
> org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:234)
>at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
>at 
> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
>at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)
>at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
>at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
>at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
>at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
>at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
>at 
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
>at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
>at 
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
>at 
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXPar

[3/4] ant-ivy git commit: release notes for IVY-1555

2017-06-01 Thread hibou
release notes for IVY-1555


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/7304fb9c
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/7304fb9c
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/7304fb9c

Branch: refs/heads/master
Commit: 7304fb9c4d720a6cad181108c273fb5eba96272e
Parents: 5f6ebd6
Author: Nicolas Lalevée 
Authored: Thu Jun 1 13:37:50 2017 +0200
Committer: Nicolas Lalevée 
Committed: Thu Jun 1 13:37:50 2017 +0200

--
 doc/release-notes.html | 1 +
 1 file changed, 1 insertion(+)
--


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/7304fb9c/doc/release-notes.html
--
diff --git a/doc/release-notes.html b/doc/release-notes.html
index 40c93d6..6f20fa4 100644
--- a/doc/release-notes.html
+++ b/doc/release-notes.html
@@ -73,6 +73,7 @@ List of changes since Ivy 2.4.0:
 - FIX: ParseException "Unsupported repository, resources names are not uris" 
for ivy.xml with parent on Windows (IVY-1448) (Thanks to Riccardo Foschia and 
Jaikiran Pai)
 - FIX: Ivy 2.4.0 improperly handles modules with colon (:) in version 
(IVY-1522) (Thanks to Jaikiran Pai)
 - FIX: Delay the processing of configured cache ttls, until the IvySettings 
object is usable (IVY-1495) (Thanks to Jaikiran Pai)
+- FIX: Including optional ivysettings of type 'file' doesn't work when file 
doesn't exist (IVY-1555) (Thanks to Jaikiran Pai)
 
 - IMPROVEMENT: Throw an IllegalStateException when retrieving the 
resolutionCacheRoot on the DefaultResolutionCacheManager if the basedir (or 
IvySettings) is not set (IVY-1482)
 - IMPROVEMENT: Optimization: limit the revision numbers scanned if revision 
prefix is specified (Thanks to Ernestas Vaiciukevičius)



[2/4] ant-ivy git commit: This closes #24

2017-06-01 Thread hibou
This closes #24


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/5f6ebd69
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/5f6ebd69
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/5f6ebd69

Branch: refs/heads/master
Commit: 5f6ebd69baad619b7230b8e9863508795f3a5b69
Parents: 368f1da efa7562
Author: Nicolas Lalevée 
Authored: Thu Jun 1 13:35:51 2017 +0200
Committer: Nicolas Lalevée 
Committed: Thu Jun 1 13:35:51 2017 +0200

--
 .../ivy/core/settings/XmlSettingsParser.java| 69 +---
 .../org/apache/ivy/ant/IvyConfigureTest.java| 20 ++
 .../ivysettings-optional-file-include.xml   | 27 
 3 files changed, 93 insertions(+), 23 deletions(-)
--




[4/4] ant-ivy git commit: Add in the release notes that Ivy is now requiring Java 7

2017-06-01 Thread hibou
Add in the release notes that Ivy is now requiring Java 7


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/b6284ae1
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/b6284ae1
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/b6284ae1

Branch: refs/heads/master
Commit: b6284ae1d61131d533c64ed29862540dcdecd764
Parents: 7304fb9
Author: Nicolas Lalevée 
Authored: Thu Jun 1 13:41:13 2017 +0200
Committer: Nicolas Lalevée 
Committed: Thu Jun 1 13:41:13 2017 +0200

--
 doc/release-notes.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/b6284ae1/doc/release-notes.html
--
diff --git a/doc/release-notes.html b/doc/release-notes.html
index 6f20fa4..258dc4d 100644
--- a/doc/release-notes.html
+++ b/doc/release-notes.html
@@ -36,8 +36,8 @@ reporting) project dependencies, characterized by flexibility,
 configurability, and tight integration with Apache Ant.
 
 Key features of this 2.5.0 release are
-* Ivy nows uses BoucyCastle 1.52. Due to the non backward compatibility of 
that library, earlier versions are not supported.
-* TODO
+* Ivy now uses BoucyCastle 1.52. Due to the non backward compatibility of that 
library, earlier versions are not supported.
+* the minimum Java version required is now Java 7
 * TODO
 * TODO
 



[1/4] ant-ivy git commit: IVY-1555 Don't error out if an "optional" file included in ivy settings xml isn't available

2017-06-01 Thread hibou
Repository: ant-ivy
Updated Branches:
  refs/heads/master 368f1da7f -> b6284ae1d


IVY-1555 Don't error out if an "optional" file included in ivy settings xml 
isn't available


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/efa75628
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/efa75628
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/efa75628

Branch: refs/heads/master
Commit: efa756288e712849c78c4230df05c2d1abeba91e
Parents: 5601c44
Author: Jaikiran Pai 
Authored: Sun May 21 17:31:47 2017 +0530
Committer: Jaikiran Pai 
Committed: Tue May 30 09:46:46 2017 +0530

--
 .../ivy/core/settings/XmlSettingsParser.java| 69 +---
 .../org/apache/ivy/ant/IvyConfigureTest.java| 20 ++
 .../ivysettings-optional-file-include.xml   | 27 
 3 files changed, 93 insertions(+), 23 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/efa75628/src/java/org/apache/ivy/core/settings/XmlSettingsParser.java
--
diff --git a/src/java/org/apache/ivy/core/settings/XmlSettingsParser.java 
b/src/java/org/apache/ivy/core/settings/XmlSettingsParser.java
index f85c295..81d0f9a 100644
--- a/src/java/org/apache/ivy/core/settings/XmlSettingsParser.java
+++ b/src/java/org/apache/ivy/core/settings/XmlSettingsParser.java
@@ -392,6 +392,7 @@ public class XmlSettingsParser extends DefaultHandler {
 private void includeStarted(Map attributes) throws IOException, 
ParseException {
 final IvyVariableContainer variables = ivy.getVariableContainer();
 ivy.setVariableContainer(new IvyVariableContainerWrapper(variables));
+final boolean optionalInclude = 
"true".equals(attributes.get("optional"));
 try {
 String propFilePath = (String) attributes.get("file");
 URL settingsURL = null;
@@ -402,38 +403,60 @@ public class XmlSettingsParser extends DefaultHandler {
 "bad include tag: specify file or url to include");
 } else {
 try {
-// First assume that it is an absolute URL
-settingsURL = new URL(propFilePath);
-} catch (MalformedURLException e) {
-// If that fail, it may be because it is a relative 
one.
-settingsURL = new URL(this.settings, propFilePath);
+try {
+// First assume that it is an absolute URL
+settingsURL = new URL(propFilePath);
+} catch (MalformedURLException e) {
+// If that fail, it may be because it is a 
relative one.
+settingsURL = new URL(this.settings, propFilePath);
+}
+} catch (IOException ioe) {
+if (!optionalInclude) {
+throw ioe;
+}
+Message.verbose("Skipping inclusion of optional URL " 
+ propFilePath + " due to IOException - " + ioe.getMessage());
+return;
 }
 Message.verbose("including url: " + 
settingsURL.toString());
 ivy.setSettingsVariables(settingsURL);
 }
 } else {
-settingsURL = urlFromFileAttribute(propFilePath);
-Message.verbose("including file: " + settingsURL);
-if ("file".equals(settingsURL.getProtocol())) {
-try {
-File settingsFile = new File(new 
URI(settingsURL.toExternalForm()));
-String optional = (String) attributes.get("optional");
-if ("true".equals(optional) && !settingsFile.exists()) 
{
-return;
+try {
+settingsURL = urlFromFileAttribute(propFilePath);
+Message.verbose("including file: " + settingsURL);
+if ("file".equals(settingsURL.getProtocol())) {
+try {
+File settingsFile = new File(new 
URI(settingsURL.toExternalForm()));
+if (optionalInclude && !settingsFile.exists()) {
+return;
+}
+
ivy.setSettingsVariables(Checks.checkAbsolute(settingsFile,
+"settings include path"));
+} catch (URISyntaxException e) {
+// try to make the best of it...
+
ivy.setSettingsVariables(Checks.checkAbsolute

[jira] [Resolved] (IVY-1495) Using matcher attribute on ttl in settings file cause NullPointerException

2017-06-01 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/IVY-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lalevée resolved IVY-1495.
--
   Resolution: Fixed
 Assignee: Nicolas Lalevée
Fix Version/s: master

> Using matcher attribute on ttl in settings file cause NullPointerException
> --
>
> Key: IVY-1495
> URL: https://issues.apache.org/jira/browse/IVY-1495
> Project: Ivy
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 2.4.0-RC1
>Reporter: Martin Krajc
>Assignee: Nicolas Lalevée
> Fix For: master
>
>
> Using similar config in ivysettings cause NullPointerException
> {code}
>   
> defaultTTL="eternal" >
>   
>
>   
> {code}
> Value of matcher doesn't matter
> {code}
> c:\test-ttl.xml:23: impossible to configure ivy:settings with given file: 
> c:\ivysettings.xml : java.text.ParseException: failed to load settings from 
> file:/c:/ivysettings.xml: impossible to add configured child for ttl on class 
> org.apache.ivy.core.cache.DefaultRepositoryCacheManager: 
> java.lang.NullPointerException at 
> org.apache.ivy.core.cache.DefaultRepositoryCacheManager.addConfiguredTtl(DefaultRepositoryCacheManager.java:252)
> {code}
> Looking and debugging line 252 in DefaultrepositoryCacheManager, the settings 
> variable is not yet initialized in that point of parsing 
> {code}
> addTTL(attributes,
> matcher == null ? ExactPatternMatcher.INSTANCE : 
> settings.getMatcher(matcher),
> parseDuration(duration));
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


ant-ivy git commit: release notes for IVY-1495

2017-06-01 Thread hibou
Repository: ant-ivy
Updated Branches:
  refs/heads/master f2a899979 -> 368f1da7f


release notes for IVY-1495


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/368f1da7
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/368f1da7
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/368f1da7

Branch: refs/heads/master
Commit: 368f1da7f990ce229fd1ddc7d2f5b1ea32da6611
Parents: f2a8999
Author: Nicolas Lalevée 
Authored: Thu Jun 1 13:11:23 2017 +0200
Committer: Nicolas Lalevée 
Committed: Thu Jun 1 13:11:23 2017 +0200

--
 doc/release-notes.html | 1 +
 1 file changed, 1 insertion(+)
--


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/368f1da7/doc/release-notes.html
--
diff --git a/doc/release-notes.html b/doc/release-notes.html
index 69f03f6..40c93d6 100644
--- a/doc/release-notes.html
+++ b/doc/release-notes.html
@@ -72,6 +72,7 @@ List of changes since Ivy 2.4.0:
 - FIX: Fix RetrieveEngine to take into account the correct extension while 
dealing with unpacked artifacts (IVY-1478) (Thanks to Jaikiran Pai)
 - FIX: ParseException "Unsupported repository, resources names are not uris" 
for ivy.xml with parent on Windows (IVY-1448) (Thanks to Riccardo Foschia and 
Jaikiran Pai)
 - FIX: Ivy 2.4.0 improperly handles modules with colon (:) in version 
(IVY-1522) (Thanks to Jaikiran Pai)
+- FIX: Delay the processing of configured cache ttls, until the IvySettings 
object is usable (IVY-1495) (Thanks to Jaikiran Pai)
 
 - IMPROVEMENT: Throw an IllegalStateException when retrieving the 
resolutionCacheRoot on the DefaultResolutionCacheManager if the basedir (or 
IvySettings) is not set (IVY-1482)
 - IMPROVEMENT: Optimization: limit the revision numbers scanned if revision 
prefix is specified (Thanks to Ernestas Vaiciukevičius)



[jira] [Commented] (IVY-1495) Using matcher attribute on ttl in settings file cause NullPointerException

2017-06-01 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032792#comment-16032792
 ] 

ASF GitHub Bot commented on IVY-1495:
-

Github user asfgit closed the pull request at:

https://github.com/apache/ant-ivy/pull/21


> Using matcher attribute on ttl in settings file cause NullPointerException
> --
>
> Key: IVY-1495
> URL: https://issues.apache.org/jira/browse/IVY-1495
> Project: Ivy
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 2.4.0-RC1
>Reporter: Martin Krajc
>
> Using similar config in ivysettings cause NullPointerException
> {code}
>   
> defaultTTL="eternal" >
>   
>
>   
> {code}
> Value of matcher doesn't matter
> {code}
> c:\test-ttl.xml:23: impossible to configure ivy:settings with given file: 
> c:\ivysettings.xml : java.text.ParseException: failed to load settings from 
> file:/c:/ivysettings.xml: impossible to add configured child for ttl on class 
> org.apache.ivy.core.cache.DefaultRepositoryCacheManager: 
> java.lang.NullPointerException at 
> org.apache.ivy.core.cache.DefaultRepositoryCacheManager.addConfiguredTtl(DefaultRepositoryCacheManager.java:252)
> {code}
> Looking and debugging line 252 in DefaultrepositoryCacheManager, the settings 
> variable is not yet initialized in that point of parsing 
> {code}
> addTTL(attributes,
> matcher == null ? ExactPatternMatcher.INSTANCE : 
> settings.getMatcher(matcher),
> parseDuration(duration));
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[1/2] ant-ivy git commit: IVY-1495 Delay the processing of configured cache ttls, until the IvySettings object is usable

2017-06-01 Thread hibou
Repository: ant-ivy
Updated Branches:
  refs/heads/master 1f0c99d0e -> f2a899979


IVY-1495 Delay the processing of configured cache ttls, until the IvySettings 
object is usable


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/3d30c8ca
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/3d30c8ca
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/3d30c8ca

Branch: refs/heads/master
Commit: 3d30c8ca715492e11c5c7d196668d5dcec1bcbed
Parents: 5601c44
Author: Jaikiran Pai 
Authored: Fri May 19 14:30:33 2017 +0530
Committer: Jaikiran Pai 
Committed: Tue May 30 09:50:03 2017 +0530

--
 .../cache/DefaultRepositoryCacheManager.java| 59 +---
 .../core/settings/XmlSettingsParserTest.java| 26 +
 .../settings/ivysettings-cache-ttl-matcher.xml  | 25 +
 3 files changed, 102 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/3d30c8ca/src/java/org/apache/ivy/core/cache/DefaultRepositoryCacheManager.java
--
diff --git 
a/src/java/org/apache/ivy/core/cache/DefaultRepositoryCacheManager.java 
b/src/java/org/apache/ivy/core/cache/DefaultRepositoryCacheManager.java
index ea01797..1a1fa0f 100644
--- a/src/java/org/apache/ivy/core/cache/DefaultRepositoryCacheManager.java
+++ b/src/java/org/apache/ivy/core/cache/DefaultRepositoryCacheManager.java
@@ -25,8 +25,14 @@ import java.net.URL;
 import java.security.MessageDigest;
 import java.security.NoSuchAlgorithmException;
 import java.text.ParseException;
+import java.util.ArrayList;
+import java.util.Collections;
 import java.util.Date;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
 import java.util.Map;
+import java.util.Set;
 import java.util.regex.Pattern;
 
 import org.apache.ivy.Ivy;
@@ -121,6 +127,8 @@ public class DefaultRepositoryCacheManager implements 
RepositoryCacheManager, Iv
 
 private PackagingManager packagingManager = new PackagingManager();
 
+private final List configuredTTLs = new 
ArrayList();
+
 public DefaultRepositoryCacheManager() {
 }
 
@@ -134,9 +142,16 @@ public class DefaultRepositoryCacheManager implements 
RepositoryCacheManager, Iv
 return settings;
 }
 
-public void setSettings(IvySettings settings) {
+public void setSettings(final IvySettings settings) {
 this.settings = settings;
 packagingManager.setSettings(settings);
+// process and setup the configured TTLs (which weren't yet processed 
since they needed a settings instance to be present)
+for (final ConfiguredTTL configuredTTL : configuredTTLs) {
+this.addTTL(configuredTTL.attributes,
+configuredTTL.matcher == null ? 
ExactPatternMatcher.INSTANCE : settings.getMatcher(configuredTTL.matcher), 
configuredTTL.duration);
+}
+// clear off the configured TTLs since we have now processed them and 
created TTL rules out of them
+this.configuredTTLs.clear();
 }
 
 public File getIvyFileInCache(ModuleRevisionId mrid) {
@@ -242,15 +257,16 @@ public class DefaultRepositoryCacheManager implements 
RepositoryCacheManager, Iv
 ttlRules.defineRule(new MapMatcher(attributes, matcher), new 
Long(duration));
 }
 
-public void addConfiguredTtl(Map attributes) {
-String duration = attributes.remove("duration");
-if (duration == null) {
+public void addConfiguredTtl(final Map attributes) {
+final String durationValue = attributes.get("duration");
+if (durationValue == null) {
 throw new IllegalArgumentException("'duration' attribute is 
mandatory for ttl");
 }
-String matcher = attributes.remove("matcher");
-addTTL(attributes,
-matcher == null ? ExactPatternMatcher.INSTANCE : 
settings.getMatcher(matcher),
-parseDuration(duration));
+final long duration = parseDuration(durationValue);
+final ConfiguredTTL configuredTTL = new ConfiguredTTL(duration, 
attributes.get("matcher"), attributes);
+// Processing TTLs requires access to an initialized/usable 
IvySettings instance.
+// we keep track of these configured TTLs and process them when the 
IvySettings instance becomes usable
+this.configuredTTLs.add(configuredTTL);
 }
 
 public void setMemorySize(int size) {
@@ -1562,4 +1578,31 @@ public class DefaultRepositoryCacheManager implements 
RepositoryCacheManager, Iv
 
 }
 
+private static final class ConfiguredTTL {
+// attributes on the TTL, that don't contribute to module matching
+private static final Set attributesNotContributingToMatching = 
new HashSet();
+static {
+attributesNotContributing

[2/2] ant-ivy git commit: This closes #21

2017-06-01 Thread hibou
This closes #21


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/f2a89997
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/f2a89997
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/f2a89997

Branch: refs/heads/master
Commit: f2a899979a183a398132409dba59e1e530fa1697
Parents: 1f0c99d 3d30c8c
Author: Nicolas Lalevée 
Authored: Thu Jun 1 13:07:42 2017 +0200
Committer: Nicolas Lalevée 
Committed: Thu Jun 1 13:07:42 2017 +0200

--
 .../cache/DefaultRepositoryCacheManager.java| 59 +---
 .../core/settings/XmlSettingsParserTest.java| 26 +
 .../settings/ivysettings-cache-ttl-matcher.xml  | 25 +
 3 files changed, 102 insertions(+), 8 deletions(-)
--