[forge-issues] [JBoss JIRA] (FORGE-1645) JavaResource resolve to wrong path after CD
Antonio Goncalves (JIRA)
issues at jboss.org
Wed Jun 11 06:05:15 EDT 2014
[ https://issues.jboss.org/browse/FORGE-1645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975164#comment-12975164 ]
Antonio Goncalves commented on FORGE-1645:
------------------------------------------
Any progress on this issue ? I have the following problem with the Arquillian add-on :
https://github.com/forge/plugin-arquillian/issues/36#issuecomment-45723074
> JavaResource resolve to wrong path after CD
> -------------------------------------------
>
> Key: FORGE-1645
> URL: https://issues.jboss.org/browse/FORGE-1645
> Project: Forge
> Issue Type: Bug
> Components: Parsers / File Manipulation
> Affects Versions: 2.1.1.Final
> Environment: Linux Fedora 20, JDK 1.7
> Reporter: Aslak Knutsen
> Fix For: 2.x Future
>
>
> With the following code
> {code}
> @Inject
> @WithAttributes(shortName = 's', label = "source", required = true, type = InputType.JAVA_CLASS_PICKER)
> private UIInput<JavaResource> source;
> {code}
> Assume the following directory structure:
> x/y/src/main/java/x.java
> * Start forge in folder X.
> * cd to some sub folder Y
> * trigger the 'source' field
> ** command --source src/main/java/x.java
> The JavaResource fail to resolve the underlying file as it's pointing to:
> X/src/main/java/x.java
> It seems it's missing the updated 'current dir' and only resolve from 'original working dir'
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the forge-issues
mailing list