[jira] Updated: (IVY-1022) Forced resolver behavior is inappropriate for ivy:install

2009-01-29 Thread Xavier Hanin (JIRA)

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

Xavier Hanin updated IVY-1022:
--

Issue Type: Improvement  (was: Bug)

I don't classify this as a bug, because if you use a forced resolver in your 
source resolver chain, it's not that much a bug what happen. It's more a 
settings problem IMHO. But having an easy way to prevent forced resolvers from 
being forced during install could be an interesting improvement.

 Forced resolver behavior is inappropriate for ivy:install
 -

 Key: IVY-1022
 URL: https://issues.apache.org/jira/browse/IVY-1022
 Project: Ivy
  Issue Type: Improvement
  Components: Ant
Affects Versions: 2.0
Reporter: Carlton Brown

 I tried to install a certain revision of a module from a chained resolver to 
 an fs resolver, and observed that Ivy installed a revision other than what I 
 specified.   After investigation I noticed that the chain contained a forced 
 fs resolver.   I removed the forced resolver from the chain, replacing it 
 with an equivalent un-forced fs resolver.   The install worked correctly 
 after that.   
 I think that ivy:install should not be doing any dynamic version resolution 
 at all.   It should in every case use the literal module identifiers that are 
 passed to it.   This being the case, install should ignore a force attribute 
 wherever it is encountered.

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



[jira] Commented: (IVY-987) Error message: impossible to get artifacts when data has not been loaded , on certain modules only

2009-01-29 Thread Xavier Hanin (JIRA)

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

Xavier Hanin commented on IVY-987:
--

Maybe in this situation the conflict manager should resolve the conflict as if 
they were not forced. I mean, the conflict manager could first check if there 
is at least one revision being forced, if it is the case it ignores non forced 
revision and do its usual job with the forced revisions only.

Does it make sense?

 Error message: impossible to get artifacts when data has not been loaded , 
 on certain modules only
 

 Key: IVY-987
 URL: https://issues.apache.org/jira/browse/IVY-987
 Project: Ivy
  Issue Type: Bug
Affects Versions: 2.0
 Environment: ubuntu 8.04, java .1.6.0_06 Java HotSpot(TM) Client VM, 
 calling external ant 1.7  from netbeans 6.1 IDE, ivy ant task in ants home 
 lib dir 
Reporter: K. Rekk

 I found a similiar post here:
 http://www.mail-archive.com/ivy-u...@ant.apache.org/msg01766.html
  Everything worked fine with 2.0.0 beta .
 
  It's just a simple test and dom4j seems to cause the problem with
  standard ivysettings :
 dependencies
 dependency org=dom4j name=dom4j rev=1.6.1/
  dependency org=log4j name=log4j rev=1.2.9/
 dependency org=junit name=junit rev=4.5/
 /dependencies
  /ivy-module
 Removing dom4j makes it work again.
 So I dont know, is it dom4j or ivy causing the problem?
  output:
 
  init:
  deps-jar:
  ivy-retrieve:
  No ivy:settings found for the default reference 'ivy.instance'.  A
  default instance will be used
  no settings file found, using default...
  :: loading settings :: url =
  jar:file:/home/kostja/VZG/soa-workarea-ref/tools/ant/lib/ivy-2.0.0-rc2.jar!/org/apache/ivy/core/settings/ivysettings.xml
  :: resolving dependencies :: gbv.de#test;work...@myhome
 confs: [default]
 found dom4j#dom4j;1.6.1 in public
 found xml-apis#xml-apis;1.0.b2 in public
 found jaxme#jaxme-api;0.3 in public
 found jaxen#jaxen;1.1-beta-6 in public
 found jdom#jdom;1.0 in public
 found xerces#xmlParserAPIs;2.6.2 in public
 found xerces#xercesImpl;2.6.2 in public
 found xom#xom;1.0b3 in public
 found com.ibm.icu#icu4j;2.6.1 in public
 found org.ccil.cowan.tagsoup#tagsoup;0.9.7 in public
 found msv#xsdlib;20030807 in public
 found msv#relaxngDatatype;20030807 in public
 found pull-parser#pull-parser;2 in public
 found xpp3#xpp3;1.1.3.3 in public
 found stax#stax-api;1.0 in public
 found log4j#log4j;1.2.9 in public
 found junit#junit;4.5 in public
 
  :: problems summary ::
   ERRORS
 impossible to get artifacts when data has not been loaded.
  IvyNode = xalan#xalan;2.5.1
  :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
  /home/kostja/VZG/soa-workarea-ref/projects/Test/build.xml:15: impossible
  to resolve dependencies:
 java.lang.IllegalStateException: impossible to get artifacts
  when data has not been loaded. IvyNode = xalan#xalan;2.5.1
  BUILD FAILED (total time: 0 seconds)

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



DO NOT REPLY [Bug 46622] Obsolete bookmark anchor

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46622


Stefan Bodewig bode...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |1.8.0
Version|unspecified |1.7.1




--- Comment #1 from Stefan Bodewig bode...@apache.org  2009-01-29 03:19:04 
PST ---
fixed more than two years ago but didn't make it into the 1.7 branch.

svn revision 396131 ( https://svn.apache.org/viewcvs.cgi?view=revrev=396131 )


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


svn commit: r738844 - in /ant/core/trunk/src/main/org/apache/tools/zip: ExtraFieldUtils.java ZipEntry.java ZipFile.java ZipOutputStream.java

2009-01-29 Thread bodewig
Author: bodewig
Date: Thu Jan 29 12:48:35 2009
New Revision: 738844

URL: http://svn.apache.org/viewvc?rev=738844view=rev
Log:
Move the zip package into a Java 1.4 world

Modified:
ant/core/trunk/src/main/org/apache/tools/zip/ExtraFieldUtils.java
ant/core/trunk/src/main/org/apache/tools/zip/ZipEntry.java
ant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java
ant/core/trunk/src/main/org/apache/tools/zip/ZipOutputStream.java

Modified: ant/core/trunk/src/main/org/apache/tools/zip/ExtraFieldUtils.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/zip/ExtraFieldUtils.java?rev=738844r1=738843r2=738844view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/zip/ExtraFieldUtils.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/zip/ExtraFieldUtils.java Thu Jan 
29 12:48:35 2009
@@ -18,8 +18,10 @@
 
 package org.apache.tools.zip;
 
-import java.util.Hashtable;
-import java.util.Vector;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
 import java.util.zip.ZipException;
 
 /**
@@ -36,10 +38,10 @@
  *
  * @since 1.1
  */
-private static Hashtable implementations;
+private static final Map implementations;
 
 static {
-implementations = new Hashtable();
+implementations = new HashMap();
 register(AsiExtraField.class);
 register(JarMarker.class);
 }
@@ -95,7 +97,7 @@
  * @throws ZipException on error
  */
 public static ZipExtraField[] parse(byte[] data) throws ZipException {
-Vector v = new Vector();
+List v = new ArrayList();
 int start = 0;
 while (start = data.length - WORD) {
 ZipShort headerId = new ZipShort(data, start);
@@ -107,7 +109,7 @@
 try {
 ZipExtraField ze = createExtraField(headerId);
 ze.parseFromLocalFileData(data, start + WORD, length);
-v.addElement(ze);
+v.add(ze);
 } catch (InstantiationException ie) {
 throw new ZipException(ie.getMessage());
 } catch (IllegalAccessException iae) {
@@ -121,8 +123,7 @@
 }
 
 ZipExtraField[] result = new ZipExtraField[v.size()];
-v.copyInto(result);
-return result;
+return (ZipExtraField[]) v.toArray(result);
 }
 
 /**

Modified: ant/core/trunk/src/main/org/apache/tools/zip/ZipEntry.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/zip/ZipEntry.java?rev=738844r1=738843r2=738844view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/zip/ZipEntry.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/zip/ZipEntry.java Thu Jan 29 
12:48:35 2009
@@ -18,7 +18,7 @@
 
 package org.apache.tools.zip;
 
-import java.util.Vector;
+import java.util.LinkedHashMap;
 import java.util.zip.ZipException;
 
 /**
@@ -36,7 +36,7 @@
 private int internalAttributes = 0;
 private int platform = PLATFORM_FAT;
 private long externalAttributes = 0;
-private Vector/*ZipExtraField*/ extraFields = null;
+private LinkedHashMap/*ZipShort, ZipExtraField*/ extraFields = null;
 private String name = null;
 
 /**
@@ -93,7 +93,7 @@
 public Object clone() {
 ZipEntry e = (ZipEntry) super.clone();
 
-e.extraFields = extraFields != null ? (Vector) extraFields.clone() : 
null;
+e.extraFields = extraFields != null ? (LinkedHashMap) 
extraFields.clone() : null;
 e.setInternalAttributes(getInternalAttributes());
 e.setExternalAttributes(getExternalAttributes());
 e.setExtraFields(getExtraFields());
@@ -192,9 +192,9 @@
  * @since 1.1
  */
 public void setExtraFields(ZipExtraField[] fields) {
-extraFields = new Vector();
+extraFields = new LinkedHashMap();
 for (int i = 0; i  fields.length; i++) {
-extraFields.addElement(fields[i]);
+extraFields.put(fields[i].getHeaderId(), fields[i]);
 }
 setExtra();
 }
@@ -209,8 +209,7 @@
 return new ZipExtraField[0];
 }
 ZipExtraField[] result = new ZipExtraField[extraFields.size()];
-extraFields.copyInto(result);
-return result;
+return (ZipExtraField[]) extraFields.values().toArray(result);
 }
 
 /**
@@ -221,19 +220,9 @@
  */
 public void addExtraField(ZipExtraField ze) {
 if (extraFields == null) {
-extraFields = new Vector();
-}
-ZipShort type = ze.getHeaderId();
-boolean done = false;
-for (int i = 0, fieldsSize = extraFields.size(); !done  i  
fieldsSize; i++) {
-if (((ZipExtraField) 
extraFields.elementAt(i)).getHeaderId().equals(type)) {
-extraFields.setElementAt(ze, i);
-

svn commit: r738850 - in /ant/ivy/ivyde/trunk: build.properties build.xml

2009-01-29 Thread hibou
Author: hibou
Date: Thu Jan 29 13:09:04 2009
New Revision: 738850

URL: http://svn.apache.org/viewvc?rev=738850view=rev
Log:
- make IvyDE on hudson use the last release of Ivy
- make hudson always trying to update the Ivy installed in the Eclipse install, 
but now keep the downloaded files

Modified:
ant/ivy/ivyde/trunk/build.properties
ant/ivy/ivyde/trunk/build.xml

Modified: ant/ivy/ivyde/trunk/build.properties
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.properties?rev=738850r1=738849r2=738850view=diff
==
--- ant/ivy/ivyde/trunk/build.properties (original)
+++ ant/ivy/ivyde/trunk/build.properties Thu Jan 29 13:09:04 2009
@@ -33,4 +33,4 @@
 hudson.eclipse.mirror.id=514
 
hudson.eclipse.url=${hudson.eclipse.download.url}?file=/eclipse/downloads/drops/${hudson.eclipse.dropFile}url=${hudson.eclipse.mirror.url}/${hudson.eclipse.dropFile}mirror_id=${hudson.eclipse.mirror.id}
 
-hudson.ivy.version=2.0.0-rc2
+hudson.ivy.version=2.0.0

Modified: ant/ivy/ivyde/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.xml?rev=738850r1=738849r2=738850view=diff
==
--- ant/ivy/ivyde/trunk/build.xml (original)
+++ ant/ivy/ivyde/trunk/build.xml Thu Jan 29 13:09:04 2009
@@ -239,8 +239,8 @@
 /fail
 mkdir dir=${ivy.work.dir}/distrib /
 property name=ivy.zip.url 
value=${mirror.url}/ant/ivy/${ivy.version}/apache-ivy-${ivy.version}-bin.zip 
/
-get src=${ivy.zip.url} usetimestamp=true 
dest=${ivy.work.dir}/ivy-bin.zip /
-unzip overwrite=true src=${ivy.work.dir}/ivy-bin.zip 
dest=${ivy.work.dir}/distrib /
+get src=${ivy.zip.url} usetimestamp=true 
dest=${basedir}/apache-ivy-${ivy.version}-bin.zip verbose=true /
+unzip overwrite=true 
src=${basedir}/apache-ivy-${ivy.version}-bin.zip 
dest=${ivy.work.dir}/distrib /
 path id=ivy.jar.path
 first count=1
 fileset dir=${ivy.work.dir} 
includes=distrib/apache-ivy-*/ivy-*.jar /
@@ -378,7 +378,7 @@
 /echo
 /target
 
-target name=hudson-install-ivy depends=list-installed-ivy 
unless=ivy.installed
+target name=hudson-install-ivy
 ant antfile=build.xml target=install-ivy
 property name=ivy.version value=${hudson.ivy.version} /
 property name=baseLocation 
location=${basedir}/${hudson.eclipse.name} /




svn commit: r738851 - /ant/ivy/updatesite/trunk/build.xml

2009-01-29 Thread hibou
Author: hibou
Date: Thu Jan 29 13:09:55 2009
New Revision: 738851

URL: http://svn.apache.org/viewvc?rev=738851view=rev
Log:
xml formatting

Modified:
ant/ivy/updatesite/trunk/build.xml

Modified: ant/ivy/updatesite/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/ant/ivy/updatesite/trunk/build.xml?rev=738851r1=738850r2=738851view=diff
==
--- ant/ivy/updatesite/trunk/build.xml (original)
+++ ant/ivy/updatesite/trunk/build.xml Thu Jan 29 13:09:55 2009
@@ -20,8 +20,8 @@
 
 property file=local.build.properties /
 
-property name=work.dir value=${basedir}/work/
-property name=updatesite.dir value=${basedir}/dist/
+property name=work.dir value=${basedir}/work /
+property name=updatesite.dir value=${basedir}/dist /
 
 target name=clean
 delete dir=$ {work.dir} /
@@ -81,18 +81,18 @@
 delete file=${work.dir}/feature.xml /
 copy file=ivy-feature-template/feature.xml todir=${work.dir}
 filterset
-filter token=ivy.version value=${ivy.version}/
+filter token=ivy.version value=${ivy.version} /
 /filterset
 /copy
 !-- package the feature --
 jar 
destfile=${updatesite.dir}/features/org.apache.ivy.feature_${ivy.version}.jar
 fileset dir=ivy-feature-template
 include name=feature.properties /
-include name=LICENCE/
-include name=NOTICE/
+include name=LICENCE /
+include name=NOTICE /
 /fileset
 fileset dir=${work.dir}
-include name=feature.xml/
+include name=feature.xml /
 /fileset
 /jar
 /target
@@ -132,10 +132,10 @@
 !-- launch the packing --
 java classpath=${eclipse.classpath} 
classname=org.eclipse.core.launcher.Main fork=true failonerror=true
 arg value=-consolelog /
-arg line=-application org.eclipse.update.core.siteOptimizer/
-arg line=-jarProcessor -verbose -processAll -pack/
-arg line=-outputDir ${work.dir}/updatesite/plugins/
-arg line=${work.dir}/updatesite/plugins/
+arg line=-application org.eclipse.update.core.siteOptimizer /
+arg line=-jarProcessor -verbose -processAll -pack /
+arg line=-outputDir ${work.dir}/updatesite/plugins /
+arg line=${work.dir}/updatesite/plugins /
 /java
 !-- put the packs back to the updatesite --
 copy todir=${updatesite.dir}
@@ -152,9 +152,9 @@
 target name=build-digest depends=eclipse-classpath
 java classpath=${eclipse.classpath} 
classname=org.eclipse.core.launcher.Main fork=true failonerror=true
 arg value=-consolelog /
-arg line=-application org.eclipse.update.core.siteOptimizer/
-arg line=-digestBuilder -digestOutputDir=${updatesite.dir}/
-arg line=-siteXML=${updatesite.dir}/site.xml/
+arg line=-application org.eclipse.update.core.siteOptimizer /
+arg line=-digestBuilder -digestOutputDir=${updatesite.dir} /
+arg line=-siteXML=${updatesite.dir}/site.xml /
 /java
 /target
 
@@ -178,7 +178,7 @@
 /target
 
 target name=verify-checksum description=Verify the checksums of the 
artifacts to publish
-checksum algorithm=MD5 fileext=.md5 format=MD5SUM 
verifyproperty=checksum.md5.ok 
+checksum algorithm=MD5 fileext=.md5 format=MD5SUM 
verifyproperty=checksum.md5.ok
 fileset dir=${updatesite.dir}
 include name=plugins/org.apache.ivy*.jar /
 include name=plugins/org.apache.ivy*.jar.pack.gz /
@@ -188,11 +188,11 @@
 /checksum
 fail message=MD5 Checksum verify failed !
 condition
-isfalse value=${checksum.md5.ok}/
+isfalse value=${checksum.md5.ok} /
 /condition
 /fail
 echo message=MD5 Checksum verify passed successfully /
-checksum algorithm=SHA fileext=.sha format=MD5SUM 
verifyproperty=checksum.sha.ok 
+checksum algorithm=SHA fileext=.sha format=MD5SUM 
verifyproperty=checksum.sha.ok
 fileset dir=${updatesite.dir}
 include name=plugins/org.apache.ivy*.jar /
 include name=plugins/org.apache.ivy*.jar.pack.gz /
@@ -202,7 +202,7 @@
 /checksum
 fail message=SHA Checksum verify failed !
 condition
-isfalse value=${checksum.sha.ok}/
+isfalse value=${checksum.sha.ok} /
 /condition
 /fail
 echo message=SHA Checksum verify passed successfully /




[g...@vmgump]: Project test-ant (in module ant) failed

2009-01-29 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 gene...@gump.apache.org.

Project test-ant has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 40 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 jakarta-tomcat-4.0 prerequisite 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: 20 mins 33 secs
Command Line: /usr/lib/jvm/java-6-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-6-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/src/etc/testcases/taskdefs/optional/out:/srv/gump/public/workspace/ant/build/lib/ant-stylebook.jar:/srv/gump/public/workspace/ant/build/lib/ant-swing.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/build/lib/ant-nodeps.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-regexp.jar:/srv/gump/public/workspace/ant/build/lib/ant-commons-net.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-log4j.jar:/srv/gump/public/workspace/ant/build/lib/ant-commons-logging.jar:/srv/gump/public/workspace/ant/build/lib/ant-jai.jar:/srv/gump/public/workspace/ant/build/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/build/lib/ant-launcher.jar:/srv/gump/publ
 
ic/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-apache-oro.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-bcel.jar:/srv/gump/public/workspace/ant/build/lib/ant-trax.jar:/srv/gump/public/workspace/ant/build/lib/ant-antlr.jar:/srv/gump/public/workspace/ant/build/lib/ant-junit.jar:/srv/gump/public/workspace/ant/build/lib/ant-jsch.jar:/srv/gump/public/workspace/ant/build/lib/ant-javamail.jar:/srv/gump/public/workspace/ant/build/lib/ant.jar:/srv/gump/packages/antlr-2.7.6/antlr.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-29012009.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-api-29012009.jar:/srv/gump/public/workspace/apache-commons/net/dist/commons-net-29012009.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-29012009.jar:/srv/gump/public/workspace/jakarta-oro/jakarta-oro-29012009.jar:/srv/gump/public/workspace/jakarta-regexp/build/jakarta-regexp-29012009.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.38.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-29012009.jar:/srv/gump/public/workspace/junit/dist/junit-29012009.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/g
 

svn commit: r738853 - in /ant/core/trunk: ./ src/main/org/apache/tools/zip/ src/tests/antunit/taskdefs/ src/tests/antunit/taskdefs/zip/

2009-01-29 Thread bodewig
Author: bodewig
Date: Thu Jan 29 13:22:58 2009
New Revision: 738853

URL: http://svn.apache.org/viewvc?rev=738853view=rev
Log:
Make sure ZIP archive is closed even when a RuntimeExpection occurs.  PR 46559

Added:
ant/core/trunk/src/tests/antunit/taskdefs/zip/
ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-42940.zip   (with 
props)
ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-46559.zip   (with 
props)
Modified:
ant/core/trunk/WHATSNEW
ant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java
ant/core/trunk/src/tests/antunit/taskdefs/unzip-test.xml

Modified: ant/core/trunk/WHATSNEW
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=738853r1=738852r2=738853view=diff
==
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Thu Jan 29 13:22:58 2009
@@ -331,6 +331,11 @@
  * sort resource collection kept only one of entries deemed equal by
the chosen Comparator.  Bugzilla report 46527.
 
+ * the ZipFile class used by unzip and others could leave the
+   archive open (making it undeletable on Windows as long as the java
+   VM was running) for files with an unexpected internal structure.
+   Bugzilla Report 46559.
+
 Other changes:
 --
 

Modified: ant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java?rev=738853r1=738852r2=738853view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/zip/ZipFile.java Thu Jan 29 
13:22:58 2009
@@ -150,16 +150,19 @@
 public ZipFile(File f, String encoding) throws IOException {
 this.encoding = encoding;
 archive = new RandomAccessFile(f, r);
+boolean success = false;
 try {
 populateFromCentralDirectory();
 resolveLocalFileHeaderData();
-} catch (IOException e) {
-try {
-archive.close();
-} catch (IOException e2) {
-// swallow, throw the original exception instead
+success = true;
+} finally {
+if (!success) {
+try {
+archive.close();
+} catch (IOException e2) {
+// swallow, throw the original exception instead
+}
 }
-throw e;
 }
 }
 

Modified: ant/core/trunk/src/tests/antunit/taskdefs/unzip-test.xml
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/unzip-test.xml?rev=738853r1=738852r2=738853view=diff
==
--- ant/core/trunk/src/tests/antunit/taskdefs/unzip-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/unzip-test.xml Thu Jan 29 
13:22:58 2009
@@ -43,4 +43,18 @@
dest=${output}/
 au:assertFileExists file=${output}/foo/file/
   /target
+
+  target name=testArchiveIsClosedForInvalidZips
+  
description=https://issues.apache.org/bugzilla/show_bug.cgi?id=46559;
+  
+mkdir dir=${input}/
+mkdir dir=${output}/
+copy file=zip/Bugzilla-46559.zip tofile=${input}/test.zip/
+au:expectfailure
+  unzip src=${input}/test.zip dest=${output}/
+/au:expectfailure
+delete file=${input}/test.zip quiet=true/
+!-- failed on Windows and other OSes with implicit file locking --
+au:assertFileDoesntExist file=${input}/test.zip/
+  /target
 /project

Added: ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-42940.zip
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-42940.zip?rev=738853view=auto
==
Binary file - no diff available.

Propchange: ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-42940.zip
--
svn:mime-type = application/octet-stream

Added: ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-46559.zip
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-46559.zip?rev=738853view=auto
==
Files ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-46559.zip (added) 
and ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-46559.zip Thu Jan 29 
13:22:58 2009 differ

Propchange: ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-46559.zip
--
svn:mergeinfo = 




svn commit: r738854 - /ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-46559.zip

2009-01-29 Thread bodewig
Author: bodewig
Date: Thu Jan 29 13:24:42 2009
New Revision: 738854

URL: http://svn.apache.org/viewvc?rev=738854view=rev
Log:
fix MIME type

Modified:
ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-46559.zip   (props 
changed)

Propchange: ant/core/trunk/src/tests/antunit/taskdefs/zip/Bugzilla-46559.zip
--
svn:mime-type = application/octet-stream




DO NOT REPLY [Bug 46559] org.apache.tools.zip.ZipFile leaves open file after RuntimeException

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46559


Stefan Bodewig bode...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #2 from Stefan Bodewig bode...@apache.org  2009-01-29 05:25:02 
PST ---
For now I've used the jar attached to bug 42940 which will need to be changed
once that bug is fixed.

Testcase added and Ant fixed with svn revision 738853 ( 
https://svn.apache.org/viewcvs.cgi?view=revrev=738853 )


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


[g...@vmgump]: Project test-ant-no-xerces (in module ant) failed

2009-01-29 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 gene...@gump.apache.org.

Project test-ant-no-xerces has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 184 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 jakarta-tomcat-4.0 prerequisite 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: 20 mins 16 secs
Command Line: /usr/lib/jvm/java-6-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-6-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/src/etc/testcases/taskdefs/optional/out:/srv/gump/public/workspace/ant/build/lib/ant-stylebook.jar:/srv/gump/public/workspace/ant/build/lib/ant-swing.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/build/lib/ant-nodeps.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-regexp.jar:/srv/gump/public/workspace/ant/build/lib/ant-commons-net.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-log4j.jar:/srv/gump/public/workspace/ant/build/lib/ant-commons-logging.jar:/srv/gump/public/workspace/ant/build/lib/ant-jai.jar:/srv/gump/public/workspace/ant/build/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/build/lib/ant-launcher.jar:/srv/gump/publ
 
ic/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-apache-oro.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-bcel.jar:/srv/gump/public/workspace/ant/build/lib/ant-trax.jar:/srv/gump/public/workspace/ant/build/lib/ant-antlr.jar:/srv/gump/public/workspace/ant/build/lib/ant-junit.jar:/srv/gump/public/workspace/ant/build/lib/ant-jsch.jar:/srv/gump/public/workspace/ant/build/lib/ant-javamail.jar:/srv/gump/public/workspace/ant/build/lib/ant.jar:/srv/gump/packages/antlr-2.7.6/antlr.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-29012009.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-api-29012009.jar:/srv/gump/public/workspace/apache-commons/net/dist/commons-net-29012009.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-29012009.jar:/srv/gump/public/workspace/jakarta-oro/jakarta-oro-29012009.jar:/srv/gump/public/workspace/jakarta-regexp/build/jakarta-regexp-29012009.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.38.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-29012009.jar:/srv/gump/public/workspace/junit/dist/junit-29012009.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_29012009/js.jar:/srv/gump/packages/bs
 
h-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.jar:/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-29012009.jar
-
[au:antunit] Target: testunion took 0.01 sec
[au:antunit] 

svn commit: r738872 - in /ant/core/trunk: WHATSNEW src/main/org/apache/tools/ant/Diagnostics.java

2009-01-29 Thread bodewig
Author: bodewig
Date: Thu Jan 29 14:55:31 2009
New Revision: 738872

URL: http://svn.apache.org/viewvc?rev=738872view=rev
Log:
Include information about the XSLT processor found (if any) in -diagnostics.  
PR 46612.

Modified:
ant/core/trunk/WHATSNEW
ant/core/trunk/src/main/org/apache/tools/ant/Diagnostics.java

Modified: ant/core/trunk/WHATSNEW
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=738872r1=738871r2=738872view=diff
==
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Thu Jan 29 14:55:31 2009
@@ -664,6 +664,10 @@
using gcj.
Bugzilla Issue 46617.
 
+ * ant -diagnostics now outputs information about the default XSLT
+   processor.
+   Bugzilla Issue 46612.
+
 Changes from Ant 1.7.0 TO Ant 1.7.1
 =
 

Modified: ant/core/trunk/src/main/org/apache/tools/ant/Diagnostics.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/Diagnostics.java?rev=738872r1=738871r2=738872view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/Diagnostics.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/Diagnostics.java Thu Jan 29 
14:55:31 2009
@@ -27,6 +27,8 @@
 
 import javax.xml.parsers.SAXParserFactory;
 import javax.xml.parsers.SAXParser;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.Transformer;
 import java.io.File;
 import java.io.FilenameFilter;
 import java.io.PrintStream;
@@ -172,7 +174,7 @@
  * what parser are we using.
  * @return the classname of the parser
  */
-private static String getXmlParserName() {
+private static String getXMLParserName() {
 SAXParser saxParser = getSAXParser();
 if (saxParser == null) {
 return Could not create an XML Parser;
@@ -183,6 +185,20 @@
 }
 
 /**
+ * what parser are we using.
+ * @return the classname of the parser
+ */
+private static String getXSLTProcessorName() {
+Transformer transformer = getXSLTProcessor();
+if (transformer == null) {
+return Could not create an XSLT Processor;
+}
+// check to what is in the classname
+String processorName = transformer.getClass().getName();
+return processorName;
+}
+
+/**
  * Create a JAXP SAXParser
  * @return parser or null for trouble
  */
@@ -202,10 +218,28 @@
 }
 
 /**
+ * Create a JAXP XSLT Transformer
+ * @return parser or null for trouble
+ */
+private static Transformer getXSLTProcessor() {
+TransformerFactory transformerFactory = 
TransformerFactory.newInstance();
+if (transformerFactory == null) {
+return null;
+}
+Transformer transformer = null;
+try {
+transformer = transformerFactory.newTransformer();
+} catch (Exception e) {
+// ignore
+ignoreThrowable(e);
+}
+return transformer;
+}
+
+/**
  * get the location of the parser
  * @return path or null for trouble in tracking it down
  */
-
 private static String getXMLParserLocation() {
 SAXParser saxParser = getSAXParser();
 if (saxParser == null) {
@@ -238,6 +272,19 @@
 }
 
 /**
+ * get the location of the parser
+ * @return path or null for trouble in tracking it down
+ */
+private static String getXSLTProcessorLocation() {
+Transformer transformer = getXSLTProcessor();
+if (transformer == null) {
+return null;
+}
+String location = getClassLocation(transformer.getClass());
+return location;
+}
+
+/**
  * ignore exceptions. This is to allow future
  * implementations to log at a verbose level
  * @param thrown
@@ -305,6 +352,9 @@
 header(out, XML Parser information);
 doReportParserInfo(out);
 
+header(out, XSLT Processor information);
+doReportXSLTProcessorInfo(out);
+
 header(out, System properties);
 doReportSystemProperties(out);
 
@@ -494,13 +544,23 @@
  * @param out
  */
 private static void doReportParserInfo(PrintStream out) {
-String parserName = getXmlParserName();
+String parserName = getXMLParserName();
 String parserLocation = getXMLParserLocation();
 printParserInfo(out, XML Parser, parserName, parserLocation);
 printParserInfo(out, Namespace-aware parser, 
getNamespaceParserName(),
 getNamespaceParserLocation());
 }
 
+/**
+ * tell the user about the XSLT processor
+ * @param out
+ */
+private static void doReportXSLTProcessorInfo(PrintStream out) {
+String processorName = getXSLTProcessorName();
+String processorLocation = getXSLTProcessorLocation();
+

DO NOT REPLY [Bug 46612] ant -diagnostics should talk about the XSLT processor

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46612


Stefan Bodewig bode...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #6 from Stefan Bodewig bode...@apache.org  2009-01-29 07:00:06 
PST ---
ant -diagnostics will now (svn revision 738872 ( 
https://svn.apache.org/viewcvs.cgi?view=revrev=738872 ) ) emit something like

---
 XSLT Processor information
---
XSLT Processor : org.apache.xalan.transformer.TransformerIdentityImpl
XSLT Processor Location: SOME-PATH\xalan-2.7.1.jar

or 

---
 XSLT Processor information
---
XSLT Processor : com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
XSLT Processor Location: SOME-OTHER-PATH\jre\lib\rt.jar

the later is the default on the JDK 1.6 installation of my windows work
machine.

Not sure whether it helps tracking down the problem.  In your case I really
recommend downloading Xalan-J 2.7.1 and configuring Ant to use it.

Unfortunately there is no (even remotely) portable way to determine the
version.


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


DO NOT REPLY [Bug 29683] Jar task with zipgroupfileset always builds the jar file

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=29683


Stefan Bodewig bode...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE




--- Comment #6 from Stefan Bodewig bode...@apache.org  2009-01-29 07:03:22 
PST ---
I known bug 45902 is way newer, but that one is currently actively tracked
while this one has long been forgotten.

*** This bug has been marked as a duplicate of bug 45902 ***


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


DO NOT REPLY [Bug 45902] Up-to-date checks for JARs broken due to comparison of dir timestamps

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45902


Stefan Bodewig bode...@apache.org changed:

   What|Removed |Added

 CC||ken.cor...@hp.com




--- Comment #5 from Stefan Bodewig bode...@apache.org  2009-01-29 07:03:22 
PST ---
*** Bug 29683 has been marked as a duplicate of this bug. ***


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


DO NOT REPLY [Bug 42814] zipfileset changed under 1.7.0

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=42814


Stefan Bodewig bode...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX




--- Comment #4 from Stefan Bodewig bode...@apache.org  2009-01-29 07:15:23 
PST ---
instead of

property name=theincs refid=the.fileset /

use

pathconvert property=theincs refid=the.fileset pathsep= 
  map from=location-of-archive to=/
/pathconvert

this should work without resorting to a scripting language.

I think it is reasonable to expect that we won't fix it.


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


DO NOT REPLY [Bug 46625] New: large outputs from sshexec

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46625

   Summary: large outputs from sshexec
   Product: Ant
   Version: 1.7.1
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Optional Tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: phipp...@gmail.com


The following can create out of memory in case of large files:

ssh u...@host cd /opt/BigOne; tar cf - . | cat  BigOne.tar

or in antish

sshexec  ... command=cd /opt/BigOne ; tar cf - . output=BigOne.tar /

Is it possible to change code to flush the output every now and then?

Cheers, 
Pekka


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


[jira] Created: (IVY-1023) Report does not deliver ivy-report.css when xsl transformation is specified

2009-01-29 Thread Carlton Brown (JIRA)
Report does not deliver ivy-report.css when xsl transformation is specified
---

 Key: IVY-1023
 URL: https://issues.apache.org/jira/browse/IVY-1023
 Project: Ivy
  Issue Type: Bug
  Components: Ant
Affects Versions: 2.0
Reporter: Carlton Brown
Priority: Minor


Tried to use custom xsl and noticed that ivy:report does not deliver the 
ivy-report.css as it usually does.
This code results in ivy-report.css not being delivered:
ivy:report todir=${module.output.subdir} xml=true xslext=xml 
xslfile=${ivy-common.basedir}/ivy-report-customized.xsl graph=false 
conf=default outputpattern=ivy-report.html /
Results are ivy.xml and ivy-report.html.

This code results in ivy-report.css being delivered (as expected):
ivy:report todir=${module.output.subdir} graph=false conf=default 
outputpattern=ivy-report.html /  

Originally noticed 2.0 rc1, verified on 2.0 final

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



[jira] Created: (IVY-1024) Minor fixes to ivy-report.xsl

2009-01-29 Thread Carlton Brown (JIRA)
Minor fixes to ivy-report.xsl
-

 Key: IVY-1024
 URL: https://issues.apache.org/jira/browse/IVY-1024
 Project: Ivy
  Issue Type: Bug
  Components: Ant
Affects Versions: trunk
Reporter: Carlton Brown
Priority: Minor


2 things have been bothering me with the ivy-report.xsl.
1)  Broken link for Ivy logo
2)  Does not display the revision number of the module being reported on.

Have simple fixes for both of these.

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



[jira] Updated: (IVY-1024) Minor fixes to ivy-report.xsl

2009-01-29 Thread Carlton Brown (JIRA)

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

Carlton Brown updated IVY-1024:
---

Attachment: IVY-1024.patch

Patch for this issue.

 Minor fixes to ivy-report.xsl
 -

 Key: IVY-1024
 URL: https://issues.apache.org/jira/browse/IVY-1024
 Project: Ivy
  Issue Type: Bug
  Components: Ant
Affects Versions: trunk
Reporter: Carlton Brown
Priority: Minor
 Attachments: IVY-1024.patch


 2 things have been bothering me with the ivy-report.xsl.
 1)  Broken link for Ivy logo
 2)  Does not display the revision number of the module being reported on.
 Have simple fixes for both of these.

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



DO NOT REPLY [Bug 46631] New: java.lang.NullPointerException with pathconvert starting at svn rev. 278337

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46631

   Summary: java.lang.NullPointerException with pathconvert
starting at svn rev. 278337
   Product: Ant
   Version: 1.7.0
  Platform: All
OS/Version: Windows XP
Status: NEW
  Severity: blocker
  Priority: P1
 Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: mal...@fdr.follett.com


I have a file that was written for ant 1.6.5 (and it runs just fine at the
version).  

from version 1.7.0 it seems to always fail at the same place:

pathconvert property=classpath.lycea refid=ClasspathLycea pathsep= 
mapper type=flatten/
/pathconvert


I tried to modify it several time but nothing seem to help. I always get the
same errors. I even tried downloading the current source and compile it. 
so the stack dump here is from the latest possible. (Jan 29th, ant 1.8a)

** more comments below this stack dump


c:\scholastic3x\slms\build-all\build.xml:51: The following error occurred while
executing this line:
C:\Scholastic3x\environment\lyceabuild\buildscripts\ant\antBuildTargets.xml:121:
java.lang.NullPointerExce
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:583)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:443)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:386)
at org.apache.tools.ant.Target.performTasks(Target.java:407)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1361)
at org.apache.tools.ant.Project.executeTarget(Project.java:1330)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1213)
at org.apache.tools.ant.Main.runBuild(Main.java:775)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by:
C:\Scholastic3x\environment\lyceabuild\buildscripts\ant\antBuildAll.xml:19: The
following error
ing this line:
c:\scholastic3x\slms\build-all\build.xml:51: The following error occurred while
executing this line:
C:\Scholastic3x\environment\lyceabuild\buildscripts\ant\antBuildTargets.xml:121:
java.lang.NullPointerExce
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:583)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:443)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:386)
at org.apache.tools.ant.Target.performTasks(Target.java:407)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1361)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1213)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
... 17 more
Caused by: c:\scholastic3x\slms\build-all\build.xml:51: The following error
occurred while executing this
C:\Scholastic3x\environment\lyceabuild\buildscripts\ant\antBuildTargets.xml:121:
java.lang.NullPointerExce
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:583)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:443)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:289)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:208)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at

DO NOT REPLY [Bug 46631] java.lang.NullPointerException with pathconvert starting at svn rev. 278337

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46631





--- Comment #1 from Merav mal...@fdr.follett.com  2009-01-29 13:33:09 PST ---
Created an attachment (id=23196)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=23196)
this is the build file I'm using. 


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


[jira] Assigned: (IVY-1024) Minor fixes to ivy-report.xsl

2009-01-29 Thread Maarten Coene (JIRA)

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

Maarten Coene reassigned IVY-1024:
--

Assignee: Maarten Coene

 Minor fixes to ivy-report.xsl
 -

 Key: IVY-1024
 URL: https://issues.apache.org/jira/browse/IVY-1024
 Project: Ivy
  Issue Type: Bug
  Components: Ant
Affects Versions: trunk
Reporter: Carlton Brown
Assignee: Maarten Coene
Priority: Minor
 Attachments: IVY-1024.patch


 2 things have been bothering me with the ivy-report.xsl.
 1)  Broken link for Ivy logo
 2)  Does not display the revision number of the module being reported on.
 Have simple fixes for both of these.

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



svn commit: r739056 - in /ant/ivy/core/trunk: CHANGES.txt src/java/org/apache/ivy/plugins/report/ivy-report.xsl

2009-01-29 Thread maartenc
Author: maartenc
Date: Thu Jan 29 22:40:29 2009
New Revision: 739056

URL: http://svn.apache.org/viewvc?rev=739056view=rev
Log:
- IMPROVEMENT: display the revision of the resolved module in ivy-report.xsl 
(IVY-1024) (thanks to Carlton Brown)
- FIX: Fixed broken logo link in ivy-report.xsl (IVY-1024) (thanks to Carlton 
Brown)

Modified:
ant/ivy/core/trunk/CHANGES.txt
ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/ivy-report.xsl

Modified: ant/ivy/core/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/ant/ivy/core/trunk/CHANGES.txt?rev=739056r1=739055r2=739056view=diff
==
--- ant/ivy/core/trunk/CHANGES.txt (original)
+++ ant/ivy/core/trunk/CHANGES.txt Thu Jan 29 22:40:29 2009
@@ -85,6 +85,7 @@

trunk
 =
+- IMPROVEMENT: display the revision of the resolved module in ivy-report.xsl 
(IVY-1024) (thanks to Carlton Brown)
 - IMPROVEMENT: resolver attribute for buildnumber task (IVY-1019) (thanks to 
Martin Eigenbrodt)
 - IMPROVEMENT: add refresh parameter to post resolve tasks (IVY-1017)
 - IMPROVEMENT: Remove excessive HEAD requests for URL repository (IVY-996)
@@ -93,6 +94,7 @@
 - IMPROVEMENT: Error message is not clear when specifying an invalid value for 
checksums (IVY-977)
 - IMPROVEMENT: catch AccessControlException on System.getProperties() 
(IVY-1015)
 
+- FIX: Fixed broken logo link in ivy-report.xsl (IVY-1024) (thanks to Carlton 
Brown)
 - FIX: Support for opensll sha1 and md5 checksum (IVY-1006)
 - FIX: TTL does not work as expected (IVY-1012)
 - FIX: Listing of URL's under a given URL does not handle fully specified 
URL's (IVY-959) (thanks to Randy Nott)

Modified: 
ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/ivy-report.xsl
URL: 
http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/ivy-report.xsl?rev=739056r1=739055r2=739056view=diff
==
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/ivy-report.xsl 
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/ivy-report.xsl 
Thu Jan 29 22:40:29 2009
@@ -260,13 +260,13 @@
 link rel=stylesheet type=text/css href=ivy-report.css / 
   /head
   body
-div id=logoa href=http://ant.apache.org/ivy/;img 
src=http://ant.apache.org/ivy/logo.png//a/div
+div id=logoa href=http://ant.apache.org/ivy/;img 
src=http://ant.apache.org/ivy/images/logo.png//a/div
 h1
   xsl:element name=a
 xsl:attribute name=namexsl:value-of 
select=info/@organisation/-xsl:value-of 
select=info/@module//xsl:attribute
   /xsl:element
 span id=module
-   xsl:value-of select=info/@module/
+   xsl:value-of select=concat(info/@module, ' ', 
info/@revision)/
 /span 
 by 
 span id=organisation




[jira] Updated: (IVY-1024) Minor fixes to ivy-report.xsl

2009-01-29 Thread Maarten Coene (JIRA)

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

Maarten Coene updated IVY-1024:
---

Affects Version/s: (was: trunk)
   2.0

 Minor fixes to ivy-report.xsl
 -

 Key: IVY-1024
 URL: https://issues.apache.org/jira/browse/IVY-1024
 Project: Ivy
  Issue Type: Bug
  Components: Ant
Affects Versions: 2.0
Reporter: Carlton Brown
Assignee: Maarten Coene
Priority: Minor
 Attachments: IVY-1024.patch


 2 things have been bothering me with the ivy-report.xsl.
 1)  Broken link for Ivy logo
 2)  Does not display the revision number of the module being reported on.
 Have simple fixes for both of these.

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



DO NOT REPLY [Bug 46631] java.lang.NullPointerException with pathconvert starting at svn rev. 278337

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46631


Stefan Bodewig bode...@apache.org changed:

   What|Removed |Added

 Status|NEW |NEEDINFO




--- Comment #2 from Stefan Bodewig bode...@apache.org  2009-01-29 21:14:37 
PST ---
I don't see any pathconvert task in the build file you've attached, are you
sure this is the correct one?

How is the reference ClasspathLycea defined?

It looks as if Ant wanted to scan some sort of fileset that doesn't know its
project instance.  Are you creating the fileset in some sort of custom task?


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


DO NOT REPLY [Bug 46633] New: Setter never called on subclass of FileSet

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46633

   Summary: Setter never called on subclass of FileSet
   Product: Ant
   Version: 1.7.1
  Platform: PC
OS/Version: Windows Server 2003
Status: NEW
  Severity: normal
  Priority: P4
 Component: Core
AssignedTo: notifications@ant.apache.org
ReportedBy: suchko...@mellon.com


It is impossible to override the setter for the DIR attribute of the FileSet
type.  The setter function is never invoked by ANT.


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


DO NOT REPLY [Bug 46633] Setter never called on subclass of FileSet

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46633





--- Comment #1 from Paul M. Suchko suchko...@mellon.com  2009-01-29 21:36:34 
PST ---
Created an attachment (id=23197)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=23197)
Build Script


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


DO NOT REPLY [Bug 46633] Setter never called on subclass of FileSet

2009-01-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46633





--- Comment #2 from Paul M. Suchko suchko...@mellon.com  2009-01-29 21:38:45 
PST ---
Created an attachment (id=23198)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=23198)
custom typedef

Compile the custom type and run the build.xml file.

You will notice that output from the setDir method is never invoked.

Shouldn't the subclass be able to override the handling of this attribute.


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