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>
</arguments> </arguments>
</buildCommand> </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> </buildSpec>
<natures> <natures>
<nature>org.eclipse.jdt.core.javanature</nature> <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 # Build
main.class: net.filebot.Main main.class: net.filebot.Main
jre.version: 9.0.1 jre.version: 9.0.1

View File

@ -11,8 +11,7 @@
<!-- import property files --> <!-- import property files -->
<property file="${basedir}/profile.properties" /> <property file="${basedir}/profile.properties" />
<property file="${dir.installer}/ant/ant.properties" /> <property file="${basedir}/app.properties" />
<property file="${dir.source}/net/filebot/Settings.properties" />
<property name="release" value="${application.name}_${application.version}" /> <property name="release" value="${application.name}_${application.version}" />
@ -1023,4 +1022,13 @@
</target> </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> </project>

View File

@ -39,11 +39,7 @@ public final class Settings {
} }
public static String getApiKey(String name) { public static String getApiKey(String name) {
if (isAppStore()) { return getApplicationProperty("apikey." + name);
return getApplicationProperty("com.apikey." + name);
} else {
return getApplicationProperty("apikey." + name);
}
} }
public static boolean isUnixFS() { public static boolean isUnixFS() {

View File

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

View File

@ -23,25 +23,25 @@ pattern.clutter.excludes: (?<=[!\\-\\(\\[])(Sample|Trailer)|(Sample|Trailer)(?=[
number.clutter.maxfilesize: 150000000 number.clutter.maxfilesize: 150000000
# known release group names # 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 # 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 # 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) # 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 # TheTVDB index
url.thetvdb-index: https://app.filebot.net/data/thetvdb.txt.xz url.thetvdb-index: @{url.data}/thetvdb.txt.xz
# AniDB index # AniDB index
url.anidb-index: https://app.filebot.net/data/anidb.txt.xz url.anidb-index: @{url.data}/anidb.txt.xz
# OpenSubtitles index # OpenSubtitles index
url.osdb-index: https://app.filebot.net/data/osdb.txt.xz url.osdb-index: @{url.data}/osdb.txt.xz
# disk folder matcher # 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 pattern.diskfolder.entry: BDMV|HVDVD_TS|VIDEO_TS|AUDIO_TS|VCD|MovieObject.bdmv|VIDEO_TS.VOB|VTS_[0-9]+_[0-9]+.VOB