[jira] Assigned: (IVY-887) HelloWorld chainedresolvers tutorial broken on trunk

2008-08-30 Thread Xavier Hanin (JIRA)

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

Xavier Hanin reassigned IVY-887:


Assignee: Xavier Hanin

 HelloWorld chainedresolvers tutorial broken on trunk
 

 Key: IVY-887
 URL: https://issues.apache.org/jira/browse/IVY-887
 Project: Ivy
  Issue Type: Bug
Affects Versions: 2.0
Reporter: Don Ferguson
Assignee: Xavier Hanin

 One of the resolvers downloads the wrong jar file (such as the source, or the 
 javadoc) which is deposited in the lib directory.  The javac then fails.
 For example:
 Run ant src/example/chained-resolvers/chainedresolvers-project/build.xml 
 doc/tutorial/log/chained-resolvers.txt
 Buildfile: src/example/chained-resolvers/chainedresolvers-project/build.xml
 resolve:
 [ivy:retrieve] :: Ivy 2.0.0-rc1-local-20080829125259 - 20080829125259 :: 
 http://ant.apache.org/ivy/ ::
 :: loading settings :: file = 
 /apps/src/ivy/trunk/src/example/chained-resolvers/settings/ivysettings.xml
 [ivy:retrieve] :: resolving dependencies :: 
 org.apache#chained-resolvers;[EMAIL PROTECTED]
 [ivy:retrieve]  confs: [default]
 [ivy:retrieve]  found commons-lang#commons-lang;2.0 in ibiblio
 [ivy:retrieve]  found org.apache#test;1.0 in libraries
 [ivy:retrieve] downloading 
 http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0-sources.jar
  ...
 [ivy:retrieve] 
 
 [ivy:retrieve] ... (245kB)
 [ivy:retrieve] .. (0kB)
 [ivy:retrieve]  [SUCCESSFUL ] 
 commons-lang#commons-lang;2.0!commons-lang.jar(source) (2250ms)
 [ivy:retrieve] downloading 
 http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0-javadoc.jar
  ...
 [ivy:retrieve] 
 ..
 [ivy:retrieve] 
 ..
  (467kB)
 [ivy:retrieve] .. (0kB)
 [ivy:retrieve]  [SUCCESSFUL ] 
 commons-lang#commons-lang;2.0!commons-lang.jar(javadoc) (3598ms)
 [ivy:retrieve] downloading 
 http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0.jar
  ...
 [ivy:retrieve] 
 ...
  (165kB)
 [ivy:retrieve] .. (0kB)
 [ivy:retrieve]  [SUCCESSFUL ] commons-lang#commons-lang;2.0!commons-lang.jar 
 (1698ms)
 [ivy:retrieve] downloading 
 /apps/src/ivy/trunk/src/example/chained-resolvers/settings/repository/test-1.0.jar
  ...
 [ivy:retrieve] .. (1kB)
 [ivy:retrieve]  [SUCCESSFUL ] org.apache#test;1.0!test.jar (2ms)
 [ivy:retrieve] :: resolution report :: resolve 1719ms :: artifacts dl 7555ms
 -
 |  |modules||   artifacts   |
 |   conf   | number| search|dwnlded|evicted|| number|dwnlded|
 -
 |  default |   2   |   2   |   1   |   0   ||   4   |   4   |
 -
 [ivy:retrieve] :: retrieving :: org.apache#chained-resolvers
 [ivy:retrieve]  confs: [default]
 [ivy:retrieve]  conflict on 
 /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/lib/commons-lang-2.0.jar
  in [default]: 2.0 won
 [ivy:retrieve]  2 artifacts copied, 0 already retrieved (246kB/12ms)
 run:
 [mkdir] Created dir: 
 /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/build
 [javac] Compiling 1 source file to 
 /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/build
 [javac] 
 /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java:20:
  package org.apache.commons.lang does not exist
 [javac] import org.apache.commons.lang.WordUtils;
 [javac]^
 [javac] 
 /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java:29:
  cannot find symbol
 [javac] symbol  : class WordUtils
 [javac] location: class example.Hello
 [javac] System.out.println(capitalized by  + 
 WordUtils.class.getName() 
 [javac]^
 [javac] 
 /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java:30:
  cannot find symbol
 [javac] 

svn commit: r690477 - /ant/ivy/core/trunk/src/example/chained-resolvers/chainedresolvers-project/ivy.xml

2008-08-30 Thread xavier
Author: xavier
Date: Fri Aug 29 23:49:03 2008
New Revision: 690477

URL: http://svn.apache.org/viewvc?rev=690477view=rev
Log:
FIX: HelloWorld chainedresolvers tutorial broken on trunk (IVY-887)

Modified:

ant/ivy/core/trunk/src/example/chained-resolvers/chainedresolvers-project/ivy.xml

Modified: 
ant/ivy/core/trunk/src/example/chained-resolvers/chainedresolvers-project/ivy.xml
URL: 
http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/chained-resolvers/chainedresolvers-project/ivy.xml?rev=690477r1=690476r2=690477view=diff
==
--- 
ant/ivy/core/trunk/src/example/chained-resolvers/chainedresolvers-project/ivy.xml
 (original)
+++ 
ant/ivy/core/trunk/src/example/chained-resolvers/chainedresolvers-project/ivy.xml
 Fri Aug 29 23:49:03 2008
@@ -19,7 +19,7 @@
 ivy-module version=1.0
 info organisation=org.apache module=chained-resolvers/
 dependencies
-dependency org=commons-lang name=commons-lang rev=2.0/
+dependency org=commons-lang name=commons-lang rev=2.0 
conf=default/
 dependency name=test rev=1.0/
 /dependencies
 /ivy-module




[jira] Resolved: (IVY-887) HelloWorld chainedresolvers tutorial broken on trunk

2008-08-30 Thread Xavier Hanin (JIRA)

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

Xavier Hanin resolved IVY-887.
--

   Resolution: Fixed
Fix Version/s: 2.0-RC1

I've fixed the problem, thanks for reporting!

 HelloWorld chainedresolvers tutorial broken on trunk
 

 Key: IVY-887
 URL: https://issues.apache.org/jira/browse/IVY-887
 Project: Ivy
  Issue Type: Bug
Affects Versions: 2.0
Reporter: Don Ferguson
Assignee: Xavier Hanin
 Fix For: 2.0-RC1


 One of the resolvers downloads the wrong jar file (such as the source, or the 
 javadoc) which is deposited in the lib directory.  The javac then fails.
 For example:
 Run ant src/example/chained-resolvers/chainedresolvers-project/build.xml 
 doc/tutorial/log/chained-resolvers.txt
 Buildfile: src/example/chained-resolvers/chainedresolvers-project/build.xml
 resolve:
 [ivy:retrieve] :: Ivy 2.0.0-rc1-local-20080829125259 - 20080829125259 :: 
 http://ant.apache.org/ivy/ ::
 :: loading settings :: file = 
 /apps/src/ivy/trunk/src/example/chained-resolvers/settings/ivysettings.xml
 [ivy:retrieve] :: resolving dependencies :: 
 org.apache#chained-resolvers;[EMAIL PROTECTED]
 [ivy:retrieve]  confs: [default]
 [ivy:retrieve]  found commons-lang#commons-lang;2.0 in ibiblio
 [ivy:retrieve]  found org.apache#test;1.0 in libraries
 [ivy:retrieve] downloading 
 http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0-sources.jar
  ...
 [ivy:retrieve] 
 
 [ivy:retrieve] ... (245kB)
 [ivy:retrieve] .. (0kB)
 [ivy:retrieve]  [SUCCESSFUL ] 
 commons-lang#commons-lang;2.0!commons-lang.jar(source) (2250ms)
 [ivy:retrieve] downloading 
 http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0-javadoc.jar
  ...
 [ivy:retrieve] 
 ..
 [ivy:retrieve] 
 ..
  (467kB)
 [ivy:retrieve] .. (0kB)
 [ivy:retrieve]  [SUCCESSFUL ] 
 commons-lang#commons-lang;2.0!commons-lang.jar(javadoc) (3598ms)
 [ivy:retrieve] downloading 
 http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0.jar
  ...
 [ivy:retrieve] 
 ...
  (165kB)
 [ivy:retrieve] .. (0kB)
 [ivy:retrieve]  [SUCCESSFUL ] commons-lang#commons-lang;2.0!commons-lang.jar 
 (1698ms)
 [ivy:retrieve] downloading 
 /apps/src/ivy/trunk/src/example/chained-resolvers/settings/repository/test-1.0.jar
  ...
 [ivy:retrieve] .. (1kB)
 [ivy:retrieve]  [SUCCESSFUL ] org.apache#test;1.0!test.jar (2ms)
 [ivy:retrieve] :: resolution report :: resolve 1719ms :: artifacts dl 7555ms
 -
 |  |modules||   artifacts   |
 |   conf   | number| search|dwnlded|evicted|| number|dwnlded|
 -
 |  default |   2   |   2   |   1   |   0   ||   4   |   4   |
 -
 [ivy:retrieve] :: retrieving :: org.apache#chained-resolvers
 [ivy:retrieve]  confs: [default]
 [ivy:retrieve]  conflict on 
 /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/lib/commons-lang-2.0.jar
  in [default]: 2.0 won
 [ivy:retrieve]  2 artifacts copied, 0 already retrieved (246kB/12ms)
 run:
 [mkdir] Created dir: 
 /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/build
 [javac] Compiling 1 source file to 
 /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/build
 [javac] 
 /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java:20:
  package org.apache.commons.lang does not exist
 [javac] import org.apache.commons.lang.WordUtils;
 [javac]^
 [javac] 
 /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java:29:
  cannot find symbol
 [javac] symbol  : class WordUtils
 [javac] location: class example.Hello
 [javac] System.out.println(capitalized by  + 
 WordUtils.class.getName() 
 [javac]^
 [javac] 
 

DO NOT REPLY [Bug 45716] New: UpToDate logging is misleading

2008-08-30 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45716

   Summary: UpToDate logging is misleading
   Product: Ant
   Version: 1.7.0
  Platform: PC
OS/Version: Windows Vista
Status: NEW
  Severity: normal
  Priority: P2
 Component: Core
AssignedTo: notifications@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


If uptodate defines srcfile but has no nested resources the task will log
the following:

Condition false; not setting property name if the source is newer than the
target.

or No sources found. if the source is older than the target.

The 1st message contains too little information. It should mention what file
changed.

The 2nd message is misleading, implying (at least to me) that uptodate had no
sources or the srcfile that was defined did not exist. The message shouldn't
mention the missing resources if another type of source file is properly
defined.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.