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:22:11 UTC

[jira] Closed: (MPECLIPSE-89) ignore non-existing projects referenced by eclipse.dependency property

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

      Assign To: fabrizio giustina
     Resolution: Won't Fix
    Fix Version:     (was: 1.9)
                 1.10

Referenced projects could be located in a different directory: projects in the same eclipse workspace are in the workspace directory by default, but you are free to link projects in different locations.
Due to this reason, there is no way to check for the existence of a dependant project in the eclipse workspace.

> ignore non-existing projects referenced by eclipse.dependency property
> ----------------------------------------------------------------------
>
>          Key: MPECLIPSE-89
>          URL: http://jira.codehaus.org/browse/MPECLIPSE-89
>      Project: maven-eclipse-plugin
>         Type: Improvement
>     Reporter: Flemming Seerup
>     Assignee: fabrizio giustina
>     Priority: Minor
>      Fix For: 1.10

>
> Original Estimate: 15 minutes
>         Remaining: 15 minutes
>
> Improvement implemented by:
> PROJECT.JELLY:
> after
>       <j:set var="eclipseDependency"
>              value="${lib.dependency.getProperty('eclipse.dependency')}"/>
> added
>     <j:if test="${eclipseDependency == 'true'}">
>         <!-- test if the project exists!  -->
>         <util:file var="projectDirFile" name="${basedir}/../${lib.dependency.artifactId}"/>
>         <j:choose>
>           <j:when test="${projectDirFile.exists()}">
> 		 	 	  	<ant:echo>Project exists</ant:echo>
>           </j:when>
>           <j:otherwise>
> 		 	 	  	<ant:echo>Unknown project dependency, using repository instead for ${lib.dependency.artifactId}</ant:echo>
>             <j:set var="eclipseDependency" value="false"/>
>           </j:otherwise>
>         </j:choose>    	
> 		</j:if>
> CLASSPATH.JELLY
> after
>     <j:set var="eclipseDependency"
>            value="${lib.dependency.getProperty('eclipse.dependency')}"/>
> added
>     <j:if test="${eclipseDependency == 'true'}">
>         <!-- test if the project exists!  -->
>         <u:file var="projectDirFile" name="${basedir}/../${lib.dependency.artifactId}"/>
>         <j:choose>
>           <j:when test="${projectDirFile.exists()}">
> 		 	 	  	<ant:echo>Project exists</ant:echo>
>           </j:when>
>           <j:otherwise>
> 		 	 	  	<ant:echo>Unknown project dependency, using repository instead for ${lib.dependency.artifactId}</ant:echo>
>             <j:set var="eclipseDependency" value=""/>
>           </j:otherwise>
>         </j:choose>    	
> 		</j:if>          

-- 
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