Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1645

JavaResource resolve to wrong path after CD

XMLWordPrintable

      With the following code

      	@Inject
      	@WithAttributes(shortName = 's', label = "source", required = true, type = InputType.JAVA_CLASS_PICKER)
      	private UIInput<JavaResource> source;
      
      

      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'

            rhn-support-ggastald George Gastaldi
            aslak@redhat.com Aslak Knutsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: