You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ke...@apache.org on 2007/06/03 03:48:22 UTC
svn commit: r543824 - in /geronimo/server/trunk/maven-plugins: ./
geronimo-jspc-maven-plugin/ geronimo-jspc-maven-plugin/src/
geronimo-jspc-maven-plugin/src/main/
geronimo-jspc-maven-plugin/src/main/java/
geronimo-jspc-maven-plugin/src/main/java/org/ g...
Author: kevan
Date: Sat Jun 2 18:48:20 2007
New Revision: 543824
URL: http://svn.apache.org/viewvc?view=rev&rev=543824
Log:
GERONIMO-3206 Temporarily add a maven jsp compiler. This is a copy of the jspc-maven-plugin from codehaus (authored by our own Jeff Genender). We need a local version because the plugin is currently hardwired to a 6.0.7 version of jasper. This version is incompatible with the version currently in Geronimo. As soon as a more pluggable version of jspc-maven-plugin is available, this version can go...
Added:
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/LICENSE.txt (with props)
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/NOTICE.txt (with props)
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/pom.xml (with props)
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/AbstractJspcMojo.java (with props)
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojo.java (with props)
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojoClassLoader.java (with props)
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/TestJspcMojo.java (with props)
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/resources/
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/resources/log4j.xml (with props)
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/site/
geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/site/site.xml (with props)
Modified:
geronimo/server/trunk/maven-plugins/pom.xml
Added: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/LICENSE.txt
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/LICENSE.txt?view=auto&rev=543824
==============================================================================
--- geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/LICENSE.txt (added)
+++ geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/LICENSE.txt Sat Jun 2 18:48:20 2007
@@ -0,0 +1,203 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ 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.
+
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/LICENSE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/LICENSE.txt
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/LICENSE.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/NOTICE.txt
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/NOTICE.txt?view=auto&rev=543824
==============================================================================
--- geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/NOTICE.txt (added)
+++ geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/NOTICE.txt Sat Jun 2 18:48:20 2007
@@ -0,0 +1,8 @@
+Apache Geronimo
+Copyright 2006 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+
+Copyright 2005 Jeff Genender
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/NOTICE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/NOTICE.txt
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/NOTICE.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/pom.xml?view=auto&rev=543824
==============================================================================
--- geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/pom.xml (added)
+++ geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/pom.xml Sat Jun 2 18:48:20 2007
@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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.
+-->
+<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>org.apache.geronimo.plugins</groupId>
+ <artifactId>maven-plugins</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>geronimo-jspc-maven-plugin</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <packaging>maven-plugin</packaging>
+ <name>Geronimo Maven2 Plugins :: Jspc</name>
+ <description>A plugin to allow you to pre-compile your JSPs for your web applications.</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.3.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-project</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.13</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+ <profile>
+ <id>jdk1.4</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>tomcat</groupId>
+ <artifactId>jasper-compiler</artifactId>
+ <version>5.5.15</version>
+ </dependency>
+ <dependency>
+ <groupId>tomcat</groupId>
+ <artifactId>jasper-compiler-jdt</artifactId>
+ <version>5.5.15</version>
+ </dependency>
+ <!-- this should be in jasper-compiler -->
+ <dependency>
+ <groupId>tomcat</groupId>
+ <artifactId>jasper-runtime</artifactId>
+ <version>5.5.15</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <id>jdk1.5</id>
+ <activation>
+ <jdk>!1.4</jdk>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>1.6.5</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>jasper</artifactId>
+ <version>6.0.13-Gxxxxxx</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>jasper-jdt</artifactId>
+ <version>6.0.13</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>jasper-el</artifactId>
+ <version>6.0.13</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>juli</artifactId>
+ <version>6.0.13</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>6.0.13</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>6.0.13</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>el-api</artifactId>
+ <version>6.0.13</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>annotations-api</artifactId>
+ <version>6.0.13</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+</project>
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/AbstractJspcMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/AbstractJspcMojo.java?view=auto&rev=543824
==============================================================================
--- geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/AbstractJspcMojo.java (added)
+++ geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/AbstractJspcMojo.java Sat Jun 2 18:48:20 2007
@@ -0,0 +1,533 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+/*
+ * Copyright 2005 Jeff Genender.
+ */
+
+/**
+ * @author Jeff Genender
+ * @author Grzegorz Slowikowski
+ */
+
+package org.apache.geronimo.mavenplugins.jspc;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileReader;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.Reader;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+import java.util.Set;
+
+import org.apache.commons.io.IOUtils;
+import org.apache.jasper.JspC;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+import org.apache.tools.ant.DirectoryScanner;
+import org.codehaus.plexus.util.FileUtils;
+import org.codehaus.plexus.util.InterpolationFilterReader;
+
+public abstract class AbstractJspcMojo extends AbstractMojo {
+
+ private static final String PS = File.pathSeparator;
+
+ private static final String DEFAULT_INJECTION = "</web-app>";
+
+ /**
+ * @parameter expression="${project}"
+ * @required
+ */
+ private MavenProject project;
+
+ /**
+ * Character encoding
+ *
+ * @parameter
+ */
+ protected String javaEncoding;
+
+ /**
+ * Provide source compatibility with specified release
+ *
+ * @parameter
+ */
+ protected String source;
+
+ /**
+ * Generate class files for specific VM version
+ *
+ * @parameter
+ */
+ protected String target;
+
+ /**
+ * The working directory to create the generated java source files.
+ *
+ * @parameter expression="${project.build.directory}/jsp-source"
+ * @required
+ */
+ protected String workingDirectory;
+
+ /**
+ * Sets if you want to compile the jsp classes
+ *
+ * @parameter default-value="true"
+ */
+ protected boolean setCompile;
+
+ /**
+ * The path and location to the web fragment file.
+ *
+ * @parameter expression="${project.build.directory}/web-fragment.xml"
+ * @required
+ */
+ protected String webFragmentFile;
+
+ /**
+ * Source directory of the web source.
+ *
+ * @parameter expression="${basedir}/src/main/webapp"
+ * @required
+ */
+ protected String warSourceDirectory;
+
+ /**
+ * Jsp files to include in compile,
+ * specified by comma seperated list of org.apache.tools.ant.DirectoryScanner patterns
+ *
+ * @parameter
+ */
+ protected String jspFileIncludes;
+
+ /**
+ * Jsp files to exclude from compile,
+ * specified by comma seperated list of org.apache.tools.ant.DirectoryScanner patterns
+ *
+ * @parameter
+ */
+ protected String jspFileExcludes;
+
+ /**
+ * Set this to false if you don't want to include the compiled JSPs
+ * in your web.xml nor add the generated sources to your project's
+ * source roots.
+ *
+ * @parameter default-value="true"
+ */
+ protected boolean includeInProject;
+
+ /**
+ * The path and location of the original web.xml file
+ *
+ * @parameter expression="${basedir}/src/main/webapp/WEB-INF/web.xml"
+ * @required
+ */
+ protected String inputWebXml;
+
+ /**
+ * The string to look for in the web.xml to replace with the web fragment
+ * contents. If not defined, fragment will be appended before the
+ * </webapp> tag which is fine for srvlet 2.4 and greater. If using this
+ * parameter its recommanded to use Strings such as
+ * <!-- [INSERT FRAGMENT HERE] -->. Be aware the < and
+ * > are for your pom verbatim.
+ *
+ * @parameter
+ */
+ protected String injectString;
+
+ /**
+ * The final path and file name of the web.xml.
+ *
+ * @parameter expression="${project.build.directory}/jspweb.xml"
+ * @required
+ */
+ protected String outputWebXml;
+
+ /**
+ * The package in which the jsp files will be contained.
+ *
+ * @parameter default-value="jsp"
+ */
+ protected String packageName;
+
+ /**
+ * Verbose level option for JcpC.i Defaults to 0.
+ *
+ * @parameter default-value="0"
+ */
+ protected int verbose;
+
+ /**
+ * Show Success option for JcpC.
+ *
+ * @parameter default-value="true"
+ */
+ protected boolean showSuccess;
+
+ /**
+ * Set Smap Dumped option for JcpC.
+ *
+ * @parameter default-value="false"
+ */
+ protected boolean setSmapDumped;
+
+ /**
+ * Set Smap Supressed option for JcpC.
+ *
+ * @parameter default-value="false"
+ */
+ protected boolean setSmapSupressed;
+
+ /**
+ * List Errors option for JcpC.
+ *
+ * @parameter default-value="true"
+ */
+ protected boolean listErrors;
+
+ /**
+ * Validate XML option for JcpC.
+ *
+ * @parameter default-value="false"
+ */
+ protected boolean validateXml;
+
+ /**
+ * Removes the spaces from the jsps
+ * @parameter default-value="true"
+ */
+ protected boolean trimSpaces;
+
+ /**
+ * Provides filtering of the generated web.xml text
+ * @parameter default-value="true"
+ */
+ protected boolean filtering;
+
+ protected abstract List getClasspathElements();
+
+
+ public void execute() throws MojoExecutionException {
+ boolean isWar = "war".equalsIgnoreCase( project.getPackaging() );
+ if ( !isWar || !includeInProject) {
+ if ( getLog().isDebugEnabled() )
+ getLog().debug( "Compiled JSPs will not be added to the project and web.xml will not be modified, either because includeInProject is set to false or because the project's packaging is not \"war\"." );
+ }
+
+ if ( getLog().isDebugEnabled() ) {
+ getLog().debug( "Source directory: " + warSourceDirectory );
+ getLog().debug( "Classpath: " + getClasspathElements().toString().replace( ',', '\n' ) );
+ getLog().debug( "Output directory: " + workingDirectory/*getOutputDirectory()*/ );
+ }
+
+ try {
+ // Create target directories if they don't already exist
+ FileUtils.forceMkdir( new File(workingDirectory));
+ FileUtils.forceMkdir( new File(webFragmentFile).getParentFile() );
+ FileUtils.forceMkdir( new File(outputWebXml).getParentFile() );
+ FileUtils.forceMkdir( new File(project.getBuild().getDirectory()) );
+ FileUtils.forceMkdir( new File(project.getBuild().getOutputDirectory()) );
+
+ // Find the tools.jar and add it to the classpath
+ String toolsJar = null;
+ if (System.getProperty("os.name").equals("Mac OS X")) {
+ toolsJar = System.getProperty("java.home")
+ + "/../Classes/classes.jar";
+ } else {
+ toolsJar = System.getProperty("java.home") + File.separatorChar
+ + ".." + File.separatorChar + "lib"
+ + File.separatorChar + "tools.jar";
+ }
+
+ // Create the JspC arguments
+ List classpathElements = getClasspathElements();
+ String classPath = getPathString(classpathElements);
+ ArrayList args = getJspcArgs(classPath);
+ String strArgs[] = (String[]) args.toArray(new String[args.size()]);
+
+ // JspC needs URLClassLoader
+ ClassLoader parent = Thread.currentThread().getContextClassLoader();
+ JspcMojoClassLoader cl = new JspcMojoClassLoader(parent);
+
+ // Add the tools.jar
+ cl.addURL(new File(toolsJar).getAbsoluteFile().toURL());
+
+ Thread.currentThread().setContextClassLoader(cl);
+
+ try {
+ // Run JspC
+ JspC jspc = new JspC();
+ jspc.setArgs(strArgs);
+ jspc.setSmapDumped(setSmapDumped);
+ jspc.setSmapSuppressed(setSmapSupressed);
+ jspc.setCompile(setCompile);
+ jspc.setValidateXml(validateXml);
+ jspc.setTrimSpaces(trimSpaces);
+ jspc.setVerbose(verbose);
+
+ //Fail on error - important
+ jspc.setFailOnError(true);
+
+ if (source != null)
+ jspc.setCompilerSourceVM(source);
+ if (target != null)
+ jspc.setCompilerTargetVM(target);
+
+ jspc.execute();
+
+ if (setCompile && isWar)
+ {
+ moveClassFiles();
+ }
+ } finally {
+ // Set back the old classloader
+ Thread.currentThread().setContextClassLoader(cl);
+ }
+
+ if ( isWar && includeInProject ) {
+ writeWebXml();
+ project.addCompileSourceRoot(workingDirectory);
+ }
+
+ } catch (MojoExecutionException e) {
+ throw e;
+ } catch (Exception e) {
+ throw new MojoExecutionException("JSPC Error", e);
+ }
+ }
+
+ private ArrayList getJspcArgs(String classPath)
+ throws MojoExecutionException {
+ ArrayList args = new ArrayList();
+ args.add("-uriroot");
+ args.add(warSourceDirectory);
+ args.add("-d");
+ args.add(workingDirectory);
+ if (javaEncoding != null) {
+ args.add("-javaEncoding");
+ args.add(javaEncoding);
+ }
+ if (showSuccess) {
+
+ args.add("-s");
+ }
+ if (listErrors) {
+ args.add("-l");
+ }
+ args.add("-webinc");
+ args.add(webFragmentFile);
+ args.add("-p");
+ args.add(packageName);
+ args.add("-classpath");
+ args.add(classPath);
+
+ if(jspFileIncludes != null)
+ {
+ DirectoryScanner scanner = new DirectoryScanner();
+ scanner.setBasedir(warSourceDirectory);
+
+ // Build includes
+ String[] includes = jspFileIncludes.split(",");
+ scanner.setIncludes(includes);
+
+ // Build excludes
+ if(jspFileExcludes != null)
+ {
+ String[] excludes = jspFileExcludes.split(",");
+ scanner.setExcludes(excludes);
+ }
+
+ scanner.scan();
+ String[] files = scanner.getIncludedFiles();
+ for(int i=0; i < files.length; i++)
+ {
+ args.add(warSourceDirectory + File.separator + files[i]);
+ }
+ }
+
+ this.getLog().debug("jspc args: " + args);
+
+ return args;
+ }
+
+ private void writeWebXml() throws Exception {
+ String webXml = getFile(inputWebXml);
+ String fragmentXml = getFile(webFragmentFile);
+
+ String searchString = injectString;
+ if (searchString == null)
+ searchString = DEFAULT_INJECTION;
+
+ int pos = webXml.indexOf(searchString);
+
+ if (pos < 0) {
+ throw new MojoExecutionException("injectString('" + searchString
+ + "') not found in webXml(" + inputWebXml + "')");
+ }
+
+ String output = webXml.substring(0, pos)
+ + fragmentXml
+ + ((injectString == null) ? DEFAULT_INJECTION : "")
+ + webXml
+ .substring(pos + searchString.length(), webXml.length());
+
+ FileWriter fw = new FileWriter(outputWebXml);
+
+ //allow generated xml to be filtered
+ if( isFiltering() ){
+ List filtered = filterText( output, "UTF-8", getFilterWrappers(), getBuildFilterProperties() );
+ output = "";
+ for(Iterator i = filtered.iterator(); i.hasNext();) {
+ output += (String)i.next() + "\n";
+ }
+ }
+
+ fw.write(output);
+ fw.close();
+ }
+
+ /* filter support code */
+ private Map getBuildFilterProperties() throws MojoExecutionException {
+ //just supports pom properties for now - not outside files etc
+ Map filterProperties = new Properties();
+ filterProperties.putAll( project.getProperties() );
+ return filterProperties;
+ }
+
+ protected FilterWrapper[] getFilterWrappers() {
+ return new FilterWrapper[] {
+ // support ${token}
+ new FilterWrapper() {
+ public Reader getReader(Reader fileReader, Map filterProperties) {
+ return new InterpolationFilterReader( fileReader, filterProperties, "${", "}" );
+ }
+ },
+ // support @token@
+ new FilterWrapper() {
+ public Reader getReader(Reader fileReader, Map filterProperties) {
+ return new InterpolationFilterReader( fileReader, filterProperties, "@", "@" );
+ }
+ }
+ };
+ }
+
+ /**
+ * Filters text replacing interpolated strings with values from a mvn <property>
+ * @param source the file to read
+ * @param encoding the file encoding (UTF-8 etc)
+ * @param wrappers an array of filter wrappers
+ * @param filterProperties
+ * @return A List<String> of filtered lines from the original file
+ */
+ protected List filterText(String source, String encoding, FilterWrapper[] wrappers, Map filterProperties) {
+ Reader fileReader = null;
+
+ List contents = new ArrayList();
+
+ try{
+ if( encoding == null || encoding.length() < 1 )
+ fileReader = new BufferedReader( new InputStreamReader( IOUtils.toInputStream( source ) ) );
+ else
+ fileReader = new BufferedReader( new InputStreamReader( IOUtils.toInputStream( source ), encoding ) );
+
+ Reader reader = fileReader;
+ Set props = filterProperties.entrySet();
+ getLog().debug( "Filtering with : " + props.toString() );
+
+ for(int i=0; i<wrappers.length; i++) {
+ reader = wrappers[i].getReader( reader, filterProperties );
+ }
+ contents = IOUtils.readLines(reader);
+
+ }catch(IOException e){
+ getLog().error( "Error occured during filtering: " + e );
+ }
+ return contents;
+ }
+
+
+ private String getFile(String fName) throws Exception {
+ File f = new File(fName);
+
+ FileReader fr = new FileReader(f);
+ BufferedReader br = new BufferedReader(fr);
+ StringBuffer sb = new StringBuffer();
+ while (true) {
+ String line = br.readLine();
+ if (line == null)
+ break;
+ sb.append(line);
+ sb.append("\n");
+ }
+ br.close();
+ fr.close();
+
+ return sb.toString();
+ }
+
+ public String getPathString(List pathElements) {
+ StringBuffer sb = new StringBuffer();
+
+ for (Iterator it = pathElements.iterator(); it.hasNext();) {
+ sb.append(it.next()).append(PS);
+ }
+
+ return sb.toString();
+ }
+
+ protected void moveClassFiles() {
+ DirectoryScanner scanner = new DirectoryScanner();
+
+ scanner.setBasedir(workingDirectory);
+
+ scanner.setIncludes(new String[] { "**/*.class" });
+
+ scanner.scan();
+
+ String[] sourceDirectorySources = scanner.getIncludedFiles();
+
+ for (int j = 0; j < sourceDirectorySources.length; j++) {
+ File from = new File(workingDirectory, sourceDirectorySources[j]);
+ File to = new File(project.getBuild().getOutputDirectory(), sourceDirectorySources[j]);
+ File parent = to.getParentFile();
+ if (!parent.exists())
+ parent.mkdirs();
+ from.renameTo(to);
+ }
+ }
+
+ public boolean isFiltering() {
+ return filtering;
+ }
+
+ public void setFiltering(boolean filtering) {
+ this.filtering = filtering;
+ }
+
+ protected interface FilterWrapper {
+ public abstract Reader getReader(Reader fileReader, Map filterProperties);
+ }
+
+}
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/AbstractJspcMojo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/AbstractJspcMojo.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/AbstractJspcMojo.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/AbstractJspcMojo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojo.java?view=auto&rev=543824
==============================================================================
--- geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojo.java (added)
+++ geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojo.java Sat Jun 2 18:48:20 2007
@@ -0,0 +1,51 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+/*
+ * Copyright 2005 Jeff Genender.
+ */
+
+package org.apache.geronimo.mavenplugins.jspc;
+
+import java.util.List;
+
+/**
+ * @goal compile
+ * @phase process-classes
+ * @requiresDependencyResolution compile
+ * @description Compiles Jsps.
+ * @author jgenender@apache.org
+ * @author jgenender <jg...@apache.org>
+ * @author Grzegorz Slowikowski
+ * @version $Id: JspcMojo.java 2422 2006-09-28 23:31:49Z jgenender $
+ */
+public class JspcMojo extends AbstractJspcMojo {
+
+ /**
+ * Project classpath.
+ *
+ * @parameter expression="${project.compileClasspathElements}"
+ * @required
+ * @readonly
+ */
+ private List classpathElements;
+
+
+ protected List getClasspathElements()
+ {
+ return classpathElements;
+ }
+}
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojo.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojoClassLoader.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojoClassLoader.java?view=auto&rev=543824
==============================================================================
--- geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojoClassLoader.java (added)
+++ geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojoClassLoader.java Sat Jun 2 18:48:20 2007
@@ -0,0 +1,73 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 org.apache.geronimo.mavenplugins.jspc;
+
+import java.net.URL;
+import java.net.URLClassLoader;
+
+public class JspcMojoClassLoader extends URLClassLoader {
+
+ private ClassLoader parent;
+
+ public JspcMojoClassLoader() {
+ this(ClassLoader.getSystemClassLoader());
+ }
+
+ public JspcMojoClassLoader(ClassLoader parent) {
+ super(new URL[0]);
+ this.parent = parent;
+ }
+
+ public void addURL(URL url) {
+ super.addURL(url);
+ }
+
+ public URL findResource(String name) {
+ URL url = super.findResource(name);
+ if (url == null){
+ url = parent.getResource(name);
+ }
+ return url;
+ }
+
+ public synchronized Class loadClass(String className)
+ throws ClassNotFoundException {
+ Class c = findLoadedClass(className);
+
+ ClassNotFoundException ex = null;
+
+ if (c == null) {
+ try {
+ // c = findClass(className);
+ c = super.loadClass(className);
+ } catch (ClassNotFoundException e) {
+ ex = e;
+
+ if (parent != null) {
+ c = parent.loadClass(className);
+ }
+ }
+ }
+
+ if (c == null) {
+ throw ex;
+ }
+
+ return c;
+ }
+}
+
\ No newline at end of file
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojoClassLoader.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojoClassLoader.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/JspcMojoClassLoader.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/TestJspcMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/TestJspcMojo.java?view=auto&rev=543824
==============================================================================
--- geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/TestJspcMojo.java (added)
+++ geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/TestJspcMojo.java Sat Jun 2 18:48:20 2007
@@ -0,0 +1,53 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+/*
+ * Copyright 2005 Jeff Genender.
+ */
+
+package org.apache.geronimo.mavenplugins.jspc;
+
+import java.util.List;
+
+/**
+ * @goal testCompile
+ * @phase process-classes
+ * @execute phase="test-compile"
+ * @requiresDependencyResolution test
+ * @description Compiles Jsps.
+ * @author jgenender@apache.org
+ * @author jgenender <jg...@apache.org>
+ * @author Grzegorz Slowikowski
+ * @version $Id: TestJspcMojo.java 2422 2006-09-28 23:31:49Z jgenender $
+ */
+public class TestJspcMojo extends AbstractJspcMojo {
+
+
+ /**
+ * Project classpath.
+ *
+ * @parameter expression="${project.testClasspathElements}"
+ * @required
+ * @readonly
+ */
+ private List classpathElements;
+
+
+ protected List getClasspathElements()
+ {
+ return classpathElements;
+ }
+}
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/TestJspcMojo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/TestJspcMojo.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/TestJspcMojo.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/jspc/TestJspcMojo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/resources/log4j.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/resources/log4j.xml?view=auto&rev=543824
==============================================================================
--- geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/resources/log4j.xml (added)
+++ geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/resources/log4j.xml Sat Jun 2 18:48:20 2007
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
+
+ <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="[%p] %m%n"/>
+ </layout>
+ </appender>
+
+ <root>
+ <priority value="info"/>
+ <appender-ref ref="ConsoleAppender"/>
+ </root>
+
+</log4j:configuration>
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/resources/log4j.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/resources/log4j.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/main/resources/log4j.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/site/site.xml?view=auto&rev=543824
==============================================================================
--- geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/site/site.xml (added)
+++ geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/site/site.xml Sat Jun 2 18:48:20 2007
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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.
+-->
+<project name="${project.name}">
+ <body>
+
+ ${parentProject}
+
+ ${modules}
+
+ ${reports}
+
+ </body>
+</project>
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/maven-plugins/geronimo-jspc-maven-plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: geronimo/server/trunk/maven-plugins/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/pom.xml?view=diff&rev=543824&r1=543823&r2=543824
==============================================================================
--- geronimo/server/trunk/maven-plugins/pom.xml (original)
+++ geronimo/server/trunk/maven-plugins/pom.xml Sat Jun 2 18:48:20 2007
@@ -65,6 +65,7 @@
<modules>
<module>car-maven-plugin</module>
+ <module>geronimo-jspc-maven-plugin</module>
<module>geronimo-maven-plugin</module>
<module>testsuite-maven-plugin</module>
<module>testsuite-archetype-plugin</module>