[jira] Commented: (IVYDE-121) IVYDE classpath container should support bundle types by default

2008-09-25 Thread Erik-Berndt Scheper (JIRA)

[ 
https://issues.apache.org/jira/browse/IVYDE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12634387#action_12634387
 ] 

Erik-Berndt Scheper commented on IVYDE-121:
---

I agree, but then we must think of a way to express that in the UI, that is not 
over complicated. 
I've suggested an option above, but maybe you have a better idea?

 IVYDE classpath container should support bundle types by default
 

 Key: IVYDE-121
 URL: https://issues.apache.org/jira/browse/IVYDE-121
 Project: IvyDE
  Issue Type: Wish
  Components: classpath container
Affects Versions: 2.0.0.alpha1
Reporter: Erik-Berndt Scheper
Assignee: Nicolas Lalevée
 Fix For: 2.0


 By default, the ivy classpath container does not support bundle types as jar 
 files. 
 These are generated automatically by Ivy 2.0 RC1 (and higher) when importing 
 maven POMs to an ivy repository.
 Sample based on 
 http://repo1.maven.org/maven2/org/springframework/ws/spring-oxm-tiger/1.5.4/spring-oxm-tiger-1.5.4.pom
 {code:xml}
 publications
 artifact name=spring-oxm-tiger type=bundle ext=jar conf=master/
 artifact name=spring-oxm-tiger type=source ext=jar conf=sources 
 m:classifier=sources/
 artifact name=spring-oxm-tiger type=javadoc ext=jar conf=javadoc 
 m:classifier=javadoc/
 /publications
 {code}
 The result is that the jar file is resolved from the ivy file, but not shown 
 in the classpath container.

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



svn commit: r698902 - /ant/ivy/ivyde/trunk/build.xml

2008-09-25 Thread hibou
Author: hibou
Date: Thu Sep 25 02:37:47 2008
New Revision: 698902

URL: http://svn.apache.org/viewvc?rev=698902view=rev
Log:
IVYDE-122:
- add a task to list the installed Ivy
- add a check if Ivy exists in the Eclipse install before starting to build

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

Modified: ant/ivy/ivyde/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.xml?rev=698902r1=698901r2=698902view=diff
==
--- ant/ivy/ivyde/trunk/build.xml (original)
+++ ant/ivy/ivyde/trunk/build.xml Thu Sep 25 02:37:47 2008
@@ -104,7 +104,13 @@
 echo message=Building version ${build.version} /
 /target
 
-target name=build depends=eclipse-classpath,compute-version 
description=Build the plugin distribution binaries
+!-- 
+
==
+Build targets
+
==
+ --
+
+target name=build 
depends=check-ivy-installed,eclipse-classpath,compute-version 
description=Build the plugin distribution binaries
 property name=outputUpdateJars value=false /
 java classpath=${eclipse.classpath} 
classname=org.eclipse.core.launcher.Main fork=true failonerror=true
 arg value=-clean /
@@ -161,6 +167,12 @@
 /zip
 /target
 
+!-- 
+
==
+Targets related to the installation of Ivy in the Eclipse install
+
==
+ --
+
 !-- Get the OSGi version of Ivy in the manifest in the jar --
 target name=compute-ivy-bundle-version unless=ivy.bundle.version
 mkdir dir=work-ivy/jar /
@@ -221,6 +233,23 @@
 delete dir=ivy-work /
 /target
 
+target name=list-installed-ivy depends=check-baseLocation 
description=List the Ivy bundle(s) in your Eclipse install
+path id=ivy.eclipse.paths
+fileset dir=${baseLocation}/plugins 
includes=org.apache.ivy_*.jar/
+/path
+echo message=The Ivy installed in ${baseLocation}: 
${toString:ivy.eclipse.paths} /
+/target
+
+target name=check-ivy-installed depends=list-installed-ivy
+fail message=No Ivy is installed. Please run 'ant install-ivy 
first'. /
+/target
+
+!-- 
+
==
+Targets related to the checksums of the distribution
+
==
+ --
+
 target name=checksum description=Compute the checksum for every 
artifact to distribute
 checksum algorithm=MD5 fileext=.md5 format=MD5SUM
 fileset dir=${dist.dir}




DO NOT REPLY [Bug 45845] Possibly remove reverse() in Classloader task

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45845





--- Comment #1 from Stefan Bodewig [EMAIL PROTECTED]  2008-09-25 04:57:20 PST 
---
we can deprecate one but drop neither since they are part of the published
public API and we try to not break backwards compatibility.


-- 
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 45845] Possibly remove reverse() in Classloader task

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45845


Stefan Bodewig [EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|normal  |enhancement




-- 
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 45830] Cannot overwrite the older entry in the archive

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45830


Stefan Bodewig [EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|normal  |enhancement




-- 
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: r698942 - in /ant/ivy/ivyde/trunk: build.xml builder/maps/ivyde.map

2008-09-25 Thread hibou
Author: hibou
Date: Thu Sep 25 05:24:33 2008
New Revision: 698942

URL: http://svn.apache.org/viewvc?rev=698942view=rev
Log:
IVYDE-122:
- use a more uniform work directory path handling
- really add the check of the installed Ivy

Modified:
ant/ivy/ivyde/trunk/build.xml
ant/ivy/ivyde/trunk/builder/maps/ivyde.map

Modified: ant/ivy/ivyde/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.xml?rev=698942r1=698941r2=698942view=diff
==
--- ant/ivy/ivyde/trunk/build.xml (original)
+++ ant/ivy/ivyde/trunk/build.xml Thu Sep 25 05:24:33 2008
@@ -34,6 +34,8 @@
 property file=build.properties /
 
 property name=work.dir value=${basedir}/work/
+property name=ivy.work.dir value=${work.dir}/ivy/
+property name=eclipse.work.dir value=${work.dir}/eclipse/
 property name=dist.dir value=${basedir}/dist/
 
 target name=/release description=Make the build artifacts tagged with 
the release version
@@ -119,7 +121,7 @@
 sysproperty key=baseLocation value=${baseLocation}/
 sysproperty key=builder path=${basedir}/builder/component/
 sysproperty key=mapsPath path=${basedir}/builder/maps/
-sysproperty key=buildDirectory path=${work.dir} /
+sysproperty key=buildDirectory path=${eclipse.work.dir} /
 sysproperty key=DSTAMP value=${DSTAMP} /
 sysproperty key=TSTAMP value=${TSTAMP} /
 sysproperty key=forceContextQualifier 
value=${forceContextQualifier} /
@@ -129,7 +131,7 @@
 sysproperty key=javacDebugInfo value=true/
 /java
 mkdir dir=${dist.dir}/
-move 
file=${work.dir}/${build.version}/org.apache.ivyde.feature-${build.version}.zip
 todir=${dist.dir}/
+move 
file=${eclipse.work.dir}/${build.version}/org.apache.ivyde.feature-${build.version}.zip
 todir=${dist.dir}/
 /target
 
 target name=sources depends=compute-version description=Create 
source archive files
@@ -175,10 +177,10 @@
 
 !-- Get the OSGi version of Ivy in the manifest in the jar --
 target name=compute-ivy-bundle-version unless=ivy.bundle.version
-mkdir dir=work-ivy/jar /
-get src=${ivy.jar.url} dest=work-ivy/ivy.jar /
-unzip overwrite=true src=work-ivy/ivy.jar dest=work-ivy/jar /
-loadfile property=ivy.bundle.version 
srcFile=work-ivy/jar/META-INF/MANIFEST.MF
+mkdir dir=${ivy.work.dir}/jar /
+get src=${ivy.jar.url} dest=${ivy.work.dir}/ivy.jar /
+unzip overwrite=true src=${ivy.work.dir}/ivy.jar 
dest=${ivy.work.dir}/jar /
+loadfile property=ivy.bundle.version 
srcFile=${ivy.work.dir}/jar/META-INF/MANIFEST.MF
 filterchain
 linecontains
 contains value=Bundle-Version:/
@@ -216,13 +218,13 @@
 /not
 /condition
 /fail
-mkdir dir=ivy-work/distrib /
+mkdir dir=${ivy.work.dir}/distrib /
 property name=ivy.zip.url 
value=http://apache.multidist.com/ant/ivy/${ivy.version}/apache-ivy-${ivy.version}-bin.zip;
 /
-get src=${ivy.zip.url} usetimestamp=true 
dest=ivy-work/ivy-bin.zip /
-unzip overwrite=true src=ivy-work/ivy-bin.zip 
dest=ivy-work/distrib /
+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 /
 path id=ivy.jar.path
 first count=1
-fileset dir=ivy-work 
includes=distrib/apache-ivy-*/ivy-*.jar/
+fileset dir=${ivy.work.dir} 
includes=distrib/apache-ivy-*/ivy-*.jar/
 /first
 /path
 property name=ivy.jar.url value=file://${toString:ivy.jar.path} /
@@ -230,7 +232,7 @@
 /target
 
 target name=install-ivy 
depends=check-baseLocation,get-ivy-jar,install-ivy-jar description=Install 
an Ivy bundle into the eclipse install
-delete dir=ivy-work /
+delete dir=${ivy.work.dir} /
 /target
 
 target name=list-installed-ivy depends=check-baseLocation 
description=List the Ivy bundle(s) in your Eclipse install
@@ -241,7 +243,11 @@
 /target
 
 target name=check-ivy-installed depends=list-installed-ivy
-fail message=No Ivy is installed. Please run 'ant install-ivy 
first'. /
+fail message=No Ivy is installed. Please run 'ant install-ivy 
first'.
+condition
+resourcecount refid=ivy.eclipse.paths when=equal 
count=0 /
+/condition
+/fail
 /target
 
 !-- 

Modified: ant/ivy/ivyde/trunk/builder/maps/ivyde.map
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/builder/maps/ivyde.map?rev=698942r1=698941r2=698942view=diff
==
--- ant/ivy/ivyde/trunk/builder/maps/ivyde.map (original)
+++ ant/ivy/ivyde/trunk/builder/maps/ivyde.map Thu Sep 25 

DO NOT REPLY [Bug 45847] Classloader task - duplicate path elements added

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45847


Stefan Bodewig [EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |1.8.0




--- Comment #1 from Stefan Bodewig [EMAIL PROTECTED]  2008-09-25 05:26:50 PST 
---
the second block only isn't needed if the task isn't modifying an existing
classloader.

fixed in svn rev 698943.


-- 
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: r698943 - in /ant/core/trunk: CONTRIBUTORS contributors.xml src/main/org/apache/tools/ant/taskdefs/Classloader.java

2008-09-25 Thread bodewig
Author: bodewig
Date: Thu Sep 25 05:26:31 2008
New Revision: 698943

URL: http://svn.apache.org/viewvc?rev=698943view=rev
Log:
only add classpath elements to existing loaders, not to a freshly created one.  
PR 45847.

Modified:
ant/core/trunk/CONTRIBUTORS
ant/core/trunk/contributors.xml
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Classloader.java

Modified: ant/core/trunk/CONTRIBUTORS
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/CONTRIBUTORS?rev=698943r1=698942r2=698943view=diff
==
Binary files - no diff available.

Modified: ant/core/trunk/contributors.xml
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/contributors.xml?rev=698943r1=698942r2=698943view=diff
==
--- ant/core/trunk/contributors.xml (original)
+++ ant/core/trunk/contributors.xml Thu Sep 25 05:26:31 2008
@@ -962,6 +962,10 @@
   /name
   name
 firstRobert/first
+lastFlaherty/last
+  /name
+  name
+firstRobert/first
 lastShaw/last
   /name
   name

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Classloader.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Classloader.java?rev=698943r1=698942r2=698943view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Classloader.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Classloader.java Thu 
Sep 25 05:26:31 2008
@@ -185,6 +185,7 @@
 }
 
 AntClassLoader acl = (AntClassLoader) obj;
+boolean existingLoader = acl != null;
 
 if (acl == null) {
 // Construct a new class loader
@@ -220,7 +221,8 @@
 getProject().setCoreLoader(acl);
 }
 }
-if (classpath != null) {
+
+if (existingLoader  classpath != null) {
 String[] list = classpath.list();
 for (int i = 0; i  list.length; i++) {
 File f = new File(list[i]);




DO NOT REPLY [Bug 45850] Built in properties list needs 2 updates

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45850


Stefan Bodewig [EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |1.8.0




--- Comment #1 from Stefan Bodewig [EMAIL PROTECTED]  2008-09-25 05:44:57 PST 
---
svn revision 698949, thanks!

won't appear online before Ant 1.8.0 has been released, though.


-- 
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 45854] [PATCH] echoproperties: character encoding for text output

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45854


Stefan Bodewig [EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX




--- Comment #1 from Stefan Bodewig [EMAIL PROTECTED]  2008-09-25 05:47:39 PST 
---
Properties#store(Writer, String) has been introduced in JDK 1.6, which is way
to recent for Ant's JDK compatibility rules (Ant 1.8.0 must be compatible with
1.4 IIRC).


-- 
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 45499] DirectoryScanner infinitely recurses on symlinks to parent directories

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45499


Stefan Bodewig [EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #10 from Stefan Bodewig [EMAIL PROTECTED]  2008-09-25 05:55:46 
PST ---
more recent versions will allow the same symlink to be traversed more often (to
reduce the performance and memory impact of the tests), so your build will
consume a bit more memory.

We might lower the log priority, by writing the message to System.out, but it
would probably remain visible anyway.  I'm afraid there isn't much we can do.


-- 
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 42275] running ant off a network share can cause Ant to fail

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=42275


Stefan Bodewig [EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]
   ||om




--- Comment #9 from Stefan Bodewig [EMAIL PROTECTED]  2008-09-25 06:47:32 PST 
---
*** Bug 45846 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 45846] Ant 1.7.1 resolves UNC path file imports incorrectly on windows

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45846


Stefan Bodewig [EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE
   Target Milestone|--- |1.8.0




--- Comment #1 from Stefan Bodewig [EMAIL PROTECTED]  2008-09-25 06:47:32 PST 
---
I can confirm this behavior in 1.7.1 and can confirm it is fixed in trunk.

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


-- 
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: r698971 - in /ant/ivy/ivyde/trunk/doc: build.html dev.html dev/ dev/build.html dev/release.html toc.json

2008-09-25 Thread hibou
Author: hibou
Date: Thu Sep 25 07:04:11 2008
New Revision: 698971

URL: http://svn.apache.org/viewvc?rev=698971view=rev
Log:
IVYDE-122:
- update the build documentation to be in sync with the last changes on the 
build system
- add a page about how to release IvyDE: mix from the Ivy one and 
http://cwiki.apache.org/IVY/releasing-ivyde.html

Added:
ant/ivy/ivyde/trunk/doc/dev/
ant/ivy/ivyde/trunk/doc/dev.html   (with props)
ant/ivy/ivyde/trunk/doc/dev/build.html
  - copied, changed from r698147, ant/ivy/ivyde/trunk/doc/build.html
ant/ivy/ivyde/trunk/doc/dev/release.html   (with props)
Removed:
ant/ivy/ivyde/trunk/doc/build.html
Modified:
ant/ivy/ivyde/trunk/doc/toc.json

Added: ant/ivy/ivyde/trunk/doc/dev.html
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/doc/dev.html?rev=698971view=auto
==
--- ant/ivy/ivyde/trunk/doc/dev.html (added)
+++ ant/ivy/ivyde/trunk/doc/dev.html Thu Sep 25 07:04:11 2008
@@ -0,0 +1,32 @@
+!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN 
http://www.w3.org/TR/html4/strict.dtd;
+!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you 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.
+--
+html
+head
+   META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=ISO-8859-1
+   script type=text/javascriptvar xookiConfig = {level: 0};/script   
+   script type=text/javascript src=xooki/xooki.js/script
+/head
+body
+   textarea id=xooki-source
+Adding features or fixing bugs needs a little more involvement.
+You will find here the basics to get into it./textarea
+script type=text/javascriptxooki.postProcess();/script
+/body
+/html

Propchange: ant/ivy/ivyde/trunk/doc/dev.html
--
svn:eol-style = native

Propchange: ant/ivy/ivyde/trunk/doc/dev.html
--
svn:keywords = Date Revision Author HeadURL Id

Propchange: ant/ivy/ivyde/trunk/doc/dev.html
--
svn:mime-type = text/html

Copied: ant/ivy/ivyde/trunk/doc/dev/build.html (from r698147, 
ant/ivy/ivyde/trunk/doc/build.html)
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/doc/dev/build.html?p2=ant/ivy/ivyde/trunk/doc/dev/build.htmlp1=ant/ivy/ivyde/trunk/doc/build.htmlr1=698147r2=698971rev=698971view=diff
==
--- ant/ivy/ivyde/trunk/doc/build.html (original)
+++ ant/ivy/ivyde/trunk/doc/dev/build.html Thu Sep 25 07:04:11 2008
@@ -20,37 +20,34 @@
 html
 head
META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=ISO-8859-1
-   script type=text/javascriptvar xookiConfig = {level: 0};/script   
-   script type=text/javascript src=xooki/xooki.js/script
+   script type=text/javascriptvar xookiConfig = {level: 1};/script   
+   script type=text/javascript src=../xooki/xooki.js/script
 /head
 body
textarea id=xooki-source
 This page describes how to build the IvyDE plugin from the source. The build 
is based on the Eclipse build system so it requires an Eclipse install. You 
also need to have an Ivy bundle installed.
 
-h1Setup of the build/h1
+h1a name=setup/aSetup of the build/h1
 
-h2Eclipse installation/h2
+h2a name=eclipse-install/aEclipse installation/h2
 
-You need first an Eclipse install which contains the PDE plugins (by default 
included in the SDK and Classic versions). We will refer to the eclipse 
installation path in the documentation as $ECLIPSE_HOME. In that $ECLIPSE_HOME 
folder you should have the plugins and features folders. The current build have 
been successfully tested with:
-ul
-liEclipse 3.2 under Linux/li
-liEclipse 3.3 under Linux, Windows and MacOS/li
-liEclipse 3.4M5 under Linux/li
-/ul
-If it does work for your unlisted configuration, please send us an email on 
the a href=http://ant.apache.org/ivy/mailing-lists.html;ant-dev mailing 
list/a.
-h2The Ivy bundle/h2
+You need first an Eclipse install which contains the PDE plugins (by default 
included in the SDK and Classic versions). We will refer to the eclipse 
installation path in the documentation as 

svn commit: r698979 - /ant/core/trunk/src/tests/antunit/taskdefs/optional/junit/junit-test.xml

2008-09-25 Thread bodewig
Author: bodewig
Date: Thu Sep 25 07:15:48 2008
New Revision: 698979

URL: http://svn.apache.org/viewvc?rev=698979view=rev
Log:
Passing tests for PR 40457

Modified:
ant/core/trunk/src/tests/antunit/taskdefs/optional/junit/junit-test.xml

Modified: 
ant/core/trunk/src/tests/antunit/taskdefs/optional/junit/junit-test.xml
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/optional/junit/junit-test.xml?rev=698979r1=698978r2=698979view=diff
==
--- ant/core/trunk/src/tests/antunit/taskdefs/optional/junit/junit-test.xml 
(original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/optional/junit/junit-test.xml Thu 
Sep 25 07:15:48 2008
@@ -69,4 +69,64 @@
 au:assertLogDoesntContain text=CTest/
 au:assertLogDoesntContain text=DTest/
   /target
+
+  target name=testFailurePropertyOnTestCase
+mkdir dir=${input}/
+mkdir dir=${output}/
+echo file=${input}/ATest.java![CDATA[
+package test;
+import junit.framework.TestCase;
+
+public class ATest extends TestCase {
+public void testFail() {
+assertTrue(false);
+}
+}
+]]  /echo
+javac srcdir=${input} destdir=${output}
+  classpath refid=junit/
+/javac
+junit failureProperty=testcase.failed haltonfailure=false
+  classpath refid=junit/
+  classpath location=${output}/
+  batchtest
+fileset dir=${output}
+  include name=**/*Test.class /
+/fileset
+  /batchtest
+/junit
+au:assertPropertySet name=testcase.failed/
+  /target
+
+  target name=testFailurePropertyOnTestSuite
+mkdir dir=${input}/
+mkdir dir=${output}/
+echo file=${input}/ATest.java![CDATA[
+package test;
+import junit.framework.Assert;
+import junit.framework.TestSuite;
+
+public class ATest extends TestSuite {
+public ATest() {
+super(test.ATest.class);
+}
+public void testFail() {
+Assert.assertTrue(false);
+}
+}
+]]  /echo
+javac srcdir=${input} destdir=${output}
+  classpath refid=junit/
+/javac
+junit failureProperty=testsuite.failed haltonfailure=false
+  classpath refid=junit/
+  classpath location=${output}/
+  batchtest
+fileset dir=${output}
+  include name=**/*Test.class /
+/fileset
+  /batchtest
+/junit
+au:assertPropertySet name=testsuite.failed/
+  /target
 /project




DO NOT REPLY [Bug 40457] failureproperty not set by TestSuite

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=40457


Stefan Bodewig [EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Comment #1 from Stefan Bodewig [EMAIL PROTECTED]  2008-09-25 07:17:46 PST 
---
it may be the specific TestSuite, but with

public class ATest extends TestSuite {
public ATest() {
super(test.ATest.class);
}
public void testFail() {
Assert.assertTrue(false);
}
}

I get a failureproperty.  See the testFailurePropertyOnTest(Suite|Case) tests
in
http://svn.apache.org/repos/asf/ant/core/trunk/src/tests/antunit/taskdefs/optional/junit/junit-test.xml

works in trunk, at least.


-- 
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 45848] AntClassLoader missing a test before adding a path component

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45848





--- Comment #2 from Robert Flaherty [EMAIL PROTECTED]  2008-09-25 07:18:56 
PST ---
Sure, I really meant the contains test.  So I assume you changed to:

if (pathComponents.contains(file)) {
pathComponents.addElement(pathComponent);
}

Maybe it would be cleaner for the two to be in sync and have addPathComponent
do that also.


-- 
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 45845] Possibly remove reverse() in Classloader task

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45845





--- Comment #2 from Robert Flaherty [EMAIL PROTECTED]  2008-09-25 07:22:52 
PST ---
The only reason I thought drop was b/c it was listed as EXPERIMENTAL in the
comment block.


-- 
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] Resolved: (IVYDE-122) Support latest dev version of ivy.jar in IVYDE build

2008-09-25 Thread JIRA

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

Nicolas Lalevée resolved IVYDE-122.
---

Resolution: Fixed
  Assignee: Nicolas Lalevée

Finally I get the 3 points implemented. The new doc should appear very soon:
http://ant.apache.org/ivy/ivyde/history/trunk/index.html


 Support latest dev version of ivy.jar in IVYDE build
 

 Key: IVYDE-122
 URL: https://issues.apache.org/jira/browse/IVYDE-122
 Project: IvyDE
  Issue Type: Improvement
Affects Versions: 2.0
Reporter: Erik-Berndt Scheper
Assignee: Nicolas Lalevée
 Fix For: 2.0


 Currently the build system of IVYDE requires a fixed filename of the ivy jar. 
  (org.apache.ivy_cr1.jar). 
 If this jar is not available, the build stops with a strange error (such as 
 in IVYDE-65).
 It would be very nice if 
 * The IVYDE build (e.g. ant install-ivy) would support an arbitrary version 
 of the ivy jar
 * If the jar is not available, a decent error message would be logged
 * The build instructions on the wiki 
 (http://cwiki.apache.org/IVY/releasing-ivyde.html) were updated to reflect 
 the current build procedure

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



svn commit: r698987 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt

2008-09-25 Thread hibou
Author: hibou
Date: Thu Sep 25 07:36:57 2008
New Revision: 698987

URL: http://svn.apache.org/viewvc?rev=698987view=rev
Log:
IVYDE-122: add it to the change log

Modified:
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt?rev=698987r1=698986r2=698987view=diff
==
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt (original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt Thu Sep 25 
07:36:57 2008
@@ -9,6 +9,7 @@
 - NEW: Handle a project: scheme for the path of the ivysettings.xml (IVYDE-94)
 - NEW: Need CleanCache task in context menu (IVYDE-114)
 
+- IMPROVE: Support latest dev version of ivy.jar in IVYDE build (IVYDE-122)
 - IMPROVE: IVYDE classpath container should support bundle types by default 
(IVYDE-121)
 - IMPROVE: Set current working dir to eclipse project location (IVYDE-52)
 - IMPROVE: Make the classpath entries order configuration UI more intuitive 
(IVYDE-104)




DO NOT REPLY [Bug 45044] CBZip2OutputStream does not work in combination with ByteArrayOutputStream

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45044


Stefan Bodewig [EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME
   Target Milestone|--- |1.7.1




--- Comment #5 from Stefan Bodewig [EMAIL PROTECTED]  2008-09-25 07:39:58 PST 
---
project
  echo file=TestBZip.java![CDATA[
import org.apache.tools.bzip2.*;
import java.io.*;
public class TestBZip {
public static void main(String[] args) throws Throwable {
BufferedInputStream in = new BufferedInputStream(new
FileInputStream(bzip.xml));
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
CBZip2OutputStream outFail = new CBZip2OutputStream(byteOut);
FileOutputStream fos = new FileOutputStream(bzip.xml.bz2);
CBZip2OutputStream outOk = new CBZip2OutputStream(fos);
byte[] bs = new byte[1024];
int l = in.read(bs);
while (l == 1024)
{
  outFail.write(bs);
  outOk.write(bs);
  l = in.read(bs);
}
if (l  0)
{
  outFail.write(bs, 0, l);
  outOk.write(bs, 0, l);
}
outFail.flush();
outOk.flush();
in.close();

// FAIL
// at this point, byteOut.toByteArray() has always length 1

outFail.close();
outOk.close();
int len = byteOut.toByteArray().length;
System.out.println(length:  + len);
if (len  1) {
System.exit(0);
} else {
System.exit(1);
}
}
}
]]/echo
  javac srcdir=. destdir=. includes=TestBZip.java/
  java classname=TestBZip classpath=.;${java.class.path} fork=true/
/project

with Ant 1.7.1 leads to

$ ant -f ../../Temp/bzip.xml
Buildfile: ..\..\Temp\bzip.xml
[javac] Compiling 1 source file to c:\Temp
 [java] length: 650

BUILD SUCCESSFUL
Total time: 0 seconds

which looks OK since the file is 650 bytes as well.

Seems to have been fixed for 1.7.1.


-- 
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 45845] Possibly remove reverse() in Classloader task

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45845





--- Comment #3 from Stefan Bodewig [EMAIL PROTECTED]  2008-09-25 07:44:10 PST 
---
sure, we thought that would scare people away from the class.

But still some seem to have found and even started to report bugs against 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 45845] Possibly remove reverse() in Classloader task

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45845





--- Comment #4 from Robert Flaherty [EMAIL PROTECTED]  2008-09-25 08:05:08 
PST ---
I know I know, actually I was desperate and searched the code b/c I couldn't
find what I needed in the published manual tasks.  And actually, someone else
put in a bug report for it a few days after I started working up a workaround
with the classloader task.  I'll submit that in a few days, as it will be quite
lengthy I think (getting FTP to work without ANT_HOME/lib or
${user.home}/.ant/lib, but rather classloader, path, classpath, etc).


-- 
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 45094] Token substitution problem - where file includes literal character the same as the token

2008-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45094


Stefan Bodewig [EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |1.8.0




--- Comment #1 from Stefan Bodewig [EMAIL PROTECTED]  2008-09-25 08:28:31 PST 
---
I can see the reason.

when looking for the begin token in username@@@HOST@@ ant will stop at the
first
two @ and determine that it doesn't have a replacement for @HOST and 
continues looking for a begin token after the last candidate begin token
- while your real begin token actually starts inside the first candidate token.

fixed in svn rev 699002.


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


[CONF] Apache Ivy (Apache Ant subproject) : Releasing IvyDE (page edited)

2008-09-25 Thread confluence










Page Edited :
IVY :
Releasing IvyDE



 
Releasing IvyDE
has been edited by Nicolas Lalevée
(Sep 25, 2008).
 

 
 (View changes)
 

Content:
moved here http://ant.apache.org/ivy/ivyde/history/trunk/dev/build.html











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Ivy (Apache Ant subproject) : Releasing IvyDE (page edited)

2008-09-25 Thread confluence










Page Edited :
IVY :
Releasing IvyDE



 
Releasing IvyDE
has been edited by Nicolas Lalevée
(Sep 25, 2008).
 

 
 (View changes)
 

Content:
moved here http://ant.apache.org/ivy/ivyde/history/trunk/dev/release.html











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[jira] Commented: (IVY-902) Maven Snapshot resolution does not work with dual resolver

2008-09-25 Thread Hans Dockter (JIRA)

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

Hans Dockter commented on IVY-902:
--

I was aware that only the IBibilio resolver is capable of metadata handling. 
But in this case I thought it would work as the actual pom resolving is still 
done by the IBibilio resolver. Anyway, the work around is ridiculously simple 
and obvious. But for some reason I haven't figured this out. Thanks.

Right now I'm almost done with an Ivy2Pom converter (which is more powerful 
than the one currently shipped with Ivy). When the code is working I will 
discuss this in the Ivy dev list. 

I'm curious to learn about the difficulties for generic metadata support. 
Again, I will raise this issue in the dev list.

 Maven Snapshot resolution does not work with dual resolver
 --

 Key: IVY-902
 URL: https://issues.apache.org/jira/browse/IVY-902
 Project: Ivy
  Issue Type: Bug
  Components: Maven Compatibility
Reporter: Hans Dockter
Assignee: Xavier Hanin
Priority: Blocker

 Here is an example for an unsucessful retrieval of a snapshot dependency when 
 using a dual resolver. The same example works fine, if only the IBiblio 
 resolver is used.
 {code:xml}
 ivysettings
 settings defaultResolver=main validate=false/
 resolvers
 dual name=main
 ibiblio name=ivy m2compatible=true 
 root=http://snapshots.jboss.org/maven2/
 url name=artifact m2compatible=true
 artifact 
 pattern=http://snapshots.jboss.org/maven2/[module]/[revision]/[artifact]-[revision].[ext]/
 /url
 /dual
 /resolvers
 /ivysettings
 {code}
 {code:xml}
 ivy-module version=2.0
 info organisation=apache module=hello-ivy/
 dependencies
 dependency org=jboss.jbossws-common name=jbossws-common 
 rev=1.0.5-SNAPSHOT/
 /dependencies
 /ivy-module
 {code}

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