diff options
author | James Moger <james.moger@gitblit.com> | 2011-07-20 21:37:18 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-07-20 21:37:18 -0400 |
commit | 5c563c00fb5a5098542fef8c942447a0a0f39dcd (patch) | |
tree | b15f21b1bdde09aa8556833c91a1633760f75216 /src/com | |
parent | a75a1819f4c7fa5080ddb47545fe9012a842e5b3 (diff) | |
download | gitblit-5c563c00fb5a5098542fef8c942447a0a0f39dcd.tar.gz gitblit-5c563c00fb5a5098542fef8c942447a0a0f39dcd.zip |
Documentation.
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/gitblit/build/BuildSite.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/gitblit/build/BuildSite.java b/src/com/gitblit/build/BuildSite.java index 7d0981b8..c3a7f5f8 100644 --- a/src/com/gitblit/build/BuildSite.java +++ b/src/com/gitblit/build/BuildSite.java @@ -189,6 +189,10 @@ public class BuildSite { String[] kv = token.split("=", 2);
content = content.replace(kv[0], kv[1]);
}
+ for (String token:params.regex) {
+ String[] kv = token.split("!!!", 2);
+ content = content.replaceAll(kv[0], kv[1]);
+ }
for (String alias : params.properties) {
String[] kv = alias.split("=", 2);
String loadedContent = generatePropertiesContent(new File(kv[1]));
@@ -350,5 +354,8 @@ public class BuildSite { @Parameter(names = { "--nomarkdown" }, description = "%STARTTOKEN%:%ENDTOKEN%", required = false)
public List<String> nomarkdown = new ArrayList<String>();
+ @Parameter(names = { "--regex" }, description = "searchPattern!!!replacePattern", required = false)
+ public List<String> regex = new ArrayList<String>();
+
}
}
|