Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

move JSTL sample to a dedicated folder

  • Loading branch information...
commit a4420216b7a2938fe1a8b682c717039d49469b2a 1 parent ccffa07
@benas benas authored
View
10 samples/README.md → samples/jstl/README.md
@@ -1,6 +1,4 @@
-## This module contains PrettyTime integration samples
-
-### JSTL integration sample
+## This folder contains PrettyTime JSTL integration sample
To use PrettyTime JSTL tag, you simply have to :
@@ -39,8 +37,4 @@ You should see the following output:
PrettyTime JSTL Integration Sample
PrettyTime date : moments ago
-```
-
-### JSF integration sample
-
-// TODO
+```
View
71 samples/jstl/pom.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>prettytime-samples</artifactId>
+ <groupId>org.ocpsoft.prettytime</groupId>
+ <version>3.2.5-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>sample-jstl</artifactId>
+ <name>PrettyTime - Integration - Samples - JSTL</name>
+ <description>A usage sample of PrettyTime JSTL integration module</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-server</artifactId>
+ <version>7.2.2.v20101205</version>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-webapp</artifactId>
+ <version>7.2.2.v20101205</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-jsp-2.1</artifactId>
+ <version>7.2.2.v20101205</version>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jsp-2.1-glassfish</artifactId>
+ <version>2.1.v20100127</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.ocpsoft.prettytime</groupId>
+ <artifactId>prettytime-integration-jstl</artifactId>
+ <version>3.2.5-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+
+ <!-- profile to run the JSTL integration sample -->
+ <profile>
+ <id>runJstlSample</id>
+ <build>
+ <defaultGoal>exec:java</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <configuration>
+ <mainClass>org.ocpsoft.prettytime.samples.jstl.JstlSampleLauncher</mainClass>
+ <arguments>
+ <argument>${project.basedir}/src/main/webapp/</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+
+</project>
View
0  ...ocpsoft/prettytime/samples/jstl/IndexServlet.java → ...ocpsoft/prettytime/samples/jstl/IndexServlet.java
File renamed without changes
View
0  ...t/prettytime/samples/jstl/JstlSampleLauncher.java → ...t/prettytime/samples/jstl/JstlSampleLauncher.java
File renamed without changes
View
0  samples/src/main/webapp/WEB-INF/index.jsp → samples/jstl/src/main/webapp/WEB-INF/index.jsp
File renamed without changes
View
0  samples/src/main/webapp/WEB-INF/web.xml → samples/jstl/src/main/webapp/WEB-INF/web.xml
File renamed without changes
View
57 samples/pom.xml
@@ -10,62 +10,13 @@
</parent>
<modelVersion>4.0.0</modelVersion>
+ <packaging>pom</packaging>
<artifactId>prettytime-samples</artifactId>
<name>PrettyTime - Integration - Samples</name>
<description>PrettyTime integration samples module</description>
- <dependencies>
- <dependency>
- <groupId>org.eclipse.jetty</groupId>
- <artifactId>jetty-server</artifactId>
- <version>7.2.2.v20101205</version>
- </dependency>
- <dependency>
- <groupId>org.eclipse.jetty</groupId>
- <artifactId>jetty-webapp</artifactId>
- <version>7.2.2.v20101205</version>
- </dependency>
-
- <dependency>
- <groupId>org.eclipse.jetty</groupId>
- <artifactId>jetty-jsp-2.1</artifactId>
- <version>7.2.2.v20101205</version>
- </dependency>
- <dependency>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jsp-2.1-glassfish</artifactId>
- <version>2.1.v20100127</version>
- </dependency>
-
- <dependency>
- <groupId>org.ocpsoft.prettytime</groupId>
- <artifactId>prettytime-integration-jstl</artifactId>
- <version>3.2.5-SNAPSHOT</version>
- </dependency>
- </dependencies>
-
- <profiles>
-
- <!-- profile to run the JSTL integration sample -->
- <profile>
- <id>runJstlSample</id>
- <build>
- <defaultGoal>exec:java</defaultGoal>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.2.1</version>
- <configuration>
- <mainClass>org.ocpsoft.prettytime.samples.jstl.JstlSampleLauncher</mainClass>
- <arguments>
- <argument>${project.basedir}/src/main/webapp/</argument>
- </arguments>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
+ <modules>
+ <module>jstl</module>
+ </modules>
</project>
Please sign in to comment.
Something went wrong with that request. Please try again.