This file contains 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
import groovy.ui.Console; | |
import java.awt.event.WindowAdapter; | |
import java.awt.event.WindowEvent; | |
import javax.swing.JFrame; | |
public class GroovyConsoleHelper { | |
private final Console console; |
This file contains 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
/** | |
* Base class for unchecked exceptions that does not fill in a stack trace of | |
* the current thread | |
*/ | |
@SuppressWarnings("serial") | |
public class RuntimeStacklessException extends RuntimeException { | |
public RuntimeStacklessException() { | |
super(); | |
} |
This file contains 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
/** | |
* Base class for checked exceptions that does not fill in a stack trace of the | |
* current thread. | |
*/ | |
@SuppressWarnings("serial") | |
public class StacklessException extends Exception { | |
public StacklessException() { | |
super(); | |
} |
This file contains 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
import org.junit.Test; | |
import static org.junit.Assert.assertThat; | |
import org.hamcrest.BaseMatcher; | |
import org.hamcrest.Description; | |
import org.hamcrest.Matcher; | |
/** | |
* Unit test for stackless exceptions |
This file contains 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
import socket, struct | |
def inet_ntoa(address): | |
# !: big-endian; i:int; I:unsigned int; | |
packed_value = struct.pack('!I', address) | |
return socket.inet_ntoa(packed_value) | |
assert inet_ntoa(2130706433) == '127.0.0.1' |
This file contains 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
#!/usr/bin/env groovy | |
import java.lang.management.* | |
import javax.management.* | |
import javax.management.remote.* | |
import java.text.* | |
def vmInfo(prop) { | |
def vmName = prop.getProperty('java.vm.name') |
This file contains 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
ANT_OPTS=-Dbuild.sysclasspath=ignore |
This file contains 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
ANT_OPTS=-Dbuild.sysclasspath=ignore -Dbuild.compilerarg=-Xlint:-options |
This file contains 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
diff -Naur jetm-src-1.2.3\build.properties jetm-modified-src-1.2.3\build.properties | |
--- jetm-src-1.2.3\build.properties Tue Mar 10 07:17:18 2009 | |
+++ jetm-modified-src-1.2.3\build.properties Sat Dec 01 23:45:56 2012 | |
@@ -1,4 +1,4 @@ | |
-release.version=1.2.3 | |
+release.version=1.2.3.1 | |
release.name=jetm | |
diff -Naur jetm-src-1.2.3\etc\build\build-contrib.xml jetm-modified-src-1.2.3\etc\build\build-contrib.xml |
This file contains 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) 2012 Jarosław Przygódzki | |
*******************************************************************************/ | |
package net.jarekprzygodzki.util.jar | |
import java.util.jar.* | |
import java.util.zip.* |
OlderNewer