Skip to content

etc ディレクトリ配下のファイルが登録されない #85

@Hide-kun

Description

@Hide-kun

以下のようなファイルが存在する場合、1 ~ 4 のファイルが登録されない事象が発生いたしました。
検証したところ、etc ディレクトリを別なディレクトリ名 aaa 等に変更すると取り込まれることがわかりました。

1.src/main/resources/commons/etc/SOCCER-API/mail/template/shop_detect_stocks_expired.pc.tpl
2.src/main/resources/commons/etc/SOCCER-API/mail/template/shop_notify_stocks.pc.tpl
3.src/main/resources/commons/etc/SOCCER-API/soccer-api-message.conf
4.src/main/resources/dev/etc/SOCCER-API/log4j-soccer-api.xml
5.src/main/resources/mybatisGeneratorConfig.xml

etc ディレクトリ以下のファイルを登録する方法はございませんでしょうか?

参考までに milkode/common/grenfiletest.rb ファイルの内容は以下の通りです。初期状態のまま変更等は行っておりません。


-- coding: utf-8 --

module GrenFileTest
IGNORE_FILE = /(\A#.*#\Z)|(~\Z)|(\A.#)|(.d\Z)|(.map\Z)|(.MAP\Z)|(.xbm\Z)|(.ppm\Z)|(.ai\Z)|(.png\Z)|(.webarchive\Z)/
IGNORE_DIR = /(\A.svn\Z)|(\A.git\Z)|(\ACVS\Z)/

def self.ignoreDir?(fpath)
begin
IGNORE_DIR.match(File.basename(fpath))
rescue ArgumentError => e
puts "[skip dir] #{fpath}: #{e.to_s}"
true
end
end

def self.ignoreFile?(fpath)
begin
IGNORE_FILE.match(File.basename(fpath))
rescue ArgumentError => e
puts "[skip] #{fpath}: #{e.to_s}"
true
end
end

def self.binary?(fpath)
s = File.read(fpath, 1024) or return false
return s.index("\x00")
end

end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions