equal
deleted
inserted
replaced
73 File txt = new File(src, name); |
73 File txt = new File(src, name); |
74 txt.createNewFile(); |
74 txt.createNewFile(); |
75 |
75 |
76 String target = "target" + File.separator + name; |
76 String target = "target" + File.separator + name; |
77 Files.write(txt.toPath(), content.getBytes()); |
77 Files.write(txt.toPath(), content.getBytes()); |
78 File lic = new File(System.getProperty("java.home"), "LICENSE"); |
78 File lic = new File(System.getProperty("java.home"), "LICENSE.txt"); |
79 StringBuilder builder = new StringBuilder(); |
79 StringBuilder builder = new StringBuilder(); |
80 int expected = lic.exists() ? 4 : 3; |
80 int expected = lic.exists() ? 4 : 3; |
81 if (lic.exists()) { |
81 if (lic.exists()) { |
82 builder.append("LICENSE,"); |
82 builder.append("LICENSE.txt,"); |
83 } |
83 } |
84 builder.append(txt.getAbsolutePath()+","); |
84 builder.append(txt.getAbsolutePath()+","); |
85 builder.append(txt.getAbsolutePath() + "=" + target+","); |
85 builder.append(txt.getAbsolutePath() + "=" + target+","); |
86 builder.append(src.getAbsolutePath() + "=src2"); |
86 builder.append(src.getAbsolutePath() + "=src2"); |
87 |
87 |
114 Path root = new File(".").toPath(); |
114 Path root = new File(".").toPath(); |
115 DefaultImageBuilder imgbuilder = new DefaultImageBuilder(root); |
115 DefaultImageBuilder imgbuilder = new DefaultImageBuilder(root); |
116 imgbuilder.storeFiles(pool); |
116 imgbuilder.storeFiles(pool); |
117 |
117 |
118 if (lic.exists()) { |
118 if (lic.exists()) { |
119 File license = new File(root.toFile(), "LICENSE"); |
119 File license = new File(root.toFile(), "LICENSE.txt"); |
120 if (!license.exists() || license.length() == 0) { |
120 if (!license.exists() || license.length() == 0) { |
121 throw new AssertionError("Invalide license file " |
121 throw new AssertionError("Invalid license file " |
122 + license.getAbsoluteFile()); |
122 + license.getAbsoluteFile()); |
123 } |
123 } |
124 } |
124 } |
125 |
125 |
126 File sample1 = new File(root.toFile(), txt.getName()); |
126 File sample1 = new File(root.toFile(), txt.getName()); |