Support for custom build profiles

This commit is contained in:
Reinhard Pointner 2018-01-19 21:55:19 +01:00
parent d314efb450
commit ed849bb2f1
7 changed files with 108 additions and 55 deletions

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AUTO_TARGETS" value="eclipse-properties-builder,"/>
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_MANUAL_TARGETS" value="eclipse-properties-builder,"/>
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
<booleanAttribute key="org.eclipse.debug.core.capture_output" value="false"/>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_OUTPUT_ON" value="false"/>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="filebot"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/filebot/build.xml}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="incremental,auto,"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/filebot}"/>
</launchConfiguration>

View File

@ -10,6 +10,20 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>auto,full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/Properties.launch</value>
</dictionary>
<dictionary>
<key>incclean</key>
<value>true</value>
</dictionary>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>

View File

@ -1,3 +1,37 @@
# Application Info
application.name: FileBot
application.version: 4.7.19
# Script Base URL
github.stable: https://app.filebot.net/scripts/m1.jar.xz
github.master: https://raw.githubusercontent.com/filebot/scripts/master/
# Update Descriptor
update.url: https://app.filebot.net/update.xml
donate.url: https://www.filebot.net/donate.php
# Store
link.mas: macappstore://itunes.apple.com/app/id905384638
link.mws: ms-windows-store://review/?ProductId=9NBLGGH52T9X
# Tutorials
link.app.help: https://www.filebot.net/getting-started/embed.html
# Help
link.intro: https://www.filebot.net/getting-started/index.html
link.forums: https://www.filebot.net/forums/
link.twitter: https://twitter.com/filebot_renamer
link.facebook: https://www.facebook.com/filebot/
link.faq: https://www.filebot.net/manual.html
link.bugs: https://www.filebot.net/report.html
link.channel: https://www.filebot.net/channel.html
link.help: https://www.filebot.net/support.html
link.help.mas: https://www.filebot.net/mac/support.html
# Build
main.class: net.filebot.Main
jre.version: 9.0.1

View File

@ -11,8 +11,7 @@
<!-- import property files -->
<property file="${basedir}/profile.properties" />
<property file="${dir.installer}/ant/ant.properties" />
<property file="${dir.source}/net/filebot/Settings.properties" />
<property file="${basedir}/app.properties" />
<property name="release" value="${application.name}_${application.version}" />
@ -1023,4 +1022,13 @@
</target>
<target name="eclipse-properties-builder">
<exec executable="git" outputproperty="revision" failonerror="true">
<arg line="rev-list --count master" />
</exec>
<copy-replace todir="bin">
<fileset dir="source" includes="**/*.properties" />
</copy-replace>
</target>
</project>

View File

@ -39,12 +39,8 @@ public final class Settings {
}
public static String getApiKey(String name) {
if (isAppStore()) {
return getApplicationProperty("com.apikey." + name);
} else {
return getApplicationProperty("apikey." + name);
}
}
public static boolean isUnixFS() {
return Boolean.parseBoolean(System.getProperty("unixfs"));

View File

@ -1,48 +1,32 @@
# application settings
application.name: FileBot
application.version: 4.7.19
application.name: @{application.name}
application.version: @{application.version}
application.revision: @{revision}
# application updates
update.url: https://app.filebot.net/update.xml
donate.url: https://www.filebot.net/donate.php
update.url: @{update.url}
donate.url: @{donate.url}
# base URL for resolving script resources
github.stable: https://app.filebot.net/scripts/m1.jar.xz
github.master: https://raw.githubusercontent.com/filebot/scripts/master/
github.stable: @{github.stable}
github.master: @{github.master}
# native links
link.mas: macappstore://itunes.apple.com/app/id905384638
link.mws: ms-windows-store://review/?ProductId=9NBLGGH52T9X
link.mas: @{link.mas}
link.mws: @{link.mws}
# application help
link.app.help: https://www.filebot.net/getting-started/embed.html
link.app.help: @{link.app.help}
# online help
link.intro: https://www.filebot.net/getting-started/index.html
link.forums: https://www.filebot.net/forums/
link.twitter: https://twitter.com/filebot_renamer
link.facebook: https://www.facebook.com/filebot/
link.faq: https://www.filebot.net/manual.html
link.bugs: https://www.filebot.net/report.html
link.channel: https://www.filebot.net/channel.html
link.help: https://www.filebot.net/support.html
link.help.mas: https://www.filebot.net/mac/support.html
link.intro: @{link.intro}
link.forums: @{link.forums}
link.twitter: @{link.twitter}
link.facebook: @{link.facebook}
link.faq: @{link.faq}
link.bugs: @{link.bugs}
link.channel: @{link.channel}
link.help: @{link.help}
link.help.mas: @{link.help.mas}
# api keys
apikey.fanart.tv: 780b986b22c35e6f7a134a2f392c2deb
apikey.thetvdb: 694FAD89942D3827
apikey.themoviedb: 66308fb6e3fd850dde4c7d21df2e8306
apikey.omdb: 49d311ec
apikey.acoustid: 0B3qZnQc
apikey.anidb: filebot
apikey.opensubtitles: FileBot
# api keys
com.apikey.fanart.tv: 780b986b22c35e6f7a134a2f392c2deb
com.apikey.thetvdb: 5F6E873A88CF70D9
com.apikey.themoviedb: 28bce8224bd3282a41bec4c5df528249
com.apikey.omdb: 49d311ec
com.apikey.acoustid: VCujaMw9
com.apikey.anidb: filebotappstore
com.apikey.opensubtitles: FileBot-AppStore
apikey.fanart.tv: @{apikey.fanart.tv}
apikey.thetvdb: @{apikey.thetvdb}
apikey.themoviedb: @{apikey.themoviedb}
apikey.omdb: @{apikey.omdb}
apikey.acoustid: @{apikey.acoustid}
apikey.anidb: @{apikey.anidb}
apikey.opensubtitles: @{apikey.opensubtitles}

View File

@ -23,25 +23,25 @@ pattern.clutter.excludes: (?<=[!\\-\\(\\[])(Sample|Trailer)|(Sample|Trailer)(?=[
number.clutter.maxfilesize: 150000000
# known release group names
url.release-groups: https://app.filebot.net/data/release-groups.txt.xz
url.release-groups: @{url.data}/release-groups.txt.xz
# blacklisted terms that will be ignored
url.query-blacklist: https://app.filebot.net/data/query-blacklist.txt.xz
url.query-blacklist: @{url.data}/query-blacklist.txt.xz
# list of patterns directly matching files to series names
url.series-mappings: https://app.filebot.net/data/series-mappings.txt.xz
url.series-mappings: @{url.data}/series-mappings.txt.xz
# list of all movies (id, name, year)
url.movie-list: https://app.filebot.net/data/moviedb.txt.xz
url.movie-list: @{url.data}/moviedb.txt.xz
# TheTVDB index
url.thetvdb-index: https://app.filebot.net/data/thetvdb.txt.xz
url.thetvdb-index: @{url.data}/thetvdb.txt.xz
# AniDB index
url.anidb-index: https://app.filebot.net/data/anidb.txt.xz
url.anidb-index: @{url.data}/anidb.txt.xz
# OpenSubtitles index
url.osdb-index: https://app.filebot.net/data/osdb.txt.xz
url.osdb-index: @{url.data}/osdb.txt.xz
# disk folder matcher
pattern.diskfolder.entry: BDMV|HVDVD_TS|VIDEO_TS|AUDIO_TS|VCD|MovieObject.bdmv|VIDEO_TS.VOB|VTS_[0-9]+_[0-9]+.VOB