Author: ehillenius
Date: Thu Jan 25 17:37:00 2007
New Revision: 500083
URL: http://svn.apache.org/viewvc?view=rev&rev=500083
Log:
added starter (only for the mean while; this project will be part of the main
examples project soon)
Added:
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.settings/
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.settings/org.eclipse.jdt.core.prefs
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/src/main/java/wicket/authentication/example/StartExamples.java
Modified:
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.classpath
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.project
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/pom.xml
Modified:
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.classpath
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.classpath?view=diff&rev=500083&r1=500082&r2=500083
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.classpath
(original)
+++ incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.classpath
Thu Jan 25 17:37:00 2007
@@ -1,13 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
- <classpathentry kind="src" path="src/test/java"/>
- <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="var"
path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"/>
- <classpathentry kind="var"
path="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13.jar"/>
- <classpathentry kind="var"
path="M2_REPO/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar"/>
- <classpathentry kind="var"
path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
- <classpathentry combineaccessrules="false" kind="src"
path="/wicket-auth-roles"/>
+ <classpathentry kind="src" output="target/test-classes"
path="src/test/java"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var"
path="M2_REPO/mx4j/mx4j/3.0.1/mx4j-3.0.1.jar"
sourcepath="M2_REPO/mx4j/mx4j/3.0.1/mx4j-3.0.1-sources.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"
sourcepath="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-sources.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/org/mortbay/jetty/jetty/6.0.1/jetty-6.0.1.jar"
sourcepath="M2_REPO/org/mortbay/jetty/jetty/6.0.1/jetty-6.0.1-sources.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/org/mortbay/jetty/jetty-management/6.0.1/jetty-management-6.0.1.jar"
sourcepath="M2_REPO/org/mortbay/jetty/jetty-management/6.0.1/jetty-management-6.0.1-sources.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar"
sourcepath="M2_REPO/javax/servlet/servlet-api/2.3/servlet-api-2.3-sources.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/org/mortbay/jetty/servlet-api-2.5/6.0.1/servlet-api-2.5-6.0.1.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/mx4j/mx4j-tools/3.0.1/mx4j-tools-3.0.1.jar"
sourcepath="M2_REPO/mx4j/mx4j-tools/3.0.1/mx4j-tools-3.0.1-sources.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13.jar"
sourcepath="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13-sources.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/javax/portlet/portlet-api/1.0/portlet-api-1.0.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"
sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/org/mortbay/jetty/jetty-util/6.0.1/jetty-util-6.0.1.jar"
sourcepath="M2_REPO/org/mortbay/jetty/jetty-util/6.0.1/jetty-util-6.0.1-sources.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/wicket"/>
+ <classpathentry combineaccessrules="false" kind="src"
path="/wicket-auth-roles"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
Modified:
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.project
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.project?view=diff&rev=500083&r1=500082&r2=500083
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.project
(original)
+++ incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.project
Thu Jan 25 17:37:00 2007
@@ -10,6 +10,5 @@
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
- <nature>com.sysdeo.eclipse.tomcat.tomcatnature</nature>
</natures>
</projectDescription>
Added:
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.settings/org.eclipse.jdt.core.prefs
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.settings/org.eclipse.jdt.core.prefs?view=auto&rev=500083
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.settings/org.eclipse.jdt.core.prefs
(added)
+++
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/.settings/org.eclipse.jdt.core.prefs
Thu Jan 25 17:37:00 2007
@@ -0,0 +1,5 @@
+#Thu Jan 25 17:33:51 PST 2007
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
Modified:
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/pom.xml?view=diff&rev=500083&r1=500082&r2=500083
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/pom.xml
(original)
+++ incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/pom.xml Thu
Jan 25 17:37:00 2007
@@ -42,6 +42,21 @@
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-auth-roles</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty</artifactId>
+ <version>6.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-util</artifactId>
+ <version>6.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-management</artifactId>
+ <version>6.0.1</version>
+ </dependency>
</dependencies>
<build>
Added:
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/src/main/java/wicket/authentication/example/StartExamples.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/src/main/java/wicket/authentication/example/StartExamples.java?view=auto&rev=500083
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/src/main/java/wicket/authentication/example/StartExamples.java
(added)
+++
incubator/wicket/branches/wicket-1.x/wicket-auth-roles-examples/src/main/java/wicket/authentication/example/StartExamples.java
Thu Jan 25 17:37:00 2007
@@ -0,0 +1,68 @@
+/*
+ * $Id: StartExamples.java 461192 2006-06-28 08:37:16 +0200 (Wed, 28 Jun 2006)
+ * ehillenius $ $Revision: 474214 $ $Date: 2006-06-28 08:37:16 +0200 (Wed, 28
+ * Jun 2006) $
+ *
+ *
==============================================================================
+ * 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
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
under
+ * the License.
+ */
+package wicket.authentication.example;
+
+import org.mortbay.jetty.Connector;
+import org.mortbay.jetty.Server;
+import org.mortbay.jetty.nio.SelectChannelConnector;
+import org.mortbay.jetty.webapp.WebAppContext;
+
+/**
+ * Seperate startup class for people that want to run the examples directly.
Use
+ * parameter -Dcom.sun.management.jmxremote to startup JMX (and e.g. connect
+ * with jconsole).
+ */
+public class StartExamples {
+ /**
+ * Main function, starts the jetty server.
+ *
+ * @param args
+ */
+ public static void main(String[] args) {
+ Server server = new Server();
+ SelectChannelConnector connector = new SelectChannelConnector();
+ connector.setPort(8080);
+ server.setConnectors(new Connector[] { connector });
+
+ WebAppContext web = new WebAppContext();
+ web.setContextPath("/wicket-examples");
+ web.setWar("src/main/webapp");
+ server.addHandler(web);
+
+ // MBeanServer mBeanServer =
ManagementFactory.getPlatformMBeanServer();
+ // MBeanContainer mBeanContainer = new
MBeanContainer(mBeanServer);
+ // server.getContainer().addEventListener(mBeanContainer);
+ // mBeanContainer.start();
+
+ try {
+ server.start();
+ server.join();
+ } catch (Exception e) {
+ e.printStackTrace();
+ System.exit(100);
+ }
+ }
+
+ /**
+ * Construct.
+ */
+ StartExamples() {
+ super();
+ }
+}