[JBoss JIRA] (FORGE-1693) Installed Facets lose touch with reality
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-1693?page=com.atlassian.jira.plugin... ]
Lincoln Baxter III updated FORGE-1693:
--------------------------------------
Summary: Installed Facets lose touch with reality (was: Installed Facets loose touch with reality)
> Installed Facets lose touch with reality
> ----------------------------------------
>
> Key: FORGE-1693
> URL: https://issues.jboss.org/browse/FORGE-1693
> Project: Forge
> Issue Type: Bug
> Components: Facets
> Affects Versions: 2.3.0.Final
> Reporter: Aslak Knutsen
> Fix For: 2.x Future
>
>
> FacetX.isInstalled() will be called as soon as an Object is selected.
> if isInstalled() == true the Facet is installed on the Object and Object.hasFacet(FacetX) == true.
> When the Facet depend on a external resource, e.g. File like pom.xml, and when the pom.xml is changed outside of Forges reach, e.g. some editor/eclipse.
> Object.hasFacet(FacetX) == true is still true, even tho Facet.isInstalled() == false at this point.
> Forge should keep track of the underlying Faceted object state and reinitialize the installed Facets if it has changed since last.
> e.g.
> Object.hasFacet(X.class) { if(lastModified != lastChecked) {reinstall()} checkFacet() }.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years
[JBoss JIRA] (FORGE-1645) JavaResource resolve to wrong path after CD
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1645?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FORGE-1645:
----------------------------------------
This is because {{org.jboss.forge.addon.resource.converter.DirectoryResourceConverter}} does not resolve the current working directory. We need to find a way to solve this.
In the meantime, I think the best would be to use String and resolve using the org.jboss.forge.addon.resource.util.ResourcePathResolver
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years