Skip to content

Instantly share code, notes, and snippets.

@kiy0taka
Created March 2, 2011 16:15
Show Gist options
  • Save kiy0taka/851175 to your computer and use it in GitHub Desktop.
Save kiy0taka/851175 to your computer and use it in GitHub Desktop.
@GrabResolver(name='glassfish', root='http://download.java.net/maven/glassfish/')
@Grab('org.glassfish.extras:glassfish-embedded-all:3.1')
import org.glassfish.internal.embedded.*
Server server = new Server.Builder("builder").build();
server.addContainer(ContainerBuilder.Type.all);
server.createPort(8080);
server.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment