• R/O
  • SSH
  • HTTPS

catalpa: Commit


Commit MetaInfo

Revisión86 (tree)
Tiempo2020-05-11 22:10:13
Autorhirukawa_ryo

Log Message

* catalpa 0.8.1
Netlifyのリダイレクト定義ファイル _redirects が出力フォルダーにコピーされるようにしました。先頭文字がアンダーバーで始まるファイルは除外ファイルとして扱われますが、_redirects は例外的に除外ファイルとして扱いません。
exewrapのバージョンを1.6.0プレビュー版に変更しました。

Cambiar Resumen

Diferencia incremental

--- catalpa/trunk/src/main/java/net/osdn/catalpa/Catalpa.java (revision 85)
+++ catalpa/trunk/src/main/java/net/osdn/catalpa/Catalpa.java (revision 86)
@@ -105,10 +105,16 @@
105105 private List<String> excludePrefixes = Arrays.asList(new String[] {
106106 "_"
107107 });
108- private List<String> execludeSuffixes = Arrays.asList(new String[] {
108+ private List<String> excludeSuffixes = Arrays.asList(new String[] {
109109 ".ppk"
110110 });
111-
111+ /** 出力フォルダーに必ずファイル名のリストです。
112+ * ここに記載されているファイルは excludePrefixes, excludeSuffixes よりも優先されます。
113+ */
114+ private List<String> includeFileNames = new ArrayList<>(Arrays.asList(new String[] {
115+ "_redirects" // Netlifyのリダイレクト定義ファイル
116+ }));
117+
112118 private AddOn addon;
113119 private Configuration freeMarker;
114120 private List<SitemapItem> sitemap = new ArrayList<SitemapItem>();
@@ -387,6 +393,11 @@
387393 return true;
388394 }
389395 String name = path.getFileName().toString().toLowerCase();
396+ for(String i : includeFileNames) {
397+ if(name.equals(i)) {
398+ return false;
399+ }
400+ }
390401 for(String d : excludeFileNames) {
391402 if(name.equals(d)) {
392403 return true;
@@ -397,7 +408,7 @@
397408 return true;
398409 }
399410 }
400- for(String s : execludeSuffixes) {
411+ for(String s : excludeSuffixes) {
401412 if(name.endsWith(s)) {
402413 return true;
403414 }
Show on old repository browser