File tree Expand file tree Collapse file tree
main/java/org/eolang/maven
test/java/org/eolang/maven Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616import com .yegor256 .xsline .TrJoined ;
1717import com .yegor256 .xsline .Train ;
1818import com .yegor256 .xsline .Xsline ;
19+ import java .io .File ;
1920import java .io .IOException ;
2021import java .nio .file .Files ;
2122import java .nio .file .Path ;
@@ -299,7 +300,8 @@ private static int pinfos(final Path generated) throws IOException {
299300 .filter (file -> Files .isDirectory (file ) && !file .equals (generated ))
300301 .collect (Collectors .toList ());
301302 for (final Path dir : dirs ) {
302- final String pkg = generated .relativize (dir ).toString ().replace ("/" , "." );
303+ final String pkg = generated .relativize (dir ).toString ()
304+ .replace (File .separator , "." );
303305 new Saved (
304306 String .join (
305307 "\n " ,
Original file line number Diff line number Diff line change 55package org .eolang .maven ;
66
77import com .jcabi .log .Logger ;
8+ import java .io .File ;
89import java .io .IOException ;
910import java .nio .file .Files ;
1011import java .nio .file .Path ;
@@ -67,7 +68,7 @@ private void unspile(final Walk classes) {
6768 .map (
6869 path -> UnspileMojo .JAVA .matcher (
6970 generated .relativize (path ).toString ()
70- ).replaceAll (".class" )
71+ ).replaceAll (".class" ). replace ( File . separatorChar , '/' )
7172 )
7273 .collect (Collectors .toSet ());
7374 included .addAll (UnspileMojo .INNER );
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ void keepsSpecifiedClasses(@Mktmp final Path temp) throws IOException {
5050 "clz" , maven .classesPath ().resolve ("EOorg/package-info.class" )
5151 ).value ();
5252 final Path eolang = new Saved (
53- "pgk " , maven .classesPath ().resolve ("EOorg/EOeolang/package-info.class" )
53+ "pkg " , maven .classesPath ().resolve ("EOorg/EOeolang/package-info.class" )
5454 ).value ();
5555 MatcherAssert .assertThat (
5656 "UnspileMojo must keep files matching to keepBinaries globs" ,
You can’t perform that action at this time.
0 commit comments