Taack commented on issue #15129:
URL: https://github.com/apache/grails-core/issues/15129#issuecomment-3487308672

   @jdaugherty hope you can find the best solution. 
   
   The issue is like:
   
   ```groovy
           String pathAbsolute = new File('grails-app').absoluteFile.path
           Resource urlResource = new UrlResource('file', pathAbsolute)
           println urlResource
           Resource relative =  urlResource.createRelative('')
           println relative
   ```
   
   Outputs:
   ```bash
   URL 
[file:/home/auo/Téléchargements/test-i18n-multiproject-buildSrc/server/grails-app]
   URL [file:/home/auo/Téléchargements/test-i18n-multiproject-buildSrc/server/]
   ```
   
   I choose to not call `createRelative` in case the classpath is a file, may 
be it is better to fix  `createRelative` but it is located outside the 
grails-core sourcetree ...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to