Created
October 29, 2011 01:02
-
-
Save lyhcode/1323943 to your computer and use it in GitHub Desktop.
Gradle jettyRun with jetty-env.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
apply plugin: 'java' | |
apply plugin: 'war' | |
apply plugin: 'jetty' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile group: 'javax.servlet', name: 'servlet-api', version: '2.5' | |
compile group: 'javax.servlet', name: 'jsp-api', version: '2.0' | |
} | |
jettyRun { | |
httpPort = 8080 | |
} |
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
<?xml version="1.0"?> | |
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> | |
<Configure class="org.mortbay.jetty.webapp.WebAppContext"> | |
<Get name="securityHandler"> | |
<Set name="userRealm"> | |
<New class="org.mortbay.jetty.security.HashUserRealm"> | |
<Set name="name">default</Set> | |
<Set name="config">realm.properties</Set> | |
</New> | |
</Set> | |
</Get> | |
</Configure> |
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
admin: admin, supervisor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment