ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée (JIRA) <j...@apache.org>
Subject [jira] Updated: (IVYDE-87) Problem with vfs ftp and dynamic revisions
Date Fri, 21 Mar 2008 14:21:43 GMT

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

Nicolas Lalevée updated IVYDE-87:
---------------------------------

    Attachment: IVYDE-87-r639596.patch

Ok I think I have found the bottom of the issue: another classpath issue. To make the ftp
scheme work with common-vfs, we need commons-net, as specified there:
https://svn.apache.org/repos/asf/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/vfs/ivy_vfs.xml

here some usefull bundle:
http://download.eclipse.org/tools/orbit/downloads/drops/I20080307200012/bundles/org.apache.commons.net_1.4.1.v200803071935.jar
commons.net requires oro:
http://download.eclipse.org/tools/orbit/downloads/drops/I20080307200012/bundles/org.apache.oro_2.0.8.v200803061811.jar

So I have updated the commons-vfs bundle on hibnet.

See also the attached patch on Ivy that fix the Import-Package in the MANIFEST.MF. I also
change the vfs config to comment the smb protocol configuration. It is not supported in common-vfs,
it has been pushed into commons-vfs-sandbox.
The pacthed Ivy has also been uploaded on hibnet: org.apache.ivy_2.0.0.20080321.jar

And about the strange class loading behaviour I was talking about in my last comment, it is
normal because the StandardFileSystemManager I was taking about is actually an inner class
of VFSRepository, so that its classloader is Ivy one. Finnaly this mananger has the correct
class loader, because only the ivy one knows which class have to be imported regarding the
vfs configuration.


> Problem with vfs ftp and dynamic revisions
> ------------------------------------------
>
>                 Key: IVYDE-87
>                 URL: https://issues.apache.org/jira/browse/IVYDE-87
>             Project: IvyDE
>          Issue Type: Bug
>    Affects Versions: 1.3.0
>         Environment: Eclipse 3.2 and IvyDE 1.2
> Eclipse 3.3 (MyEclipse 6.0.1) and IvyDE 1.3 (org.apache.ivyde.eclipse_1.3.0.20071209120000.jar)
>            Reporter: Guillaume
>         Attachments: FileZilla Server.log, IVY-738.patch, ivy-settings-ivyde1_2.xml,
ivy-settings-ivyde1_3.xml, ivy.xml, ivy_console_log.txt, ivy_console_log2.txt, IVYDE-87-r639596.patch,
test_ant.txt, test_ant_debug.txt, test_ivyde.txt
>
>
> Configuration (attachments follow)
> The repository structure is a simple filesystem (on the same machine than Eclipse and
Ant for the test) :
> The folder ftpuser_home\external-lib\junit\junit exists and has two subfolders named
after version numbers :
> 3.8.1 which contains ivy-3.8.1.xml, jars and so on
> 3.8.2 which contains ivy-3.8.2.xml, jars and so on
> User has proper rights to list directory contents which proves to be ok with ant task.
> Using Eclipse 3.3 and IvyDE 1.3 (snapshot build - org.apache.ivyde.eclipse_1.3.0.20071209120000.jar)
:
> JUnit 3.8.+ gets resolved to the latest 3.8.x version available on my repository (3.8.2
in this test) with an ant resolve task. But it isn't resolved at all with IvyDE.
> In ant, the related logs are pretty simple (ant ivy settings are pointing to the same
ivy settings file than ivyde) :
> [ivy:retrieve] found junit#junit;3.8.2 in ftp
> [ivy:retrieve] [3.8.2] junit#junit;3.8.+
> Ivy Console summary :
> {code}
> :::: WARNINGS
>        module not found: junit#junit;3.8.+
>     ==== ftp: tried
>  ftp://********:repo-central@localhost/external-lib/junit/junit/3.8.+/ivy-3.8.+.xml
>  ftp://********:repo-central@localhost/external-lib/junit/junit/[revision]/ivy-[revision].xml
>         ::::::::::::::::::::::::::::::::::::::::::::::
>         ::          UNRESOLVED DEPENDENCIES         ::
>         ::::::::::::::::::::::::::::::::::::::::::::::
>         :: junit#junit;3.8.+: not found
>         :::::::::::::::::::::::::::::::::::::::::::::: 
> {code}
> FTP logs :
> {code}
> (000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> Connected, sending welcome
message...
> (000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> 220-FileZilla Server
version 0.9.24 beta
> (000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> 220-written by Tim Kosse
(Tim.Kosse@gmx.de)
> (000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> 220 Please visit http://sourceforge.net/projects/filezilla/
> (000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> USER repo-central
> (000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> 331 Password required
for repo-central
> (000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> PASS ************
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 230 Logged on
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> TYPE I
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 200 Type set to I
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD external-lib
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 250 CWD successful. "/external-lib"
is current directory.
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD junit
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 250 CWD successful. "/external-lib/junit"
is current directory.
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD junit
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 250 CWD successful. "/external-lib/junit/junit"
is current directory.
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD 3.8.+
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 550 CWD failed. "/external-lib/junit/junit/3.8.+":
directory not found.
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD external-lib
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 550 CWD failed. "/external-lib/junit/junit/external-lib":
directory not found.
> (000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> Connected, sending welcome
message...
> (000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> 220-FileZilla Server
version 0.9.24 beta
> (000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> 220-written by Tim Kosse
(Tim.Kosse@gmx.de)
> (000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> 220 Please visit http://sourceforge.net/projects/filezilla/
> (000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> USER repo-central
> (000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> 331 Password required
for repo-central
> (000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> PASS ************
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 230 Logged on
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> TYPE I
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 200 Type set to I
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD external-lib
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 250 CWD successful. "/external-lib"
is current directory.
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD junit
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 250 CWD successful. "/external-lib/junit"
is current directory.
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> EPSV ALL
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 229 Entering Extended Passive
Mode (|||2324|)
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> EPSV
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 229 Entering Extended Passive
Mode (|||2325|)
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> RETR junit
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 550 File not found
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD external-lib
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 550 CWD failed. "/external-lib/junit/external-lib":
directory not found.
> (000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> disconnected.
> (000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> disconnected. 
> {code}
> Using Eclipse 3.2 and IvyDE 1.2 :
> If i specify either junit 3.8.1 or 3.8.2, the ivy file and he jar are properly resolved
and retrieved. But when it comes to dynamic revision 3.8.+, it fails :
> {code}
> Could not determine the last modified timestamp of "ftp://*******:repo-central@localhost/external-lib/junit/junit/3.8.+/ivy-3.8.+.xml"
because it does not exist.
>    listing all in ftp://*******:repo-central@localhost/external-lib/junit/junit/[revision]/ivy-[revision].xml
>    using external-lib to list all in ftp://*******:repo-central@localhost/external-lib/junit/junit/
> list called for URIftp://*******:repo-central@localhost/external-lib/junit/junit/
> resourceImpl=ftp://*******:repo-central@localhost/external-lib/junit/junit
> resourceImpl.exists()false
> resourceImpl.getType()imaginary
> FileType.FOLDERfolder
>        found 0 resources
>    found revs: []
>    external-lib: no resource found for [ junit | junit | 3.8.+ ]: pattern=ftp://*******:repo-central@localhost/external-lib/[organisation]/[module]/[revision]/[artifact]-[revision].xml
>    external-lib: no ivy file found for [ junit | junit | 3.8.+ ]
>        tried ftp://*******:repo-central@localhost/external-lib/junit/junit/3.8.+/ivy-3.8.+.xml
>        tried ftp://*******:repo-central@localhost/external-lib/junit/junit/[3.8.+]/ivy-[3.8.+].xml
> WARN:     module not found: [ junit | junit | 3.8.+ ]
> WARN:         external-lib: tried ftp://*******:repo-central@localhost/external-lib/junit/junit/3.8.+/ivy-3.8.+.xml
> WARN:         external-lib: tried ftp://*******:repo-central@localhost/external-lib/junit/junit/[3.8.+]/ivy-[3.8.+].xml
> {code}

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


Mime
View raw message