This file contains hidden or 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
public static InetAddress getLocalHost() throws UnknownHostException { | |
InetAddress ret = InetAddress.getLocalHost(); | |
if (!ret.isLoopbackAddress()) { | |
//getLocalHost() did not return the loopback address | |
ret = InetAddress.getByName("localhost"); | |
if (!ret.isLoopbackAddress()) { | |
_logger.severe("" + ret.getHostAddress() + " is not a loopback address"); | |
} | |
} | |
// _logger.log(Level.SEVERE,"LoopbackAddress: "+ret.isLoopbackAddress()); |
This file contains hidden or 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
/** | |
* Copyright (C) 2011 | |
* Michael Mosmann <[email protected]> | |
* Martin Jöhren <[email protected]> | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or 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
package org.htmlcleaner; | |
public class HtmlUtils{ | |
/** | |
* @see "http://www.w3.org/TR/html401/struct/text.html#h-9.1" | |
* ASCII space ( ) | |
* ASCII tab (	) | |
* carriage return (
) | |
* line feed (
) |
This file contains hidden or 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
#!/bin/bash | |
# Argument = -h -v -i groupId:artifactId:version -c classifier -p packaging -r repository | |
#shopt -o -s xtrace | |
# Define Nexus Configuration | |
NEXUS_BASE=http://repository.example.com:8081/nexus | |
REST_PATH=/service/local | |
ART_REDIR=/artifact/maven/redirect |
NewerOlder