private static Version generateVersionFrom(String name, String version, String os) { if (autoAppendSmackVersion) { name += " (Smack " + SmackConfiguration.getVersion() + ')'; } return new Version(name, version, os); } }
public static void init() { SmackConfiguration.getVersion(); // smack-repl also pulls in smack-resolver-minidns which has higher precedence the smack-resolver-javax but // won't work on Java SE platforms. Therefore explicitly setup JavaxResolver. JavaxResolver.setup(); // CHECKSTYLE:OFF System.out.println("Smack REPL"); // CHECKSTYLE:ON }
versionPanel.setMaximumSize(new Dimension(2000, 31)); versionPanel.add(new JLabel(" Smack version: ")); JFormattedTextField field = new JFormattedTextField(SmackConfiguration.getVersion()); field.setEditable(false); field.setBorder(null);
@Ignore @Test public void smackconfigurationVersionShouldInitialzieSmacktTest() { SmackConfiguration.getVersion(); // Only a call to SmackConfiguration.getVersion() should cause Smack to become initialized. assertTrue(SmackConfiguration.isSmackInitialized()); } }
versionPanel.setMaximumSize(new Dimension(2000, 31)); versionPanel.add(new JLabel(" Smack version: ")); JFormattedTextField field = new JFormattedTextField(SmackConfiguration.getVersion()); field.setEditable(false); field.setBorder(null);
versionPanel.setMaximumSize(new Dimension(2000, 31)); versionPanel.add(new JLabel(" Smack version: ")); JFormattedTextField field = new JFormattedTextField(SmackConfiguration.getVersion()); field.setEditable(false); field.setBorder(null);
SmackConfiguration.getVersion();
SmackConfiguration.getVersion();
this.resource = resource; logger.info("Smack Version: " + SmackConfiguration.getVersion()); logger.info("Connection made as " + username + "@" + servername + "/" + resource + " on port " + port + " connection interval " + interval + " init delay " + delay); if (StringUtil.validString(domain)) {
SmackConfiguration.getVersion();
aboutBoxText.append( "<br/>" + "Smack Version: " + SmackConfiguration.getVersion());