DO NOT REPLY [Bug 44239] New: - Add ability of Ant resource classes to act as factories for relative resources

2008-01-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44239.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44239

   Summary: Add ability of Ant resource classes to act as factories
for relative resources
   Product: Ant
   Version: 1.7Alpha (nightly)
  Platform: Other
OS/Version: other
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


If we add an interface to those resources that can provide relative resources
(e.g. FileResource), then we can start thinking about how to import resources,
where the imported files will also make relative references (i.e. their own
import calls)

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


DO NOT REPLY [Bug 44240] New: - factor out classpath support from JavaResource into an Abstract resource

2008-01-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44240.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44240

   Summary: factor out classpath support from JavaResource  into an
Abstract resource
   Product: Ant
   Version: 1.7Alpha (nightly)
  Platform: Other
OS/Version: other
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


there are many types of resources that can take classpath values...these should
be factored out of JavaResource into a new base type

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


DO NOT REPLY [Bug 44242] New: - Add funtest task for functional testing

2008-01-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44242.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44242

   Summary: Add funtest task for functional testing
   Product: Ant
   Version: 1.7Alpha (nightly)
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Optional Tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


I'm proposing a complete rewrite of the functionaltest task we use to
bootstrap smartfrog's testing. This task
 -has a condition to decide whether to run or not
 -has an action that it starts in parallel
 -blocks until another condition is run
 -runs a test suite (anything in a sequence)
 -does cleanup
 -does junit report generation (conditionally)
 -has lots of timeouts

This can all be done with skilled parallel, sequential and ant-contrib work,
but you dont get the right cleanup, or forward the central, critical exceptions 
up.

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


DO NOT REPLY [Bug 44241] New: - add JavaConstantResource to read string constants.

2008-01-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44241.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44241

   Summary: add JavaConstantResource to read string constants.
   Product: Ant
   Version: 1.7Alpha (nightly)
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: [EMAIL PROTECTED]
 BugsThisDependsOn: 44240


a java constant resource that lets us get the string value of a Java string into
an Ant property or other resource consumer

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


DO NOT REPLY [Bug 44240] - factor out classpath support from JavaResource into an Abstract resource

2008-01-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44240.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44240


[EMAIL PROTECTED] changed:

   What|Removed |Added

OtherBugsDependingO||44241
  nThis||




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


svn commit: r612079 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaConstantResource.java

2008-01-15 Thread stevel
Author: stevel
Date: Tue Jan 15 03:06:13 2008
New Revision: 612079

URL: http://svn.apache.org/viewvc?rev=612079view=rev
Log:
bug 44241 add JavaConstantResource to read string constants.

Added:

ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaConstantResource.java
   (with props)

Added: 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaConstantResource.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaConstantResource.java?rev=612079view=auto
==
--- 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaConstantResource.java
 (added)
+++ 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaConstantResource.java
 Tue Jan 15 03:06:13 2008
@@ -0,0 +1,66 @@
+/*
+ * Copyright  2008 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the License);
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an AS IS BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+package org.apache.tools.ant.types.resources;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.ByteArrayInputStream;
+import java.lang.reflect.Field;
+
+/**
+ * A resource that is a java constant.
+ * This lets you extract values off the classpath and use them elsewhere
+ * @since Ant1.7
+ *
+ */
+
+public class JavaConstantResource extends AbstractClasspathResource {
+/**
+ * open the inpout stream from a specific classloader
+ *
+ * @param cl the classloader to use. Will be null if the system 
classloader is used
+ * @return an open input stream for the resource
+ * @throws IOException if an error occurs.
+ */
+protected InputStream openInputStream(ClassLoader cl) throws IOException {
+Class clazz;
+String constant = getName();
+int index1 = constant.lastIndexOf('.');
+if (index1  0) {
+throw new IOException(No class name in  + constant);
+}
+int index = index1;
+String classname = constant.substring(0, index);
+String fieldname = constant.substring(index + 1, constant.length());
+try {
+clazz = 
cl!=null?Class.forName(classname,true,cl):Class.forName(classname);
+Field field = clazz.getField(fieldname);
+String value=field.get(null).toString();
+return new ByteArrayInputStream(value.getBytes(UTF-8));
+} catch (ClassNotFoundException e) {
+throw new IOException(Class not found:+ classname);
+} catch (NoSuchFieldException e) {
+throw new IOException(Field not found: + fieldname+  in 
+classname);
+} catch (IllegalAccessException e) {
+throw new IOException(Illegal access to : + fieldname +  in  + 
classname);
+} catch (NullPointerException npe) {
+throw new IOException(Not a static field:  + fieldname +  in  
+ classname);
+}
+}
+
+
+}

Propchange: 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaConstantResource.java
--
svn:eol-style = native




DO NOT REPLY [Bug 44241] - add JavaConstantResource to read string constants.

2008-01-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44241.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44241





--- Additional Comments From [EMAIL PROTECTED]  2008-01-15 03:08 ---
committed first changes; leaving open until the tests+docs go in.

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


svn commit: r612083 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/defaults.properties

2008-01-15 Thread stevel
Author: stevel
Date: Tue Jan 15 03:14:52 2008
New Revision: 612083

URL: http://svn.apache.org/viewvc?rev=612083view=rev
Log:
Bug# 44242 Add funtest task for functional testing

Modified:
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/defaults.properties

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/defaults.properties
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/defaults.properties?rev=612083r1=612082r2=612083view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/defaults.properties 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/defaults.properties 
Tue Jan 15 03:14:52 2008
@@ -122,6 +122,7 @@
 ejbc=org.apache.tools.ant.taskdefs.optional.ejb.Ejbc
 ejbjar=org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
 ftp=org.apache.tools.ant.taskdefs.optional.net.FTP
+funtest=org.apache.tools.ant.taskdefs.optional.testing.Funtest
 ilasm=org.apache.tools.ant.taskdefs.optional.dotnet.Ilasm
 ildasm=org.apache.tools.ant.taskdefs.optional.dotnet.Ildasm
 image=org.apache.tools.ant.taskdefs.optional.image.Image




svn commit: r612091 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/AbstractClasspathResource.java

2008-01-15 Thread jhm
Author: jhm
Date: Tue Jan 15 04:06:19 2008
New Revision: 612091

URL: http://svn.apache.org/viewvc?rev=612091view=rev
Log:
- spelling
- a sentence was incomplete (missing additional docs?)

Modified:

ant/core/trunk/src/main/org/apache/tools/ant/types/resources/AbstractClasspathResource.java

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/AbstractClasspathResource.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/AbstractClasspathResource.java?rev=612091r1=612090r2=612091view=diff
==
--- 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/AbstractClasspathResource.java
 (original)
+++ 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/AbstractClasspathResource.java
 Tue Jan 15 04:06:19 2008
@@ -26,8 +26,8 @@
 
 /**
  *
- * A Resource representation of anything thta is accessed via a Java 
classloader.
- * The core methods to set/resolve the classpath are provided, and
+ * A Resource representation of anything that is accessed via a Java 
classloader.
+ * The core methods to set/resolve the classpath are provided.
  * @since Ant 1.8
  *
  */




[EMAIL PROTECTED]: Project test-ant (in module ant) failed

2008-01-15 Thread Gump Integration Build
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at [EMAIL PROTECTED]

Project test-ant has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 88 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- test-ant :  Java based build tool


Full details are available at:
http://vmgump.apache.org/gump/public/ant/test-ant/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -INFO- Optional dependency rhino failed with reason build failed
 -INFO- Failed with reason build failed



The following work was performed:
http://vmgump.apache.org/gump/public/ant/test-ant/gump_work/build_ant_test-ant.html
Work Name: build_ant_test-ant (Type: Build)
Work ended in a state of : Failed
Elapsed: 11 mins 54 secs
Command Line: /usr/lib/jvm/java-1.5.0-sun/bin/java -Djava.awt.headless=true 
-Xbootclasspath/p:/srv/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar:/srv/gump/public/workspace/xml-xalan/build/serializer.jar:/srv/gump/public/workspace/xml-xalan/build/xalan-unbundled.jar
 org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml 
-Dbuild.sysclasspath=only -Dtest.haltonfailure=false 
-Dant.home=/srv/gump/public/workspace/ant/dist run-tests 
[Working Directory: /srv/gump/public/workspace/ant]
CLASSPATH: 
/usr/lib/jvm/java-1.5.0-sun/lib/tools.jar:/srv/gump/public/workspace/ant/build/testcases:/srv/gump/public/workspace/ant/src/tests/junit:/srv/gump/public/workspace/ant/src/etc/testcases:/srv/gump/public/workspace/ant/build/lib/ant-stylebook.jar:/srv/gump/public/workspace/ant/build/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/build/lib/ant-swing.jar:/srv/gump/public/workspace/ant/build/lib/ant-junit.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/build/lib/ant-javamail.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-bcel.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-regexp.jar:/srv/gump/public/workspace/ant/build/lib/ant-trax.jar:/srv/gump/public/workspace/ant/build/lib/ant-commons-net.jar:/srv/gump/public/workspace/ant/build/lib/ant-jsch.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-log4j.jar:/srv/gump/public/workspace/ant/build/lib/ant-antlr.jar:/srv/gump/public/workspace/ant/build/li
 
b/ant-commons-logging.jar:/srv/gump/public/workspace/ant/build/lib/ant-jdepend.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-bsf.jar:/srv/gump/public/workspace/ant/build/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/build/lib/ant-nodeps.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-oro.jar:/srv/gump/public/workspace/ant/build/lib/ant.jar:/srv/gump/public/workspace/ant/build/lib/ant-jai.jar:/srv/gump/packages/antlr-2.7.6/antlr.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-15012008.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-api-15012008.jar:/srv/gump/public/workspace/apache-commons/net/dist/commons-net-15012008.jar:/srv/gump/packages/jaf-1.1ea/activation.jar:/srv/gump/public/workspace/jakarta-bcel/target/bcel-5.3-SNAPSHOT.jar:/srv/gump/public/workspace/jakarta-bsf/build/lib/bsf.jar:/srv/gump/public/workspace/logging-log4j-12/dist/lib/log4j-15012008.jar:/srv/gump/public/workspace/jakarta-
 
oro/jakarta-oro-15012008.jar:/srv/gump/public/workspace/jakarta-regexp/build/jakarta-regexp-15012008.jar:/srv/gump/public/workspace/jakarta-servletapi-4/lib/servlet.jar:/srv/gump/packages/javamail-1.4/mail.jar:/srv/gump/packages/javamail-1.4/lib/mailapi.jar:/srv/gump/packages/jdepend-2.6/lib/jdepend.jar:/srv/gump/packages/jsch/jsch-0.1.28.jar:/srv/gump/public/workspace/xml-stylebook/bin/stylebook-1.0-b3_xalan-2.jar:/srv/gump/public/workspace/ant-antlibs/antunit/build/ant-antunit-15012008.jar:/srv/gump/public/workspace/junit/dist/junit-15012008.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/srv/gump/public/workspace/jakarta-tomcat-4.0/dist/common/lib/jasper-compiler.jar:/srv/gump/public/workspace/jakarta-tomcat-4.0/dist/common/lib/jasper-runtime.jar:/srv/gump/public/workspace/xml-commons/java/build/which.jar:/srv/gump/public/workspace/rhino/build/rhino_15012008/js.jar:/srv/gump/packages/bsh-2.0b4/bsh-commands-2.0b4.jar:/srv/gump/packages/bsh-
 

[EMAIL PROTECTED]: Project test-ant-no-xerces (in module ant) failed

2008-01-15 Thread Gump Integration Build
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at [EMAIL PROTECTED]

Project test-ant-no-xerces has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 88 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- test-ant-no-xerces :  Java based build tool


Full details are available at:
http://vmgump.apache.org/gump/public/ant/test-ant-no-xerces/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -INFO- Optional dependency rhino failed with reason build failed
 -INFO- Failed with reason build failed



The following work was performed:
http://vmgump.apache.org/gump/public/ant/test-ant-no-xerces/gump_work/build_ant_test-ant-no-xerces.html
Work Name: build_ant_test-ant-no-xerces (Type: Build)
Work ended in a state of : Failed
Elapsed: 12 mins 37 secs
Command Line: /usr/lib/jvm/java-1.5.0-sun/bin/java -Djava.awt.headless=true 
org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml 
-Dbuild.sysclasspath=only -Dtest.haltonfailure=false 
-Dant.home=/srv/gump/public/workspace/ant/dist run-tests 
[Working Directory: /srv/gump/public/workspace/ant]
CLASSPATH: 
/usr/lib/jvm/java-1.5.0-sun/lib/tools.jar:/srv/gump/public/workspace/ant/build/testcases:/srv/gump/public/workspace/ant/src/tests/junit:/srv/gump/public/workspace/ant/src/etc/testcases:/srv/gump/public/workspace/ant/build/lib/ant-stylebook.jar:/srv/gump/public/workspace/ant/build/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/build/lib/ant-swing.jar:/srv/gump/public/workspace/ant/build/lib/ant-junit.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/build/lib/ant-javamail.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-bcel.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-regexp.jar:/srv/gump/public/workspace/ant/build/lib/ant-trax.jar:/srv/gump/public/workspace/ant/build/lib/ant-commons-net.jar:/srv/gump/public/workspace/ant/build/lib/ant-jsch.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-log4j.jar:/srv/gump/public/workspace/ant/build/lib/ant-antlr.jar:/srv/gump/public/workspace/ant/build/li
 
b/ant-commons-logging.jar:/srv/gump/public/workspace/ant/build/lib/ant-jdepend.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-bsf.jar:/srv/gump/public/workspace/ant/build/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/build/lib/ant-nodeps.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-oro.jar:/srv/gump/public/workspace/ant/build/lib/ant.jar:/srv/gump/public/workspace/ant/build/lib/ant-jai.jar:/srv/gump/packages/antlr-2.7.6/antlr.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-15012008.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-api-15012008.jar:/srv/gump/public/workspace/apache-commons/net/dist/commons-net-15012008.jar:/srv/gump/packages/jaf-1.1ea/activation.jar:/srv/gump/public/workspace/jakarta-bcel/target/bcel-5.3-SNAPSHOT.jar:/srv/gump/public/workspace/jakarta-bsf/build/lib/bsf.jar:/srv/gump/public/workspace/logging-log4j-12/dist/lib/log4j-15012008.jar:/srv/gump/public/workspace/jakarta-
 
oro/jakarta-oro-15012008.jar:/srv/gump/public/workspace/jakarta-regexp/build/jakarta-regexp-15012008.jar:/srv/gump/public/workspace/jakarta-servletapi-4/lib/servlet.jar:/srv/gump/packages/javamail-1.4/mail.jar:/srv/gump/packages/javamail-1.4/lib/mailapi.jar:/srv/gump/packages/jdepend-2.6/lib/jdepend.jar:/srv/gump/packages/jsch/jsch-0.1.28.jar:/srv/gump/public/workspace/xml-stylebook/bin/stylebook-1.0-b3_xalan-2.jar:/srv/gump/public/workspace/ant-antlibs/antunit/build/ant-antunit-15012008.jar:/srv/gump/public/workspace/junit/dist/junit-15012008.jar:/srv/gump/public/workspace/jakarta-tomcat-4.0/dist/common/lib/jasper-compiler.jar:/srv/gump/public/workspace/jakarta-tomcat-4.0/dist/common/lib/jasper-runtime.jar:/srv/gump/public/workspace/xml-commons/java/build/which.jar:/srv/gump/public/workspace/rhino/build/rhino_15012008/js.jar:/srv/gump/packages/bsh-2.0b4/bsh-commands-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-classpath-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-core-2.0b4.ja
 
r:/srv/gump/packages/bsh-2.0b4/bsh-bsf-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-reflect-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-util-2.0b4.jar:/srv/gump/public/workspace/apache-commons/codec/dist/commons-codec-15012008.jar
-
at org.apache.tools.ant.Project.executeTargets(Project.java:1176)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at 

[jira] Commented: (IVY-701) NPE while resolving dependencies

2008-01-15 Thread Xavier Hanin (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12559141#action_12559141
 ] 

Xavier Hanin commented on IVY-701:
--

The cache structure has changed between 1.4 and 2.0, so I don't recommend 
sharing the cache between the two. But this shouldn't end up in a NPE in any 
case, so the bug is valid.

 NPE while resolving dependencies
 

 Key: IVY-701
 URL: https://issues.apache.org/jira/browse/IVY-701
 Project: Ivy
  Issue Type: Bug
  Components: Core
Affects Versions: 2.0.0-beta-2
Reporter: Nicolas Lalevée

 I have build the trunk of Ivy today in order to be used in IvyDE : svn 
 revision 611768
 And a resolve threw a NPE : 
 {noformat}
 com.company#project;latest.development: java.lang.NullPointerException at 
 org.apache.ivy.plugins.resolver.AbstractResourceResolver.findResource(AbstractResourceResolver.java:161)
 {noformat}
 With the command line, with ant, I still use Ivy1.4, and it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



svn commit: r612173 - in /ant/ivy/core/trunk: ./ doc/configuration/ doc/configuration/caches/ doc/use/ src/java/org/apache/ivy/ src/java/org/apache/ivy/ant/ src/java/org/apache/ivy/core/cache/ src/jav

2008-01-15 Thread xavier
Author: xavier
Date: Tue Jan 15 09:45:26 2008
New Revision: 612173

URL: http://svn.apache.org/viewvc?rev=612173view=rev
Log:
IMPROVEMENT: Move useOrigin to repository cache manager (IVY-700)

Modified:
ant/ivy/core/trunk/CHANGES.txt
ant/ivy/core/trunk/doc/configuration/caches.html
ant/ivy/core/trunk/doc/configuration/caches/cache.html
ant/ivy/core/trunk/doc/use/cachepath.html
ant/ivy/core/trunk/doc/use/resolve.html
ant/ivy/core/trunk/doc/use/retrieve.html
ant/ivy/core/trunk/src/java/org/apache/ivy/Ivy14.java
ant/ivy/core/trunk/src/java/org/apache/ivy/Main.java
ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyResolve.java

ant/ivy/core/trunk/src/java/org/apache/ivy/core/cache/CacheDownloadOptions.java

ant/ivy/core/trunk/src/java/org/apache/ivy/core/cache/DefaultRepositoryCacheManager.java
ant/ivy/core/trunk/src/java/org/apache/ivy/core/install/InstallEngine.java

ant/ivy/core/trunk/src/java/org/apache/ivy/core/repository/RepositoryManagementEngine.java
ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/DownloadOptions.java
ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/ResolveEngine.java
ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/ResolveOptions.java
ant/ivy/core/trunk/src/java/org/apache/ivy/core/settings/IvySettings.java

ant/ivy/core/trunk/src/java/org/apache/ivy/core/settings/XmlSettingsParser.java

ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/AbstractResolver.java

ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/BasicResolver.java
ant/ivy/core/trunk/test/java/org/apache/ivy/core/resolve/ResolveTest.java

ant/ivy/core/trunk/test/java/org/apache/ivy/core/settings/XmlSettingsParserTest.java

ant/ivy/core/trunk/test/java/org/apache/ivy/core/settings/ivysettings-cache.xml

ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/AbstractDependencyResolverTest.java

ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/ChainResolverTest.java

ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/FileSystemResolverTest.java

ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/URLResolverTest.java

Modified: ant/ivy/core/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/ant/ivy/core/trunk/CHANGES.txt?rev=612173r1=612172r2=612173view=diff
==
--- ant/ivy/core/trunk/CHANGES.txt (original)
+++ ant/ivy/core/trunk/CHANGES.txt Tue Jan 15 09:45:26 2008
@@ -64,6 +64,7 @@
 - NEW: Add ability for buildlist task to start build from specified module in 
the list (IVY-697) (thanks to Mirko Bulovic)
 - NEW: Cache dynamic revision resolution (IVY-694)
 
+- IMPROVEMENT: Move useOrigin to repository cache manager (IVY-700)
 - IMPROVEMENT: Make IBiblio resolver compatible with maven proxy (IVY-466)
 - IMPROVEMENT: Use namespace aware validation (IVY-553)
 - IMPROVEMENT: use ModuleRevisionId instead of ModuleId in 
IvySettings#getResolver (IVY-691)

Modified: ant/ivy/core/trunk/doc/configuration/caches.html
URL: 
http://svn.apache.org/viewvc/ant/ivy/core/trunk/doc/configuration/caches.html?rev=612173r1=612172r2=612173view=diff
==
--- ant/ivy/core/trunk/doc/configuration/caches.html (original)
+++ ant/ivy/core/trunk/doc/configuration/caches.html Tue Jan 15 09:45:26 2008
@@ -49,6 +49,8 @@
 tdNo, defaults to 
[organisation]/[module]/ivy-[revision].xml/td/tr
 trtdartifactPattern/tdtddefault pattern used to indicate where 
artifact files should be put in repository cache(s)/td
 tdNo, defaults to 
[organisation]/[module]/[type]s/[artifact]-[revision].[ext]/td/tr
+trtduseOrigin/tdtdthe default value to use for useOrigin for 
caches in which it isn't specifically defined/td
+tdNo, defaults to false/td/tr
 trtdlockStragegy/tdtdthe name of the default 
[[configuration/lock-strategies lock strategy]] to use when accessing 
repository cache(s)/td
 tdNo, defaults to emno-lock/em/td/tr
 /tbody

Modified: ant/ivy/core/trunk/doc/configuration/caches/cache.html
URL: 
http://svn.apache.org/viewvc/ant/ivy/core/trunk/doc/configuration/caches/cache.html?rev=612173r1=612172r2=612173view=diff
==
--- ant/ivy/core/trunk/doc/configuration/caches/cache.html (original)
+++ ant/ivy/core/trunk/doc/configuration/caches/cache.html Tue Jan 15 09:45:26 
2008
@@ -45,6 +45,9 @@
 tdNo, defaults to default cache ivy pattern as configured in 
[[configuration/caches]]/td/tr
 trtdartifactPattern/tdtdthe pattern to use to store cached 
artifacts/td
 tdNo, defaults to default cache artifact pattern as configured in 
[[configuration/caches]]/td/tr
+trtduseOrigin/tdtdtrue to avoid the copy of local artifacts to the 
cache and use directly their original location, false otherwise. 
+To know if