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

Fix for CSS copying on windows issue #302

Merged
merged 1 commit into from
Oct 16, 2014

Conversation

jsight
Copy link
Member

@jsight jsight commented Oct 16, 2014

No description provided.

@windupgithubbot1
Copy link

Merged build triggered.

@windupgithubbot1
Copy link

Merged build started.

@@ -130,6 +130,9 @@ private void recursePath(final Path path, final Path resultPath) throws IOExcept
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
{
String relativePath = StringUtils.substringAfter(file.toString(), path.toString());
if (relativePath.startsWith("/") && File.separatorChar == '\\') {
Copy link
Member

Choose a reason for hiding this comment

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

Could use the Apache CommonsIO FilenameUtils.separatorsToSystem(String path) to be safe & cut down on verbosity. Also, that same utility has a lot of other useful methods that we could be leveraging throughout:

A few:
normalize(String filename) //normalize unneeded relative paths to simplify the path. ex: a/b/../b becomes a/b
getExtension(String filename) //gets the extension
wildcardMatch(String filename, String wildcardMatcher) //allows you to compare extensions or file names easily via wildcard

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea. I've updated the code with this method.

@windupgithubbot1
Copy link

Merged build finished. Test FAILed.

@windupgithubbot1
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://10.3.9.192//job/windup-pr-builder/36/

Failed Tests: 1

org.jboss.windup.rules.apps:rules-java: 1

Test FAILed.

@windupgithubbot1
Copy link

Merged build triggered.

lincolnthree added a commit that referenced this pull request Oct 16, 2014
Fix for CSS copying on windows issue
@lincolnthree lincolnthree merged commit e9ee8cf into windup:master Oct 16, 2014
@windupgithubbot1
Copy link

Merged build started.

@windupgithubbot1
Copy link

Merged build finished. Test PASSed.

@windupgithubbot1
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://10.3.9.192//job/windup-pr-builder/44/Test PASSed.

@jsight jsight deleted the csscopyingfix branch October 23, 2014 15:13
PhilipCattanach pushed a commit to PhilipCattanach/windup that referenced this pull request Feb 20, 2023
* WINDUPRULE-103 Missing EAP 4+5 rules

* WINDUPRULE-103 enhanced rule after xmlfile condition fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants