You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2007/08/15 20:30:37 UTC
svn commit: r566293 - in /wicket/trunk/archetypes/quickstart: .settings/
src/main/resources/archetype-resources/src/main/java/
src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
src/main/resources/archetype-resources/src/test/java/
Author: ivaynberg
Date: Wed Aug 15 11:30:36 2007
New Revision: 566293
URL: http://svn.apache.org/viewvc?view=rev&rev=566293
Log:
WICKET-837
Added:
wicket/trunk/archetypes/quickstart/.settings/
wicket/trunk/archetypes/quickstart/.settings/org.eclipse.jdt.core.prefs (with props)
Modified:
wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.java
wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java
wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/Start.java
Added: wicket/trunk/archetypes/quickstart/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/wicket/trunk/archetypes/quickstart/.settings/org.eclipse.jdt.core.prefs?view=auto&rev=566293
==============================================================================
--- wicket/trunk/archetypes/quickstart/.settings/org.eclipse.jdt.core.prefs (added)
+++ wicket/trunk/archetypes/quickstart/.settings/org.eclipse.jdt.core.prefs Wed Aug 15 11:30:36 2007
@@ -0,0 +1,5 @@
+#Fri Jul 13 09:55:10 PDT 2007
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.4
+org.eclipse.jdt.core.compiler.compliance=1.4
Propchange: wicket/trunk/archetypes/quickstart/.settings/org.eclipse.jdt.core.prefs
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.java
URL: http://svn.apache.org/viewvc/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.java?view=diff&rev=566293&r1=566292&r2=566293
==============================================================================
--- wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.java (original)
+++ wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.java Wed Aug 15 11:30:36 2007
@@ -1,29 +1,29 @@
-package ${groupId};
-
-import org.apache.wicket.PageParameters;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.WebPage;
-
-/**
- * Homepage
- */
-public class HomePage extends WebPage {
-
- private static final long serialVersionUID = 1L;
-
- // TODO Add any page properties or variables here
-
- /**
- * Constructor that is invoked when page is invoked without a session.
- *
- * @param parameters
- * Page parameters
- */
- public HomePage(final PageParameters parameters) {
-
- // Add the simplest type of label
- add(new Label("message", "If you see this message wicket is properly configured and running"));
-
- // TODO Add your page's components here
- }
-}
+package ${packageName};
+
+import org.apache.wicket.PageParameters;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.WebPage;
+
+/**
+ * Homepage
+ */
+public class HomePage extends WebPage {
+
+ private static final long serialVersionUID = 1L;
+
+ // TODO Add any page properties or variables here
+
+ /**
+ * Constructor that is invoked when page is invoked without a session.
+ *
+ * @param parameters
+ * Page parameters
+ */
+ public HomePage(final PageParameters parameters) {
+
+ // Add the simplest type of label
+ add(new Label("message", "If you see this message wicket is properly configured and running"));
+
+ // TODO Add your page's components here
+ }
+}
Modified: wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java
URL: http://svn.apache.org/viewvc/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java?view=diff&rev=566293&r1=566292&r2=566293
==============================================================================
--- wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java (original)
+++ wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java Wed Aug 15 11:30:36 2007
@@ -1,27 +1,27 @@
-package ${groupId};
-
-import org.apache.wicket.protocol.http.WebApplication;
-
-/**
- * Application object for your web application. If you want to run this application without deploying, run the Start class.
- *
- * @see wicket.myproject.Start#main(String[])
- */
-public class WicketApplication extends WebApplication
-{
- /**
- * Constructor
- */
- public WicketApplication()
- {
- }
-
- /**
- * @see wicket.Application#getHomePage()
- */
- public Class getHomePage()
- {
- return HomePage.class;
- }
-
-}
\ No newline at end of file
+package ${packageName};
+
+import org.apache.wicket.protocol.http.WebApplication;
+
+/**
+ * Application object for your web application. If you want to run this application without deploying, run the Start class.
+ *
+ * @see wicket.myproject.Start#main(String[])
+ */
+public class WicketApplication extends WebApplication
+{
+ /**
+ * Constructor
+ */
+ public WicketApplication()
+ {
+ }
+
+ /**
+ * @see wicket.Application#getHomePage()
+ */
+ public Class getHomePage()
+ {
+ return HomePage.class;
+ }
+
+}
Modified: wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml?view=diff&rev=566293&r1=566292&r2=566293
==============================================================================
--- wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml (original)
+++ wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml Wed Aug 15 11:30:36 2007
@@ -21,7 +21,7 @@
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
<init-param>
<param-name>applicationClassName</param-name>
- <param-value>${groupId}.WicketApplication</param-value>
+ <param-value>${packageName}.WicketApplication</param-value>
</init-param>
</filter>
Modified: wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/Start.java
URL: http://svn.apache.org/viewvc/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/Start.java?view=diff&rev=566293&r1=566292&r2=566293
==============================================================================
--- wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/Start.java (original)
+++ wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/Start.java Wed Aug 15 11:30:36 2007
@@ -1,43 +1,43 @@
-package ${groupId};
-
-import org.mortbay.jetty.Connector;
-import org.mortbay.jetty.Server;
-import org.mortbay.jetty.bio.SocketConnector;
-import org.mortbay.jetty.webapp.WebAppContext;
-
-public class Start {
-
- public static void main(String[] args) throws Exception {
- Server server = new Server();
- SocketConnector connector = new SocketConnector();
- connector.setPort(8080);
- server.setConnectors(new Connector[] { connector });
-
- WebAppContext bb = new WebAppContext();
- bb.setServer(server);
- bb.setContextPath("/${artifactId}");
- bb.setWar("src/main/webapp");
-
-
- // START JMX SERVER
- // MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
- // MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer);
- // server.getContainer().addEventListener(mBeanContainer);
- // mBeanContainer.start();
-
- server.addHandler(bb);
-
- try {
- System.out.println(">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP");
- server.start();
- while (System.in.available() == 0) {
- Thread.sleep(5000);
- }
- server.stop();
- server.join();
- } catch (Exception e) {
- e.printStackTrace();
- System.exit(100);
- }
- }
-}
+package ${packageName};
+
+import org.mortbay.jetty.Connector;
+import org.mortbay.jetty.Server;
+import org.mortbay.jetty.bio.SocketConnector;
+import org.mortbay.jetty.webapp.WebAppContext;
+
+public class Start {
+
+ public static void main(String[] args) throws Exception {
+ Server server = new Server();
+ SocketConnector connector = new SocketConnector();
+ connector.setPort(8080);
+ server.setConnectors(new Connector[] { connector });
+
+ WebAppContext bb = new WebAppContext();
+ bb.setServer(server);
+ bb.setContextPath("/${artifactId}");
+ bb.setWar("src/main/webapp");
+
+
+ // START JMX SERVER
+ // MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
+ // MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer);
+ // server.getContainer().addEventListener(mBeanContainer);
+ // mBeanContainer.start();
+
+ server.addHandler(bb);
+
+ try {
+ System.out.println(">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP");
+ server.start();
+ while (System.in.available() == 0) {
+ Thread.sleep(5000);
+ }
+ server.stop();
+ server.join();
+ } catch (Exception e) {
+ e.printStackTrace();
+ System.exit(100);
+ }
+ }
+}