[Bug 61442] echoproperties ant 1.6.1 vs ant 1.10.1

2017-08-17 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61442

Chandra shekar r chekuri  changed:

   What|Removed |Added

 CC||chandra.chek...@here.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61442] New: echoproperties ant 1.6.1 vs ant 1.10.1

2017-08-17 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61442

Bug ID: 61442
   Summary: echoproperties ant 1.6.1 vs ant 1.10.1
   Product: Ant
   Version: 1.10.1
  Hardware: PC
OS: Mac OS X 10.1
Status: NEW
  Severity: normal
  Priority: P2
 Component: Core tasks
  Assignee: notifications@ant.apache.org
  Reporter: chandra.chek...@here.com
  Target Milestone: ---

Created attachment 35248
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35248=edit
was unable to attach to files so both output from 1.6.1 and 1.10.1 are in this
files

we are migrating our ant version from 1.6.1 to 1.10.1 which was due since ages.

when we use ant 1.6.2 the following code generates file as shown in
echopropeties.txt ( in attachments) , and when we use ant 1.10.1  generates the
file as echopropeties.txt(in attachments).

The issue we are having is that in 1.10.1 it is writing the properties with
empty string into the .txt file(refer echopropeties_1_10_1.txt ), is there way
to omit these values in the destfile?

for example 
in .xml file 
 
   
   
   
   

  

in ant 1.6.2 , there was no entry in .txt file but in 1.10.1

ConversionSpec.ExcludedFeatureTypeList.ExcludedFeatureType=
ConversionSpec.Midpoint.SGMidpoint.MidpointInputFile=



  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 
 



-- 
You are receiving this mail because:
You are the assignee for the bug.

ant-ivy git commit: inline variables; adjust exceptions, annotations, and formatting

2017-08-17 Thread gintas
Repository: ant-ivy
Updated Branches:
  refs/heads/master a9dd1573e -> 186fd1077


inline variables; adjust exceptions, annotations, and formatting

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

Branch: refs/heads/master
Commit: 186fd10776a0fd576d5deb733af654c7e20b3f30
Parents: a9dd157
Author: Gintas Grigelionis 
Authored: Thu Aug 17 14:10:42 2017 +0200
Committer: Gintas Grigelionis 
Committed: Thu Aug 17 14:10:42 2017 +0200

--
 asciidoc/concept.adoc   |  2 +-
 src/java/org/apache/ivy/Ivy.java|  4 +--
 src/java/org/apache/ivy/Main.java   |  1 +
 src/java/org/apache/ivy/ant/BuildOBRTask.java   |  5 ++-
 .../org/apache/ivy/ant/IvyArtifactReport.java   |  6 ++--
 src/java/org/apache/ivy/ant/IvyCacheTask.java   |  3 +-
 src/java/org/apache/ivy/ant/IvyRetrieve.java|  1 +
 .../cache/DefaultRepositoryCacheManager.java| 32 +++-
 .../ivy/core/module/id/ModuleRevisionId.java|  5 ++-
 .../apache/ivy/core/publish/PublishEngine.java  |  4 +--
 .../core/report/ConfigurationResolveReport.java |  6 ++--
 .../ivy/core/retrieve/RetrieveOptions.java  |  4 +--
 .../apache/ivy/core/settings/IvySettings.java   |  3 +-
 .../core/settings/NamedTimeoutConstraint.java   |  2 --
 .../ivy/core/settings/XmlSettingsParser.java|  9 --
 .../org/apache/ivy/core/sort/ModuleInSort.java  |  2 +-
 .../apache/ivy/osgi/core/BundleCapability.java  |  2 +-
 .../apache/ivy/osgi/core/BundleRequirement.java |  2 +-
 .../org/apache/ivy/osgi/core/ExportPackage.java |  2 +-
 .../ivy/osgi/repo/AbstractOSGiResolver.java |  3 +-
 .../repo/ArtifactReportManifestIterable.java|  2 +-
 .../osgi/repo/BundleCapabilityAndLocation.java  |  2 +-
 .../ivy/osgi/repo/FSManifestIterable.java   |  5 +--
 .../ivy/osgi/repo/ResolverManifestIterable.java |  2 +-
 .../org/apache/ivy/osgi/util/VersionRange.java  |  4 +--
 .../plugins/latest/WorkspaceLatestStrategy.java |  2 +-
 .../ivy/plugins/parser/m2/PomDependencyMgt.java |  2 +-
 .../parser/m2/PomModuleDescriptorBuilder.java   |  8 ++---
 .../parser/xml/XmlModuleDescriptorUpdater.java  |  2 +-
 .../ivy/plugins/repository/url/URLResource.java |  1 +
 .../resolver/AbstractPatternsBasedResolver.java |  3 +-
 .../ivy/plugins/resolver/CacheResolver.java |  1 +
 .../ivy/plugins/resolver/ChainResolver.java |  4 ---
 .../ivy/plugins/resolver/IBiblioResolver.java   |  2 +-
 .../resolver/packager/PackagerResolver.java |  5 +--
 src/java/org/apache/ivy/util/Configurator.java  |  2 --
 .../org/apache/ivy/util/EncrytedProperties.java |  2 +-
 .../apache/ivy/util/cli/CommandLineParser.java  |  6 ++--
 .../apache/ivy/util/url/BasicURLHandler.java|  2 +-
 .../org/apache/ivy/LocalFileRepoOverHttp.java   |  1 +
 test/java/org/apache/ivy/TestHelper.java|  1 +
 test/java/org/apache/ivy/ant/FileUtilTest.java  |  2 --
 .../apache/ivy/ant/IvyDependencyTreeTest.java   |  1 -
 .../java/org/apache/ivy/ant/IvyInstallTest.java |  1 -
 .../apache/ivy/core/retrieve/RetrieveTest.java  |  2 +-
 .../WarnCircularDependencyStrategyTest.java |  2 --
 .../xml/XmlModuleDescriptorParserTest.java  |  2 --
 .../ivy/util/url/HttpclientURLHandlerTest.java  |  2 ++
 .../ivy/util/url/IvyAuthenticatorTest.java  |  1 -
 49 files changed, 71 insertions(+), 99 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/186fd107/asciidoc/concept.adoc
--
diff --git a/asciidoc/concept.adoc b/asciidoc/concept.adoc
index 456021b..02aaeaa 100644
--- a/asciidoc/concept.adoc
+++ b/asciidoc/concept.adoc
@@ -91,7 +91,7 @@ the organisation name
 
 `[orgPath]`::
 *__(since 2.3)__* +
-the organisation name where '.' has been replaced by '/'. This can be used to 
configure maven2-like repositories.
+the organisation name where '.' has been replaced by '/'. This can be used to 
configure Maven 2-like repositories.
 
 `[module]`::
 the module name

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/186fd107/src/java/org/apache/ivy/Ivy.java
--
diff --git a/src/java/org/apache/ivy/Ivy.java b/src/java/org/apache/ivy/Ivy.java
index 424f010..d8f859b 100644
--- a/src/java/org/apache/ivy/Ivy.java
+++ b/src/java/org/apache/ivy/Ivy.java
@@ -118,7 +118,7 @@ public class Ivy {
  *
  * @see Ivy#execute(org.apache.ivy.Ivy.IvyCallback)
  */
-public static interface IvyCallback {
+public interface IvyCallback {
 /**
  * Executes Ivy related job within an {@link IvyContext}
  *
@@ 

[jira] [Commented] (IVY-1565) Enable XmlModuleDescriptorParser to skip the ivy-module version check

2017-08-17 Thread Gintas Grigelions (JIRA)

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

Gintas Grigelions commented on IVY-1565:


I upvoted the issue; JFrog Jira is public, anyone interested can create an 
account and do that. I opened a separate support ticket and the response was 
that R are looking into it and will respond later this week.

> Enable XmlModuleDescriptorParser to skip the ivy-module version check
> -
>
> Key: IVY-1565
> URL: https://issues.apache.org/jira/browse/IVY-1565
> Project: Ivy
>  Issue Type: Improvement
>Reporter: Arnaud Jeansen
>Priority: Minor
>
> I have a very specific use case where I rewrite ivy files to pom files on the 
> fly on a binary repository manager (artifactory).
> Basically, when an ivy-$version.xml file is published, I launch the 
> equivalent of the Ant makePom task and save a pom file in the same directory 
> as the ivy file.
> I am relying on an interesting feature from Artifactory called "user 
> plugins", where groovy scripts are executed on some specific events (e.g. 
> upload of a file)
> A sample implementation even exists at 
> https://github.com/JFrogDev/artifactory-user-plugins/tree/master/descriptors/ivy2pom
> However, my problem is that the binary repository manager has ivy-2.2 as its 
> library. So any attempt to transform later ivy module descriptors (versions 
> 2.3 and 2.4) fail with:
> {noformat}
> java.text.ParseException: [invalid version 2.4 in 
> file:/tmp/foo-5.15.9-2436013575810429206.ivy]
> {noformat}
> Is there any interest in providing a way to skip the version check in 
> XmlModuleDescriptorParser$Parser#ivyModuleStarted or enable callers to modify 
> ALLOWED_VERSIONS and authorize later versions?
> I have looked for a workaround for quite some time but:
> * ALLOWED_VERSIONS is final, so there is no way to switch to a new List with 
> the versions I want
> * ALLOWED_VERSIONS is an AbstractList, so _add_ and _addAll_ are unimplemented
> * Subclassing and overriding ivyModuleStarted fails because it works with a 
> lot of private fields directly



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)