Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PDE-Build] Use File to represent file-system paths instead of String #1352

Merged

Conversation

HannesWell
Copy link
Member

And don't name variables that denote local files 'urls'.

And don't name variables that denote local files 'urls'.
Copy link

Test Results

   291 files  +  2     291 suites  +2   54m 3s ⏱️ + 3m 42s
 3 581 tests ±  0   3 504 ✅ +  1   76 💤  -  1  0 ❌ ±0  1 🔥 ±0 
11 035 runs  +166  10 803 ✅ +138  231 💤 +28  0 ❌ ±0  1 🔥 ±0 

For more details on these errors, see this check.

Results for commit 50bd4ba. ± Comparison against base commit e1b5486.

@HannesWell HannesWell merged commit caccef6 into eclipse-pde:master Jul 26, 2024
15 of 17 checks passed
@HannesWell HannesWell deleted the use-file-instead-of-string branch July 26, 2024 17:16
@@ -84,7 +85,7 @@ public abstract class AbstractScriptGenerator implements IXMLConstants, IPDEBuil
private static PDEUIStateWrapper pdeUIState;

/** Location of the plug-ins and fragments. */
protected String[] sitePaths;
protected List<File> sitePaths;
Copy link
Contributor

@laeubi laeubi Jul 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though its already merged, why not even use Path instead of File ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that as well, but it would have required more changes. Since my main goal was to get rid of the File-to-URL and URL-to-File conversion I didn't want to do that as well in this change.
But since this is all internal we can change to Path at our own discretion at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants