jsptest-svn-commits Mailing List for JspTest (Page 4)
Status: Alpha
Brought to you by:
lkoskela
You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(3) |
Feb
|
Mar
(2) |
Apr
(38) |
May
(1) |
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(17) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(10) |
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
(5) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <lko...@us...> - 2008-04-09 17:39:04
|
Revision: 201 http://jsptest.svn.sourceforge.net/jsptest/?rev=201&view=rev Author: lkoskela Date: 2008-04-09 10:38:59 -0700 (Wed, 09 Apr 2008) Log Message: ----------- Added javadocs Modified Paths: -------------- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/AbstractAssertion.java trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/AlwaysAcceptChooser.java trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/DOMAssertion.java trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/ElementAssertion.java trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/ElementChooser.java trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/ExpectedAssertionFailure.java trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/FormAssertion.java trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/FormFieldAssertion.java trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/LinkAssertion.java Modified: trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/AbstractAssertion.java =================================================================== --- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/AbstractAssertion.java 2008-04-04 12:53:08 UTC (rev 200) +++ trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/AbstractAssertion.java 2008-04-09 17:38:59 UTC (rev 201) @@ -2,24 +2,69 @@ import junit.framework.Assert; +/** + * Base class providing common assertion methods for concrete subclasses. + * + * @author Lasse Koskela + */ public abstract class AbstractAssertion { + /** + * Assert that the given substring (needle) is present in the given string + * (haystack). + * + * @param message + * The optional failure message. + * @param haystack + * The string to find the substring from. + * @param needle + * The substring to find from the haystack. + */ protected void assertContains(String message, String haystack, String needle) { Assert.assertTrue(message, contains(haystack, needle)); } + /** + * Assert that the given substring (needle) is present in the given string + * (haystack). + * + * @param haystack + * The string to find the substring from. + * @param needle + * The substring to find from the haystack. + */ protected void assertContains(String haystack, String needle) { String message = "Expected text <" + needle + "> was not found from <" + haystack + ">"; assertContains(message, haystack, needle); } + /** + * Assert that the given substring (needle) is <i>not</i> present in the + * given string (haystack). + * + * @param message + * The optional failure message. + * @param haystack + * The string to find the substring from. + * @param needle + * The substring to find from the haystack. + */ protected void assertDoesNotContain(String message, String haystack, String needle) { Assert.assertFalse(message, contains(haystack, needle)); } + /** + * Assert that the given substring (needle) is <i>not</i> present in the + * given string (haystack). + * + * @param haystack + * The string to find the substring from. + * @param needle + * The substring to find from the haystack. + */ protected void assertDoesNotContain(String haystack, String needle) { assertDoesNotContain("Expected text <" + needle + "> not to be found from <" + haystack + ">", @@ -29,5 +74,4 @@ private boolean contains(String haystack, String needle) { return haystack.indexOf(needle) > -1; } - } Modified: trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/AlwaysAcceptChooser.java =================================================================== --- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/AlwaysAcceptChooser.java 2008-04-04 12:53:08 UTC (rev 200) +++ trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/AlwaysAcceptChooser.java 2008-04-09 17:38:59 UTC (rev 201) @@ -3,6 +3,8 @@ import org.w3c.dom.Element; /** + * An <tt>ElementChooser</tt> that always accepts any offered <tt>Element</tt>. + * * @author Lasse Koskela */ public class AlwaysAcceptChooser implements ElementChooser { Modified: trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/DOMAssertion.java =================================================================== --- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/DOMAssertion.java 2008-04-04 12:53:08 UTC (rev 200) +++ trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/DOMAssertion.java 2008-04-09 17:38:59 UTC (rev 201) @@ -10,30 +10,61 @@ import org.w3c.dom.Element; /** + * Base class providing assertion methods related to the HTML DOM tree. + * * @author Lasse Koskela */ public abstract class DOMAssertion extends AbstractAssertion { protected Element context; + /** + * Returns the <tt>Element</tt> as the context of assertions. + */ public Element getElement() { return context; } + /** + * Assert that the selected DOM element contains the given text. + * + * @param text + * The (partial) content that should be found. + */ public void shouldContain(String text) { assertContains(context.getTextContent(), text); } + /** + * Assert that the selected DOM element does not contain the given text. + * + * @param text + * The (partial) content that should not be found. + */ public void shouldNotContain(String text) { assertDoesNotContain(context.getTextContent(), text); } + /** + * Assert that the selected DOM element contains the given element. + * + * @param xpathExpression + * An XPath expression describing the expected child element. + */ public void shouldContainElement(String xpathExpression) { shouldContainElement("No matching nodes found for XPath: " + xpathExpression + " from\n" + getContextAsString(), xpathExpression); } + /** + * Assert that the selected DOM element contains the given element. + * + * @param message + * The optional failure message. + * @param xpathExpression + * An XPath expression describing the expected child element. + */ public void shouldContainElement(String message, String xpathExpression) { try { @@ -45,6 +76,9 @@ } } + /** + * Renders the content of the selected element as a <tt>String</tt>. + */ protected String getContextAsString() { return XML.toString(context); } Modified: trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/ElementAssertion.java =================================================================== --- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/ElementAssertion.java 2008-04-04 12:53:08 UTC (rev 200) +++ trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/ElementAssertion.java 2008-04-09 17:38:59 UTC (rev 201) @@ -8,10 +8,21 @@ import org.w3c.dom.Element; /** + * Collection of HTML-related assertion methods specifically applicable to + * "element" nodes in a DOM tree. + * * @author Lasse Koskela */ public class ElementAssertion extends DOMAssertion { + /** + * @param content + * The <tt>Document</tt> serving as the context for the + * assertion. + * @param xpathExpression + * The XPath expression that identifies the element, which + * the subsequent assertion methods should be applied to. + */ public ElementAssertion(Document content, String xpathExpression) { this.context = content.getDocumentElement(); try { Modified: trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/ElementChooser.java =================================================================== --- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/ElementChooser.java 2008-04-04 12:53:08 UTC (rev 200) +++ trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/ElementChooser.java 2008-04-09 17:38:59 UTC (rev 201) @@ -3,9 +3,20 @@ import org.w3c.dom.Element; /** + * An interface for building a variety of element selection rules. + * * @author Lasse Koskela */ public interface ElementChooser { + /** + * Indicates whether this particular <tt>ElementChooser</tt> accepts the + * given <tt>Element</tt>. + * + * @param element + * The candidate <tt>Element</tt>. + * @return <tt>true</tt> if this <tt>ElementChooser</tt> accepts the + * given <tt>Element</tt>, <tt>false</tt> otherwise. + */ boolean accept(Element element); } Modified: trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/ExpectedAssertionFailure.java =================================================================== --- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/ExpectedAssertionFailure.java 2008-04-04 12:53:08 UTC (rev 200) +++ trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/ExpectedAssertionFailure.java 2008-04-09 17:38:59 UTC (rev 201) @@ -40,14 +40,29 @@ verify(message); } + /** + * Gives access to a <tt>PageAssertion</tt> object, enabling page-oriented + * (HTML) assertions. + */ protected PageAssertion page() { return testcase.page(); } + /** + * Gives access to an <tt>OutputAssertion</tt> object, enabling raw + * output-oriented assertions. + */ protected OutputAssertion output() { return testcase.output(); } + /** + * Gives access to an <tt>ElementAssertion</tt> object for the HTML + * element identified by the given XPath expression. + * + * @param xpath + * @return + */ protected ElementAssertion element(String xpath) { return testcase.element(xpath); } @@ -67,6 +82,12 @@ } } + /** + * Thrown from an assertion method indicating that the wrong kind of + * exception was thrown by the code under test. + * + * @author Lasse Koskela + */ public static class IncorrectExceptionError extends RuntimeException { public IncorrectExceptionError(String message, Throwable e) { @@ -74,6 +95,14 @@ } } + /** + * Thrown from an assertion method indicating that no exception was thrown + * by the code under test against the expectations. This class is only used + * internally and is never passed to client code (test written by a JspTest + * user). + * + * @author Lasse Koskela + */ private static class NoExceptionWasThrown extends Exception { } } Modified: trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/FormAssertion.java =================================================================== --- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/FormAssertion.java 2008-04-04 12:53:08 UTC (rev 200) +++ trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/FormAssertion.java 2008-04-09 17:38:59 UTC (rev 201) @@ -13,12 +13,22 @@ import org.w3c.dom.NodeList; /** + * Provides form-related assertion methods. + * * @author Lasse Koskela */ public class FormAssertion { private final List forms; + /** + * @param document + * The context from where to select the form as the context + * for subsequent assertion methods. + * @param chooser + * The <tt>ElementChooser</tt> to use for selecting the + * form. + */ public FormAssertion(Document document, ElementChooser chooser) { this.forms = new ArrayList(); NodeList elements = document.getElementsByTagName("FORM"); @@ -33,6 +43,12 @@ } } + /** + * Assert that the form has a field by the given name. + * + * @param name + * The name of the expected form field. + */ public void shouldHaveField(String name) { for (Iterator i = forms.iterator(); i.hasNext();) { Form form = (Form) i.next(); @@ -43,6 +59,12 @@ Assert.fail("No form field '" + name + "' on page"); } + /** + * Assert that the form has a submit button by the given name or label. + * + * @param nameOrLabel + * The name or label of the expected submit button. + */ public void shouldHaveSubmitButton(String nameOrLabel) { for (Iterator i = forms.iterator(); i.hasNext();) { Form form = (Form) i.next(); @@ -54,6 +76,9 @@ + "' on page"); } + /** + * Assert that the form has a submit button. + */ public void shouldHaveSubmitButton() { for (Iterator i = forms.iterator(); i.hasNext();) { Form form = (Form) i.next(); @@ -64,6 +89,13 @@ Assert.fail("No form submit button on page"); } + /** + * Gives access to form field-specific assertions such as: + * <code>form("name").field("name").shouldHaveValue("foo");</code> + * + * @param fieldName + * The name of the field. + */ public FormFieldAssertion field(String fieldName) { shouldHaveField(fieldName); return new FormFieldAssertion(forms, fieldName); Modified: trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/FormFieldAssertion.java =================================================================== --- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/FormFieldAssertion.java 2008-04-04 12:53:08 UTC (rev 200) +++ trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/FormFieldAssertion.java 2008-04-09 17:38:59 UTC (rev 201) @@ -9,6 +9,8 @@ import net.sf.jsptest.html.FormField; /** + * Provides form field-oriented assertion methods. + * * @author Lasse Koskela */ public class FormFieldAssertion { @@ -17,6 +19,14 @@ private final String fieldName; + /** + * @param forms + * The list of forms that should be considered the context + * for the subsequent assertion methods. + * @param fieldName + * The name of the form field that should be considered the + * context for the subsequent assertion methods. + */ public FormFieldAssertion(List forms, String fieldName) { this.fieldName = fieldName; this.fields = new ArrayList(); @@ -28,6 +38,12 @@ } } + /** + * Assert that the selected form field has the given value. + * + * @param expectedValue + * The expected value. + */ public void shouldHaveValue(String expectedValue) { List actuals = new ArrayList(); for (Iterator i = fields.iterator(); i.hasNext();) { Modified: trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/LinkAssertion.java =================================================================== --- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/LinkAssertion.java 2008-04-04 12:53:08 UTC (rev 200) +++ trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/assertion/LinkAssertion.java 2008-04-09 17:38:59 UTC (rev 201) @@ -2,18 +2,44 @@ import org.w3c.dom.Element; +/** + * Provides assertion methods related to HTML anchors/links. + * + * @author Lasse Koskela + */ public class LinkAssertion extends DOMAssertion { + /** + * @param context + * The link element to serve as the context for subsequent + * assertion methods. + */ public LinkAssertion(Element context) { this.context = context; } + /** + * Assert that the selected link has the exact given label. Used in the + * following way: + * <code>page().shouldHaveLink().withText("click here");</code> + * + * @param labelText + * The expected label (has to be an exact match). + */ public void withText(String labelText) { shouldContainElement("Link with text '" + labelText + "' was not found from " + getContextAsString(), "//A[text()='" + labelText + "']"); } + /** + * Assert that the selected link's label contains the given text. Used in + * the following way: + * <code>page().shouldHaveLink().withPartialText("click");</code> + * + * @param substringOfLabelText + * The substring that the label is expected to contain. + */ public void withPartialText(String substringOfLabelText) { shouldContainElement("Link with partial text '" + substringOfLabelText + "' was not found from " @@ -21,54 +47,120 @@ + substringOfLabelText + "')]"); } + /** + * Assert that the selected link has the exact given name (that is, the + * "name" attribute). Used in the following way: + * <code>page().shouldHaveLink().withName("link_confirm_purchase");</code> + * + * @param name + * The expected value of the "name" attribute of the link + * element. + */ public void withName(String name) { shouldContainElement("Link with name '" + name + "' was not found from " + getContextAsString(), "//A[@NAME='" + name + "']"); } + /** + * Assert that the selected link has the exact given ID. Used in the + * following way: + * <code>page().shouldHaveLink().withId("link_confirm_purchase");</code> + * + * @param id + * The expected value of the "id" attribute of the link + * element. + */ public void withId(String id) { shouldContainElement("Link with ID '" + id + "' was not found from " + getContextAsString(), "//A[@ID='" + id + "']"); } + /** + * Assert that the selected link points to the given URL. + * + * @param url + * The expected URL to compare to the link element's "href" + * attribute. + */ public void withHref(String url) { shouldContainElement("Link pointing to " + url + " was not found from " + getContextAsString(), "//A[@HREF='" + url + "']"); } + /** + * Assert that the selected link has been styled with the given CSS class. + * + * @param cssClass + * The expected value of the link element's "class" + * attribute. + */ public void withClass(String cssClass) { shouldContainElement("Link with CSS class '" + cssClass + "' was not found from " + getContextAsString(), "//A[@CLASS='" + cssClass + "']"); } + /** + * Assert that the selected link wraps an image by the given ID. + * + * @param id + * The expected ID of the wrapped image. + */ public void withImageId(String id) { shouldContainElement("Image link with image ID '" + id + "' was not found from " + getContextAsString(), "//A/IMG[@ID='" + id + "']"); } + /** + * Assert that the selected link wraps an image by the given title (that is, + * the "title" attribute of the <tt>img</tt> element). + * + * @param title + * The expected title of the wrapped image. + */ public void withImageTitle(String title) { shouldContainElement("Image link with image titled '" + title + "' was not found from " + getContextAsString(), "//A/IMG[@TITLE='" + title + "']"); } + /** + * Assert that the selected link wraps an image by the given name (that is, + * the "name" attribute of the <tt>img</tt> element). + * + * @param name + * The expected name of the wrapped image. + */ public void withImageName(String name) { shouldContainElement("Image link with image named '" + name + "' was not found from " + getContextAsString(), "//A/IMG[@NAME='" + name + "']"); } + /** + * Assert that the selected link wraps an image at the given URL. + * + * @param url + * The expected URL ("src" attribute) of the wrapped image. + */ public void withImageSrc(String url) { shouldContainElement("Image link with image URL '" + url + "' was not found from " + getContextAsString(), "//A/IMG[@SRC='" + url + "']"); } + /** + * Assert that the selected link wraps an image by the given file name. + * + * @param filename + * The expected file name of the wrapped image. Can be just + * the base name (e.g. "apple.gif") or a partial path to the + * image (e.g. "images/press/chairman.jpg"). + */ public void withImageFileName(String filename) { shouldContainElement( "Image link with the image URL ending with '" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-04-04 12:53:13
|
Revision: 200 http://jsptest.svn.sourceforge.net/jsptest/?rev=200&view=rev Author: lkoskela Date: 2008-04-04 05:53:08 -0700 (Fri, 04 Apr 2008) Log Message: ----------- Refactored TLD location mapping into a separate class. Fixed ClasspathTldLocator. Modified Paths: -------------- trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ClasspathTldLocator.java trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/MockTldLocationsCache.java Added Paths: ----------- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TldUriMappings.java trunk/jsptest-jsp20/src/test/java/net/sf/jsptest/compiler/jsp20/mock/ trunk/jsptest-jsp20/src/test/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ trunk/jsptest-jsp20/src/test/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TestClasspathTldLocator.java trunk/jsptest-jsp20/src/test/resources/META-INF/ trunk/jsptest-jsp20/src/test/resources/META-INF/MANIFEST.MF trunk/jsptest-jsp20/src/test/resources/META-INF/exists.tld Removed Paths: ------------- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/MockTldLocationsCache.java Modified: trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml 2008-04-04 07:01:10 UTC (rev 199) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml 2008-04-04 12:53:08 UTC (rev 200) @@ -7,7 +7,7 @@ </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-acceptance-jsp21</artifactId> - <version>0.13-SNAPSHOT</version> + <version>0.14-SNAPSHOT</version> <packaging>jar</packaging> <name>Acceptance tests for the JspTest variant for the JSP 2.1 specification.</name> <description /> Deleted: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/MockTldLocationsCache.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/MockTldLocationsCache.java 2008-04-04 07:01:10 UTC (rev 199) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/MockTldLocationsCache.java 2008-04-04 12:53:08 UTC (rev 200) @@ -1,72 +0,0 @@ -/* - * Copyright 2007 Lasse Koskela. - * - * 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 net.sf.jsptest.compiler.jsp20.mock; - -import java.util.HashMap; -import java.util.Map; - -import javax.servlet.ServletContext; - -import org.apache.jasper.JasperException; -import org.apache.jasper.compiler.TldLocationsCache; - -/** - * @author Lasse Koskela - */ -public class MockTldLocationsCache extends TldLocationsCache { - private Map standardTlds = new HashMap() { - { - put("http://java.sun.com/jstl/core", "/WEB-INF/c.tld"); - put("http://java.sun.com/jstl/sql", "/WEB-INF/sql.tld"); - put("http://java.sun.com/jstl/xml", "/WEB-INF/x.tld"); - put("http://java.sun.com/jstl/functions", - "/WEB-INF/fn.tld"); - put("http://java.sun.com/jstl/fmt", "/WEB-INF/fmt.tld"); - put("http://java.sun.com/jsp/jstl/core", "/WEB-INF/c.tld"); - put("http://java.sun.com/jsp/jstl/sql", - "/WEB-INF/sql.tld"); - put("http://java.sun.com/jsp/jstl/xml", "/WEB-INF/x.tld"); - put("http://java.sun.com/jsp/jstl/functions", - "/WEB-INF/fn.tld"); - put("http://java.sun.com/jsp/jstl/fmt", - "/WEB-INF/fmt.tld"); - } - }; - - private TldLocationsCache realCache; - - public MockTldLocationsCache(TldLocationsCache delegate, - ServletContext ctx) { - this(delegate, ctx, true); - } - - public MockTldLocationsCache(TldLocationsCache delegate, - ServletContext ctx, boolean redeployMode) { - super(ctx, redeployMode); - this.realCache = delegate; - } - - public String[] getLocation(String uri) throws JasperException { - // TODO: Optimize. This call to getLocation(String) can take a full second. - String[] location = realCache.getLocation(uri); - if (location == null && standardTlds.containsKey(uri)) { - location = new String[] { (String) standardTlds.get(uri), - null }; - } - return location; - } -} Modified: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ClasspathTldLocator.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ClasspathTldLocator.java 2008-04-04 07:01:10 UTC (rev 199) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ClasspathTldLocator.java 2008-04-04 12:53:08 UTC (rev 200) @@ -20,16 +20,16 @@ public class ClasspathTldLocator implements TldLocator { - public TldLocation find(String filename) { - try { - String pathInsideArchive = "META-INF/" + filename; - URL resource = getClass().getResource(pathInsideArchive); - if (resource != null) { - return TldLocation.foundFromClassPath(resource, - pathInsideArchive); - } - } catch (Exception ignored) { - } - return TldLocation.notFound(); - } + public TldLocation find(String filename) { + try { + String pathInsideArchive = "/META-INF/" + filename; + URL resource = getClass().getResource(pathInsideArchive); + if (resource != null) { + return TldLocation.foundFromClassPath(resource, + pathInsideArchive); + } + } catch (Exception ignored) { + } + return TldLocation.notFound(); + } } \ No newline at end of file Modified: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/MockTldLocationsCache.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/MockTldLocationsCache.java 2008-04-04 07:01:10 UTC (rev 199) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/MockTldLocationsCache.java 2008-04-04 12:53:08 UTC (rev 200) @@ -16,8 +16,8 @@ package net.sf.jsptest.compiler.jsp20.mock.taglibs; -import java.util.HashMap; -import java.util.Map; +import java.util.Iterator; +import java.util.List; import javax.servlet.ServletContext; @@ -29,58 +29,46 @@ */ public class MockTldLocationsCache extends TldLocationsCache { - private Map standardTlds = new HashMap() { - { - put("http://java.sun.com/jstl/core", "c.tld"); - put("http://java.sun.com/jstl/sql", "sql.tld"); - put("http://java.sun.com/jstl/xml", "x.tld"); - put("http://java.sun.com/jstl/fmt", "fmt.tld"); - put("http://java.sun.com/jstl/functions", "fn.tld"); + private TldUriMappings standardTlds; - put("http://java.sun.com/jstl/core-rt", "c-rt.tld"); - put("http://java.sun.com/jstl/sql-rt", "sql-rt.tld"); - put("http://java.sun.com/jstl/xml-rt", "x-rt.tld"); - put("http://java.sun.com/jstl/fmt-rt", "fmt-rt.tld"); - put("http://java.sun.com/jstl/functions-rt", "fn-rt.tld"); + private TldLocationsCache realCache; - put("http://java.sun.com/jsp/jstl/core", "c.tld"); - put("http://java.sun.com/jsp/jstl/sql", "sql.tld"); - put("http://java.sun.com/jsp/jstl/xml", "x.tld"); - put("http://java.sun.com/jsp/jstl/fmt", "fmt.tld"); - put("http://java.sun.com/jsp/jstl/functions", "fn.tld"); - } - }; + private String webRoot; - private TldLocationsCache realCache; + private TldLocator[] locators; - private String webRoot; + public MockTldLocationsCache(TldLocationsCache delegate, + ServletContext ctx) { + this(delegate, ctx, true); + } - private TldLocator[] locators; + public MockTldLocationsCache(TldLocationsCache delegate, + ServletContext ctx, boolean redeployMode) { + super(ctx, redeployMode); + realCache = delegate; + webRoot = ctx.getRealPath("/"); + standardTlds = new TldUriMappings(); + locators = new TldLocator[] { + new WebInfLibTldLocator(webRoot), + new ExplodedTldLocator(webRoot), + new ClasspathTldLocator() }; + } - public MockTldLocationsCache(TldLocationsCache delegate, ServletContext ctx) { - this(delegate, ctx, true); - } - - public MockTldLocationsCache(TldLocationsCache delegate, - ServletContext ctx, boolean redeployMode) { - super(ctx, redeployMode); - realCache = delegate; - webRoot = ctx.getRealPath("/"); - locators = new TldLocator[] { new WebInfLibTldLocator(webRoot), - new ExplodedTldLocator(webRoot), new ClasspathTldLocator() }; - } - - public String[] getLocation(String uri) throws JasperException { - // TODO: Optimize. Call to getLocation(String) can take a full second. - if (standardTlds.containsKey(uri)) { - String tldFileName = (String) standardTlds.get(uri); - for (int i = 0; i < locators.length; i++) { - TldLocation location = locators[i].find(tldFileName); - if (location.wasFound()) { - return location.toArray(); - } - } - } - return realCache.getLocation(uri); - } + public String[] getLocation(String uri) throws JasperException { + // TODO: Optimize. Call to getLocation(String) can take a full second. + if (standardTlds.contains(uri)) { + List tldFileNames = (List) standardTlds.get(uri); + for (Iterator it = tldFileNames.iterator(); it.hasNext();) { + String tldFileName = (String) it.next(); + for (int i = 0; i < locators.length; i++) { + TldLocation location = locators[i] + .find(tldFileName); + if (location.wasFound()) { + return location.toArray(); + } + } + } + } + return realCache.getLocation(uri); + } } Added: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TldUriMappings.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TldUriMappings.java (rev 0) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TldUriMappings.java 2008-04-04 12:53:08 UTC (rev 200) @@ -0,0 +1,59 @@ +package net.sf.jsptest.compiler.jsp20.mock.taglibs; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class TldUriMappings { + + private static final Map standardTlds = new HashMap(); + + static { + initialize(); + } + + private static void initialize() { + map("http://java.sun.com/jstl/core", "c.tld"); + map("http://java.sun.com/jstl/sql", "sql.tld"); + map("http://java.sun.com/jstl/xml", "x.tld"); + map("http://java.sun.com/jstl/fmt", "fmt.tld"); + map("http://java.sun.com/jstl/functions", "fn.tld"); + + map("http://java.sun.com/jsp/jstl/core", "c.tld"); + map("http://java.sun.com/jsp/jstl/sql", "sql.tld"); + map("http://java.sun.com/jsp/jstl/xml", "x.tld"); + map("http://java.sun.com/jsp/jstl/fmt", "fmt.tld"); + map("http://java.sun.com/jsp/jstl/functions", "fn.tld"); + + map("http://java.sun.com/jstl/core-rt", "c-rt.tld"); + map("http://java.sun.com/jstl/sql-rt", "sql-rt.tld"); + map("http://java.sun.com/jstl/xml-rt", "x-rt.tld"); + map("http://java.sun.com/jstl/fmt-rt", "fmt-rt.tld"); + map("http://java.sun.com/jstl/functions-rt", "fn-rt.tld"); + + map("http://java.sun.com/jstl/core-rt", "c-1_0-rt.tld"); + map("http://java.sun.com/jstl/sql-rt", "sql-1_0-rt.tld"); + map("http://java.sun.com/jstl/xml-rt", "x-1_0-rt.tld"); + map("http://java.sun.com/jstl/fmt-rt", "fmt-1_0-rt.tld"); + map("http://java.sun.com/jstl/functions-rt", "fn-1_0-rt.tld"); + } + + private static void map(String uri, String filename) { + List filenames = (List) standardTlds.get(uri); + if (filenames == null) { + filenames = new ArrayList(); + } + filenames.add(filename); + standardTlds.put(uri, filenames); + } + + public boolean contains(String uri) { + return standardTlds.containsKey(uri); + } + + public List get(String uri) { + return (List) standardTlds.get(uri); + } + +} Added: trunk/jsptest-jsp20/src/test/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TestClasspathTldLocator.java =================================================================== --- trunk/jsptest-jsp20/src/test/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TestClasspathTldLocator.java (rev 0) +++ trunk/jsptest-jsp20/src/test/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TestClasspathTldLocator.java 2008-04-04 12:53:08 UTC (rev 200) @@ -0,0 +1,22 @@ +package net.sf.jsptest.compiler.jsp20.mock.taglibs; + +import junit.framework.TestCase; + +public class TestClasspathTldLocator extends TestCase { + + private ClasspathTldLocator locator; + + protected void setUp() throws Exception { + super.setUp(); + locator = new ClasspathTldLocator(); + } + + public void testTldFilesAreFoundFromClasspath() throws Exception { + assertTrue(locator.find("exists.tld").wasFound()); + } + + public void testMissingFilesAreReportedAsNotFound() + throws Exception { + assertFalse(locator.find("nosuchfile.tld").wasFound()); + } +} Added: trunk/jsptest-jsp20/src/test/resources/META-INF/MANIFEST.MF =================================================================== --- trunk/jsptest-jsp20/src/test/resources/META-INF/MANIFEST.MF (rev 0) +++ trunk/jsptest-jsp20/src/test/resources/META-INF/MANIFEST.MF 2008-04-04 12:53:08 UTC (rev 200) @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Created-By: 1.5.0_13 (Apple Computer, Inc.) + Added: trunk/jsptest-jsp20/src/test/resources/META-INF/exists.tld =================================================================== This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-04-04 07:01:12
|
Revision: 199 http://jsptest.svn.sourceforge.net/jsptest/?rev=199&view=rev Author: lkoskela Date: 2008-04-04 00:01:10 -0700 (Fri, 04 Apr 2008) Log Message: ----------- [maven-release-plugin] prepare for next development iteration Modified Paths: -------------- trunk/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml trunk/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml trunk/jsptest-acceptance/pom.xml trunk/jsptest-generic/jsptest-common/pom.xml trunk/jsptest-generic/jsptest-compiler-api/pom.xml trunk/jsptest-generic/jsptest-framework/pom.xml trunk/jsptest-generic/pom.xml trunk/jsptest-jsp12/pom.xml trunk/jsptest-jsp20/pom.xml trunk/jsptest-jsp21/pom.xml trunk/pom.xml Modified: trunk/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml 2008-04-04 07:00:55 UTC (rev 198) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml 2008-04-04 07:01:10 UTC (rev 199) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-acceptance</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-acceptance-jsp12</artifactId> Modified: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml 2008-04-04 07:00:55 UTC (rev 198) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml 2008-04-04 07:01:10 UTC (rev 199) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-acceptance</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-acceptance-jsp20</artifactId> Modified: trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml 2008-04-04 07:00:55 UTC (rev 198) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml 2008-04-04 07:01:10 UTC (rev 199) @@ -3,10 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-acceptance</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-acceptance-jsp21</artifactId> + <version>0.13-SNAPSHOT</version> <packaging>jar</packaging> <name>Acceptance tests for the JspTest variant for the JSP 2.1 specification.</name> <description /> Modified: trunk/jsptest-acceptance/pom.xml =================================================================== --- trunk/jsptest-acceptance/pom.xml 2008-04-04 07:00:55 UTC (rev 198) +++ trunk/jsptest-acceptance/pom.xml 2008-04-04 07:01:10 UTC (rev 199) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-acceptance</artifactId> Modified: trunk/jsptest-generic/jsptest-common/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-common/pom.xml 2008-04-04 07:00:55 UTC (rev 198) +++ trunk/jsptest-generic/jsptest-common/pom.xml 2008-04-04 07:01:10 UTC (rev 199) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-generic</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-common</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> <packaging>jar</packaging> <name>Common utilities</name> <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> Modified: trunk/jsptest-generic/jsptest-compiler-api/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2008-04-04 07:00:55 UTC (rev 198) +++ trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2008-04-04 07:01:10 UTC (rev 199) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-generic</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-compiler-api</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> <packaging>jar</packaging> <name>Internal compiler API</name> <description>A common internal API for the different versions of JSP version-specific compilers.</description> Modified: trunk/jsptest-generic/jsptest-framework/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-framework/pom.xml 2008-04-04 07:00:55 UTC (rev 198) +++ trunk/jsptest-generic/jsptest-framework/pom.xml 2008-04-04 07:01:10 UTC (rev 199) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-generic</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-framework</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> <packaging>jar</packaging> <name>Core framework</name> <description>The core framework functionality for JspTest.</description> @@ -15,12 +15,12 @@ <dependency> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-compiler-api</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </dependency> <dependency> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-common</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </dependency> </dependencies> </project> Modified: trunk/jsptest-generic/pom.xml =================================================================== --- trunk/jsptest-generic/pom.xml 2008-04-04 07:00:55 UTC (rev 198) +++ trunk/jsptest-generic/pom.xml 2008-04-04 07:01:10 UTC (rev 199) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-generic</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> <name>JspTest root project for the generic components</name> <description>This POM acts as a virtual root for the set of generic components that make up JspTest.</description> <packaging>pom</packaging> Modified: trunk/jsptest-jsp12/pom.xml =================================================================== --- trunk/jsptest-jsp12/pom.xml 2008-04-04 07:00:55 UTC (rev 198) +++ trunk/jsptest-jsp12/pom.xml 2008-04-04 07:01:10 UTC (rev 199) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-jsp12</artifactId> Modified: trunk/jsptest-jsp20/pom.xml =================================================================== --- trunk/jsptest-jsp20/pom.xml 2008-04-04 07:00:55 UTC (rev 198) +++ trunk/jsptest-jsp20/pom.xml 2008-04-04 07:01:10 UTC (rev 199) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-jsp20</artifactId> Modified: trunk/jsptest-jsp21/pom.xml =================================================================== --- trunk/jsptest-jsp21/pom.xml 2008-04-04 07:00:55 UTC (rev 198) +++ trunk/jsptest-jsp21/pom.xml 2008-04-04 07:01:10 UTC (rev 199) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-jsp21</artifactId> Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2008-04-04 07:00:55 UTC (rev 198) +++ trunk/pom.xml 2008-04-04 07:01:10 UTC (rev 199) @@ -3,7 +3,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest</artifactId> - <version>0.13</version> + <version>0.14-SNAPSHOT</version> <name>JspTest root project</name> <description>This POM acts as a virtual root for the set of JSP version-specific combinations of the contained subprojects.</description> <packaging>pom</packaging> @@ -32,9 +32,9 @@ </repository> </distributionManagement> <scm> - <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-0.13</connection> - <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-0.13</developerConnection> - <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-0.13</url> + <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-0.11</connection> + <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-0.11</developerConnection> + <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-0.11</url> </scm> <mailingLists /> <developers> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-04-04 07:00:56
|
Revision: 198 http://jsptest.svn.sourceforge.net/jsptest/?rev=198&view=rev Author: lkoskela Date: 2008-04-04 00:00:55 -0700 (Fri, 04 Apr 2008) Log Message: ----------- [maven-release-plugin] copy for tag jsptest-0.13 Added Paths: ----------- tags/jsptest-0.13/ tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml tags/jsptest-0.13/jsptest-acceptance/pom.xml tags/jsptest-0.13/jsptest-generic/jsptest-common/pom.xml tags/jsptest-0.13/jsptest-generic/jsptest-compiler-api/pom.xml tags/jsptest-0.13/jsptest-generic/jsptest-framework/pom.xml tags/jsptest-0.13/jsptest-generic/pom.xml tags/jsptest-0.13/jsptest-jsp12/pom.xml tags/jsptest-0.13/jsptest-jsp20/pom.xml tags/jsptest-0.13/jsptest-jsp21/pom.xml tags/jsptest-0.13/pom.xml Removed Paths: ------------- tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml tags/jsptest-0.13/jsptest-acceptance/pom.xml tags/jsptest-0.13/jsptest-generic/jsptest-common/pom.xml tags/jsptest-0.13/jsptest-generic/jsptest-compiler-api/pom.xml tags/jsptest-0.13/jsptest-generic/jsptest-framework/pom.xml tags/jsptest-0.13/jsptest-generic/pom.xml tags/jsptest-0.13/jsptest-jsp12/pom.xml tags/jsptest-0.13/jsptest-jsp20/pom.xml tags/jsptest-0.13/jsptest-jsp21/pom.xml tags/jsptest-0.13/pom.xml Copied: tags/jsptest-0.13 (from rev 193, trunk) Deleted: tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -1,19 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-acceptance</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-acceptance-jsp12</artifactId> - <packaging>jar</packaging> - <name>Acceptance tests for the JspTest variant for the JSP 1.2 specification.</name> - <description /> - <dependencies> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-jsp12</artifactId> - </dependency> - </dependencies> -</project> Copied: tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml (from rev 197, trunk/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml) =================================================================== --- tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml (rev 0) +++ tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-acceptance</artifactId> + <version>0.13</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-acceptance-jsp12</artifactId> + <packaging>jar</packaging> + <name>Acceptance tests for the JspTest variant for the JSP 1.2 specification.</name> + <description /> + <dependencies> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-jsp12</artifactId> + </dependency> + </dependencies> +</project> Deleted: tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -1,19 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-acceptance</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-acceptance-jsp20</artifactId> - <packaging>jar</packaging> - <name>Acceptance tests for the JspTest variant for the JSP 2.0 specification.</name> - <description /> - <dependencies> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-jsp20</artifactId> - </dependency> - </dependencies> -</project> Copied: tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml (from rev 197, trunk/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml) =================================================================== --- tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml (rev 0) +++ tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-acceptance</artifactId> + <version>0.13</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-acceptance-jsp20</artifactId> + <packaging>jar</packaging> + <name>Acceptance tests for the JspTest variant for the JSP 2.0 specification.</name> + <description /> + <dependencies> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-jsp20</artifactId> + </dependency> + </dependencies> +</project> Deleted: tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -1,19 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-acceptance</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-acceptance-jsp21</artifactId> - <packaging>jar</packaging> - <name>Acceptance tests for the JspTest variant for the JSP 2.1 specification.</name> - <description /> - <dependencies> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-jsp21</artifactId> - </dependency> - </dependencies> -</project> Copied: tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml (from rev 197, trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml) =================================================================== --- tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml (rev 0) +++ tags/jsptest-0.13/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-acceptance</artifactId> + <version>0.13</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-acceptance-jsp21</artifactId> + <packaging>jar</packaging> + <name>Acceptance tests for the JspTest variant for the JSP 2.1 specification.</name> + <description /> + <dependencies> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-jsp21</artifactId> + </dependency> + </dependencies> +</project> Deleted: tags/jsptest-0.13/jsptest-acceptance/pom.xml =================================================================== --- trunk/jsptest-acceptance/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-0.13/jsptest-acceptance/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -1,18 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-acceptance</artifactId> - <name>JspTest root project for acceptance test modules</name> - <description>This POM acts as a virtual root for the acceptance test projects for different JSP specification variants of JspTest.</description> - <packaging>pom</packaging> - <modules> - <module>jsptest-acceptance-jsp12</module> - <module>jsptest-acceptance-jsp20</module> - <module>jsptest-acceptance-jsp21</module> - </modules> -</project> Copied: tags/jsptest-0.13/jsptest-acceptance/pom.xml (from rev 197, trunk/jsptest-acceptance/pom.xml) =================================================================== --- tags/jsptest-0.13/jsptest-acceptance/pom.xml (rev 0) +++ tags/jsptest-0.13/jsptest-acceptance/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -0,0 +1,18 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest</artifactId> + <version>0.13</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-acceptance</artifactId> + <name>JspTest root project for acceptance test modules</name> + <description>This POM acts as a virtual root for the acceptance test projects for different JSP specification variants of JspTest.</description> + <packaging>pom</packaging> + <modules> + <module>jsptest-acceptance-jsp12</module> + <module>jsptest-acceptance-jsp20</module> + <module>jsptest-acceptance-jsp21</module> + </modules> +</project> Deleted: tags/jsptest-0.13/jsptest-generic/jsptest-common/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-common/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-0.13/jsptest-generic/jsptest-common/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -1,34 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-generic</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-common</artifactId> - <version>0.12-SNAPSHOT</version> - <packaging>jar</packaging> - <name>Common utilities</name> - <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> - <profiles> - <profile> - <id>default-tools.jar</id> - <activation> - <property> - <name>java.vendor</name> - <value>Sun Microsystems Inc.</value> - </property> - </activation> - <dependencies> - <dependency> - <groupId>com.sun</groupId> - <artifactId>tools</artifactId> - <version>1.4.2</version> - <scope>system</scope> - <systemPath>${java.home}/../lib/tools.jar</systemPath> - </dependency> - </dependencies> - </profile> - </profiles> -</project> Copied: tags/jsptest-0.13/jsptest-generic/jsptest-common/pom.xml (from rev 197, trunk/jsptest-generic/jsptest-common/pom.xml) =================================================================== --- tags/jsptest-0.13/jsptest-generic/jsptest-common/pom.xml (rev 0) +++ tags/jsptest-0.13/jsptest-generic/jsptest-common/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-generic</artifactId> + <version>0.13</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-common</artifactId> + <version>0.13</version> + <packaging>jar</packaging> + <name>Common utilities</name> + <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> + <profiles> + <profile> + <id>default-tools.jar</id> + <activation> + <property> + <name>java.vendor</name> + <value>Sun Microsystems Inc.</value> + </property> + </activation> + <dependencies> + <dependency> + <groupId>com.sun</groupId> + <artifactId>tools</artifactId> + <version>1.4.2</version> + <scope>system</scope> + <systemPath>${java.home}/../lib/tools.jar</systemPath> + </dependency> + </dependencies> + </profile> + </profiles> +</project> Deleted: tags/jsptest-0.13/jsptest-generic/jsptest-compiler-api/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-0.13/jsptest-generic/jsptest-compiler-api/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-generic</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-compiler-api</artifactId> - <version>0.12-SNAPSHOT</version> - <packaging>jar</packaging> - <name>Internal compiler API</name> - <description>A common internal API for the different versions of JSP version-specific compilers.</description> -</project> Copied: tags/jsptest-0.13/jsptest-generic/jsptest-compiler-api/pom.xml (from rev 197, trunk/jsptest-generic/jsptest-compiler-api/pom.xml) =================================================================== --- tags/jsptest-0.13/jsptest-generic/jsptest-compiler-api/pom.xml (rev 0) +++ tags/jsptest-0.13/jsptest-generic/jsptest-compiler-api/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-generic</artifactId> + <version>0.13</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-compiler-api</artifactId> + <version>0.13</version> + <packaging>jar</packaging> + <name>Internal compiler API</name> + <description>A common internal API for the different versions of JSP version-specific compilers.</description> +</project> Deleted: tags/jsptest-0.13/jsptest-generic/jsptest-framework/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-framework/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-0.13/jsptest-generic/jsptest-framework/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -1,25 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-generic</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-framework</artifactId> - <packaging>jar</packaging> - <name>Core framework</name> - <description>The core framework functionality for JspTest.</description> - <dependencies> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-compiler-api</artifactId> - <version>0.12-SNAPSHOT</version> - </dependency> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-common</artifactId> - <version>0.12-SNAPSHOT</version> - </dependency> - </dependencies> -</project> Copied: tags/jsptest-0.13/jsptest-generic/jsptest-framework/pom.xml (from rev 197, trunk/jsptest-generic/jsptest-framework/pom.xml) =================================================================== --- tags/jsptest-0.13/jsptest-generic/jsptest-framework/pom.xml (rev 0) +++ tags/jsptest-0.13/jsptest-generic/jsptest-framework/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-generic</artifactId> + <version>0.13</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-framework</artifactId> + <version>0.13</version> + <packaging>jar</packaging> + <name>Core framework</name> + <description>The core framework functionality for JspTest.</description> + <dependencies> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-compiler-api</artifactId> + <version>0.13</version> + </dependency> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-common</artifactId> + <version>0.13</version> + </dependency> + </dependencies> +</project> Deleted: tags/jsptest-0.13/jsptest-generic/pom.xml =================================================================== --- trunk/jsptest-generic/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-0.13/jsptest-generic/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -1,40 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-generic</artifactId> - <name>JspTest root project for the generic components</name> - <description>This POM acts as a virtual root for the set of generic components that make up JspTest.</description> - <packaging>pom</packaging> - <modules> - <module>jsptest-common</module> - <module>jsptest-compiler-api</module> - <module>jsptest-framework</module> - </modules> - <dependencies> - <dependency> - <groupId>jtidy</groupId> - <artifactId>jtidy</artifactId> - <version>4aug2000r7-dev</version> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.2</version> - </dependency> - <dependency> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - <version>1.2.13</version> - </dependency> - <dependency> - <groupId>jaxen</groupId> - <artifactId>jaxen</artifactId> - <version>1.1.1</version> - </dependency> - </dependencies> -</project> Copied: tags/jsptest-0.13/jsptest-generic/pom.xml (from rev 197, trunk/jsptest-generic/pom.xml) =================================================================== --- tags/jsptest-0.13/jsptest-generic/pom.xml (rev 0) +++ tags/jsptest-0.13/jsptest-generic/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -0,0 +1,41 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest</artifactId> + <version>0.13</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-generic</artifactId> + <version>0.13</version> + <name>JspTest root project for the generic components</name> + <description>This POM acts as a virtual root for the set of generic components that make up JspTest.</description> + <packaging>pom</packaging> + <modules> + <module>jsptest-common</module> + <module>jsptest-compiler-api</module> + <module>jsptest-framework</module> + </modules> + <dependencies> + <dependency> + <groupId>jtidy</groupId> + <artifactId>jtidy</artifactId> + <version>4aug2000r7-dev</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.13</version> + </dependency> + <dependency> + <groupId>jaxen</groupId> + <artifactId>jaxen</artifactId> + <version>1.1.1</version> + </dependency> + </dependencies> +</project> Deleted: tags/jsptest-0.13/jsptest-jsp12/pom.xml =================================================================== --- trunk/jsptest-jsp12/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-0.13/jsptest-jsp12/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -1,41 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-jsp12</artifactId> - <packaging>jar</packaging> - <name>JspTest for JSP 1.2</name> - <description>JspTest variant suitable for testing JavaServer Pages that follow the JSP 1.2 specification.</description> - <dependencies> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-framework</artifactId> - </dependency> -<!-- needed for JSTL/TLD configuration --> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>jstl</artifactId> - <version>1.0.2</version> - </dependency> - <dependency> - <groupId>taglibs</groupId> - <artifactId>standard</artifactId> - <version>1.0.2</version> - </dependency> -<!-- Provides the Jasper JSP compiler --> - <dependency> - <groupId>tomcat</groupId> - <artifactId>jasper-compiler</artifactId> - <version>4.1.30</version> - </dependency> - <dependency> - <groupId>tomcat</groupId> - <artifactId>jasper-runtime</artifactId> - <version>4.1.30</version> - </dependency> - </dependencies> -</project> Copied: tags/jsptest-0.13/jsptest-jsp12/pom.xml (from rev 197, trunk/jsptest-jsp12/pom.xml) =================================================================== --- tags/jsptest-0.13/jsptest-jsp12/pom.xml (rev 0) +++ tags/jsptest-0.13/jsptest-jsp12/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -0,0 +1,41 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest</artifactId> + <version>0.13</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-jsp12</artifactId> + <packaging>jar</packaging> + <name>JspTest for JSP 1.2</name> + <description>JspTest variant suitable for testing JavaServer Pages that follow the JSP 1.2 specification.</description> + <dependencies> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-framework</artifactId> + </dependency> +<!-- needed for JSTL/TLD configuration --> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jstl</artifactId> + <version>1.0.2</version> + </dependency> + <dependency> + <groupId>taglibs</groupId> + <artifactId>standard</artifactId> + <version>1.0.2</version> + </dependency> +<!-- Provides the Jasper JSP compiler --> + <dependency> + <groupId>tomcat</groupId> + <artifactId>jasper-compiler</artifactId> + <version>4.1.30</version> + </dependency> + <dependency> + <groupId>tomcat</groupId> + <artifactId>jasper-runtime</artifactId> + <version>4.1.30</version> + </dependency> + </dependencies> +</project> Deleted: tags/jsptest-0.13/jsptest-jsp20/pom.xml =================================================================== --- trunk/jsptest-jsp20/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-0.13/jsptest-jsp20/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -1,53 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-jsp20</artifactId> - <packaging>jar</packaging> - <name>JspTest for JSP 2.0</name> - <description>JspTest variant suitable for testing JavaServer Pages that follow the JSP 2.0 specification.</description> - <dependencies> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-framework</artifactId> - </dependency> -<!-- needed for JSTL/TLD configuration --> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>jstl</artifactId> - <version>1.1.2</version> - </dependency> - <dependency> - <groupId>taglibs</groupId> - <artifactId>standard</artifactId> - <version>1.1.2</version> - </dependency> -<!-- Provides the Jasper JSP compiler --> - <dependency> - <groupId>tomcat</groupId> - <artifactId>jasper-compiler</artifactId> - <version>5.5.15</version> - </dependency> - <dependency> - <groupId>tomcat</groupId> - <artifactId>jasper-runtime</artifactId> - <version>5.5.15</version> - </dependency> - </dependencies> - <build> - <plugins> - <plugin> - <artifactId>maven-assembly-plugin</artifactId> - <configuration> - <descriptors> - <descriptor>src/main/assembly/bin.xml</descriptor> - </descriptors> - </configuration> - </plugin> - </plugins> - </build> -</project> Copied: tags/jsptest-0.13/jsptest-jsp20/pom.xml (from rev 197, trunk/jsptest-jsp20/pom.xml) =================================================================== --- tags/jsptest-0.13/jsptest-jsp20/pom.xml (rev 0) +++ tags/jsptest-0.13/jsptest-jsp20/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -0,0 +1,53 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest</artifactId> + <version>0.13</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-jsp20</artifactId> + <packaging>jar</packaging> + <name>JspTest for JSP 2.0</name> + <description>JspTest variant suitable for testing JavaServer Pages that follow the JSP 2.0 specification.</description> + <dependencies> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-framework</artifactId> + </dependency> +<!-- needed for JSTL/TLD configuration --> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jstl</artifactId> + <version>1.1.2</version> + </dependency> + <dependency> + <groupId>taglibs</groupId> + <artifactId>standard</artifactId> + <version>1.1.2</version> + </dependency> +<!-- Provides the Jasper JSP compiler --> + <dependency> + <groupId>tomcat</groupId> + <artifactId>jasper-compiler</artifactId> + <version>5.5.15</version> + </dependency> + <dependency> + <groupId>tomcat</groupId> + <artifactId>jasper-runtime</artifactId> + <version>5.5.15</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <descriptors> + <descriptor>src/main/assembly/bin.xml</descriptor> + </descriptors> + </configuration> + </plugin> + </plugins> + </build> +</project> Deleted: tags/jsptest-0.13/jsptest-jsp21/pom.xml =================================================================== --- trunk/jsptest-jsp21/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-0.13/jsptest-jsp21/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -1,36 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-jsp21</artifactId> - <packaging>jar</packaging> - <name>JspTest for JSP 2.1</name> - <description>JspTest variant suitable for testing JavaServer Pages that follow the JSP 2.1 specification.</description> - <dependencies> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-framework</artifactId> - </dependency> -<!-- needed for JSTL/TLD configuration --> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>jstl</artifactId> - <version>1.1.2</version> - </dependency> - <dependency> - <groupId>taglibs</groupId> - <artifactId>standard</artifactId> - <version>1.1.2</version> - </dependency> -<!-- Provides the Jasper JSP compiler --> - <dependency> - <groupId>org.apache.tomcat</groupId> - <artifactId>jasper</artifactId> - <version>6.0.13</version> - </dependency> - </dependencies> -</project> Copied: tags/jsptest-0.13/jsptest-jsp21/pom.xml (from rev 197, trunk/jsptest-jsp21/pom.xml) =================================================================== --- tags/jsptest-0.13/jsptest-jsp21/pom.xml (rev 0) +++ tags/jsptest-0.13/jsptest-jsp21/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest</artifactId> + <version>0.13</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-jsp21</artifactId> + <packaging>jar</packaging> + <name>JspTest for JSP 2.1</name> + <description>JspTest variant suitable for testing JavaServer Pages that follow the JSP 2.1 specification.</description> + <dependencies> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-framework</artifactId> + </dependency> +<!-- needed for JSTL/TLD configuration --> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jstl</artifactId> + <version>1.1.2</version> + </dependency> + <dependency> + <groupId>taglibs</groupId> + <artifactId>standard</artifactId> + <version>1.1.2</version> + </dependency> +<!-- Provides the Jasper JSP compiler --> + <dependency> + <groupId>org.apache.tomcat</groupId> + <artifactId>jasper</artifactId> + <version>6.0.13</version> + </dependency> + </dependencies> +</project> Deleted: tags/jsptest-0.13/pom.xml =================================================================== --- trunk/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-0.13/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -1,239 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> - <name>JspTest root project</name> - <description>This POM acts as a virtual root for the set of JSP version-specific combinations of the contained subprojects.</description> - <packaging>pom</packaging> - <url>http://jsptest.sourceforge.net</url> - <inceptionYear>2006</inceptionYear> - <organization> - <name>JspTest developers</name> - <url>http://jsptest.sourceforge.net</url> - </organization> - <licenses> - <license> - <name>The Apache Software License, Version 2.0</name> - <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> - <distribution>repo</distribution> - </license> - </licenses> - <issueManagement> - <system>sourceforge</system> - <url>https://sourceforge.net/tracker/?group_id=164388</url> - </issueManagement> - <distributionManagement> - <repository> - <id>jsptest.sourceforge.net</id> - <name>JspTest Maven2 repository at SourceForge</name> - <url>scp://shell.sourceforge.net:/home/groups/j/js/jsptest/htdocs/maven2</url> - </repository> - </distributionManagement> - <scm> - <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-0.11</connection> - <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-0.11</developerConnection> - <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-0.11</url> - </scm> - <mailingLists /> - <developers> - <developer> - <name>Lasse Koskela</name> - <id>lkoskela</id> - <email>lko...@us...</email> - </developer> - </developers> - <modules> - <module>jsptest-generic</module> - <module>jsptest-jsp12</module> - <module>jsptest-jsp20</module> - <module>jsptest-jsp21</module> - <module>jsptest-acceptance</module> - </modules> - <dependencyManagement> - <dependencies> - <dependency> - <groupId>sun.jdk</groupId> - <artifactId>tools</artifactId> - <version>1.4</version> - <scope>system</scope> - <systemPath>${java.home}/../lib/tools.jar</systemPath> - </dependency> - <dependency> - <groupId>jtidy</groupId> - <artifactId>jtidy</artifactId> - <version>4aug2000r7-dev</version> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.2</version> - </dependency> - <dependency> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - <version>1.2.13</version> - </dependency> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-jsp12</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-jsp20</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-jsp21</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-common</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-compiler-api</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-framework</artifactId> - <version>${project.version}</version> - </dependency> - </dependencies> - </dependencyManagement> - <build> - <resources> - <resource> - <targetPath>/</targetPath> - <filtering>false</filtering> - <directory>${basedir}/src/main/resources</directory> - </resource> - </resources> -<!-- define build plugins to be used (TODO: should this be moved to the jar POMs?) --> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <fork>true</fork> - <source>1.4</source> - <target>1.4</target> - </configuration> - </plugin> - <plugin> - <inherited>true</inherited> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <configuration> - <minmemory>128m</minmemory> - <maxmemory>256m</maxmemory> - </configuration> - <executions> - <execution> - <id>attach-sources</id> - <goals> - <goal>jar</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <inherited>true</inherited> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <executions> - <execution> - <id>attach-sources</id> - <goals> - <goal>jar</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-site-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-release-plugin</artifactId> - <configuration> - <preparationGoals>clean install</preparationGoals> - </configuration> - </plugin> - <plugin> - <artifactId>maven-assembly-plugin</artifactId> - <configuration> - <descriptors> - <descriptor>src/main/assembly/jsp12.xml</descriptor> - <descriptor>src/main/assembly/jsp20.xml</descriptor> - <descriptor>src/main/assembly/jsp21.xml</descriptor> - </descriptors> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>2.3</version> - <configuration> - <includes> - <include>**/*Test.java</include> - <include>**/Test*.java</include> - </includes> - <testFailureIgnore>true</testFailureIgnore> - <forkMode>once</forkMode> - <useSystemClassLoader>true</useSystemClassLoader> - <skip>false</skip> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>surefire-report-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - <version>2.0</version> - </plugin> - </plugins> - </build> - <reporting> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-project-info-reports-plugin</artifactId> - <reportSets> - <reportSet> - <reports> - <report>dependencies</report> - <report>project-team</report> - <report>mailing-list</report> - <report>issue-tracking</report> - <report>license</report> - <report>scm</report> - </reports> - </reportSet> - </reportSets> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>surefire-report-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - <version>2.0</version> - </plugin> - </plugins> - </reporting> -</project> Copied: tags/jsptest-0.13/pom.xml (from rev 197, trunk/pom.xml) =================================================================== --- tags/jsptest-0.13/pom.xml (rev 0) +++ tags/jsptest-0.13/pom.xml 2008-04-04 07:00:55 UTC (rev 198) @@ -0,0 +1,239 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest</artifactId> + <version>0.13</version> + <name>JspTest root project</name> + <description>This POM acts as a virtual root for the set of JSP version-specific combinations of the contained subprojects.</description> + <packaging>pom</packaging> + <url>http://jsptest.sourceforge.net</url> + <inceptionYear>2006</inceptionYear> + <organization> + <name>JspTest developers</name> + <url>http://jsptest.sourceforge.net</url> + </organization> + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + <issueManagement> + <system>sourceforge</system> + <url>https://sourceforge.net/tracker/?group_id=164388</url> + </issueManagement> + <distributionManagement> + <repository> + <id>jsptest.sourceforge.net</id> + <name>JspTest Maven2 repository at SourceForge</name> + <url>scp://shell.sourceforge.net:/home/groups/j/js/jsptest/htdocs/maven2</url> + </repository> + </distributionManagement> + <scm> + <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-0.13</connection> + <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-0.13</developerConnection> + <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-0.13</url> + </scm> + <mailingLists /> + <developers> + <developer> + <name>Lasse Koskela</name> + <id>lkoskela</id> + <email>lko...@us...</email> + </developer> + </developers> + <modules> + <module>jsptest-generic</module> + <module>jsptest-jsp12</module> + <module>jsptest-jsp20</module> + <module>jsptest-jsp21</module> + <module>jsptest-acceptance</module> + </modules> + <dependencyManagement> + <dependencies> + <dependency> + <groupId>sun.jdk</groupId> + <artifactId>tools</artifactId> + <version>1.4</version> + <scope>system</scope> + <systemPath>${java.home}/../lib/tools.jar</systemPath> + </dependency> + <dependency> + <groupId>jtidy</groupId> + <artifactId>jtidy</artifactId> + <version>4aug2000r7-dev</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.13</version> + </dependency> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-jsp12</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-jsp20</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-jsp21</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-common</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-compiler-api</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-framework</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + </dependencyManagement> + <build> + <resources> + <resource> + <targetPath>/</targetPath> + <filtering>false</filtering> + <directory>${basedir}/src/main/resources</directory> + </resource> + </resources> +<!-- define build plugins to be used (TODO: should this be moved to the jar POMs?) --> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <fork>true</fork> + <source>1.4</source> + <target>1.4</target> + </configuration> + </plugin> + <plugin> + <inherited>true</inherited> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <configuration> + <minmemory>128m</minmemory> + <maxmemory>256m</maxmemory> + </configuration> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <inherited>true</inherited> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <configuration> + <preparationGoals>clean install</preparationGoals> + </configuration> + </plugin> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <descriptors> + <descriptor>src/main/assembly/jsp12.xml</descriptor> + <descriptor>src/main/assembly/jsp20.xml</descriptor> + <descriptor>src/main/assembly/jsp21.xml</descriptor> + </descriptors> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.3</version> + <configuration> + <includes> + <include>**/*Test.java</include> + <include>**/Test*.java</include> + </includes> + <testFailureIgnore>true</testFailureIgnore> + <forkMode>once</forkMode> + <useSystemClassLoader>true</useSystemClassLoader> + <skip>false</skip> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>surefire-report-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <version>2.0</version> + </plugin> + </plugins> + </build> + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-project-info-reports-plugin</artifactId> + <reportSets> + <reportSet> + <reports> + <report>dependencies</report> + <report>project-team</report> + <report>mailing-list</report> + <report>issue-tracking</report> + <report>license</report> + <report>scm</report> + </reports> + </reportSet> + </reportSets> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>surefire-report-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <version>2.0</version> + </plugin> + </plugins> + </reporting> +</project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-04-04 07:00:37
|
Revision: 197 http://jsptest.svn.sourceforge.net/jsptest/?rev=197&view=rev Author: lkoskela Date: 2008-04-04 00:00:35 -0700 (Fri, 04 Apr 2008) Log Message: ----------- [maven-release-plugin] prepare release jsptest-0.13 Modified Paths: -------------- trunk/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml trunk/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml trunk/jsptest-acceptance/pom.xml trunk/jsptest-generic/jsptest-common/pom.xml trunk/jsptest-generic/jsptest-compiler-api/pom.xml trunk/jsptest-generic/jsptest-framework/pom.xml trunk/jsptest-generic/pom.xml trunk/jsptest-jsp12/pom.xml trunk/jsptest-jsp20/pom.xml trunk/jsptest-jsp21/pom.xml trunk/pom.xml Modified: trunk/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml 2008-04-03 16:02:55 UTC (rev 196) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp12/pom.xml 2008-04-04 07:00:35 UTC (rev 197) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-acceptance</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.13</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-acceptance-jsp12</artifactId> Modified: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml 2008-04-03 16:02:55 UTC (rev 196) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/pom.xml 2008-04-04 07:00:35 UTC (rev 197) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-acceptance</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.13</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-acceptance-jsp20</artifactId> Modified: trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml 2008-04-03 16:02:55 UTC (rev 196) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp21/pom.xml 2008-04-04 07:00:35 UTC (rev 197) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-acceptance</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.13</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-acceptance-jsp21</artifactId> Modified: trunk/jsptest-acceptance/pom.xml =================================================================== --- trunk/jsptest-acceptance/pom.xml 2008-04-03 16:02:55 UTC (rev 196) +++ trunk/jsptest-acceptance/pom.xml 2008-04-04 07:00:35 UTC (rev 197) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.13</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-acceptance</artifactId> Modified: trunk/jsptest-generic/jsptest-common/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-common/pom.xml 2008-04-03 16:02:55 UTC (rev 196) +++ trunk/jsptest-generic/jsptest-common/pom.xml 2008-04-04 07:00:35 UTC (rev 197) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-generic</artifactId> - <version>0.13-SNAPSHOT</version> + <version>0.13</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-common</artifactId> - <version>0.13-SNAPSHOT</version> + <version>0.13</version> <packaging>jar</packaging> <name>Common utilities</name> <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> Modified: trunk/jsptest-generic/jsptest-compiler-api/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2008-04-03 16:02:55 UTC (rev 196) +++ trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2008-04-04 07:00:35 UTC (rev 197) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-generic</artifactId> - <version>0.13-SNAPSHOT</version> + <version>0.13</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-compiler-api</artifactId> - <version>0.13-SNAPSHOT</version> + <version>0.13</version> <packaging>jar</packaging> <name>Internal compiler API</name> <description>A common internal API for the different versions of JSP version-specific compilers.</description> Modified: trunk/jsptest-generic/jsptest-framework/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-framework/pom.xml 2008-04-03 16:02:55 UTC (rev 196) +++ trunk/jsptest-generic/jsptest-framework/pom.xml 2008-04-04 07:00:35 UTC (rev 197) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-generic</artifactId> - <version>0.13-SNAPSHOT</version> + <version>0.13</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-framework</artifactId> - <version>0.13-SNAPSHOT</version> + <version>0.13</version> <packaging>jar</packaging> <name>Core framework</name> <description>The core framework functionality for JspTest.</description> @@ -15,12 +15,12 @@ <dependency> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-compiler-api</artifactId> - <version>0.13-SNAPSHOT</version> + <version>0.13</version> </dependency> <dependency> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-common</artifactId> - <version>0.13-SNAPSHOT</version> + <version>0.13</version> </dependency> </dependencies> </project> Modified: trunk/jsptest-generic/pom.xml =================================================================== --- trunk/jsptest-generic/pom.xml 2008-04-03 16:02:55 UTC (rev 196) +++ trunk/jsptest-generic/pom.xml 2008-04-04 07:00:35 UTC (rev 197) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.13</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-generic</artifactId> - <version>0.13-SNAPSHOT</version> + <version>0.13</version> <name>JspTest root project for the generic components</name> <description>This POM acts as a virtual root for the set of generic components that make up JspTest.</description> <packaging>pom</packaging> Modified: trunk/jsptest-jsp12/pom.xml =================================================================== --- trunk/jsptest-jsp12/pom.xml 2008-04-03 16:02:55 UTC (rev 196) +++ trunk/jsptest-jsp12/pom.xml 2008-04-04 07:00:35 UTC (rev 197) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.13</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-jsp12</artifactId> Modified: trunk/jsptest-jsp20/pom.xml =================================================================== --- trunk/jsptest-jsp20/pom.xml 2008-04-03 16:02:55 UTC (rev 196) +++ trunk/jsptest-jsp20/pom.xml 2008-04-04 07:00:35 UTC (rev 197) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.13</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-jsp20</artifactId> Modified: trunk/jsptest-jsp21/pom.xml =================================================================== --- trunk/jsptest-jsp21/pom.xml 2008-04-03 16:02:55 UTC (rev 196) +++ trunk/jsptest-jsp21/pom.xml 2008-04-04 07:00:35 UTC (rev 197) @@ -3,7 +3,7 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.13</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-jsp21</artifactId> Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2008-04-03 16:02:55 UTC (rev 196) +++ trunk/pom.xml 2008-04-04 07:00:35 UTC (rev 197) @@ -3,7 +3,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.13</version> <name>JspTest root project</name> <description>This POM acts as a virtual root for the set of JSP version-specific combinations of the contained subprojects.</description> <packaging>pom</packaging> @@ -32,9 +32,9 @@ </repository> </distributionManagement> <scm> - <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-0.11</connection> - <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-0.11</developerConnection> - <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-0.11</url> + <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-0.13</connection> + <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-0.13</developerConnection> + <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-0.13</url> </scm> <mailingLists /> <developers> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-04-03 16:02:57
|
Revision: 196 http://jsptest.svn.sourceforge.net/jsptest/?rev=196&view=rev Author: lkoskela Date: 2008-04-03 09:02:55 -0700 (Thu, 03 Apr 2008) Log Message: ----------- [maven-release-plugin] prepare for next development iteration Modified Paths: -------------- trunk/jsptest-generic/jsptest-common/pom.xml trunk/jsptest-generic/jsptest-compiler-api/pom.xml trunk/jsptest-generic/jsptest-framework/pom.xml trunk/jsptest-generic/pom.xml Modified: trunk/jsptest-generic/jsptest-common/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-common/pom.xml 2008-04-03 16:02:46 UTC (rev 195) +++ trunk/jsptest-generic/jsptest-common/pom.xml 2008-04-03 16:02:55 UTC (rev 196) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-generic</artifactId> - <version>'</version> + <version>0.13-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-common</artifactId> - <version>0.12</version> + <version>0.13-SNAPSHOT</version> <packaging>jar</packaging> <name>Common utilities</name> <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> Modified: trunk/jsptest-generic/jsptest-compiler-api/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2008-04-03 16:02:46 UTC (rev 195) +++ trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2008-04-03 16:02:55 UTC (rev 196) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-generic</artifactId> - <version>'</version> + <version>0.13-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-compiler-api</artifactId> - <version>0.12</version> + <version>0.13-SNAPSHOT</version> <packaging>jar</packaging> <name>Internal compiler API</name> <description>A common internal API for the different versions of JSP version-specific compilers.</description> Modified: trunk/jsptest-generic/jsptest-framework/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-framework/pom.xml 2008-04-03 16:02:46 UTC (rev 195) +++ trunk/jsptest-generic/jsptest-framework/pom.xml 2008-04-03 16:02:55 UTC (rev 196) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-generic</artifactId> - <version>'</version> + <version>0.13-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-framework</artifactId> - <version>0.12</version> + <version>0.13-SNAPSHOT</version> <packaging>jar</packaging> <name>Core framework</name> <description>The core framework functionality for JspTest.</description> @@ -15,12 +15,12 @@ <dependency> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-compiler-api</artifactId> - <version>0.12</version> + <version>0.13-SNAPSHOT</version> </dependency> <dependency> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-common</artifactId> - <version>0.12</version> + <version>0.13-SNAPSHOT</version> </dependency> </dependencies> </project> Modified: trunk/jsptest-generic/pom.xml =================================================================== --- trunk/jsptest-generic/pom.xml 2008-04-03 16:02:46 UTC (rev 195) +++ trunk/jsptest-generic/pom.xml 2008-04-03 16:02:55 UTC (rev 196) @@ -7,7 +7,7 @@ </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-generic</artifactId> - <version>'</version> + <version>0.13-SNAPSHOT</version> <name>JspTest root project for the generic components</name> <description>This POM acts as a virtual root for the set of generic components that make up JspTest.</description> <packaging>pom</packaging> @@ -38,10 +38,4 @@ <version>1.1.1</version> </dependency> </dependencies> - - <scm> - <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-generic-0.12</connection> - <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-generic-0.12</developerConnection> - <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-generic-0.12</url> - </scm> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-04-03 16:02:49
|
Revision: 195 http://jsptest.svn.sourceforge.net/jsptest/?rev=195&view=rev Author: lkoskela Date: 2008-04-03 09:02:46 -0700 (Thu, 03 Apr 2008) Log Message: ----------- [maven-release-plugin] copy for tag jsptest-generic-0.12 Added Paths: ----------- tags/jsptest-generic-0.12/ tags/jsptest-generic-0.12/jsptest-common/pom.xml tags/jsptest-generic-0.12/jsptest-compiler-api/pom.xml tags/jsptest-generic-0.12/jsptest-framework/pom.xml tags/jsptest-generic-0.12/pom.xml Removed Paths: ------------- tags/jsptest-generic-0.12/jsptest-common/pom.xml tags/jsptest-generic-0.12/jsptest-compiler-api/pom.xml tags/jsptest-generic-0.12/jsptest-framework/pom.xml tags/jsptest-generic-0.12/pom.xml Copied: tags/jsptest-generic-0.12 (from rev 193, trunk/jsptest-generic) Deleted: tags/jsptest-generic-0.12/jsptest-common/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-common/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-generic-0.12/jsptest-common/pom.xml 2008-04-03 16:02:46 UTC (rev 195) @@ -1,34 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-generic</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-common</artifactId> - <version>0.12-SNAPSHOT</version> - <packaging>jar</packaging> - <name>Common utilities</name> - <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> - <profiles> - <profile> - <id>default-tools.jar</id> - <activation> - <property> - <name>java.vendor</name> - <value>Sun Microsystems Inc.</value> - </property> - </activation> - <dependencies> - <dependency> - <groupId>com.sun</groupId> - <artifactId>tools</artifactId> - <version>1.4.2</version> - <scope>system</scope> - <systemPath>${java.home}/../lib/tools.jar</systemPath> - </dependency> - </dependencies> - </profile> - </profiles> -</project> Copied: tags/jsptest-generic-0.12/jsptest-common/pom.xml (from rev 194, trunk/jsptest-generic/jsptest-common/pom.xml) =================================================================== --- tags/jsptest-generic-0.12/jsptest-common/pom.xml (rev 0) +++ tags/jsptest-generic-0.12/jsptest-common/pom.xml 2008-04-03 16:02:46 UTC (rev 195) @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-generic</artifactId> + <version>'</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-common</artifactId> + <version>0.12</version> + <packaging>jar</packaging> + <name>Common utilities</name> + <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> + <profiles> + <profile> + <id>default-tools.jar</id> + <activation> + <property> + <name>java.vendor</name> + <value>Sun Microsystems Inc.</value> + </property> + </activation> + <dependencies> + <dependency> + <groupId>com.sun</groupId> + <artifactId>tools</artifactId> + <version>1.4.2</version> + <scope>system</scope> + <systemPath>${java.home}/../lib/tools.jar</systemPath> + </dependency> + </dependencies> + </profile> + </profiles> +</project> Deleted: tags/jsptest-generic-0.12/jsptest-compiler-api/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-generic-0.12/jsptest-compiler-api/pom.xml 2008-04-03 16:02:46 UTC (rev 195) @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-generic</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-compiler-api</artifactId> - <version>0.12-SNAPSHOT</version> - <packaging>jar</packaging> - <name>Internal compiler API</name> - <description>A common internal API for the different versions of JSP version-specific compilers.</description> -</project> Copied: tags/jsptest-generic-0.12/jsptest-compiler-api/pom.xml (from rev 194, trunk/jsptest-generic/jsptest-compiler-api/pom.xml) =================================================================== --- tags/jsptest-generic-0.12/jsptest-compiler-api/pom.xml (rev 0) +++ tags/jsptest-generic-0.12/jsptest-compiler-api/pom.xml 2008-04-03 16:02:46 UTC (rev 195) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-generic</artifactId> + <version>'</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-compiler-api</artifactId> + <version>0.12</version> + <packaging>jar</packaging> + <name>Internal compiler API</name> + <description>A common internal API for the different versions of JSP version-specific compilers.</description> +</project> Deleted: tags/jsptest-generic-0.12/jsptest-framework/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-framework/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-generic-0.12/jsptest-framework/pom.xml 2008-04-03 16:02:46 UTC (rev 195) @@ -1,25 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-generic</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-framework</artifactId> - <packaging>jar</packaging> - <name>Core framework</name> - <description>The core framework functionality for JspTest.</description> - <dependencies> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-compiler-api</artifactId> - <version>0.12-SNAPSHOT</version> - </dependency> - <dependency> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-common</artifactId> - <version>0.12-SNAPSHOT</version> - </dependency> - </dependencies> -</project> Copied: tags/jsptest-generic-0.12/jsptest-framework/pom.xml (from rev 194, trunk/jsptest-generic/jsptest-framework/pom.xml) =================================================================== --- tags/jsptest-generic-0.12/jsptest-framework/pom.xml (rev 0) +++ tags/jsptest-generic-0.12/jsptest-framework/pom.xml 2008-04-03 16:02:46 UTC (rev 195) @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-generic</artifactId> + <version>'</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-framework</artifactId> + <version>0.12</version> + <packaging>jar</packaging> + <name>Core framework</name> + <description>The core framework functionality for JspTest.</description> + <dependencies> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-compiler-api</artifactId> + <version>0.12</version> + </dependency> + <dependency> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-common</artifactId> + <version>0.12</version> + </dependency> + </dependencies> +</project> Deleted: tags/jsptest-generic-0.12/pom.xml =================================================================== --- trunk/jsptest-generic/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ tags/jsptest-generic-0.12/pom.xml 2008-04-03 16:02:46 UTC (rev 195) @@ -1,40 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-generic</artifactId> - <name>JspTest root project for the generic components</name> - <description>This POM acts as a virtual root for the set of generic components that make up JspTest.</description> - <packaging>pom</packaging> - <modules> - <module>jsptest-common</module> - <module>jsptest-compiler-api</module> - <module>jsptest-framework</module> - </modules> - <dependencies> - <dependency> - <groupId>jtidy</groupId> - <artifactId>jtidy</artifactId> - <version>4aug2000r7-dev</version> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.2</version> - </dependency> - <dependency> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - <version>1.2.13</version> - </dependency> - <dependency> - <groupId>jaxen</groupId> - <artifactId>jaxen</artifactId> - <version>1.1.1</version> - </dependency> - </dependencies> -</project> Copied: tags/jsptest-generic-0.12/pom.xml (from rev 194, trunk/jsptest-generic/pom.xml) =================================================================== --- tags/jsptest-generic-0.12/pom.xml (rev 0) +++ tags/jsptest-generic-0.12/pom.xml 2008-04-03 16:02:46 UTC (rev 195) @@ -0,0 +1,47 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest</artifactId> + <version>0.12-SNAPSHOT</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-generic</artifactId> + <version>'</version> + <name>JspTest root project for the generic components</name> + <description>This POM acts as a virtual root for the set of generic components that make up JspTest.</description> + <packaging>pom</packaging> + <modules> + <module>jsptest-common</module> + <module>jsptest-compiler-api</module> + <module>jsptest-framework</module> + </modules> + <dependencies> + <dependency> + <groupId>jtidy</groupId> + <artifactId>jtidy</artifactId> + <version>4aug2000r7-dev</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.13</version> + </dependency> + <dependency> + <groupId>jaxen</groupId> + <artifactId>jaxen</artifactId> + <version>1.1.1</version> + </dependency> + </dependencies> + + <scm> + <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-generic-0.12</connection> + <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-generic-0.12</developerConnection> + <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-generic-0.12</url> + </scm> +</project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-04-03 16:02:34
|
Revision: 194 http://jsptest.svn.sourceforge.net/jsptest/?rev=194&view=rev Author: lkoskela Date: 2008-04-03 09:02:30 -0700 (Thu, 03 Apr 2008) Log Message: ----------- [maven-release-plugin] prepare release jsptest-generic-0.12 Modified Paths: -------------- trunk/jsptest-generic/jsptest-common/pom.xml trunk/jsptest-generic/jsptest-compiler-api/pom.xml trunk/jsptest-generic/jsptest-framework/pom.xml trunk/jsptest-generic/pom.xml Modified: trunk/jsptest-generic/jsptest-common/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-common/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ trunk/jsptest-generic/jsptest-common/pom.xml 2008-04-03 16:02:30 UTC (rev 194) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-generic</artifactId> - <version>0.12-SNAPSHOT</version> + <version>'</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-common</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.12</version> <packaging>jar</packaging> <name>Common utilities</name> <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> Modified: trunk/jsptest-generic/jsptest-compiler-api/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2008-04-03 16:02:30 UTC (rev 194) @@ -3,11 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-generic</artifactId> - <version>0.12-SNAPSHOT</version> + <version>'</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-compiler-api</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.12</version> <packaging>jar</packaging> <name>Internal compiler API</name> <description>A common internal API for the different versions of JSP version-specific compilers.</description> Modified: trunk/jsptest-generic/jsptest-framework/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-framework/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ trunk/jsptest-generic/jsptest-framework/pom.xml 2008-04-03 16:02:30 UTC (rev 194) @@ -3,10 +3,11 @@ <parent> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-generic</artifactId> - <version>0.12-SNAPSHOT</version> + <version>'</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-framework</artifactId> + <version>0.12</version> <packaging>jar</packaging> <name>Core framework</name> <description>The core framework functionality for JspTest.</description> @@ -14,12 +15,12 @@ <dependency> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-compiler-api</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.12</version> </dependency> <dependency> <groupId>net.sf.jsptest</groupId> <artifactId>jsptest-common</artifactId> - <version>0.12-SNAPSHOT</version> + <version>0.12</version> </dependency> </dependencies> </project> Modified: trunk/jsptest-generic/pom.xml =================================================================== --- trunk/jsptest-generic/pom.xml 2008-04-02 15:43:33 UTC (rev 193) +++ trunk/jsptest-generic/pom.xml 2008-04-03 16:02:30 UTC (rev 194) @@ -7,6 +7,7 @@ </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-generic</artifactId> + <version>'</version> <name>JspTest root project for the generic components</name> <description>This POM acts as a virtual root for the set of generic components that make up JspTest.</description> <packaging>pom</packaging> @@ -37,4 +38,10 @@ <version>1.1.1</version> </dependency> </dependencies> + + <scm> + <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-generic-0.12</connection> + <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-generic-0.12</developerConnection> + <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-generic-0.12</url> + </scm> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-04-02 15:43:37
|
Revision: 193 http://jsptest.svn.sourceforge.net/jsptest/?rev=193&view=rev Author: lkoskela Date: 2008-04-02 08:43:33 -0700 (Wed, 02 Apr 2008) Log Message: ----------- Refactored TLD location stuff from MockEmbeddedServletOptions into a strategy type of design supporting 'tld files in WEB-INF', 'tld files in WEB-INF/lib' and 'tld files in a .jar file somewhere in classpath'. Renamed MockEmbeddedServletOptions to MockOptions. Modified Paths: -------------- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/JasperCompiler.java Added Paths: ----------- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/java/net/sf/jsptest/acceptance/jsp/TaglibsDefinedInJarFileTest.java trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/custom-taglib.tld trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/lib/ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/lib/tlds.jar trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/web.xml trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/custom-taglib.jsp trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/index.jsp trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/standard-taglibs.jsp trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/MockOptions.java trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ClasspathTldLocator.java trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ExplodedTldLocator.java trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/MockTagInfo.java trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/MockTldLocationsCache.java trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TldLocation.java trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TldLocator.java trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/WebInfLibTldLocator.java Removed Paths: ------------- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/MockEmbeddedServletOptions.java Added: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/java/net/sf/jsptest/acceptance/jsp/TaglibsDefinedInJarFileTest.java =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/java/net/sf/jsptest/acceptance/jsp/TaglibsDefinedInJarFileTest.java (rev 0) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/java/net/sf/jsptest/acceptance/jsp/TaglibsDefinedInJarFileTest.java 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,36 @@ +/* + * Copyright 2007 Lasse Koskela. + * + * 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 net.sf.jsptest.acceptance.jsp; + +import net.sf.jsptest.JspTestCase; + +/** + * @author Lasse Koskela + */ +public class TaglibsDefinedInJarFileTest extends JspTestCase { + + protected String getWebRoot() { + return "src/test/resources/websrc2"; + } + + public void testStandardTaglibsWork() throws Exception { + get("/standard-taglibs.jsp"); + for (int i = 1; i <= 10; i++) { + output().shouldContain("loop-" + i); + } + } +} Added: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/custom-taglib.tld =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/custom-taglib.tld (rev 0) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/custom-taglib.tld 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!DOCTYPE taglib + PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" + "http://java.sun.com/j2ee/dtd/web-jsptaglibrary_1_2.dtd"> + +<taglib> + + <tlib-version>1.0</tlib-version> + <jsp-version>1.2</jsp-version> + <short-name>custom-taglib</short-name> + <uri>http://jsptest.sf.net/taglib</uri> + <description>taglib example</description> + + <tag> + <name>date</name> + <tag-class>net.sf.jsptest.acceptance.jsp.CustomTag</tag-class> + <body-content>TAGDEPENDENT</body-content> + <description>Render request information</description> + <attribute> + <name>tz</name> + <required>false</required> + </attribute> + </tag> + +</taglib> Added: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/lib/tlds.jar =================================================================== (Binary files differ) Property changes on: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/lib/tlds.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/web.xml =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/web.xml (rev 0) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/WEB-INF/web.xml 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,129 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<web-app xmlns="http://java.sun.com/xml/ns/j2ee" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" + version="2.4"> + +<!-- + <context-param> + <param-name>javax.faces.CONFIG_FILES</param-name> + <param-value> + /WEB-INF/faces-config.xml + </param-value> + <description> + Comma separated list of URIs of (additional) faces config files. + (e.g. /WEB-INF/my-config.xml) + See JSF 1.0 PRD2, 10.3.2 + </description> + </context-param> + + <context-param> + <param-name>javax.faces.STATE_SAVING_METHOD</param-name> + <param-value>client</param-value> + <description> + State saving method: "client" or "server" (= default) + See JSF Specification 2.5.2 + </description> + </context-param> + + <context-param> + <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name> + <param-value>true</param-value> + <description> + This parameter tells MyFaces if javascript code should be allowed in the + rendered HTML output. + If javascript is allowed, command_link anchors will have javascript code + that submits the corresponding form. + If javascript is not allowed, the state saving info and nested parameters + will be added as url parameters. + Default: "true" + </description> + </context-param> + + <context-param> + <param-name>org.apache.myfaces.PRETTY_HTML</param-name> + <param-value>true</param-value> + <description> + If true, rendered HTML code will be formatted, so that it is "human readable". + i.e. additional line separators and whitespace will be written, that do not + influence the HTML code. + Default: "true" + </description> + </context-param> + + <context-param> + <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name> + <param-value>false</param-value> + </context-param> + + <context-param> + <param-name>org.apache.myfaces.AUTO_SCROLL</param-name> + <param-value>true</param-value> + <description> + If true, a javascript function will be rendered that is able to restore the + former vertical scroll on every request. Convenient feature if you have pages + with long lists and you do not want the browser page to always jump to the top + if you trigger a link or button action that stays on the same page. + Default: "false" + </description> + </context-param> + + <listener> + <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> + </listener> + + <servlet> + <servlet-name>Faces Servlet</servlet-name> + <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + + <servlet-mapping> + <servlet-name>Faces Servlet</servlet-name> + <url-pattern>*.faces</url-pattern> + </servlet-mapping> +--> + + <!-- Welcome files --> + <welcome-file-list> + <welcome-file>index.jsp</welcome-file> + </welcome-file-list> + + <!-- standard taglibs --> + <taglib> + <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri> + <taglib-location>/WEB-INF/fmt.tld</taglib-location> + </taglib> + + <taglib> + <taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri> + <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location> + </taglib> + + <taglib> + <taglib-uri>http://java.sun.com/jstl/core</taglib-uri> + <taglib-location>/WEB-INF/c.tld</taglib-location> + </taglib> + + <taglib> + <taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri> + <taglib-location>/WEB-INF/c-rt.tld</taglib-location> + </taglib> + + <taglib> + <taglib-uri>http://java.sun.com/jstl/x</taglib-uri> + <taglib-location>/WEB-INF/x.tld</taglib-location> + </taglib> + + <taglib> + <taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri> + <taglib-location>/WEB-INF/x-rt.tld</taglib-location> + </taglib> + + <!-- custom taglibs --> + <taglib> + <taglib-uri>http://jsptest.sf.net/taglib</taglib-uri> + <taglib-location>/WEB-INF/custom-taglib.tld</taglib-location> + </taglib> + +</web-app> \ No newline at end of file Added: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/custom-taglib.jsp =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/custom-taglib.jsp (rev 0) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/custom-taglib.jsp 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,16 @@ +<%@ page language="Java" %> +<%@ taglib uri="http://jsptest.sf.net/taglib" prefix="custom" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> +<html> + <body> + + <small><custom:date tz="GMT">EEE, dd/MMM/yyyy HH:mm:ss ZZZ</custom:date> ==></small> + <custom:date tz="GMT">EEE, dd/MMM/yyyy HH:mm:ss ZZZ</custom:date> + <br/> + + <small><custom:date tz="EST">EEE, dd-MMM-yyyy HH:mm:ss ZZZ</custom:date> ==></small> + <custom:date tz="EST">EEE, dd-MMM-yyyy HH:mm:ss ZZZ</custom:date> + <br/> + + </body> +</html> Added: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/index.jsp =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/index.jsp (rev 0) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/index.jsp 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,3 @@ +<%@ page language="Java" %> +Hello <%= "from" %> Jasper +The time is <%= new java.util.Date().toString() %> \ No newline at end of file Added: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/standard-taglibs.jsp =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/standard-taglibs.jsp (rev 0) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc2/standard-taglibs.jsp 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,5 @@ +<%@ page language="Java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core-rt" %> +<c:forEach var="i" begin="1" end="10"> + <c:out value="loop"/>-<c:out value="${i}" /> +</c:forEach> \ No newline at end of file Modified: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/JasperCompiler.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/JasperCompiler.java 2008-03-09 18:55:16 UTC (rev 192) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/JasperCompiler.java 2008-04-02 15:43:33 UTC (rev 193) @@ -35,7 +35,7 @@ import net.sf.jsptest.compiler.java.CommandLineJavac; import net.sf.jsptest.compiler.java.JavaCompiler; import net.sf.jsptest.compiler.java.SunJavaC; -import net.sf.jsptest.compiler.jsp20.mock.MockEmbeddedServletOptions; +import net.sf.jsptest.compiler.jsp20.mock.MockOptions; import net.sf.jsptest.compiler.jsp20.mock.MockServletConfig; import net.sf.jsptest.compiler.jsp20.mock.MockTagInfo; import net.sf.jsptest.utils.Path; @@ -270,8 +270,7 @@ private Options createOptions(ServletContext ctx, ServletConfig cfg, JspCompilationInfo info) { Options options = new EmbeddedServletOptions(cfg, ctx); - return new MockEmbeddedServletOptions(options, ctx, info - .getTaglibs()); + return new MockOptions(options, ctx, info.getTaglibs()); } private void resolveJavaSourceFile(JspCompilationInfo info) { Deleted: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/MockEmbeddedServletOptions.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/MockEmbeddedServletOptions.java 2008-03-09 18:55:16 UTC (rev 192) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/MockEmbeddedServletOptions.java 2008-04-02 15:43:33 UTC (rev 193) @@ -1,157 +0,0 @@ -/* - * Copyright 2007 Lasse Koskela. - * - * 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 net.sf.jsptest.compiler.jsp20.mock; - -import java.io.File; -import java.util.Map; - -import javax.servlet.ServletContext; - -import org.apache.jasper.Options; -import org.apache.jasper.compiler.JspConfig; -import org.apache.jasper.compiler.MockTagPluginManager; -import org.apache.jasper.compiler.TagPluginManager; -import org.apache.jasper.compiler.TldLocationsCache; - -/** - * @author Lasse Koskela - */ -public class MockEmbeddedServletOptions implements Options { - - private Options options; - - private ServletContext servletContext; - - private Map taglibs; - - public MockEmbeddedServletOptions(Options options, - ServletContext context, Map taglibs) { - this.options = options; - this.servletContext = context; - this.taglibs = taglibs; - } - - public boolean getErrorOnUseBeanInvalidClassAttribute() { - return options.getErrorOnUseBeanInvalidClassAttribute(); - } - - public boolean getKeepGenerated() { - return options.getKeepGenerated(); - } - - public boolean isPoolingEnabled() { - return options.isPoolingEnabled(); - } - - public boolean getMappedFile() { - return options.getMappedFile(); - } - - public boolean getSendErrorToClient() { - return options.getSendErrorToClient(); - } - - public boolean getClassDebugInfo() { - return options.getClassDebugInfo(); - } - - public int getCheckInterval() { - return options.getCheckInterval(); - } - - public boolean getDevelopment() { - return options.getDevelopment(); - } - - public boolean isSmapSuppressed() { - return true; // options.isSmapSuppressed(); - } - - public boolean isSmapDumped() { - return false; // options.isSmapDumped(); - } - - public boolean getTrimSpaces() { - return options.getTrimSpaces(); - } - - public String getIeClassId() { - return options.getIeClassId(); - } - - public File getScratchDir() { - return options.getScratchDir(); - } - - public String getClassPath() { - return options.getClassPath(); - } - - public String getCompiler() { - return options.getCompiler(); - } - - public String getCompilerTargetVM() { - return options.getCompilerTargetVM(); - } - - public String getCompilerSourceVM() { - return options.getCompilerSourceVM(); - } - - public TldLocationsCache getTldLocationsCache() { - TldLocationsCache realCache = options.getTldLocationsCache(); - return new MockTldLocationsCache(realCache, servletContext); - } - - public String getJavaEncoding() { - return options.getJavaEncoding(); - } - - public boolean getFork() { - return options.getFork(); - } - - public JspConfig getJspConfig() { - return options.getJspConfig(); - } - - public boolean isXpoweredBy() { - return options.isXpoweredBy(); - } - - public TagPluginManager getTagPluginManager() { - return new MockTagPluginManager(servletContext, options - .getTagPluginManager(), taglibs); - } - - public boolean genStringAsCharArray() { - return options.genStringAsCharArray(); - } - - public int getModificationTestInterval() { - return options.getModificationTestInterval(); - } - - public boolean isCaching() { - return options.isCaching(); - } - - public Map getCache() { - return options.getCache(); - } -} \ No newline at end of file Added: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/MockOptions.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/MockOptions.java (rev 0) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/MockOptions.java 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,159 @@ +/* + * Copyright 2007 Lasse Koskela. + * + * 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 net.sf.jsptest.compiler.jsp20.mock; + +import java.io.File; +import java.util.Map; + +import javax.servlet.ServletContext; + +import net.sf.jsptest.compiler.jsp20.mock.taglibs.MockTldLocationsCache; + +import org.apache.jasper.Options; +import org.apache.jasper.compiler.JspConfig; +import org.apache.jasper.compiler.MockTagPluginManager; +import org.apache.jasper.compiler.TagPluginManager; +import org.apache.jasper.compiler.TldLocationsCache; + +/** + * @author Lasse Koskela + */ +public class MockOptions implements Options { + + private Options options; + + private ServletContext servletContext; + + private Map taglibs; + + public MockOptions(Options options, + ServletContext context, Map taglibs) { + this.options = options; + this.servletContext = context; + this.taglibs = taglibs; + } + + public boolean getErrorOnUseBeanInvalidClassAttribute() { + return options.getErrorOnUseBeanInvalidClassAttribute(); + } + + public boolean getKeepGenerated() { + return options.getKeepGenerated(); + } + + public boolean isPoolingEnabled() { + return options.isPoolingEnabled(); + } + + public boolean getMappedFile() { + return options.getMappedFile(); + } + + public boolean getSendErrorToClient() { + return options.getSendErrorToClient(); + } + + public boolean getClassDebugInfo() { + return options.getClassDebugInfo(); + } + + public int getCheckInterval() { + return options.getCheckInterval(); + } + + public boolean getDevelopment() { + return options.getDevelopment(); + } + + public boolean isSmapSuppressed() { + return true; // options.isSmapSuppressed(); + } + + public boolean isSmapDumped() { + return false; // options.isSmapDumped(); + } + + public boolean getTrimSpaces() { + return options.getTrimSpaces(); + } + + public String getIeClassId() { + return options.getIeClassId(); + } + + public File getScratchDir() { + return options.getScratchDir(); + } + + public String getClassPath() { + return options.getClassPath(); + } + + public String getCompiler() { + return options.getCompiler(); + } + + public String getCompilerTargetVM() { + return options.getCompilerTargetVM(); + } + + public String getCompilerSourceVM() { + return options.getCompilerSourceVM(); + } + + public TldLocationsCache getTldLocationsCache() { + TldLocationsCache realCache = options.getTldLocationsCache(); + return new MockTldLocationsCache(realCache, servletContext); + } + + public String getJavaEncoding() { + return options.getJavaEncoding(); + } + + public boolean getFork() { + return options.getFork(); + } + + public JspConfig getJspConfig() { + return options.getJspConfig(); + } + + public boolean isXpoweredBy() { + return options.isXpoweredBy(); + } + + public TagPluginManager getTagPluginManager() { + return new MockTagPluginManager(servletContext, options + .getTagPluginManager(), taglibs); + } + + public boolean genStringAsCharArray() { + return options.genStringAsCharArray(); + } + + public int getModificationTestInterval() { + return options.getModificationTestInterval(); + } + + public boolean isCaching() { + return options.isCaching(); + } + + public Map getCache() { + return options.getCache(); + } +} \ No newline at end of file Added: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ClasspathTldLocator.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ClasspathTldLocator.java (rev 0) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ClasspathTldLocator.java 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,35 @@ +/* + * Copyright 2007 Lasse Koskela. + * + * 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 net.sf.jsptest.compiler.jsp20.mock.taglibs; + +import java.net.URL; + +public class ClasspathTldLocator implements TldLocator { + + public TldLocation find(String filename) { + try { + String pathInsideArchive = "META-INF/" + filename; + URL resource = getClass().getResource(pathInsideArchive); + if (resource != null) { + return TldLocation.foundFromClassPath(resource, + pathInsideArchive); + } + } catch (Exception ignored) { + } + return TldLocation.notFound(); + } +} \ No newline at end of file Added: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ExplodedTldLocator.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ExplodedTldLocator.java (rev 0) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/ExplodedTldLocator.java 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,36 @@ +/* + * Copyright 2007 Lasse Koskela. + * + * 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 net.sf.jsptest.compiler.jsp20.mock.taglibs; + +import java.io.File; + +public class ExplodedTldLocator implements TldLocator { + + private final String webRoot; + + public ExplodedTldLocator(String webRoot) { + this.webRoot = webRoot; + } + + public TldLocation find(String filename) { + File webInf = new File(webRoot, "WEB-INF"); + if (new File(webInf, filename).exists()) { + return TldLocation.foundFromWebInf(filename); + } + return TldLocation.notFound(); + } +} \ No newline at end of file Added: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/MockTagInfo.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/MockTagInfo.java (rev 0) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/MockTagInfo.java 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,38 @@ +/* + * Copyright 2007 Lasse Koskela. + * + * 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 net.sf.jsptest.compiler.jsp20.mock.taglibs; + +import javax.servlet.jsp.tagext.TagInfo; + +/** + * @author Lasse Koskela + */ +public class MockTagInfo extends TagInfo { + + public MockTagInfo() { + super("", "", "", "", null, null, null); + } + + public String getTagClassName() { + try { + throw new RuntimeException("MockTagInfo being asked for getTagClassName()"); + } catch (RuntimeException e) { + e.printStackTrace(System.out); + } + return super.getTagClassName(); + } +} Added: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/MockTldLocationsCache.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/MockTldLocationsCache.java (rev 0) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/MockTldLocationsCache.java 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,86 @@ +/* + * Copyright 2007 Lasse Koskela. + * + * 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 net.sf.jsptest.compiler.jsp20.mock.taglibs; + +import java.util.HashMap; +import java.util.Map; + +import javax.servlet.ServletContext; + +import org.apache.jasper.JasperException; +import org.apache.jasper.compiler.TldLocationsCache; + +/** + * @author Lasse Koskela + */ +public class MockTldLocationsCache extends TldLocationsCache { + + private Map standardTlds = new HashMap() { + { + put("http://java.sun.com/jstl/core", "c.tld"); + put("http://java.sun.com/jstl/sql", "sql.tld"); + put("http://java.sun.com/jstl/xml", "x.tld"); + put("http://java.sun.com/jstl/fmt", "fmt.tld"); + put("http://java.sun.com/jstl/functions", "fn.tld"); + + put("http://java.sun.com/jstl/core-rt", "c-rt.tld"); + put("http://java.sun.com/jstl/sql-rt", "sql-rt.tld"); + put("http://java.sun.com/jstl/xml-rt", "x-rt.tld"); + put("http://java.sun.com/jstl/fmt-rt", "fmt-rt.tld"); + put("http://java.sun.com/jstl/functions-rt", "fn-rt.tld"); + + put("http://java.sun.com/jsp/jstl/core", "c.tld"); + put("http://java.sun.com/jsp/jstl/sql", "sql.tld"); + put("http://java.sun.com/jsp/jstl/xml", "x.tld"); + put("http://java.sun.com/jsp/jstl/fmt", "fmt.tld"); + put("http://java.sun.com/jsp/jstl/functions", "fn.tld"); + } + }; + + private TldLocationsCache realCache; + + private String webRoot; + + private TldLocator[] locators; + + public MockTldLocationsCache(TldLocationsCache delegate, ServletContext ctx) { + this(delegate, ctx, true); + } + + public MockTldLocationsCache(TldLocationsCache delegate, + ServletContext ctx, boolean redeployMode) { + super(ctx, redeployMode); + realCache = delegate; + webRoot = ctx.getRealPath("/"); + locators = new TldLocator[] { new WebInfLibTldLocator(webRoot), + new ExplodedTldLocator(webRoot), new ClasspathTldLocator() }; + } + + public String[] getLocation(String uri) throws JasperException { + // TODO: Optimize. Call to getLocation(String) can take a full second. + if (standardTlds.containsKey(uri)) { + String tldFileName = (String) standardTlds.get(uri); + for (int i = 0; i < locators.length; i++) { + TldLocation location = locators[i].find(tldFileName); + if (location.wasFound()) { + return location.toArray(); + } + } + } + return realCache.getLocation(uri); + } +} Added: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TldLocation.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TldLocation.java (rev 0) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TldLocation.java 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,89 @@ +/* + * Copyright 2007 Lasse Koskela. + * + * 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 net.sf.jsptest.compiler.jsp20.mock.taglibs; + +import java.io.File; +import java.net.MalformedURLException; +import java.net.URL; + +public class TldLocation { + + private final boolean wasFound; + + protected TldLocation(boolean wasFound) { + this.wasFound = wasFound; + } + + /** + * Indicates whether the location was found or not. + * + * @return true if the TLD was found, false if it wasn't. + */ + public boolean wasFound() { + return wasFound; + } + + /** + * <p> + * Formats the location of the TLD into the array format used by + * <tt>TldLocationsCache</tt>, i.e. an array in one of these formats: + * </p> + * <p> { "/WEB-INF/foo.tld", null } for exploded TLD files<br/> { + * "file://url/to/taglibs.jar", "META-INF/foo.tld } for TLD files found in + * archives + * </p> + */ + public String[] toArray() { + return null; + } + + public static TldLocation notFound() { + return new TldLocation(false); + } + + public static TldLocation foundFromWebInf(final String filename) { + return new TldLocation(true) { + public String[] toArray() { + return new String[] { "/WEB-INF/" + filename, null }; + } + }; + } + + public static TldLocation foundFromArchive(final File archive, + final String archiveEntry) { + return new TldLocation(true) { + public String[] toArray() { + try { + String pathToArchive = archive.toURL().toExternalForm(); + return new String[] { pathToArchive, archiveEntry }; + } catch (MalformedURLException e) { + throw new RuntimeException(e); + } + } + }; + } + + public static TldLocation foundFromClassPath(final URL archive, + final String pathInsideArchive) { + return new TldLocation(true) { + public String[] toArray() { + String pathToArchive = archive.toExternalForm(); + return new String[] { pathToArchive, pathInsideArchive }; + } + }; + } +} Added: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TldLocator.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TldLocator.java (rev 0) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/TldLocator.java 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,29 @@ +/* + * Copyright 2007 Lasse Koskela. + * + * 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 net.sf.jsptest.compiler.jsp20.mock.taglibs; + +public interface TldLocator { + + /** + * Attempts to find the given TLD file. + * + * @param filename + * The name of the TLD file, e.g. "sql-rt.tld". + * @return <tt>TldLocation</tt> representing the result of the search. + */ + TldLocation find(String filename); +} Added: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/WebInfLibTldLocator.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/WebInfLibTldLocator.java (rev 0) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/mock/taglibs/WebInfLibTldLocator.java 2008-04-02 15:43:33 UTC (rev 193) @@ -0,0 +1,65 @@ +/* + * Copyright 2007 Lasse Koskela. + * + * 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 net.sf.jsptest.compiler.jsp20.mock.taglibs; + +import java.io.File; +import java.io.FilenameFilter; +import java.io.IOException; +import java.util.jar.JarEntry; +import java.util.jar.JarFile; + +public class WebInfLibTldLocator implements TldLocator { + + private final String webRoot; + + public WebInfLibTldLocator(String webRoot) { + this.webRoot = webRoot; + } + + public TldLocation find(String filename) { + File webInfLib = new File(new File(webRoot, "WEB-INF"), "lib"); + if (webInfLib.exists()) { + File[] archives = findArchivesFrom(webInfLib); + return findTldFromArchives(filename, archives); + } else { + return TldLocation.notFound(); + } + } + + private TldLocation findTldFromArchives(String filename, File[] archives) { + for (int i = 0; i < archives.length; i++) { + try { + JarFile archive = new JarFile(archives[i]); + JarEntry entry = archive.getJarEntry("META-INF/" + filename); + if (entry != null) { + return TldLocation.foundFromArchive(archives[i], + "META-INF/" + filename); + } + } catch (IOException ignored) { + } + } + return TldLocation.notFound(); + } + + private File[] findArchivesFrom(File dir) { + return dir.listFiles(new FilenameFilter() { + public boolean accept(File directory, String name) { + return name.endsWith(".jar"); + } + }); + } +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-03-09 18:55:20
|
Revision: 192 http://jsptest.svn.sourceforge.net/jsptest/?rev=192&view=rev Author: lkoskela Date: 2008-03-09 11:55:16 -0700 (Sun, 09 Mar 2008) Log Message: ----------- Applied a modified version of a patch by Mathias Broekelmann, which essentially adds a Sun JDK 'tools'.jar' based implementation of the JavaCompiler interface. Modified Paths: -------------- trunk/jsptest-generic/jsptest-common/pom.xml trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/JasperCompiler.java trunk/pom.xml Added Paths: ----------- trunk/jsptest-generic/jsptest-common/src/main/java/net/sf/jsptest/compiler/java/SunJavaC.java Modified: trunk/jsptest-generic/jsptest-common/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-common/pom.xml 2008-03-09 18:07:11 UTC (rev 191) +++ trunk/jsptest-generic/jsptest-common/pom.xml 2008-03-09 18:55:16 UTC (rev 192) @@ -11,4 +11,24 @@ <packaging>jar</packaging> <name>Common utilities</name> <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> + <profiles> + <profile> + <id>default-tools.jar</id> + <activation> + <property> + <name>java.vendor</name> + <value>Sun Microsystems Inc.</value> + </property> + </activation> + <dependencies> + <dependency> + <groupId>com.sun</groupId> + <artifactId>tools</artifactId> + <version>1.4.2</version> + <scope>system</scope> + <systemPath>${java.home}/../lib/tools.jar</systemPath> + </dependency> + </dependencies> + </profile> + </profiles> </project> Added: trunk/jsptest-generic/jsptest-common/src/main/java/net/sf/jsptest/compiler/java/SunJavaC.java =================================================================== --- trunk/jsptest-generic/jsptest-common/src/main/java/net/sf/jsptest/compiler/java/SunJavaC.java (rev 0) +++ trunk/jsptest-generic/jsptest-common/src/main/java/net/sf/jsptest/compiler/java/SunJavaC.java 2008-03-09 18:55:16 UTC (rev 192) @@ -0,0 +1,70 @@ +/** + * + */ +package net.sf.jsptest.compiler.java; + +import java.lang.reflect.Method; + +/** + * This implementation uses the java compiler from sun which ships with since the jdk since java 1.3. + * The code is inspired by the javac ant task implementation. + * + * @author mathias.broekelmann + * + */ +public class SunJavaC implements JavaCompiler { + + private static final String SEPARATOR = System.getProperty("path.separator"); + + public boolean compile(String pathToJavaSource, String outputDirectory, String[] classpath) throws Exception { + String classpathString = join(classpath); + String[] args = buildArgs(pathToJavaSource, outputDirectory, classpathString); + return compile(args); + } + + private boolean compile(String[] args) { + try { + Class compilerClass = getCompileClass(); + Method compilerMethod = resolveCompilerMethod(compilerClass); + return ((Integer)compilerMethod.invoke(compilerClass.newInstance(), new Object[] { args })).intValue() == 0; + } catch (Throwable e) { + System.err.println(e.getMessage()); + return false; + } + } + + private String[] buildArgs(String pathToJavaSource, String outputDirectory, String classpathString) { + return new String[] { "-classpath", classpathString, "-d", outputDirectory, pathToJavaSource }; + } + + private String join(String[] classpath) { + StringBuffer s = new StringBuffer(); + for (int i = 0; i < classpath.length; i++) { + if (s.length() > 0) { + s.append(SEPARATOR); + } + s.append(classpath[i]); + } + return s.toString(); + } + + public boolean isAvailable() { + try { + Class c = getCompileClass(); + resolveCompilerMethod(c); + return true; + } catch (Throwable ex) { + return false; + } + } + + private Method resolveCompilerMethod(Class compilerClass) throws NoSuchMethodException { + return compilerClass.getMethod("compile", new Class[] { (new String[] {}).getClass() }); + } + + private Class getCompileClass() throws ClassNotFoundException { + Class c = Class.forName("com.sun.tools.javac.Main"); + return c; + } + +} Modified: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/JasperCompiler.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/JasperCompiler.java 2008-03-09 18:07:11 UTC (rev 191) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/JasperCompiler.java 2008-03-09 18:55:16 UTC (rev 192) @@ -34,6 +34,7 @@ import net.sf.jsptest.compiler.JspCompilationInfo; import net.sf.jsptest.compiler.java.CommandLineJavac; import net.sf.jsptest.compiler.java.JavaCompiler; +import net.sf.jsptest.compiler.java.SunJavaC; import net.sf.jsptest.compiler.jsp20.mock.MockEmbeddedServletOptions; import net.sf.jsptest.compiler.jsp20.mock.MockServletConfig; import net.sf.jsptest.compiler.jsp20.mock.MockTagInfo; @@ -388,7 +389,7 @@ // this doesn't work because with Maven we need to set the classpath // explicitly as the "current" classpath does not include our // dependencies - // compilers.add(new SunJavac()); + compilers.add(new SunJavaC()); compilers.add(new CommandLineJavac()); for (Iterator i = compilers.iterator(); i.hasNext();) { JavaCompiler compiler = (JavaCompiler) i.next(); Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2008-03-09 18:07:11 UTC (rev 191) +++ trunk/pom.xml 2008-03-09 18:55:16 UTC (rev 192) @@ -54,6 +54,13 @@ <dependencyManagement> <dependencies> <dependency> + <groupId>sun.jdk</groupId> + <artifactId>tools</artifactId> + <version>1.4</version> + <scope>system</scope> + <systemPath>${java.home}/../lib/tools.jar</systemPath> + </dependency> + <dependency> <groupId>jtidy</groupId> <artifactId>jtidy</artifactId> <version>4aug2000r7-dev</version> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-03-09 18:07:14
|
Revision: 191 http://jsptest.svn.sourceforge.net/jsptest/?rev=191&view=rev Author: lkoskela Date: 2008-03-09 11:07:11 -0700 (Sun, 09 Mar 2008) Log Message: ----------- Patch by Mathias Broekelmann - upgraded web.xml specification to 2.4 Modified Paths: -------------- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/web.xml Modified: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/web.xml =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/web.xml 2008-01-14 06:31:40 UTC (rev 190) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/web.xml 2008-03-09 18:07:11 UTC (rev 191) @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<!DOCTYPE web-app - PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" - "http://java.sun.com/dtd/web-app_2_3.dtd"> -<web-app> +<web-app xmlns="http://java.sun.com/xml/ns/j2ee" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" + version="2.4"> <!-- <context-param> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-01-14 06:31:41
|
Revision: 190 http://jsptest.svn.sourceforge.net/jsptest/?rev=190&view=rev Author: lkoskela Date: 2008-01-13 22:31:40 -0800 (Sun, 13 Jan 2008) Log Message: ----------- Removed dead code and unused imports Modified Paths: -------------- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/JspTestCase.java trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/JspCompilerImpl.java trunk/jsptest-jsp20/src/test/java/net/sf/jsptest/compiler/jsp20/TestJspImpl.java Modified: trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/JspTestCase.java =================================================================== --- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/JspTestCase.java 2008-01-14 06:21:07 UTC (rev 189) +++ trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/JspTestCase.java 2008-01-14 06:31:40 UTC (rev 190) @@ -92,14 +92,6 @@ requestAttributes.put(attribute, value); } - private Map getRequestAttributes() { - return requestAttributes; - } - - private Map getSessionAttributes() { - return sessionAttributes; - } - /** * Simulate a HTTP GET request to the specified JSP file. * Modified: trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/JspCompilerImpl.java =================================================================== --- trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/JspCompilerImpl.java 2008-01-14 06:21:07 UTC (rev 189) +++ trunk/jsptest-jsp20/src/main/java/net/sf/jsptest/compiler/jsp20/JspCompilerImpl.java 2008-01-14 06:31:40 UTC (rev 190) @@ -1,70 +1,57 @@ package net.sf.jsptest.compiler.jsp20; import java.io.File; -import java.io.FileNotFoundException; import java.util.Map; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; -import javax.servlet.http.HttpServlet; - import net.sf.jsptest.compiler.JspCompilationInfo; import net.sf.jsptest.compiler.api.Jsp; import net.sf.jsptest.compiler.api.JspCompiler; -import net.sf.jsptest.compiler.api.JspExecution; -import net.sf.jsptest.compiler.jsp20.mock.MockHttpServletRequest; -import net.sf.jsptest.compiler.jsp20.mock.MockHttpServletResponse; -import net.sf.jsptest.compiler.jsp20.mock.MockHttpSession; -import net.sf.jsptest.compiler.jsp20.mock.MockServletConfig; -import net.sf.jsptest.compiler.jsp20.mock.MockServletContext; import net.sf.jsptest.utils.CustomClassLoader; public class JspCompilerImpl implements JspCompiler { - private String outputDirectory = new File(System - .getProperty("java.io.tmpdir"), "jsptest-classes") - .getAbsolutePath(); - private String webRoot; + private String outputDirectory = new File(System + .getProperty("java.io.tmpdir"), "jsptest-classes") + .getAbsolutePath(); + private String webRoot; - public void setOutputDirectory(String directory) { - outputDirectory = directory; - } + public void setOutputDirectory(String directory) { + outputDirectory = directory; + } - protected String getOutputDirectory() { - return outputDirectory; - } + protected String getOutputDirectory() { + return outputDirectory; + } - public void setWebRoot(String directory) { - this.webRoot = directory; - } - - protected String getWebRoot() { - return webRoot; - } + public void setWebRoot(String directory) { + this.webRoot = directory; + } - public Jsp compile(final String jspPath, - Map taglibs) { - try { - JasperCompiler compiler = new JasperCompiler(); - compiler.setWebRoot(getWebRoot()); - compiler.setClassOutputBaseDir(getOutputDirectory()); - JspCompilationInfo info = compiler.compile(jspPath, - taglibs); - final Class servletClass = compileToClass(info); - return new JspImpl(servletClass); - } catch (Exception e) { - throw new RuntimeException(e); - } - } + protected String getWebRoot() { + return webRoot; + } - private Class compileToClass(JspCompilationInfo compilation) - throws Exception, ClassNotFoundException { - return loadJspClass(compilation.getClassName()); - } + public Jsp compile(final String jspPath, Map taglibs) { + try { + JasperCompiler compiler = new JasperCompiler(); + compiler.setWebRoot(getWebRoot()); + compiler.setClassOutputBaseDir(getOutputDirectory()); + JspCompilationInfo info = compiler.compile(jspPath, taglibs); + final Class servletClass = compileToClass(info); + return new JspImpl(servletClass); + } catch (Exception e) { + throw new RuntimeException(e); + } + } - private Class loadJspClass(String jspClassName) - throws ClassNotFoundException { - ClassLoader cl = new CustomClassLoader(getOutputDirectory()); - return cl.loadClass(jspClassName); - } + private Class compileToClass(JspCompilationInfo compilation) + throws Exception, ClassNotFoundException { + return loadJspClass(compilation.getClassName()); + } + + private Class loadJspClass(String jspClassName) + throws ClassNotFoundException { + ClassLoader cl = new CustomClassLoader(getOutputDirectory()); + return cl.loadClass(jspClassName); + } } Modified: trunk/jsptest-jsp20/src/test/java/net/sf/jsptest/compiler/jsp20/TestJspImpl.java =================================================================== --- trunk/jsptest-jsp20/src/test/java/net/sf/jsptest/compiler/jsp20/TestJspImpl.java 2008-01-14 06:21:07 UTC (rev 189) +++ trunk/jsptest-jsp20/src/test/java/net/sf/jsptest/compiler/jsp20/TestJspImpl.java 2008-01-14 06:31:40 UTC (rev 190) @@ -6,7 +6,6 @@ import java.util.HashMap; import java.util.Map; -import javax.servlet.ServletConfig; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; @@ -20,113 +19,103 @@ import net.sf.jsptest.compiler.api.JspExecution; import net.sf.jsptest.compiler.jsp20.mock.MockJspWriter; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - public class TestJspImpl extends TestCase { - private static final Log log = LogFactory - .getLog(TestJspImpl.class); + public static class FakeServlet extends javax.servlet.http.HttpServlet { - public static class FakeServlet extends - javax.servlet.http.HttpServlet { + protected void service(HttpServletRequest req, HttpServletResponse resp) + throws ServletException, IOException { + JspFactory _jspxFactory = JspFactory.getDefaultFactory(); + resp.setContentType("text/html"); + PageContext pageContext = _jspxFactory.getPageContext(this, req, + resp, null, true, 8192, true); + JspWriter out = pageContext.getOut(); + // this is the way Jasper's JspServlet obtains the session + HttpSession session = pageContext.getSession(); - protected void service(HttpServletRequest req, - HttpServletResponse resp) throws ServletException, - IOException { - JspFactory _jspxFactory = JspFactory.getDefaultFactory(); - resp.setContentType("text/html"); - PageContext pageContext = _jspxFactory.getPageContext( - this, req, resp, null, true, 8192, true); - JspWriter out = pageContext.getOut(); - // this is the way Jasper's JspServlet obtains the session - HttpSession session = pageContext.getSession(); + out.println("httpMethod=" + req.getMethod()); - out.println("httpMethod=" + req.getMethod()); + Enumeration names = req.getAttributeNames(); + while (names.hasMoreElements()) { + String name = (String) names.nextElement(); + out.print(name); + out.print("="); + out.println(req.getAttribute(name)); + } - Enumeration names = req.getAttributeNames(); - while (names.hasMoreElements()) { - String name = (String) names.nextElement(); - out.print(name); - out.print("="); - out.println(req.getAttribute(name)); - } + Enumeration names2 = session.getAttributeNames(); + while (names2.hasMoreElements()) { + String name = (String) names2.nextElement(); + out.print(name); + out.print("="); + out.println(session.getAttribute(name)); + } - Enumeration names2 = session.getAttributeNames(); - while (names2.hasMoreElements()) { - String name = (String) names2.nextElement(); - out.print(name); - out.print("="); - out.println(session.getAttribute(name)); - } + out.println(); + out.flush(); + out.close(); + } + } - out.println(); - out.flush(); - out.close(); - } - } + protected File responseFile; - protected File responseFile; + private JspImpl jspImpl; - private JspImpl jspImpl; + private Map requestAttributes; - private Map requestAttributes; + private Map sessionAttributes; - private Map sessionAttributes; + private MockJspWriter mockJspWriter; - private MockJspWriter mockJspWriter; + protected void setUp() throws Exception { + requestAttributes = new HashMap(); + sessionAttributes = new HashMap(); + requestAttributes.put("REQATTR", "REQVALUE"); + sessionAttributes.put("SESATTR", "SESVALUE"); + jspImpl = new JspImpl(FakeServlet.class) { + protected MockJspWriter configureJspFactory( + ServletContext httpContext, HttpServletRequest httpRequest, + HttpSession httpSession) { + mockJspWriter = super.configureJspFactory(httpContext, + httpRequest, httpSession); + return mockJspWriter; + } + }; + } - protected void setUp() throws Exception { - requestAttributes = new HashMap(); - sessionAttributes = new HashMap(); - requestAttributes.put("REQATTR", "REQVALUE"); - sessionAttributes.put("SESATTR", "SESVALUE"); - jspImpl = new JspImpl(FakeServlet.class) { - protected MockJspWriter configureJspFactory( - ServletContext httpContext, - HttpServletRequest httpRequest, - HttpSession httpSession) { - mockJspWriter = super.configureJspFactory( - httpContext, httpRequest, httpSession); - return mockJspWriter; - } - }; - } + public void testHttpMethodIsPassedToTheServletInstance() throws Exception { + simulateRequest("GET"); + assertOutputContains("httpMethod=GET"); + simulateRequest("POST"); + assertOutputContains("httpMethod=POST"); + } - public void testHttpMethodIsPassedToTheServletInstance() - throws Exception { - simulateRequest("GET"); - assertOutputContains("httpMethod=GET"); - simulateRequest("POST"); - assertOutputContains("httpMethod=POST"); - } + public void testRequestAttributesArePassedToTheServletInstance() + throws Exception { + simulateRequest(); + assertOutputContains("REQATTR=REQVALUE"); + } - public void testRequestAttributesArePassedToTheServletInstance() - throws Exception { - simulateRequest(); - assertOutputContains("REQATTR=REQVALUE"); - } + public void testSessionAttributesArePassedToTheServletInstance() + throws Exception { + simulateRequest(); + assertOutputContains("SESATTR=SESVALUE"); + } - public void testSessionAttributesArePassedToTheServletInstance() - throws Exception { - simulateRequest(); - assertOutputContains("SESATTR=SESVALUE"); - } + private void simulateRequest() { + simulateRequest("GET"); + } - private void simulateRequest() { - simulateRequest("GET"); - } + private void simulateRequest(String method) { + JspExecution execution = jspImpl.request(method, requestAttributes, + sessionAttributes); + responseFile = execution.getRenderedResponse(); + } - private void simulateRequest(String method) { - JspExecution execution = jspImpl.request(method, - requestAttributes, sessionAttributes); - responseFile = execution.getRenderedResponse(); - } - - private void assertOutputContains(String string) - throws IOException { - String output = mockJspWriter.getContents(); - assertTrue("Output did not contain '" + string + "':\n[" - + output + "]", output.indexOf(string) != -1); - } + private void assertOutputContains(String string) throws IOException { + String output = mockJspWriter.getContents(); + assertTrue( + "Output did not contain '" + string + "':\n[" + output + "]", + output.indexOf(string) != -1); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-01-14 06:21:11
|
Revision: 189 http://jsptest.svn.sourceforge.net/jsptest/?rev=189&view=rev Author: lkoskela Date: 2008-01-13 22:21:07 -0800 (Sun, 13 Jan 2008) Log Message: ----------- Reverted the version back to 0.12-SNAPSHOT after mistakenly letting them bump up to 0.13-SNAPSHOT. Modified Paths: -------------- trunk/jsptest-generic/jsptest-common/pom.xml trunk/jsptest-generic/jsptest-compiler-api/pom.xml Modified: trunk/jsptest-generic/jsptest-common/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-common/pom.xml 2008-01-14 05:58:56 UTC (rev 188) +++ trunk/jsptest-generic/jsptest-common/pom.xml 2008-01-14 06:21:07 UTC (rev 189) @@ -7,7 +7,7 @@ </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-common</artifactId> - <version>0.13-SNAPSHOT</version> + <version>0.12-SNAPSHOT</version> <packaging>jar</packaging> <name>Common utilities</name> <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> Modified: trunk/jsptest-generic/jsptest-compiler-api/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2008-01-14 05:58:56 UTC (rev 188) +++ trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2008-01-14 06:21:07 UTC (rev 189) @@ -7,7 +7,7 @@ </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-compiler-api</artifactId> - <version>0.13-SNAPSHOT</version> + <version>0.12-SNAPSHOT</version> <packaging>jar</packaging> <name>Internal compiler API</name> <description>A common internal API for the different versions of JSP version-specific compilers.</description> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2008-01-14 05:58:59
|
Revision: 188 http://jsptest.svn.sourceforge.net/jsptest/?rev=188&view=rev Author: lkoskela Date: 2008-01-13 21:58:56 -0800 (Sun, 13 Jan 2008) Log Message: ----------- Added a mention about the M2_REPO classpath variable Modified Paths: -------------- trunk/ECLIPSE.txt Modified: trunk/ECLIPSE.txt =================================================================== --- trunk/ECLIPSE.txt 2007-10-30 06:25:30 UTC (rev 187) +++ trunk/ECLIPSE.txt 2008-01-14 05:58:56 UTC (rev 188) @@ -12,8 +12,17 @@ $ mvn eclipse:eclipse -2. Import the JspTest modules as separate projects +2. Generate the M2_REPO classpath variable + The Maven Eclipse plugin generates the .classpath file with + references to a classpath variable named "M2_REPO", which doesn't + exist by default so you need to create it by executing the following + command: + + $ mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo + +3. Import the JspTest modules as separate projects + JspTest is organized as a multi-module Maven project, which means that we'll have one Eclipse project per module. In order to import the modules as regular Java projects into Eclipse, perform the following This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2007-10-30 06:25:31
|
Revision: 187 http://jsptest.svn.sourceforge.net/jsptest/?rev=187&view=rev Author: lkoskela Date: 2007-10-29 23:25:30 -0700 (Mon, 29 Oct 2007) Log Message: ----------- [maven-release-plugin] prepare for next development iteration Modified Paths: -------------- trunk/jsptest-generic/jsptest-compiler-api/pom.xml Modified: trunk/jsptest-generic/jsptest-compiler-api/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2007-10-30 06:25:26 UTC (rev 186) +++ trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2007-10-30 06:25:30 UTC (rev 187) @@ -7,14 +7,8 @@ </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-compiler-api</artifactId> - <version>0.12</version> + <version>0.13-SNAPSHOT</version> <packaging>jar</packaging> <name>Internal compiler API</name> <description>A common internal API for the different versions of JSP version-specific compilers.</description> - - <scm> - <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-compiler-api-0.12</connection> - <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-compiler-api-0.12</developerConnection> - <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-compiler-api-0.12</url> - </scm> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2007-10-30 06:25:27
|
Revision: 186 http://jsptest.svn.sourceforge.net/jsptest/?rev=186&view=rev Author: lkoskela Date: 2007-10-29 23:25:26 -0700 (Mon, 29 Oct 2007) Log Message: ----------- [maven-release-plugin] copy for tag jsptest-compiler-api-0.12 Added Paths: ----------- tags/jsptest-compiler-api-0.12/ tags/jsptest-compiler-api-0.12/pom.xml Removed Paths: ------------- tags/jsptest-compiler-api-0.12/pom.xml Copied: tags/jsptest-compiler-api-0.12 (from rev 181, trunk/jsptest-generic/jsptest-compiler-api) Deleted: tags/jsptest-compiler-api-0.12/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2007-10-30 06:04:38 UTC (rev 181) +++ tags/jsptest-compiler-api-0.12/pom.xml 2007-10-30 06:25:26 UTC (rev 186) @@ -1,13 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-generic</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-compiler-api</artifactId> - <packaging>jar</packaging> - <name>Internal compiler API</name> - <description>A common internal API for the different versions of JSP version-specific compilers.</description> -</project> Copied: tags/jsptest-compiler-api-0.12/pom.xml (from rev 185, trunk/jsptest-generic/jsptest-compiler-api/pom.xml) =================================================================== --- tags/jsptest-compiler-api-0.12/pom.xml (rev 0) +++ tags/jsptest-compiler-api-0.12/pom.xml 2007-10-30 06:25:26 UTC (rev 186) @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-generic</artifactId> + <version>0.12-SNAPSHOT</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-compiler-api</artifactId> + <version>0.12</version> + <packaging>jar</packaging> + <name>Internal compiler API</name> + <description>A common internal API for the different versions of JSP version-specific compilers.</description> + + <scm> + <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-compiler-api-0.12</connection> + <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-compiler-api-0.12</developerConnection> + <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-compiler-api-0.12</url> + </scm> +</project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2007-10-30 06:25:18
|
Revision: 185 http://jsptest.svn.sourceforge.net/jsptest/?rev=185&view=rev Author: lkoskela Date: 2007-10-29 23:25:17 -0700 (Mon, 29 Oct 2007) Log Message: ----------- [maven-release-plugin] prepare release jsptest-compiler-api-0.12 Modified Paths: -------------- trunk/jsptest-generic/jsptest-compiler-api/pom.xml Modified: trunk/jsptest-generic/jsptest-compiler-api/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2007-10-30 06:23:38 UTC (rev 184) +++ trunk/jsptest-generic/jsptest-compiler-api/pom.xml 2007-10-30 06:25:17 UTC (rev 185) @@ -7,7 +7,14 @@ </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-compiler-api</artifactId> + <version>0.12</version> <packaging>jar</packaging> <name>Internal compiler API</name> <description>A common internal API for the different versions of JSP version-specific compilers.</description> + + <scm> + <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-compiler-api-0.12</connection> + <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-compiler-api-0.12</developerConnection> + <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-compiler-api-0.12</url> + </scm> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2007-10-30 06:23:39
|
Revision: 184 http://jsptest.svn.sourceforge.net/jsptest/?rev=184&view=rev Author: lkoskela Date: 2007-10-29 23:23:38 -0700 (Mon, 29 Oct 2007) Log Message: ----------- [maven-release-plugin] prepare for next development iteration Modified Paths: -------------- trunk/jsptest-generic/jsptest-common/pom.xml Modified: trunk/jsptest-generic/jsptest-common/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-common/pom.xml 2007-10-30 06:23:33 UTC (rev 183) +++ trunk/jsptest-generic/jsptest-common/pom.xml 2007-10-30 06:23:38 UTC (rev 184) @@ -7,14 +7,8 @@ </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-common</artifactId> - <version>0.12</version> + <version>0.13-SNAPSHOT</version> <packaging>jar</packaging> <name>Common utilities</name> <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> - - <scm> - <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-common-0.12</connection> - <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-common-0.12</developerConnection> - <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-common-0.12</url> - </scm> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2007-10-30 06:23:34
|
Revision: 183 http://jsptest.svn.sourceforge.net/jsptest/?rev=183&view=rev Author: lkoskela Date: 2007-10-29 23:23:33 -0700 (Mon, 29 Oct 2007) Log Message: ----------- [maven-release-plugin] copy for tag jsptest-common-0.12 Added Paths: ----------- tags/jsptest-common-0.12/ tags/jsptest-common-0.12/pom.xml Removed Paths: ------------- tags/jsptest-common-0.12/pom.xml Copied: tags/jsptest-common-0.12 (from rev 181, trunk/jsptest-generic/jsptest-common) Deleted: tags/jsptest-common-0.12/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-common/pom.xml 2007-10-30 06:04:38 UTC (rev 181) +++ tags/jsptest-common-0.12/pom.xml 2007-10-30 06:23:33 UTC (rev 183) @@ -1,13 +0,0 @@ -<?xml version="1.0"?> -<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/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sf.jsptest</groupId> - <artifactId>jsptest-generic</artifactId> - <version>0.12-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <artifactId>jsptest-common</artifactId> - <packaging>jar</packaging> - <name>Common utilities</name> - <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> -</project> Copied: tags/jsptest-common-0.12/pom.xml (from rev 182, trunk/jsptest-generic/jsptest-common/pom.xml) =================================================================== --- tags/jsptest-common-0.12/pom.xml (rev 0) +++ tags/jsptest-common-0.12/pom.xml 2007-10-30 06:23:33 UTC (rev 183) @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<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/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sf.jsptest</groupId> + <artifactId>jsptest-generic</artifactId> + <version>0.12-SNAPSHOT</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>jsptest-common</artifactId> + <version>0.12</version> + <packaging>jar</packaging> + <name>Common utilities</name> + <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> + + <scm> + <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-common-0.12</connection> + <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-common-0.12</developerConnection> + <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-common-0.12</url> + </scm> +</project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2007-10-30 06:23:30
|
Revision: 182 http://jsptest.svn.sourceforge.net/jsptest/?rev=182&view=rev Author: lkoskela Date: 2007-10-29 23:23:26 -0700 (Mon, 29 Oct 2007) Log Message: ----------- [maven-release-plugin] prepare release jsptest-common-0.12 Modified Paths: -------------- trunk/jsptest-generic/jsptest-common/pom.xml Modified: trunk/jsptest-generic/jsptest-common/pom.xml =================================================================== --- trunk/jsptest-generic/jsptest-common/pom.xml 2007-10-30 06:04:38 UTC (rev 181) +++ trunk/jsptest-generic/jsptest-common/pom.xml 2007-10-30 06:23:26 UTC (rev 182) @@ -7,7 +7,14 @@ </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jsptest-common</artifactId> + <version>0.12</version> <packaging>jar</packaging> <name>Common utilities</name> <description>Common utilities for the components of JspTest, including the JSP version-specific compiler implementations.</description> + + <scm> + <connection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-common-0.12</connection> + <developerConnection>scm:svn:https://jsptest.svn.sourceforge.net/svnroot/jsptest/tags/jsptest-common-0.12</developerConnection> + <url>http://jsptest.svn.sourceforge.net/viewvc/jsptest/tags/jsptest-common-0.12</url> + </scm> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2007-10-30 06:04:40
|
Revision: 181 http://jsptest.svn.sourceforge.net/jsptest/?rev=181&view=rev Author: lkoskela Date: 2007-10-29 23:04:38 -0700 (Mon, 29 Oct 2007) Log Message: ----------- form().shouldHaveSubmitButton("foo") now works with both "name" and "value" HTML attributes: <input type="submit" name="foo"/> <input type="submit" value="foo"/> Modified Paths: -------------- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/html/Form.java trunk/jsptest-generic/jsptest-framework/src/test/java/net/sf/jsptest/TestHtmlTestCaseFormAssertions.java Modified: trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/html/Form.java =================================================================== --- trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/html/Form.java 2007-10-30 05:41:32 UTC (rev 180) +++ trunk/jsptest-generic/jsptest-framework/src/main/java/net/sf/jsptest/html/Form.java 2007-10-30 06:04:38 UTC (rev 181) @@ -44,6 +44,9 @@ if (name.equals(element.getAttribute("VALUE"))) { return true; } + if (name.equals(element.getAttribute("NAME"))) { + return true; + } } } return false; Modified: trunk/jsptest-generic/jsptest-framework/src/test/java/net/sf/jsptest/TestHtmlTestCaseFormAssertions.java =================================================================== --- trunk/jsptest-generic/jsptest-framework/src/test/java/net/sf/jsptest/TestHtmlTestCaseFormAssertions.java 2007-10-30 05:41:32 UTC (rev 180) +++ trunk/jsptest-generic/jsptest-framework/src/test/java/net/sf/jsptest/TestHtmlTestCaseFormAssertions.java 2007-10-30 06:04:38 UTC (rev 181) @@ -28,6 +28,7 @@ h.append("<html><body>"); h.append("<form name='form_name' action='act.do'>"); h.append(" <input type='text' name='field' value='hello'>"); + h.append(" <input type='submit' name='submit_name' value='submit_value'>"); h.append("</form>"); h.append("</body></html>"); } @@ -41,6 +42,17 @@ } } + public void testUnnamedFormShouldHaveButton() throws Exception { + testcase.form().shouldHaveSubmitButton(); + testcase.form().shouldHaveSubmitButton("submit_value"); + testcase.form().shouldHaveSubmitButton("submit_name"); + try { + testcase.form().shouldHaveSubmitButton("nosuchbutton"); + throw new RuntimeException("Test should've failed"); + } catch (AssertionFailedError expected) { + } + } + public void testNamedFormShouldHaveField() throws Exception { testcase.form("form_name").shouldHaveField("field"); try { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2007-10-30 05:41:33
|
Revision: 180 http://jsptest.svn.sourceforge.net/jsptest/?rev=180&view=rev Author: lkoskela Date: 2007-10-29 22:41:32 -0700 (Mon, 29 Oct 2007) Log Message: ----------- Added the source tree structure to make Eclipse not complain about the missing directories. Added Paths: ----------- trunk/jsptest-acceptance/jsptest-acceptance-jsp12/src/ trunk/jsptest-acceptance/jsptest-acceptance-jsp12/src/main/ trunk/jsptest-acceptance/jsptest-acceptance-jsp12/src/main/java/ trunk/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/ trunk/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/java/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lko...@us...> - 2007-10-29 21:37:36
|
Revision: 179 http://jsptest.svn.sourceforge.net/jsptest/?rev=179&view=rev Author: lkoskela Date: 2007-10-29 14:37:34 -0700 (Mon, 29 Oct 2007) Log Message: ----------- Added the public repo sync script under version control, just in case Added Paths: ----------- trunk/src/main/scripts/ trunk/src/main/scripts/net.sf.jsptest.sh Added: trunk/src/main/scripts/net.sf.jsptest.sh =================================================================== --- trunk/src/main/scripts/net.sf.jsptest.sh (rev 0) +++ trunk/src/main/scripts/net.sf.jsptest.sh 2007-10-29 21:37:34 UTC (rev 179) @@ -0,0 +1,7 @@ +#!/bin/sh + +CONTACTS="Lasse Koskela <las...@gm...>" +MODE=rsync_ssh + +FROM=mav...@sh...:/home/groups/j/js/jsptest/htdocs/maven2 +GROUP_DIR=net/sf/jsptest/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gdi...@us...> - 2007-10-05 20:09:39
|
Revision: 178 http://jsptest.svn.sourceforge.net/jsptest/?rev=178&view=rev Author: gdinwiddie Date: 2007-10-05 13:09:38 -0700 (Fri, 05 Oct 2007) Log Message: ----------- Oops, left the WEB-INF directory out somehow Added Paths: ----------- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/c-rt.tld branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/c.tld branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/custom-taglib.tld branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/fmt.tld branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/web.xml branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/x.tld Added: branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/c-rt.tld =================================================================== --- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/c-rt.tld (rev 0) +++ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/c-rt.tld 2007-10-05 20:09:38 UTC (rev 178) @@ -0,0 +1,393 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!DOCTYPE taglib + PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" + "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> +<taglib> + <tlib-version>1.0</tlib-version> + <jsp-version>1.2</jsp-version> + <short-name>c_rt</short-name> + <uri>http://java.sun.com/jstl/core_rt</uri> + <display-name>JSTL core RT</display-name> + <description>JSTL 1.0 core library</description> + + <validator> + <validator-class> + org.apache.taglibs.standard.tlv.JstlCoreTLV + </validator-class> + <description> + Provides core validation features for JSTL tags. + </description> + </validator> + + <tag> + <name>catch</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class> + <body-content>JSP</body-content> + <description> + Catches any Throwable that occurs in its body and optionally + exposes it. + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>choose</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class> + <body-content>JSP</body-content> + <description> + Simple conditional tag that establishes a context for + mutually exclusive conditional operations, marked by + <when> and <otherwise> + </description> + </tag> + + <tag> + <name>if</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.IfTag</tag-class> + <body-content>JSP</body-content> + <description> + Simple conditional tag, which evalutes its body if the + supplied condition is true and optionally exposes a Boolean + scripting variable representing the evaluation of this condition + </description> + <attribute> + <name>test</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + <type>boolean</type> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>import</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class> + <tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class> + <body-content>JSP</body-content> + <description> + Retrieves an absolute or relative URL and exposes its contents + to either the page, a String in 'var', or a Reader in 'varReader'. + </description> + <attribute> + <name>url</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varReader</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>context</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>charEncoding</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>forEach</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class> + <tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class> + <body-content>JSP</body-content> + <description> + The basic iteration tag, accepting many different + collection types and supporting subsetting and other + functionality + </description> + <attribute> + <name>items</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>java.lang.Object</type> + </attribute> + <attribute> + <name>begin</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>int</type> + </attribute> + <attribute> + <name>end</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>int</type> + </attribute> + <attribute> + <name>step</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>int</type> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varStatus</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>forTokens</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class> + <body-content>JSP</body-content> + <description> + Iterates over tokens, separated by the supplied delimeters + </description> + <attribute> + <name>items</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + <type>java.lang.String</type> + </attribute> + <attribute> + <name>delims</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + <type>java.lang.String</type> + </attribute> + <attribute> + <name>begin</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>int</type> + </attribute> + <attribute> + <name>end</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>int</type> + </attribute> + <attribute> + <name>step</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>int</type> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varStatus</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>out</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class> + <body-content>JSP</body-content> + <description> + Like <%= ... >, but for expressions. + </description> + <attribute> + <name>value</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>default</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>escapeXml</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + + <tag> + <name>otherwise</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class> + <body-content>JSP</body-content> + <description> + Subtag of <choose> that follows <when> tags + and runs only if all of the prior conditions evaluated to + 'false' + </description> + </tag> + + <tag> + <name>param</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class> + <body-content>JSP</body-content> + <description> + Adds a parameter to a containing 'import' tag's URL. + </description> + <attribute> + <name>name</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>redirect</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class> + <body-content>JSP</body-content> + <description> + Redirects to a new URL. + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>url</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>context</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>remove</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class> + <body-content>empty</body-content> + <description> + Removes a scoped variable (from a particular scope, if specified). + </description> + <attribute> + <name>var</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>set</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class> + <body-content>JSP</body-content> + <description> + Sets the result of an expression evaluation in a 'scope' + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>target</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>property</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>url</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class> + <body-content>JSP</body-content> + <description> + Creates a URL with optional query parameters. + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>context</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>when</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.WhenTag</tag-class> + <body-content>JSP</body-content> + <description> + Subtag of <choose> that includes its body if its + condition evalutes to 'true' + </description> + <attribute> + <name>test</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + <type>boolean</type> + </attribute> + </tag> + +</taglib> Added: branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/c.tld =================================================================== --- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/c.tld (rev 0) +++ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/c.tld 2007-10-05 20:09:38 UTC (rev 178) @@ -0,0 +1,416 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!DOCTYPE taglib + PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" + "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> +<taglib> + <tlib-version>1.0</tlib-version> + <jsp-version>1.2</jsp-version> + <short-name>c</short-name> + <uri>http://java.sun.com/jstl/core</uri> + <display-name>JSTL core</display-name> + <description>JSTL 1.0 core library</description> + + <validator> + <validator-class> + org.apache.taglibs.standard.tlv.JstlCoreTLV + </validator-class> + <init-param> + <param-name>expressionAttributes</param-name> + <param-value> + out:value + out:default + out:escapeXml + if:test + import:url + import:context + import:charEncoding + forEach:items + forEach:begin + forEach:end + forEach:step + forTokens:items + forTokens:begin + forTokens:end + forTokens:step + param:encode + param:name + param:value + redirect:context + redirect:url + set:property + set:target + set:value + url:context + url:value + when:test + </param-value> + <description> + Whitespace-separated list of colon-separated token pairs + describing tag:attribute combinations that accept expressions. + The validator uses this information to determine which + attributes need their syntax validated. + </description> + </init-param> + </validator> + + <tag> + <name>catch</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class> + <body-content>JSP</body-content> + <description> + Catches any Throwable that occurs in its body and optionally + exposes it. + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>choose</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class> + <body-content>JSP</body-content> + <description> + Simple conditional tag that establishes a context for + mutually exclusive conditional operations, marked by + <when> and <otherwise> + </description> + </tag> + + <tag> + <name>out</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.OutTag</tag-class> + <body-content>JSP</body-content> + <description> + Like <%= ... >, but for expressions. + </description> + <attribute> + <name>value</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>default</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>escapeXml</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>if</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.IfTag</tag-class> + <body-content>JSP</body-content> + <description> + Simple conditional tag, which evalutes its body if the + supplied condition is true and optionally exposes a Boolean + scripting variable representing the evaluation of this condition + </description> + <attribute> + <name>test</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>import</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.ImportTag</tag-class> + <tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class> + <body-content>JSP</body-content> + <description> + Retrieves an absolute or relative URL and exposes its contents + to either the page, a String in 'var', or a Reader in 'varReader'. + </description> + <attribute> + <name>url</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varReader</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>context</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>charEncoding</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>forEach</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.ForEachTag</tag-class> + <tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class> + <body-content>JSP</body-content> + <description> + The basic iteration tag, accepting many different + collection types and supporting subsetting and other + functionality + </description> + <attribute> + <name>items</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>begin</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>end</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>step</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varStatus</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>forTokens</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.ForTokensTag</tag-class> + <body-content>JSP</body-content> + <description> + Iterates over tokens, separated by the supplied delimeters + </description> + <attribute> + <name>items</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>delims</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>begin</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>end</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>step</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varStatus</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>otherwise</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class> + <body-content>JSP</body-content> + <description> + Subtag of <choose> that follows <when> tags + and runs only if all of the prior conditions evaluated to + 'false' + </description> + </tag> + + <tag> + <name>param</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.ParamTag</tag-class> + <body-content>JSP</body-content> + <description> + Adds a parameter to a containing 'import' tag's URL. + </description> + <attribute> + <name>name</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>redirect</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.RedirectTag</tag-class> + <body-content>JSP</body-content> + <description> + Redirects to a new URL. + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>url</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>context</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>remove</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class> + <body-content>empty</body-content> + <description> + Removes a scoped variable (from a particular scope, if specified). + </description> + <attribute> + <name>var</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>set</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.SetTag</tag-class> + <body-content>JSP</body-content> + <description> + Sets the result of an expression evaluation in a 'scope' + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>target</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>property</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>url</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.UrlTag</tag-class> + <body-content>JSP</body-content> + <description> + Prints or exposes a URL with optional query parameters + (via the c:param tag). + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>context</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>when</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.WhenTag</tag-class> + <body-content>JSP</body-content> + <description> + Subtag of <choose> that includes its body if its + condition evalutes to 'true' + </description> + <attribute> + <name>test</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + +</taglib> \ No newline at end of file Added: branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/custom-taglib.tld =================================================================== --- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/custom-taglib.tld (rev 0) +++ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/custom-taglib.tld 2007-10-05 20:09:38 UTC (rev 178) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!DOCTYPE taglib + PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" + "http://java.sun.com/j2ee/dtd/web-jsptaglibrary_1_2.dtd"> + +<taglib> + + <tlib-version>1.0</tlib-version> + <jsp-version>1.2</jsp-version> + <short-name>custom-taglib</short-name> + <uri>http://jsptest.sf.net/taglib</uri> + <description>taglib example</description> + + <tag> + <name>date</name> + <tag-class>net.sf.jsptest.acceptance.jsp.CustomTag</tag-class> + <body-content>TAGDEPENDENT</body-content> + <description>Render request information</description> + <attribute> + <name>tz</name> + <required>false</required> + </attribute> + </tag> + +</taglib> Added: branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/fmt.tld =================================================================== --- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/fmt.tld (rev 0) +++ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/fmt.tld 2007-10-05 20:09:38 UTC (rev 178) @@ -0,0 +1,442 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!DOCTYPE taglib + PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" + "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> +<taglib> + <tlib-version>1.0</tlib-version> + <jsp-version>1.2</jsp-version> + <short-name>fmt</short-name> + <uri>http://java.sun.com/jstl/fmt</uri> + <display-name>JSTL fmt</display-name> + <description>JSTL 1.0 i18n-capable formatting library</description> + + <validator> + <validator-class> + org.apache.taglibs.standard.tlv.JstlFmtTLV + </validator-class> + <init-param> + <param-name>expressionAttributes</param-name> + <param-value> + requestEncoding:value + setLocale:value + setLocale:variant + timeZone:value + setTimeZone:value + bundle:basename + bundle:prefix + setBundle:basename + message:key + message:bundle + param:value + formatNumber:value + formatNumber:pattern + formatNumber:currencyCode + formatNumber:currencySymbol + formatNumber:groupingUsed + formatNumber:maxIntegerDigits + formatNumber:minIntegerDigits + formatNumber:maxFractionDigits + formatNumber:minFractionDigits + parseNumber:value + parseNumber:pattern + parseNumber:parseLocale + parseNumber:integerOnly + formatDate:value + formatDate:pattern + formatDate:timeZone + parseDate:value + parseDate:pattern + parseDate:timeZone + parseDate:parseLocale + </param-value> + <description> + Whitespace-separated list of colon-separated token pairs + describing tag:attribute combinations that accept expressions. + The validator uses this information to determine which + attributes need their syntax validated. + </description> + </init-param> + </validator> + + <tag> + <name>requestEncoding</name> + <tag-class>org.apache.taglibs.standard.tag.el.fmt.RequestEncodingTag</tag-class> + <body-content>empty</body-content> + <description> + Sets the request character encoding + </description> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>setLocale</name> + <tag-class>org.apache.taglibs.standard.tag.el.fmt.SetLocaleTag</tag-class> + <body-content>empty</body-content> + <description> + Stores the given locale in the locale configuration variable + </description> + <attribute> + <name>value</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>variant</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>timeZone</name> + <tag-class>org.apache.taglibs.standard.tag.el.fmt.TimeZoneTag</tag-class> + <body-content>JSP</body-content> + <description> + Specifies the time zone for any time formatting or parsing actions + nested in its body + </description> + <attribute> + <name>value</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>setTimeZone</name> + <tag-class>org.apache.taglibs.standard.tag.el.fmt.SetTimeZoneTag</tag-class> + <body-content>empty</body-content> + <description> + Stores the given time zone in the time zone configuration variable + </description> + <attribute> + <name>value</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>bundle</name> + <tag-class>org.apache.taglibs.standard.tag.el.fmt.BundleTag</tag-class> + <body-content>JSP</body-content> + <description> + Loads a resource bundle to be used by its tag body + </description> + <attribute> + <name>basename</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>prefix</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>setBundle</name> + <tag-class>org.apache.taglibs.standard.tag.el.fmt.SetBundleTag</tag-class> + <body-content>empty</body-content> + <description> + Loads a resource bundle and stores it in the named scoped variable or + the bundle configuration variable + </description> + <attribute> + <name>basename</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>message</name> + <tag-class>org.apache.taglibs.standard.tag.el.fmt.MessageTag</tag-class> + <body-content>JSP</body-content> + <description> + Maps key to localized message and performs parametric replacement + </description> + <attribute> + <name>key</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>bundle</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>param</name> + <tag-class>org.apache.taglibs.standard.tag.el.fmt.ParamTag</tag-class> + <body-content>JSP</body-content> + <description> + Supplies an argument for parametric replacement to a containing + <message> tag + </description> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>formatNumber</name> + <tag-class>org.apache.taglibs.standard.tag.el.fmt.FormatNumberTag</tag-class> + <body-content>JSP</body-content> + <description> + Formats a numeric value as a number, currency, or percentage + </description> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>type</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>pattern</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>currencyCode</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>currencySymbol</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>groupingUsed</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>maxIntegerDigits</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>minIntegerDigits</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>maxFractionDigits</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>minFractionDigits</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>parseNumber</name> + <tag-class>org.apache.taglibs.standard.tag.el.fmt.ParseNumberTag</tag-class> + <body-content>JSP</body-content> + <description> + Parses the string representation of a number, currency, or percentage + </description> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>type</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>pattern</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>parseLocale</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>integerOnly</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>formatDate</name> + <tag-class>org.apache.taglibs.standard.tag.el.fmt.FormatDateTag</tag-class> + <body-content>empty</body-content> + <description> + Formats a date and/or time using the supplied styles and pattern + </description> + <attribute> + <name>value</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>type</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>dateStyle</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>timeStyle</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>pattern</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>timeZone</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>parseDate</name> + <tag-class>org.apache.taglibs.standard.tag.el.fmt.ParseDateTag</tag-class> + <body-content>JSP</body-content> + <description> + Parses the string representation of a date and/or time + </description> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>type</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>dateStyle</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>timeStyle</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>pattern</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>timeZone</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>parseLocale</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + +</taglib> Added: branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/web.xml =================================================================== --- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/web.xml (rev 0) +++ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/web.xml 2007-10-05 20:09:38 UTC (rev 178) @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE web-app + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" + "http://java.sun.com/dtd/web-app_2_3.dtd"> +<web-app> + + <!-- Welcome files --> + <welcome-file-list> + <welcome-file>index.jsp</welcome-file> + </welcome-file-list> + + <!-- standard taglibs --> + <taglib> + <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri> + <taglib-location>/WEB-INF/fmt.tld</taglib-location> + </taglib> + + <taglib> + <taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri> + <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location> + </taglib> + + <taglib> + <taglib-uri>http://java.sun.com/jstl/core</taglib-uri> + <taglib-location>/WEB-INF/c.tld</taglib-location> + </taglib> + + <taglib> + <taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri> + <taglib-location>/WEB-INF/c-rt.tld</taglib-location> + </taglib> + + <taglib> + <taglib-uri>http://java.sun.com/jstl/x</taglib-uri> + <taglib-location>/WEB-INF/x.tld</taglib-location> + </taglib> + + <taglib> + <taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri> + <taglib-location>/WEB-INF/x-rt.tld</taglib-location> + </taglib> + + <!-- custom taglibs --> + <taglib> + <taglib-uri>http://jsptest.sf.net/taglib</taglib-uri> + <taglib-location>/WEB-INF/custom-taglib.tld</taglib-location> + </taglib> + +</web-app> \ No newline at end of file Added: branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/x.tld =================================================================== --- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/x.tld (rev 0) +++ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/WEB-INF/x.tld 2007-10-05 20:09:38 UTC (rev 178) @@ -0,0 +1,273 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!DOCTYPE taglib + PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" + "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> +<taglib> + <tlib-version>1.0</tlib-version> + <jsp-version>1.2</jsp-version> + <short-name>x</short-name> + <uri>http://java.sun.com/jstl/xml</uri> + <display-name>JSTL XML</display-name> + <description>JSTL 1.0 XML library</description> + + <validator> + <validator-class> + org.apache.taglibs.standard.tlv.JstlXmlTLV + </validator-class> + <init-param> + <param-name>expressionAttributes</param-name> + <param-value> + out:escapeXml + parse:xml + parse:systemId + parse:filter + transform:xml + transform:xmlSystemId + transform:xslt + transform:xsltSystemId + transform:result + </param-value> + <description> + Whitespace-separated list of colon-separated token pairs + describing tag:attribute combinations that accept expressions. + The validator uses this information to determine which + attributes need their syntax validated. + </description> + </init-param> + </validator> + + <tag> + <name>choose</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class> + <body-content>JSP</body-content> + <description> + Simple conditional tag that establishes a context for + mutually exclusive conditional operations, marked by + <when> and <otherwise> + </description> + </tag> + + <tag> + <name>out</name> + <tag-class>org.apache.taglibs.standard.tag.el.xml.ExprTag</tag-class> + <body-content>empty</body-content> + <description> + Like <%= ... >, but for XPath expressions. + </description> + <attribute> + <name>select</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>escapeXml</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>if</name> + <tag-class>org.apache.taglibs.standard.tag.common.xml.IfTag</tag-class> + <body-content>JSP</body-content> + <description> + XML conditional tag, which evalutes its body if the + supplied XPath expression evalutes to 'true' as a boolean + </description> + <attribute> + <name>select</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>forEach</name> + <tag-class>org.apache.taglibs.standard.tag.common.xml.ForEachTag</tag-class> + <body-content>JSP</body-content> + <description> + XML iteration tag. + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>select</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>otherwise</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class> + <body-content>JSP</body-content> + <description> + Subtag of <choose> that follows <when> tags + and runs only if all of the prior conditions evaluated to + 'false' + </description> + </tag> + + <tag> + <name>param</name> + <tag-class>org.apache.taglibs.standard.tag.el.xml.ParamTag</tag-class> + <body-content>JSP</body-content> + <description> + Adds a parameter to a containing 'transform' tag's Transformer + </description> + <attribute> + <name>name</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>parse</name> + <tag-class>org.apache.taglibs.standard.tag.el.xml.ParseTag</tag-class> + <tei-class>org.apache.taglibs.standard.tei.XmlParseTEI</tei-class> + <body-content>JSP</body-content> + <description> + Parses XML content from 'source' attribute or 'body' + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varDom</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scopeDom</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>xml</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>systemId</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>filter</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>set</name> + <tag-class>org.apache.taglibs.standard.tag.common.xml.SetTag</tag-class> + <body-content>empty</body-content> + <description> + Saves the result of an XPath expression evaluation in a 'scope' + </description> + <attribute> + <name>var</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>select</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>transform</name> + <tag-class>org.apache.taglibs.standard.tag.el.xml.TransformTag</tag-class> + <tei-class>org.apache.taglibs.standard.tei.XmlTransformTEI</tei-class> + <body-content>JSP</body-content> + <description> + Conducts a transformation given a source XML document + and an XSLT stylesheet + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>result</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>xml</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>xmlSystemId</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>xslt</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>xsltSystemId</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>when</name> + <tag-class>org.apache.taglibs.standard.tag.common.xml.WhenTag</tag-class> + <body-content>JSP</body-content> + <description> + Subtag of <choose> that includes its body if its + expression evalutes to 'true' + </description> + <attribute> + <name>select</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + +</taglib> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gdi...@us...> - 2007-10-05 18:34:14
|
Revision: 177 http://jsptest.svn.sourceforge.net/jsptest/?rev=177&view=rev Author: gdinwiddie Date: 2007-10-05 11:34:11 -0700 (Fri, 05 Oct 2007) Log Message: ----------- initial work toward getting jsptest to work for JSP 1.2 spec. So far the strategy has been to duplicate things for JSP 2.0 and hack them until the tests pass. The thought is that the duplication can be removed afterwards. Modified Paths: -------------- branches/multispecsupport.1.2/jsptest-generic/jsptest-common/src/main/java/net/sf/jsptest/utils/Path.java Modified: branches/multispecsupport.1.2/jsptest-generic/jsptest-common/src/main/java/net/sf/jsptest/utils/Path.java =================================================================== --- branches/multispecsupport.1.2/jsptest-generic/jsptest-common/src/main/java/net/sf/jsptest/utils/Path.java 2007-10-05 18:34:06 UTC (rev 176) +++ branches/multispecsupport.1.2/jsptest-generic/jsptest-common/src/main/java/net/sf/jsptest/utils/Path.java 2007-10-05 18:34:11 UTC (rev 177) @@ -61,11 +61,17 @@ String prefix = "jar:file:"; if (url.startsWith(prefix)) { String file = url.substring(prefix.length()); - if (file.contains("!")) { + if (stringContains(file, "!")) { file = file.substring(0, file.indexOf('!')); } add(new File(file)); } } + private boolean stringContains(String string, String expected) { + //The method String.contains() doesn't exist in Java 1.4 + //return string.contains(expected); + return string.indexOf(expected) >= 0; + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |