-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow GH token usage. Add Logging. Change Download to downloads/<user…
…>/<repo>/<tag>
- Loading branch information
Showing
11 changed files
with
224 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,6 @@ bin/ | |
.vscode/ | ||
|
||
### Mac OS ### | ||
.DS_Store | ||
.DS_Store | ||
downloads | ||
logs |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# GitHub Release and Tag asset downloader | ||
|
||
Downloads all assets for all releases and tags, including source archives. | ||
Downloads all assets for all releases and tags, including source archives. | ||
|
||
Run like this: | ||
|
||
`java -jar .\github-release-asset-downloader-1.0-SNAPSHOT-all.jar <USER> <REPO>` | ||
|
||
of with a GitHub Access Token to reduce rate limiting: | ||
|
||
`java -jar .\github-release-asset-downloader-1.0-SNAPSHOT-all.jar <USER> <REPO> <GITHUB_TOKEN>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package de.griefed | ||
|
||
fun main(args: Array<String>) { | ||
GitHubRepo.downloadAssets(args[0], args[1], args[2]) | ||
if (args.size == 3) { | ||
GitHubRepo.downloadAssets(args[0], args[1], args[2]) | ||
} else { | ||
GitHubRepo.downloadAssets(args[0], args[1]) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
log4j.configurationFile=log4j2.xml | ||
log4j.formatMsgNoLookups=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration monitorInterval="30"> | ||
<Properties> | ||
<Property name="log-path">logs</Property> | ||
<Property name="archive">${log-path}/archive</Property> | ||
<Property name="pattern">%d{ISO8601} %5p [%t] (%F:%L) - %m%n</Property> | ||
<Property name="console-pattern">%style{%d{ISO8601}}{dim,white} %highlight{%5p} [%style{%t}{bright,blue}] %style{(%F:%L)}{bright,yellow} - %m%n</Property> | ||
<Property name="log-level">INFO</Property> | ||
<Property name="log-level-gad">INFO</Property> | ||
<Property name="charset">UTF-8</Property> | ||
</Properties> | ||
|
||
<Appenders> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<PatternLayout> | ||
<Pattern> | ||
${console-pattern} | ||
</Pattern> | ||
</PatternLayout> | ||
</Console> | ||
|
||
<RollingFile name="ApplicationLogger" fileName="${log-path}/downloader.log" filePattern="${archive}/downloader.log.%i"> | ||
<PatternLayout> | ||
<Charset> | ||
${charset} | ||
</Charset> | ||
<Pattern> | ||
${pattern} | ||
</Pattern> | ||
</PatternLayout> | ||
<Policies> | ||
<OnStartupTriggeringPolicy /> | ||
<SizeBasedTriggeringPolicy size="10 MB" /> | ||
</Policies> | ||
<DefaultRolloverStrategy max="5" /> | ||
</RollingFile> | ||
</Appenders> | ||
|
||
<Loggers> | ||
<Root level="ALL"> | ||
<AppenderRef ref="Console" level="${log-level}"/> | ||
<AppenderRef ref="ApplicationLogger" level="${log-level}" /> | ||
</Root> | ||
|
||
<Logger name="de.griefed" level="ALL" additivity="false"> | ||
<AppenderRef ref="Console" level="${log-level-gad}"/> | ||
<AppenderRef ref="ApplicationLogger" level="${log-level-gad}" /> | ||
</Logger> | ||
</Loggers> | ||
</Configuration> |