The following comment has been added to this issue:

     Author: gilles dodinet
    Created: Fri, 7 May 2004 7:19 PM
       Body:
actually, i explicitely set user.dir (via a call to System.setProperty(..)) and 
restore it back later, i compute the user.dir property from pom.getFile(). 

I encountered this issue while writing the mevenide synchronizer [1]. if i dont set 
user.dir i end up with such a file : E:/eclipse/<overrideValue> where E:/eclipse is 
the original user.dir

also this indeed doesnot cover all use cases, f.i. if the value defined in properties 
is an absolute path it obviously wont work, on the other hand if the property is 
defined in the context of the parent pom, then is not project variable refering to the 
parent or does it still refer to the current project ?

[1] :pserver:[EMAIL PROTECTED]/home/projects/scm/mevenide-ui-eclipse : 
/src/java/org/mevenide/ui/eclipse/sync/model/MavenProjectNode.java
---------------------------------------------------------------------
View this comment:
  
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1254&page=comments#action_19513

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1254

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1254
    Summary: artifact relative path not correctly computed when override is on
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: CANNOT REPRODUCE

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             core
   Fix Fors:
             1.0-rc3
   Versions:
             1.0-rc3

   Assignee: 
   Reporter: gilles dodinet

    Created: Sun, 2 May 2004 10:56 AM
    Updated: Fri, 7 May 2004 7:19 PM

Description:
line 77 in ArtifactListBuilder is :
artifact.setPath( new File( mavenJarProperty ).getAbsolutePath() );

this assumes project.xml is located in user.dir. thus if running from elsewhere, we 
have to explicitely change, then restore, user.dir property. 

i think this should be corrected by something like : 
artifact.setPath( new File( project.getFile().getParentFile(), mavenJarProperty 
).getAbsolutePath() );


-- gd



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to