
META-INF.resources.external_services.jsp Maven / Gradle / Ivy
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>
<%@ include file="/init.jsp" %>
<%
Properties resourceLimitsProperties = ImageMagickUtil.getResourceLimitsProperties();
for (String label : _IMAGEMAGICK_RESOURCE_LIMIT_LABELS) {
%>
<%
}
%>
<%
XugglerInstallException xie = (XugglerInstallException)errorException;
%>
<%
String xugglerHelp = LanguageUtil.format(request, "xuggler-help", "http://www.xuggle.com/xuggler/downloads", false);
String[] xugglerOptions = PropsUtil.getArray(PropsKeys.XUGGLER_JAR_OPTIONS);
String bitMode = OSDetector.getBitMode();
String guess = StringPool.BLANK;
if (Validator.isNotNull(bitMode) && (bitMode.equals("32") || bitMode.equals("64"))) {
if (OSDetector.isApple()) {
guess = bitMode + "-mac";
}
else if (OSDetector.isLinux()) {
guess = bitMode + "-linux";
}
else if (OSDetector.isWindows()) {
guess = bitMode + "-win";
}
if (Validator.isNotNull(guess)) {
boolean found = false;
for (String xugglerOption : xugglerOptions) {
if (xugglerOption.equals(guess)) {
found = true;
break;
}
}
if (!found) {
guess = StringPool.BLANK;
}
}
}
%>
<%
for (String xugglerOption : xugglerOptions) {
String jarFile = PropsUtil.get(PropsKeys.XUGGLER_JAR_FILE, new Filter(xugglerOption));
String jarName = PropsUtil.get(PropsKeys.XUGGLER_JAR_NAME, new Filter(xugglerOption));
%>
<%
}
%>
<%!
private static final String[] _IMAGEMAGICK_RESOURCE_LIMIT_LABELS = {"area", "disk", "file", "map", "memory", "thread", "time"};
%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy