DO NOT REPLY [Bug 42275] running ant off a network share can cause Ant to fail

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





--- Comment #15 from Jesse Glick [EMAIL PROTECTED]  2008-11-06 19:17:24 PST 
---
FYI - for NetBeans 6.5 we are just shipping the Locator.java minipatch shown
above.


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

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





--- Comment #13 from Stefan Bodewig [EMAIL PROTECTED]  2008-10-14 23:59:58 
PST ---
the fix svn revision is 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.


DO NOT REPLY [Bug 42275] running ant off a network share can cause Ant to fail

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





--- Comment #14 from Stefan Bodewig [EMAIL PROTECTED]  2008-10-15 01:23:45 
PST ---
sorry, 631263

http://svn.eu.apache.org/viewvc?view=revrevision=631263


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

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





--- Comment #12 from Jesse Glick [EMAIL PROTECTED]  2008-10-01 09:07:15 PST 
---
The minimal fix for the UNC import problem in Ant 1.7.1 (which I think should
be merged to a 1.7.2 if one is created, since this is a serious regression),
borrowed from SVN r631263:

Index: src/main/org/apache/tools/ant/launch/Locator.java
===
--- src/main/org/apache/tools/ant/launch/Locator.java   (revision 700534)
+++ src/main/org/apache/tools/ant/launch/Locator.java   (working copy)
@@ -275,7 +275,8 @@
 path = decodeUri(uri);
 String cwd = System.getProperty(user.dir);
 int posi = cwd.indexOf(:);
-if ((posi  0)  path.startsWith(File.separator)) {
+if ((posi  0)  path.startsWith(File.separator)
+/* #42275: UNC */  !path.startsWith()) {
path = cwd.substring(0, posi + 1) + path;
 }
 } catch (UnsupportedEncodingException exc) {


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

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


Jesse Glick [EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]
 OS/Version|other   |Windows XP
Version|1.8Alpha (nightly)  |1.7.0




--- Comment #10 from Jesse Glick [EMAIL PROTECTED]  2008-09-30 11:03:05 PST 
---
An apparently related bug: using a basic import in a project located on a UNC
share works in 1.7.0 and 1.8 dev but not in 1.7.1. See

http://www.netbeans.org/nonav/issues/show_bug.cgi?id=146948

for details. SVN logs confusingly has two entries for this bug:


r631263 | stevel | 2008-02-26 10:52:51 -0500 (Tue, 26 Feb 2008) | 1 line

Bug 42275 running ant off a network share can cause Ant to fail

r533082 | stevel | 2007-04-27 08:45:53 -0400 (Fri, 27 Apr 2007) | 9 lines

Bug 42275: ant doesnt run from a network share, because of an error when trying
to work out where we loaded from.

1. this exception is still raised, but caught and causes ant to skip setting
ant.lib.

2. we now have a test class for Locator

3. I've split out the java1.3 support and made it public, so we can test it
separately. 

One of the tests is failing, showing the problem is still there. We need to
decide what to do about it (ignore, switch to java1.3 code...)



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

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





--- Comment #11 from Miles Daffin [EMAIL PROTECTED]  2008-09-30 14:12:13 PST 
---
I fixed the import issue in 1.7.1 (as reported in Bug 45846) by using dirname
to get the base path of the importing file, e.g. 

dirname property=masterbuild.basedir file=${ant.file.masterbuild}/
import file=${masterbuild.basedir}/build-utils.xml/

This shows that the dirname task at least can work where things are on the file
system.

HTH


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

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

https://issues.apache.org/bugzilla/show_bug.cgi?id=42275





--- Additional Comments From [EMAIL PROTECTED]  2008-02-26 06:29 ---
A bit more logging on failures and we see what is going on :

C:\\\morzine\slo\Java\Apache\ant\bin\ant.bat
Unable to locate tools.jar. Expected to find it in C:\Java\lib\tools.jar
Failed to locateorg.apache.tools.ant.Main
ant.home\\morzine\slo\Java\Apache\ant\bin\..
Classpath: \\morzine\slo\Java\Apache\ant\bin\..\lib\ant-launcher.jar
Launcher JAR: C:\morzine\slo\Java\Apache\ant\lib\ant-launcher.jar
launcher Directory: C:\morzine\slo\Java\Apache\ant\lib
C:\

We are failing to correctly determine the path to the launcher JAR, and hence to
ANT_HOME

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

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

https://issues.apache.org/bugzilla/show_bug.cgi?id=42275





--- Additional Comments From [EMAIL PROTECTED]  2008-02-26 06:34 ---
More logging shows that the URL is being correct
C:\\\morzine\slo\Java\Apache\ant\bin\ant.bat
org/apache/tools/ant/launch/Launcher.class is in jar:file://morzine/slo/Java/Apa
che/ant/lib/ant-launcher.jar!/org/apache/tools/ant/launch/Launcher.class

This puts the bug in fromURIJava13

-- 
Configure bugmail: https://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.