You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "fabrizio giustina (JIRA)" <ji...@codehaus.org> on 2005/10/09 19:12:11 UTC

[jira] Closed: (MPECLIPSE-81) Resources are added as path even if they do not exist in the filesystem

     [ http://jira.codehaus.org/browse/MPECLIPSE-81?page=all ]
     
fabrizio giustina closed MPECLIPSE-81:
--------------------------------------

      Assign To: fabrizio giustina
     Resolution: Duplicate
    Fix Version: 1.10

duplicate of MPECLIPSE-72 (fixed)

> Resources are added as path even if they do not exist in the filesystem
> -----------------------------------------------------------------------
>
>          Key: MPECLIPSE-81
>          URL: http://jira.codehaus.org/browse/MPECLIPSE-81
>      Project: maven-eclipse-plugin
>         Type: Bug
>     Versions: 1.9
>     Reporter: Felipe Leme
>     Assignee: fabrizio giustina
>      Fix For: 1.10

>
> Original Estimate: 1 hour, 30 minutes
>         Remaining: 1 hour, 30 minutes
>
> If the property maven.eclipse.resources.addtoclasspath is set to true and the resources directory is defined in the POM but does not exist in the filesystem, the generated .classpath will cause Eclipse to fail.
> A quick fix is to just put an <u:available> at classpath.jelly, from:
> <maven:makeRelativePath var="resourceDirectory" basedir="${basedir}" path="${resource.directory}" separator="/"/>
>   <!-- don't add duplicate directories -->
>   <j:if test="${!resourceDirectory.equals(srcDir) and 
>     <!-- .... -->
>   </j:if>
> to:
> <maven:makeRelativePath var="resourceDirectory" basedir="${basedir}" path="${resource.directory}" separator="/"/>
>   <!-- don't add duplicate directories -->
>   <u:available file="${basedir}/${resourceDirectory}">  
>     <j:if test="${!resourceDirectory.equals(srcDir) and 
>       <!-- .... -->
>     </j:if>
>   </u:available>
> I will not commit such fix yet though, as we need a more robust solution, like checking that the file is really a directory, adding a new testcase and making sure the same problem does not occurr for regular resources.
> -- Felipe

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org