diff --git a/abbot/plugin.jelly b/abbot/plugin.jelly deleted file mode 100644 index 37c9a4c2..00000000 --- a/abbot/plugin.jelly +++ /dev/null @@ -1,385 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${maven.abbot.sysproperties} - - - - - - ${maven.abbot.jvmargs} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${dep.id} is uptodate ? ${context.getVariable(varname) == true} - - - - - - - - - - - - - - - - - - - ${maven.abbot.extrajars} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${maven.abbot.extrajars} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Webstart home directory not found at [${maven.abbot.webstart.home}] - - - - In the current version the Abbot plugin only works when signing jars - - - - Mandatory variable maven.abbot.remotejnlp is missing - - - - Mandatory variable maven.abbot.javaws.systemhome is missing - - - - Mandatory variable maven.abbot.javaws.userhome is missing - - - - - - - - - DEPRECATED: the use of dependency-handle is deprecated. Please use maven:get/set to modify properties of the abbot plugin - - - - diff --git a/abbot/plugin.properties b/abbot/plugin.properties deleted file mode 100644 index 8e2d3f7e..00000000 --- a/abbot/plugin.properties +++ /dev/null @@ -1,101 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# Properties required for all the abbot plugin goals -# ------------------------------------------------------------------- - -# Location of abbot source scripts -maven.abbot.src.dir = ${maven.src.dir}/abbot - -# (optional) Explicit comma-separated list of Abbot source scripts -# to execute. If not defined, the plugin will execute all .xml files -# located in maven.abbot.src.dir -# maven.abbot.src.files = - -# Decide whether or not to recurse in maven.abbot.src.dir to find -# Abbot .xml source scripts. -maven.abbot.recurse = true - -# Location where the abbot plugin puts build files related to abbot -maven.abbot.dest.dir = ${maven.build.dir}/abbot - -# Location where the abbot plugin signs the jars to be added to the -# generated JNLP file. -maven.abbot.dest.jar.dir = ${maven.abbot.dest.dir}/jars - -# Location where abbot junit test results will be located -maven.abbot.reports.dir = ${maven.build.dir}/abbot-reports - -maven.abbot.printSummary = ${maven.junit.printSummary} -maven.abbot.dir = ${maven.junit.dir} -maven.abbot.sysproperties = ${maven.junit.sysproperties} -maven.abbot.jvmargs = ${maven.junit.jvmargs} -maven.abbot.format = ${maven.junit.format} -maven.abbot.usefile = ${maven.junit.usefile} - -# (optional) Name of the test suite beeing executed. This name will be used -# to name the generated JUnit test report. If not specified the report name -# will be TEST-org.apache.maven.abbot.AbbotTestAll. This is useful when -# you're calling the Abbot plugin several times in a row as otherwise the -# reports will overwrite each other. -#maven.abbot.suite.name = MyTestSuite - -# Decide whether to turn on webstart debugging. -maven.abbot.debug = false - -# ------------------------------------------------------------------- -# Properties required only for the abbot:test goal -# ------------------------------------------------------------------- - -# Name of the JUnit test to execute that will trigger the execution -# of the Abbot scripts. This name should not be changed unless you -# want to provide your own Abbot script wrapper. -maven.abbot.include = org.apache.maven.abbot.AbbotTestAll - -# ------------------------------------------------------------------- -# Properties required only for the abbot:test-webstart goal -# ------------------------------------------------------------------- - -# The following properties are mandatories. They depend on your -# execution environment and must be set in your build.properties file -# or equivalent: -# -# - maven.abbot.remotejnlp: This property points to the JNLP file of -# the application you're testing. -# - maven.abbot.javaws.systemhome: Java webstart system cache location -# - maven.abbot.javaws.userhome: Java webstart user cache location - -# Location of webstart executable. Override if your install does not match -# this default location -maven.abbot.webstart.home = ${java.home}/javaws - -# TODO: Remove these 4 properties as I don't see any use case associated with them -maven.abbot.webstart.jnlp.original = original.jnlp -maven.abbot.webstart.jnlp.modified = modified.jnlp -maven.abbot.webstart.main.jar = abbot-main.jar -maven.abbot.webstart.main.class = org.apache.maven.abbot.AbbotWebstartTestRunner - -# Note: For now we only support signing jars. The reason is that we need -# to add the Abbot jars to the JNLP file and as we're taking these jars -# from the local file system we need to have the permissions and thus we -# need signed jars to get these permissions. -maven.abbot.sign = true - -# Extra list of jars (separated by commas) to be added to the generated JNLP -# and to the executing CP for the editor goal. This is useful for example when -# creating custom Abbot testers that need to be included in the executing CP. -#maven.abbot.extrajars = \ No newline at end of file diff --git a/abbot/project.properties b/abbot/project.properties deleted file mode 100644 index deaed100..00000000 --- a/abbot/project.properties +++ /dev/null @@ -1,24 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -maven.abbot.reports.dir = ${maven.build.dir} - -# WARNING: By default, do not run unit tests as they require a display -# and a display may not be available on build server. -maven.test.skip = true - -# Have the abbot test reports appear in ${maven.abbot.reports.dir} -maven.junit.sysproperties = maven.abbot.reports.dir \ No newline at end of file diff --git a/abbot/project.xml b/abbot/project.xml deleted file mode 100644 index 28a37303..00000000 --- a/abbot/project.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - ../plugins-parent/project.xml - 3 - maven-abbot-plugin - Maven Abbot Plugin - 1.2-SNAPSHOT - Run Abbot tests - Abbot Tests - - - 1.0 - 1.0 - MAVEN_ABBOT_1_0 - - - 1.1 - 1.1 - MAVEN_ABBOT_1_1 - - - - - Vincent Massol - vmassol - vmassol@pivolis.com - Pivolis - - Creator - Java Developer - Release Manager - - - - Christian Blavier - cblavier - cblavier@octo.com - Octo Technology - - Creator - Java Developer - - - - - - - abbot - abbot - 0.13.0 - - true - true - - - - jdom - jdom - 1.0 - - true - true - - - - - mrj - MRJToolkitStubs - 1.0 - - true - - - - gnu-regexp - gnu-regexp - 1.1.4 - - true - - - - junit - junit - 3.8.1 - - true - true - - - - xerces - xercesImpl - 2.6.2 - - true - true - - - - xerces - xmlParserAPIs - 2.6.2 - - true - true - - - - ant - ant - 1.6.5 - - true - Overriden by the release of this library bundled in the core of maven and already loaded in the root classloader. - - - - ant - ant-junit - 1.6.5 - - true - Overriden by the release of this library bundled in the core of maven and already loaded in the root classloader. - - - - commons-jelly - commons-jelly-tags-xml - 1.1 - http://jakarta.apache.org/commons/jelly/libs/xml/ - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - diff --git a/abbot/src/main/org/apache/maven/abbot/AbbotTestAll.java b/abbot/src/main/org/apache/maven/abbot/AbbotTestAll.java deleted file mode 100644 index 4840c085..00000000 --- a/abbot/src/main/org/apache/maven/abbot/AbbotTestAll.java +++ /dev/null @@ -1,127 +0,0 @@ -package org.apache.maven.abbot; - -/* ==================================================================== - * Copyright 2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import junit.extensions.abbot.ScriptFixture; -import junit.extensions.abbot.ScriptTestSuite; -import junit.framework.Test; -import java.io.File; -import java.util.ArrayList; -import java.util.List; -import java.util.StringTokenizer; - -/** - * TestAll is the entry point for all Abbot functional tests. - * It executes all xml files located in the passed src/abbot/ dir. - */ -public class AbbotTestAll extends ScriptFixture -{ - /** - * Location of Abbot scripts - */ - private static final String TESTPATH = - System.getProperty("maven.abbot.src.dir"); - - /** - * Should we recurse in the directory where Abbot scripts are located? - */ - private static final boolean RECURSE = - Boolean.getBoolean("maven.abbot.recurse"); - - /** - * Custom ScriptTestSuite to only accept xml files. - */ - public static class MavenScriptTestSuite extends ScriptTestSuite - { - public MavenScriptTestSuite(Class fixtureClass, String dirName, - boolean recurse) - { - super(fixtureClass, dirName, recurse); - } - - public MavenScriptTestSuite(Class fixtureClass, String[] filenames) - { - super(fixtureClass, filenames); - } - - public boolean accept(File file) - { - return file.getName().endsWith(".xml"); - } - } - - /** - * Return test suite containing all scripts. - */ - public static Test suite() - { - MavenScriptTestSuite suite; - String[] files = getScriptFileNames(); - - if (files == null) - { - suite = new MavenScriptTestSuite(ScriptFixture.class, TESTPATH, - RECURSE); - } - else - { - suite = new MavenScriptTestSuite(ScriptFixture.class, files); - } - - return suite; - } - - /** - * @see ScriptFixture#ScriptFixture(java.lang.String) - */ - public AbbotTestAll(String name) - { - super(name); - } - - /** - * @return the file list (as a String array) specified by the optional - * maven.abbot.src.files Maven property or null - * if the property is not defined. Also returns null if there - * are no files defined in the maven.abbot.src.files - * property. - */ - protected static String[] getScriptFileNames() - { - String files = System.getProperty("maven.abbot.src.files"); - String[] result = null; - - if (files != null) - { - List fileList = new ArrayList(); - StringTokenizer st = new StringTokenizer(files, ","); - while (st.hasMoreTokens()) - { - fileList.add(st.nextToken()); - } - - if (!fileList.isEmpty()) - { - result = (String[]) fileList.toArray(new String[0]); - } - } - - return result; - } - -} diff --git a/abbot/src/main/org/apache/maven/abbot/AbbotWebstartTestRunner.java b/abbot/src/main/org/apache/maven/abbot/AbbotWebstartTestRunner.java deleted file mode 100644 index b839aebb..00000000 --- a/abbot/src/main/org/apache/maven/abbot/AbbotWebstartTestRunner.java +++ /dev/null @@ -1,158 +0,0 @@ -package org.apache.maven.abbot; - -/* ==================================================================== - * Copyright 2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.File; - -import org.apache.tools.ant.Project; -import org.apache.tools.ant.taskdefs.optional.junit.FormatterElement; -import org.apache.tools.ant.taskdefs.optional.junit.JUnitTask; -import org.apache.tools.ant.taskdefs.optional.junit.JUnitTest; - -/** - * Proxy for testing webstart application with Abbot. It replaces the main - * class of the application to test and uses the JUnit Ant task test runner - * to execute the Abbot tests. In order to use this class, it must be - * referenced as the main class in the JNLP file. - * - * @version $Id$ - */ -public class AbbotWebstartTestRunner -{ - /** - * Name of the generic TestCase to execute. That test will execute all the - * XML Abbot scripts. - */ - private static final String GENERIC_TEST = AbbotTestAll.class.getName(); - - /** - * Directory where junit reports are to be generated. - */ - private static final String REPORT_DIR = - System.getProperty("maven.abbot.reports.dir", ""); - - /** - * Name given by the user to the suite of tests being executed. The Abbot - * test report will be name after the content of this property. This is - * useful when you're calling the Abbot plugin several times in a row as - * otherwise the reports will overwrite each other. - */ - private static final String TESTSUITE_NAME = - System.getProperty("maven.abbot.suite.name"); - - /** - * Entry point for starting the Ant JUnit test runner which will start - * all our Abbot script tests. - * - * @param args the parameters that we need to use to start the Ant test - * runner - * @throws Exception in case of unanticipated error - */ - public static void main(String[] args) throws Exception - { - AbbotWebstartTestRunner main = new AbbotWebstartTestRunner(); - main.execute(GENERIC_TEST, REPORT_DIR); - } - - /** - * Execute the JUnit test runner using the Ant JUnitTask task. - * - * Note: We absolutely need to call System.exit() as all webstart - * applications are required to do so. This is required for the - * application to close at the end of the tests - * (see http://www.vamphq.com/jwsfaq.html#linger). - * - * @param testName the name of the generic test that will in turn run all - * the Abbot XML scripts - * @param reportdir directory where junit reports are to be generated - * @throws Exception in case of unanticipated error - */ - public void execute(String testName, String reportDir) - { - try - { - executeAntJunitTestRunner(testName, reportDir); - System.exit(0); - } - catch (Throwable t) - { - System.exit(1); - } - } - - /** - * Execute the JUnit test runner using the Ant JUnitTask task. - * - * @param testName the name of the generic test that will in turn run all - * the Abbot XML scripts - * @param reportdir directory where junit reports are to be generated - * @throws Exception in case of unanticipated error - */ - private void executeAntJunitTestRunner(String testName, String reportDir) - throws Exception - { - Project project = new Project(); - project.init(); - - JUnitTask junit = new JUnitTask(); - junit.setProject(project); - - // Do not fork so that we use the same classpath that was used to - // start this class. - junit.setFork(false); - - // Set properties of the JUnit Ant task - - // Set formatter - junit.addFormatter(createFormatterElement("xml")); - junit.addFormatter(createFormatterElement("plain")); - - // Add tests to run - JUnitTest test = new JUnitTest(testName); - test.setTodir(new File(reportDir)); - - // Sets the name of the report file is the user has specified a name. - // Otherwise the name of the AbbotTestAll class will be used. - if (TESTSUITE_NAME != null) - { - test.setOutfile(TESTSUITE_NAME); - } - junit.addTest(test); - - // Other settings - junit.setHaltonerror(true); - junit.setHaltonfailure(true); - - // Execute the task... - junit.execute(); - } - - /** - * @param type the formatter type ("xml", "plain" or "brief") - * @return a properly set {@link FormatterElement} object - */ - private FormatterElement createFormatterElement(String type) - { - FormatterElement formatterElement = new FormatterElement(); - FormatterElement.TypeAttribute typeAttribute = - new FormatterElement.TypeAttribute(); - typeAttribute.setValue(type); - formatterElement.setType(typeAttribute); - return formatterElement; - } -} diff --git a/abbot/src/plugin-resources/jnlp.jsl b/abbot/src/plugin-resources/jnlp.jsl deleted file mode 100644 index f8371b4b..00000000 --- a/abbot/src/plugin-resources/jnlp.jsl +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - file:${jar.absolutePath} - - - - - - - - - maven.abbot.src.dir - ${maven.abbot.src.dir} - - - - maven.abbot.src.files - ${maven.abbot.src.files} - - - - maven.abbot.reports.dir - ${maven.abbot.reports.dir} - - - - maven.abbot.suite.name - ${maven.abbot.suite.name} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/abbot/src/plugin-test/maven.xml b/abbot/src/plugin-test/maven.xml deleted file mode 100644 index a3b2765c..00000000 --- a/abbot/src/plugin-test/maven.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - This plugin must be tested manually (with the testPlugin-manual goal) as it requires defining a build.properties containing environment-dependent configuration. - - - - - - - - - diff --git a/abbot/src/plugin-test/project.xml b/abbot/src/plugin-test/project.xml deleted file mode 100644 index 9e267e24..00000000 --- a/abbot/src/plugin-test/project.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - 3 - maven - 1.0 - http://maven.apache.org/maven-1.x/reference/plugins/abbot/ - http://jira.codehaus.org/BrowseProject.jspa?id=xxxxx - /www/maven.apache.org/maven-1.x/reference/plugins/abbot/ - - scm:svn:http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk/abbot/ - http://svn.apache.org/viewcvs.cgi/maven/maven-1/plugins/trunk/abbot/ - - - - Christian Blavier - cblavier - christian.blavier@bnpparibas.fr - BNP Paribas - - Creator - Java Developer - Lead Developer - - - - Vincent Massol - vmassol - vmassol@pivolis.com - Pivolis - - Creator - Java Developer - Release Manager - Lead Developer - - - - - ${basedir}/src/java - - diff --git a/abbot/src/plugin-test/sample-local/conf/keys b/abbot/src/plugin-test/sample-local/conf/keys deleted file mode 100644 index f0ef3106..00000000 Binary files a/abbot/src/plugin-test/sample-local/conf/keys and /dev/null differ diff --git a/abbot/src/plugin-test/sample-local/maven.xml b/abbot/src/plugin-test/sample-local/maven.xml deleted file mode 100644 index f0d66f50..00000000 --- a/abbot/src/plugin-test/sample-local/maven.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - diff --git a/abbot/src/plugin-test/sample-local/project.properties b/abbot/src/plugin-test/sample-local/project.properties deleted file mode 100644 index ee4a5973..00000000 --- a/abbot/src/plugin-test/sample-local/project.properties +++ /dev/null @@ -1,23 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- - -maven.abbot.sign.keystore = file:${basedir}/conf/keys -maven.abbot.sign.storepass = abbot-plugin -maven.abbot.sign.alias = abbot-plugin diff --git a/abbot/src/plugin-test/sample-local/project.xml b/abbot/src/plugin-test/sample-local/project.xml deleted file mode 100644 index 60f42c5e..00000000 --- a/abbot/src/plugin-test/sample-local/project.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - ${basedir}/../project.xml - maven-abbot-plugin-test-sample-local - Maven Abbot plugin Local Sample Test - Run Abbot tests on local sample - Run Abbot tests on local sample - - diff --git a/abbot/src/plugin-test/sample-local/src/abbot/TestLocalSample.xml b/abbot/src/plugin-test/sample-local/src/abbot/TestLocalSample.xml deleted file mode 100644 index 77c14ee0..00000000 --- a/abbot/src/plugin-test/sample-local/src/abbot/TestLocalSample.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/abbot/src/plugin-test/sample-local/src/java/org/apache/maven/abbot/sample/Main.java b/abbot/src/plugin-test/sample-local/src/java/org/apache/maven/abbot/sample/Main.java deleted file mode 100644 index 54d95055..00000000 --- a/abbot/src/plugin-test/sample-local/src/java/org/apache/maven/abbot/sample/Main.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.apache.maven.abbot.sample; - -/* ==================================================================== - * Copyright 2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import javax.swing.JFrame; -import java.awt.FlowLayout; -import javax.swing.JButton; -import javax.swing.JTextField; -import java.awt.event.ActionListener; -import java.awt.event.ActionEvent; - -public class Main extends JFrame -{ - public JButton button; - public JTextField textField; - - public Main() - { - getContentPane().setLayout(new FlowLayout()); - textField = new JTextField("initial"); - button = new JButton("Click Here"); - button.addActionListener(new ActionListener() - { - public void actionPerformed(ActionEvent e) - { - textField.setText("modified"); - } - } - ); - getContentPane().add(button); - getContentPane().add(textField); - this.pack(); - } - - public static void main(String[] argv) - { - Main frame = new Main(); - frame.show(); - } - -} \ No newline at end of file diff --git a/abbot/src/plugin-test/sample-webstart/build.properties.sample b/abbot/src/plugin-test/sample-webstart/build.properties.sample deleted file mode 100644 index 2245193a..00000000 --- a/abbot/src/plugin-test/sample-webstart/build.properties.sample +++ /dev/null @@ -1,25 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# Copy this file to a build.properties file and edit to match your local -# environment. - -# Locations where your Java web start caches are located. -# For example on Windows XP: -maven.abbot.javaws.systemhome = C:/WINDOWS/Sun/Java/Deployment -maven.abbot.javaws.userhome = C:/Documents and Settings/[replace with user name]/Application Data/Sun/Java/Deployment - - diff --git a/abbot/src/plugin-test/sample-webstart/conf/keys b/abbot/src/plugin-test/sample-webstart/conf/keys deleted file mode 100644 index f0ef3106..00000000 Binary files a/abbot/src/plugin-test/sample-webstart/conf/keys and /dev/null differ diff --git a/abbot/src/plugin-test/sample-webstart/maven.xml b/abbot/src/plugin-test/sample-webstart/maven.xml deleted file mode 100644 index d7665a8f..00000000 --- a/abbot/src/plugin-test/sample-webstart/maven.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/abbot/src/plugin-test/sample-webstart/project.properties b/abbot/src/plugin-test/sample-webstart/project.properties deleted file mode 100644 index 2cd674e5..00000000 --- a/abbot/src/plugin-test/sample-webstart/project.properties +++ /dev/null @@ -1,24 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -maven.jetty.port = 8081 -maven.abbot.sign = true -maven.abbot.sign.force = false -maven.abbot.remotejnlp = http://localhost:8081/maven-abbot-plugin-test-sample-webstart/sample.jnlp - -maven.abbot.sign.keystore = file:${basedir}/conf/keys -maven.abbot.sign.storepass = abbot-plugin -maven.abbot.sign.alias = abbot-plugin diff --git a/abbot/src/plugin-test/sample-webstart/project.xml b/abbot/src/plugin-test/sample-webstart/project.xml deleted file mode 100644 index fc401834..00000000 --- a/abbot/src/plugin-test/sample-webstart/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - ${basedir}/../project.xml - maven-abbot-plugin-test-sample-webstart - Maven Abbot plugin Webstart Sample Test - Run Abbot tests on webstart sample - Run Abbot tests on webstart sample - - - maven - maven-abbot-plugin-test-sample-local - 1.0 - - . - - - - maven - maven-jetty-plugin - 1.0 - plugin - - - diff --git a/abbot/src/plugin-test/sample-webstart/src/abbot/TestWebstartSample.xml b/abbot/src/plugin-test/sample-webstart/src/abbot/TestWebstartSample.xml deleted file mode 100644 index f3499b67..00000000 --- a/abbot/src/plugin-test/sample-webstart/src/abbot/TestWebstartSample.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/abbot/src/plugin-test/sample-webstart/src/webapp/WEB-INF/web.xml b/abbot/src/plugin-test/sample-webstart/src/webapp/WEB-INF/web.xml deleted file mode 100644 index 3338168c..00000000 --- a/abbot/src/plugin-test/sample-webstart/src/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/abbot/src/plugin-test/sample-webstart/src/webapp/sample.jnlp b/abbot/src/plugin-test/sample-webstart/src/webapp/sample.jnlp deleted file mode 100644 index c1ba9c65..00000000 --- a/abbot/src/plugin-test/sample-webstart/src/webapp/sample.jnlp +++ /dev/null @@ -1,19 +0,0 @@ - - - - - Sample webstart application - Apache Software Foundation - - Sample webstart application - Sample webstart application - - - - - - - - - - \ No newline at end of file diff --git a/abbot/src/test/org/apache/maven/abbot/AbbotTestAllTest.java b/abbot/src/test/org/apache/maven/abbot/AbbotTestAllTest.java deleted file mode 100644 index befa9934..00000000 --- a/abbot/src/test/org/apache/maven/abbot/AbbotTestAllTest.java +++ /dev/null @@ -1,85 +0,0 @@ -package org.apache.maven.abbot; - -/* ==================================================================== - * Copyright 2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import junit.extensions.abbot.ScriptFixture; -import junit.framework.Test; -import junit.framework.TestCase; - -/** - * Unit tests for {@link AbbotTestAll}. - */ -public class AbbotTestAllTest extends TestCase -{ - public void testGetScriptFileNamesNoPropertyDefined() - { - assertNull("The maven.abbot.src.files property must not be set for " - + "this test", System.getProperty("maven.abbot.src.files")); - String[] result = AbbotTestAll.getScriptFileNames(); - assertNull(result); - } - - public void testGetScriptFileNamesEmptyFileList() - { - System.setProperty("maven.abbot.src.files", ""); - String[] result = AbbotTestAll.getScriptFileNames(); - assertNull(result); - } - - public void testGetScriptFileNamesSingleFile() - { - System.setProperty("maven.abbot.src.files", "c:/some/file"); - String[] result = AbbotTestAll.getScriptFileNames(); - assertEquals(1, result.length); - assertEquals("c:/some/file", result[0]); - } - - public void testGetScriptFileNamesTwoFiles() - { - System.setProperty("maven.abbot.src.files", - "c:/some/file,c:/other/file"); - String[] result = AbbotTestAll.getScriptFileNames(); - assertEquals(2, result.length); - assertEquals("c:/some/file", result[0]); - assertEquals("c:/other/file", result[1]); - } - - /** - * Verify we can construct a valid - * {@link junit.extensions.abbot.ScriptTestSuite} object when - * executing a single script. - */ - public void testConstructionOfScriptTestSuiteWithUniqueScript() - { - System.setProperty("maven.abbot.src.files", "c:/some/file.xml"); - - Test suite = AbbotTestAll.suite(); - - assertNotNull(suite); - assertEquals(AbbotTestAll.MavenScriptTestSuite.class.getName(), - suite.getClass().getName()); - - AbbotTestAll.MavenScriptTestSuite mavenSuite = - (AbbotTestAll.MavenScriptTestSuite) suite; - assertEquals(1, mavenSuite.testCount()); - - Test test = (Test) mavenSuite.tests().nextElement(); - assertEquals(ScriptFixture.class.getName(), test.getClass().getName()); - } - -} diff --git a/abbot/src/test/org/apache/maven/abbot/AbbotTestRunnerMainTest.java b/abbot/src/test/org/apache/maven/abbot/AbbotTestRunnerMainTest.java deleted file mode 100644 index 5de6f4e7..00000000 --- a/abbot/src/test/org/apache/maven/abbot/AbbotTestRunnerMainTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.apache.maven.abbot; - -/* ==================================================================== - * Copyright 2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import junit.framework.TestCase; - -/** - * Unit tests for {@link AbbotWebstartTestRunner}. - */ -public class AbbotTestRunnerMainTest extends TestCase -{ - public void testExecuteOk() throws Exception - { - AbbotWebstartTestRunner runner = new AbbotWebstartTestRunner(); - runner.execute(SampleTest.class.getName(), - System.getProperty("maven.abbot.reports.dir", "")); - } -} diff --git a/abbot/src/test/org/apache/maven/abbot/SampleTest.java b/abbot/src/test/org/apache/maven/abbot/SampleTest.java deleted file mode 100644 index 578a3a9b..00000000 --- a/abbot/src/test/org/apache/maven/abbot/SampleTest.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.apache.maven.abbot; - -/* ==================================================================== - * Copyright 2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import junit.framework.TestCase; - -/** - * Dummy test to verify that {@link AbbotWebstartTestRunner#execute} - * can execute it properly. - */ -public class SampleTest extends TestCase -{ - public void testXXX() - { - assertTrue("Should have been true...", true); - } -} diff --git a/abbot/xdocs/changes.xml b/abbot/xdocs/changes.xml deleted file mode 100644 index 512f2544..00000000 --- a/abbot/xdocs/changes.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - Changes - Vincent Massol - - - - Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : -
    -
  • ant v1.5.3-1 -> v1.6.5
  • -
  • ant-junit (ant-optional) v1.5.3-1 -> v1.6.5
  • -
  • commons-jelly-tags-xml v1.0 -> v1.1
  • -
  • jdom v b10 -> v1.0
  • -
  • xercesImpl v 2.4.0 -> v2.6.2
  • -
  • xmlParserAPIs v 2.2.1 -> v2.6.2
  • -
-
- - Removed the need to set up a JAVAWS_HOME property. This is - now automatically inferred from ${java.home} and defaults - to ${java.home}/javaws. You can override this value by - setting the maven.abbot.webstart.home property. - -
- - Upgraded to Abbot 0.13.0 and JDOM 1.0 beta 10. - Added new - maven.abbot.extrajarsproperty that can be used to specify extra jars to be added to the executing classpath. For example, this is useful to add custom Abbot tester classes. - - - - Initial creation by Christian Blavier and Vincent Massol. See the feature list on the Abbot plugin web site for a full list of what the plugin does. - - -
diff --git a/abbot/xdocs/goals.xml b/abbot/xdocs/goals.xml deleted file mode 100644 index 849e5feb..00000000 --- a/abbot/xdocs/goals.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - Maven Abbot plugin goals - Vincent Massol - - - - - abbot - - Default goal. Does the same as abbot:test. - - - - abbot:test - - Runs Abbot tests (Costello XML scripts). - - - - abbot:test-webstart - - Runs Abbot tests (Costello XML scripts) against an already - installed WebStart application. - - - - abbot:editor - - Start the Abbot Costello editor. - - - - abbot:editor-webstart - - Start the Abbot Costello editor, using the jars from an already - installed WebStart application. - - - - - \ No newline at end of file diff --git a/abbot/xdocs/index.xml b/abbot/xdocs/index.xml deleted file mode 100644 index 6f769594..00000000 --- a/abbot/xdocs/index.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - Maven Abbot plugin - Vincent Massol - - - -
-

- Provides the following features: -

- -
-
-

- See the usage tutorial. -

-
- - - -
diff --git a/abbot/xdocs/navigation.xml b/abbot/xdocs/navigation.xml deleted file mode 100644 index f7afeffd..00000000 --- a/abbot/xdocs/navigation.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - Maven Abbot plugin - - - - - - - - - - - - - - - - - - - - diff --git a/abbot/xdocs/properties.xml b/abbot/xdocs/properties.xml deleted file mode 100644 index 65bd5cbd..00000000 --- a/abbot/xdocs/properties.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - Maven Abbot plugin properties - Vincent Massol - - -
- -
- -
\ No newline at end of file diff --git a/abbot/xdocs/using.xml b/abbot/xdocs/using.xml deleted file mode 100644 index 6208c59d..00000000 --- a/abbot/xdocs/using.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - Using the Abbot plugin - Vincent Massol - - - - -
-

- There are 2 possible ways to use the plugin: -

- -
- -
- -

- There are no pre-requisites. -

-
-
- -
- -

- The following environmental dependencies need to be present before - executing the Abbot plugin: -

-
    -
  • - Some mandatory environment-dependent properties need to be - defined. See the Properties - page for the details. -
  • -
-
- -

- The following limitations are known for the - abbot:test-webstart goal: -

-
    -
  • - You need to provide a key to sign your webstart jars. This is - required as we're packaging local filesystem jars - into the application's JNLP and we need to have the permissions - to do so (granted if the jar are signed). -
  • -
-
-
- - - -
diff --git a/castor/plugin.jelly b/castor/plugin.jelly deleted file mode 100644 index a0831239..00000000 --- a/castor/plugin.jelly +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/castor/plugin.properties b/castor/plugin.properties deleted file mode 100644 index 6a5a08ba..00000000 --- a/castor/plugin.properties +++ /dev/null @@ -1,26 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# Default Maven properties for the Castor plugin. -# ------------------------------------------------------------------- -# These are the properties that we believe are immutable so we -# keep them apart from the project specific properties. -# ------------------------------------------------------------------- - -maven.castor.properties.dir= -maven.castor.dest=${maven.build.dir}/castor/src -maven.castor.tstamp=${maven.build.dir}/castor/tstamp diff --git a/castor/project.properties b/castor/project.properties deleted file mode 100644 index d66f96c3..00000000 --- a/castor/project.properties +++ /dev/null @@ -1,19 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- diff --git a/castor/project.xml b/castor/project.xml deleted file mode 100644 index 4773fefb..00000000 --- a/castor/project.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - ../plugins-parent/project.xml - 3 - maven-castor-plugin - Maven Castor Plugin - 1.2 - Various goals for making development with Plexus easy. - Plexus Tools - - - 1.1 - 1.1 - MAVEN_CASTOR_1_1 - - - 1.2 - 1.2 - MAVEN_CASTOR_1_2 - - - - - Jason van Zyl - jvanzyl - jason@zenplex.com - Zenplex - - Architect - Release Manager - - - - - - Tim Anderson - tma@netspace.net.au - - - - - castor - castor - 0.9.5 - - - diff --git a/castor/xdocs/changes.xml b/castor/xdocs/changes.xml deleted file mode 100644 index b22eb0cc..00000000 --- a/castor/xdocs/changes.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - Changes - Jason van Zyl - - - - - Added - maven.castor.properties.dirproperty. - - Updated to castor 0.9.5 - - - Original release for Maven 1.0-beta8 - - - diff --git a/castor/xdocs/examples.xml b/castor/xdocs/examples.xml deleted file mode 100644 index 32f54c09..00000000 --- a/castor/xdocs/examples.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - Maven Castor Plug-in Examples - Tim Anderson - - - -
-

- The following generates java sources for the foo.xsd' schema, - in the 'com.foo.bar' package. The sources will use Java 2 collection - types. -

- - - - - -]]> -

- The following generates java sources for the 'bar.xsd' schema. - The sources will not included marshalling support (marshal, - unmarshal, validate). -

- - - - - -]]> -
- -
diff --git a/castor/xdocs/goals.xml b/castor/xdocs/goals.xml deleted file mode 100644 index b50793a1..00000000 --- a/castor/xdocs/goals.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - Maven Castor Plug-in Goals - Jason van Zyl - Tim Anderson - - - -
- - - - - - -
GoalDescription
castor:prepare-filesystem - Creates the directories specified by the - ${maven.castor.dest} and - ${maven.castor.tstamp} properties. -
-
- -
diff --git a/castor/xdocs/index.xml b/castor/xdocs/index.xml deleted file mode 100644 index ea24f9d6..00000000 --- a/castor/xdocs/index.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - Maven Castor Plug-in - Jason van Zyl - Tim Anderson - - - -
-

- This plugin generates java sources from schemas using Castor. -

- - - - - - - - - - - - - - -
DocumentDescription
Goals - This document provides detailed information on the various - goals that are available as part of the Maven Castor Plug-in. -
Properties - The behavior of the Maven Castor Plug-in can be altered via - several properties. This document describes each property - available, and the default used. -
Tags - The Castor plugin defines Jelly tags to generate java - sources. This document describes the tags and their - arguments. -
Examples - This document provides examples on how to use the Maven Castor - plugin. -
-
-
- -
diff --git a/castor/xdocs/navigation.xml b/castor/xdocs/navigation.xml deleted file mode 100644 index aa28fb2f..00000000 --- a/castor/xdocs/navigation.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - Maven Castor Plugin - - - - - - - - - - - - - - - - - - - - - diff --git a/castor/xdocs/properties.xml b/castor/xdocs/properties.xml deleted file mode 100644 index 8a5206ce..00000000 --- a/castor/xdocs/properties.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - Maven Castor Plugin Properties - Jason van Zyl - Tim Anderson - - - -
- - - - - - - - - - - - - - - - - - - - - -
Property nameDescriptionOptional?
maven.castor.properties.dir - Specifies the directory to locate the - castorbuilder.properties file. - Yes
maven.castor.dest - Specifies the directory to place generated sources.
- Defaults value is ${maven.build.dir}/castor/src -
Yes
maven.castor.tstamp - Specifies the directory to output timestamp files. - These are used to track source modifications against the - generated files, to avoid unecessary generation.
- Default value is ${maven.build.dir}/castor/tstamp -
Yes
-
-
- - - - - - - - - - - -
Property nameDescriptionOptional?
maven.compile.src.set - The source directories maven uses to compile java code. - The Castor plugin adds the directory it generates code to - this path, so that generated code is compiled seamlessly - Yes
-
- -
diff --git a/castor/xdocs/tags.xml b/castor/xdocs/tags.xml deleted file mode 100644 index 10c00e6d..00000000 --- a/castor/xdocs/tags.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - Maven Castor Plug-in Tags - Tim Anderson - - - -
-

- This document describes the - tags - that are available when using the Castor Plug-in with Maven. -

-

- Please refer to the - Integration document for - more information on how to integrate these tags into - your project. -

-
- -
- - - - - - - - - - -
GoalDescription
castor:generateGenerate java sources from an XML Schema.
castor:srcgenDEPRECATED. Use castor:generate instead
- - -

- The castor:generate target generates java sources - from an XML Schema (XSD file).
- Sources are generated in the - ${maven.castor.dest} directory.
- Sources are only generated if the input schema is newer than any - existing generated source. -

- - - - - - - - - - - - - - - - - - - - - - - - -
Attribute NameDescriptionOptional?
schemaThe path to the XML schemaNo
packageThe package for the generated sourceYes
typesSets which type factory to use. This is useful if you want - JDK 1.2 collections instead of JDK 1.1, or if you want to pass - in your own FieldInfoFactory.
- If not specified, java.util.Vector will be used for - collections.
- See - Collection Types - for valid values. -
Yes
marshal - If 'false', disables generation of the marshalling framework - methods (marshal, unmarshal, validate).
- Defaults to 'true'. -
Yes
-
-
- -
diff --git a/hibernate/plugin.jelly b/hibernate/plugin.jelly deleted file mode 100644 index c203e9b7..00000000 --- a/hibernate/plugin.jelly +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - Aggregating multiple hibernate mapping into one single file - - - - - - - Exporting Hibernate Schema file - - - - - - - Updating database schema - - - - - - - Generating POJOs from hbm files - - - - - - - - - - diff --git a/hibernate/plugin.properties b/hibernate/plugin.properties deleted file mode 100644 index d9931bf9..00000000 --- a/hibernate/plugin.properties +++ /dev/null @@ -1,31 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -#maven.hibernate.properties= -maven.hibernate.quiet=yes -maven.hibernate.text=no -maven.hibernate.drop=no -maven.hibernate.delimiter= -maven.hibernate.output.dir=${maven.build.dir}/schema -maven.hibernate.output.file=${maven.hibernate.output.dir}/${maven.final.name}-schema.sql -maven.hibernate.input.dir=${maven.build.dest} -maven.hibernate.input.includes=**/*.hbm.xml -maven.hibernate.input.excludes= -maven.hibernate.aggregate.output.file=${maven.hibernate.output.dir}/aggregated-mappings.hbm.xml -maven.hibernate.codeGeneration.input.dir=${maven.src.dir}/hibernate -maven.hibernate.codeGeneration.output.dir=${maven.src.dir}/hibernate -maven.hibernate.codeGeneration.input.includes=${maven.hibernate.input.includes} -maven.hibernate.codeGeneration.input.excludes= diff --git a/hibernate/project.properties b/hibernate/project.properties deleted file mode 100644 index d66f96c3..00000000 --- a/hibernate/project.properties +++ /dev/null @@ -1,19 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- diff --git a/hibernate/project.xml b/hibernate/project.xml deleted file mode 100644 index 9d834e83..00000000 --- a/hibernate/project.xml +++ /dev/null @@ -1,215 +0,0 @@ - - - - ../plugins-parent/project.xml - 3 - maven-hibernate-plugin - Maven Hibernate Plugin - 1.4-SNAPSHOT - - Work with Hibernate classes - - - 1.0 - 1.0 - MAVEN_HIBERNATE_1_0 - - - 1.1 - 1.1 - MAVEN_HIBERNATE_1_1 - - - 1.2 - 1.2 - MAVEN_HIBERNATE_1_2 - - - 1.3 - 1.3 - MAVEN_HIBERNATE_1_3 - - - - - Michal Maczka - michal - michal.maczka@dimatics.com - Dimatics - - Java Developer - - +1 - - - Eric Pugh - epugh - epugh@opensourceconnections.com - OpenSource Connections - - Java Developer - - - - Felipe Leme - felipeal - maven@felipeal.net - Falcon Informatica - - Java Developer - - -3 - - - - - Alex Shneyderman - as851@columbia.edu - - - - - hibernate - hibernate - 2.1.3 - jar - - - hibernate - hibernate-tools - 2.1.3 - jar - - - ant - ant - 1.6.5 - jar - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - commons-jelly - commons-jelly - 1.0 - http://jakarta.apache.org/commons/jelly/ - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - commons-lang - commons-lang - 2.0 - jar - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - commons-beanutils - commons-beanutils - 1.6.1 - jar - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - commons-dbcp - commons-dbcp - 1.1 - jar - - - commons-collections - commons-collections - 3.0 - jar - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - commons-logging - commons-logging - 1.0.4 - jar - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - commons-pool - commons-pool - 1.1 - jar - - - log4j - log4j - 1.2.12 - jar - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - xerces - xmlParserAPIs - 2.6.2 - http://xerces.apache.org/xerces2-j/ - - - xerces - xercesImpl - 2.6.2 - http://xerces.apache.org/xerces2-j/ - - - odmg - odmg - 3.0 - jar - - - cglib - cglib - 2.0.2 - jar - - - dom4j - dom4j - 1.4 - jar - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - jdom - jdom - 1.0 - jar - - - diff --git a/hibernate/src/main/org/apache/maven/hibernate/HibernateEntityResolver.java b/hibernate/src/main/org/apache/maven/hibernate/HibernateEntityResolver.java deleted file mode 100644 index f57e72fe..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/HibernateEntityResolver.java +++ /dev/null @@ -1,106 +0,0 @@ -package org.apache.maven.hibernate; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.IOException; -import java.io.InputStream; -import java.util.HashMap; -import java.util.Map; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.xml.sax.EntityResolver; -import org.xml.sax.InputSource; -import org.xml.sax.SAXException; - -/** - * A class to resolve external entity definitions for j2ee artifacts. - * Based on the J2EEEntityResolver from the J2EE plugin - * - * @author eric pugh - * @version $Id$ - */ -public class HibernateEntityResolver implements EntityResolver -{ - /** map of ids to resource names */ - private Map idToResource = new HashMap(); - - /** log for debug output */ - private static final Log LOG = LogFactory.getLog(HibernateEntityResolver.class); - - /** list of j2ee dtds that are being made available */ - public static final String[] HIBERNATE_DTDS = new String[] { - "-//Hibernate/Hibernate Mapping DTD 2.0//EN" - }; - public static final String[] HIBERNATE_RESOURCES = new String[] { - "/plugin-resources/hibernate-mapping-2.0.dtd" - }; - - /** Creates a new instance of EntityResolver */ - public HibernateEntityResolver() - { - for (int i = 0; i < HIBERNATE_DTDS.length; i++) { - idToResource.put(HIBERNATE_DTDS[i], HIBERNATE_RESOURCES[i]); - } - } - - /** resolve the entity given by the provided Ids - * @param publicId the public id of the entity - * @param systemId the 'system location' (typically a URL) of the entity - * @return an {@link InputSource input source} for retrieval of the entity - * @throws IOException when an I/O error occurs retrieving the entity - * @throws SAXException if there are any problems - */ - public InputSource resolveEntity(String publicId, String systemId) throws - SAXException, IOException - { - LOG.debug("resolving entity with publicId='" + publicId + ", systemId='" + systemId + "'"); - if (publicId != null) - { - String resource = (String) idToResource.get(publicId); - LOG.debug("resource found in map ='" + resource + "'" ); - if (resource != null) - { - InputStream in = getClass().getResourceAsStream(resource); - LOG.debug("input stream ='" + in + "'" ); - if (in != null) - { - return new InputSource(in); - } - } - } - return null; - } - - /** Getter for publicId to resource name map. - * @return Value of property idToResource. - */ - protected Map getIdToResource() - { - return idToResource; - } - - /** Setter for publicId to resource name map. - * @param idToResource New value of property idToResource. - */ - protected void setIdToResource(Map idToResource) - { - this.idToResource = idToResource; - } - -} diff --git a/hibernate/src/main/org/apache/maven/hibernate/beans/CodeGenerationBean.java b/hibernate/src/main/org/apache/maven/hibernate/beans/CodeGenerationBean.java deleted file mode 100644 index f03699b6..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/beans/CodeGenerationBean.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.apache.maven.hibernate.beans; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import net.sf.hibernate.tool.hbm2java.CodeGenerator; - -/** - * @author Paul Kearney - * @version $Id$ - */ -public class CodeGenerationBean extends CommonOperationsBean { - - private static final String OUTPUT_SWITCH = "--output="; - - private String outputdir = null; - - public void execute() { - - // Construct output directory argument - StringBuffer switchArg= new StringBuffer(); - switchArg.append(OUTPUT_SWITCH).append(getOutputdir()); - - // Get list of files that are to be used to generate POJOs - final String[] files = getFileNames(); - - // Require new array to combine command args with hbm files array - String[] args = new String[files.length + 1]; - // Add command arg to new array - args[0] = switchArg.toString(); - // Copy list of hbm files to new array - System.arraycopy(files, 0, args, 1, files.length); - - // Generate POJOs - CodeGenerator generator = new CodeGenerator(); - generator.main(args); - - } - - public String getOutputdir() { - return this.outputdir; - } - - public void setOutputdir(String outputdir) { - this.outputdir = outputdir; - } -} diff --git a/hibernate/src/main/org/apache/maven/hibernate/beans/CommonOperationsBean.java b/hibernate/src/main/org/apache/maven/hibernate/beans/CommonOperationsBean.java deleted file mode 100644 index b305cd0e..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/beans/CommonOperationsBean.java +++ /dev/null @@ -1,148 +0,0 @@ -package org.apache.maven.hibernate.beans; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.StringTokenizer; - -import org.apache.commons.lang.StringUtils; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.apache.tools.ant.DirectoryScanner; - -/** - * - * @author Alex Shneyderman - * @since $Id$ - */ -public class CommonOperationsBean { - - private String includes = null; - private String excludes = null; - private String basedir = null; - - private static final Log LOG = LogFactory.getLog(CommonOperationsBean.class); - - public String getBasedir() - { - return basedir; - } - - public void setBasedir(String basedir) - { - this.basedir = basedir; - } - - public String getExcludes() - { - return excludes; - } - - public void setExcludes(String excludes) - { - this.excludes = excludes; - } - - public String getIncludes() - { - return includes; - } - - public void setIncludes(String includes) - { - this.includes = includes; - } - - protected String[] getBaseDirNames() - { - LOG.debug("Bases string: " + getBasedir()); - StringTokenizer st = new StringTokenizer(getBasedir(), ","); - String r[] = new String[st.countTokens()]; - for(int i = 0; st.hasMoreTokens(); i++) - r[i] = st.nextToken(); - - return r; - } - - protected File[] getBaseDirs() - { - String bases[] = getBaseDirNames(); - List l = new ArrayList(); - for(int i = 0; i < bases.length; i++) - { - File t = new File(bases[i]); - if(t.isDirectory()) - { - l.add(t); - LOG.info(" Adding base dir: " + t.getAbsolutePath()); - } - } - - return (File[])l.toArray(new File[0]); - } - - protected String[] getFileNames() - { - List files = new LinkedList(); - File dirs[] = getBaseDirs(); - for(int i = 0; i < dirs.length; i++) - { - DirectoryScanner directoryScanner = new DirectoryScanner(); - directoryScanner.setBasedir(dirs[i]); - LOG.debug("Base dir:" + dirs[i].getAbsolutePath()); - LOG.debug("Excludes:" + getExcludes()); - LOG.debug("Includes:" + getIncludes()); - directoryScanner.setExcludes(StringUtils.split(getExcludes(), ",")); - directoryScanner.setIncludes(StringUtils.split(getIncludes(), ",")); - directoryScanner.scan(); - String includesFiles[] = directoryScanner.getIncludedFiles(); - for(int j = 0; j < includesFiles.length; j++) - { - File file = new File(includesFiles[j]); - if(!file.isFile()) - file = new File(directoryScanner.getBasedir(), includesFiles[j]); - files.add(file.getAbsolutePath()); - LOG.debug("work with file:" + file.getAbsolutePath()); - } - - } - - return (String[])files.toArray(new String[0]); - } - - protected File[] getFileDescriptors() - { - String names[] = getFileNames(); - List files = new ArrayList(); - for(int i = 0; i < names.length; i++) - { - File t = new File(names[i]); - if(t.isFile()) - files.add(t); - } - - return (File[])files.toArray(new File[0]); - } - - - - -} diff --git a/hibernate/src/main/org/apache/maven/hibernate/beans/MappingsAggregatorBean.java b/hibernate/src/main/org/apache/maven/hibernate/beans/MappingsAggregatorBean.java deleted file mode 100644 index 38e1d13d..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/beans/MappingsAggregatorBean.java +++ /dev/null @@ -1,114 +0,0 @@ -package org.apache.maven.hibernate.beans; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.File; -import java.io.FileWriter; -import java.util.Iterator; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.apache.maven.hibernate.HibernateEntityResolver; -import org.dom4j.Document; -import org.dom4j.DocumentHelper; -import org.dom4j.Element; -import org.dom4j.io.OutputFormat; -import org.dom4j.io.SAXReader; -import org.dom4j.io.XMLWriter; - -/** - * - * @author Alex Shneyderman - * @since $Id$ - */ -public class MappingsAggregatorBean extends CommonOperationsBean -{ - - private String aggregateOutputFile = null; - - private static final Log LOG = LogFactory.getLog(MappingsAggregatorBean.class); - - public void execute() - throws Exception - { - String version = null; - File files[] = getFileDescriptors(); - if(files == null || files.length <= 0) - { - LOG.info("nothing to process"); - return; - } - LOG.info("Aggregating to " + getAggregateOutputFile()); - File f = new File(getAggregateOutputFile()); - OutputFormat format = OutputFormat.createPrettyPrint(); - XMLWriter writer = new XMLWriter(new FileWriter(f), format); - writer.setEntityResolver(new HibernateEntityResolver()); - //writer.setResolveEntityRefs(false); - Document finalDoc = DocumentHelper.createDocument(); - Element rootHM = null; - for(int i = 0; i < files.length; i++) - { - SAXReader reader = new SAXReader(false); - reader.setEntityResolver(new HibernateEntityResolver()); - //reader.setIncludeExternalDTDDeclarations(false); - //reader.setIncludeExternalDTDDeclarations(false); - Document current = reader.read(files[i]); - String currentVersion = getVersion(current); - if(version == null) - { - version = currentVersion; - finalDoc.setProcessingInstructions(current.processingInstructions()); - finalDoc.setDocType(current.getDocType()); - rootHM = finalDoc.addElement("hibernate-mapping"); - } else - if(!version.equals(currentVersion)) - { - LOG.warn("Mapping in " + files[i].getName() + " is not of the same mapping version as " + files[0].getName() + " mapping, so merge is impossible. Skipping"); - continue; - } - for(Iterator iter = current.selectSingleNode("hibernate-mapping").selectNodes("class").iterator(); iter.hasNext(); rootHM.add((Element)((Element)iter.next()).clone())); - } - - writer.write(finalDoc); - writer.close(); - } - - public String getAggregateOutputFile() - { - return aggregateOutputFile; - } - - public void setAggregateOutputFile(String aggregateOutputFile) - { - this.aggregateOutputFile = aggregateOutputFile; - } - - private String getVersion(Document current) - { - String docType = current.getDocType().getText(); - if(docType == null || "".equals(docType.trim())) - return ""; - if(docType.indexOf("hibernate-mapping-2.0.dtd") > 0) - return "2.0"; - if(docType.indexOf("hibernate-mapping-1.1.dtd") > 0) - return "1.1"; - else - return null; - } - -} \ No newline at end of file diff --git a/hibernate/src/main/org/apache/maven/hibernate/beans/SchemaBeanBase.java b/hibernate/src/main/org/apache/maven/hibernate/beans/SchemaBeanBase.java deleted file mode 100644 index ea45195f..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/beans/SchemaBeanBase.java +++ /dev/null @@ -1,235 +0,0 @@ -package org.apache.maven.hibernate.beans; - -/* ==================================================================== - * Copyright 2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.File; -import java.net.URL; -import java.net.URLClassLoader; - -import net.sf.hibernate.HibernateException; -import net.sf.hibernate.cfg.Configuration; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -/** - * - * Base class for Beans which serve as Proxy To Hibernate API - *
- * - * @author Michal Maczka - * @author Felipe Leme - * @version $Id$ - */ -public abstract class SchemaBeanBase extends CommonOperationsBean -{ - - private String properties = null; - private String config = null; - private boolean quiet = false; - private boolean text = false; - - protected static final Log LOG = LogFactory.getLog(MappingsAggregatorBean.class); - - - - /** - * @return - */ - public boolean getQuiet() - { - return quiet; - } - - /** - * @return - */ - public boolean getText() - { - return text; - } - - /** - * @param b - */ - public void setQuiet(boolean b) - { - quiet = b; - } - - /** - * @param b - */ - public void setText(boolean b) - { - text = b; - } - - /** - * @return - */ - public String getConfig() - { - return config; - } - - /** - * @return - */ - public String getProperties() - { - return properties; - } - - /** - * @param string - */ - public void setConfig(String string) - { - config = string; - } - - /** - * @param string - */ - public void setProperties(String string) - { - properties = string; - } - - /** - * - * Hibernate requires that - * Java classes (beans) are accesible on the - * classpath. As they are not in plugin classpath - * we have to take care about. - * To assure that we have them visible for plugin - * classloader - * we will make temporay change to context classloader - * which will be restored when method terminates. - * - */ - public void execute() throws Exception - { - - Thread currentThread = Thread.currentThread(); - ClassLoader oldClassLoader = currentThread.getContextClassLoader(); - try - { - File [] baseDirs = getBaseDirs (); - URL [] urls = new URL [baseDirs.length]; - for (int i = 0; i < urls.length; i++) { - urls [i] = baseDirs [i].toURL (); - } - - URLClassLoader newClassLoader = - new URLClassLoader(urls, getClass().getClassLoader()); - currentThread.setContextClassLoader(newClassLoader); - - Configuration cfg = getConfiguration(); - executeSchema( cfg ); - - } - finally - { - currentThread.setContextClassLoader(oldClassLoader); - } - } - - /** - * Method that does the real job - */ - protected abstract void executeSchema(Configuration cfg) throws Exception; - - /** - * - */ - private Configuration getConfiguration() throws HibernateException - { - Configuration cfg = new Configuration(); - if (getConfig() != null) - { - File f = new File(getConfig()); - LOG.debug("Hibernate Configuration File: " + f.getAbsolutePath()); - cfg.configure(f); - } - - String[] files = getFileNames (); - for (int i = 0; i < files.length; i++) - { - String filename = files[i]; - if (filename.endsWith(".jar")) - { - cfg.addJar(filename); - } - else - { - cfg.addFile(filename); - } - } - return cfg; - } - - private String schemaOutputFile = null; - private String delimiter = null; - - - - /** - * @return - */ - public String getSchemaOutputFile() { - return schemaOutputFile; - } - - /** - * @return - */ - public String getOutputFile() { - return schemaOutputFile; - } - - /** - * @return - */ - public String getDelimiter() { - return delimiter; - } - - /** - * @param string - */ - public void setSchemaOutputFile(String string) { - schemaOutputFile = string; - } - - /** - * @param string - */ - public void setOutputFile(String string) { - schemaOutputFile = string; - } - - /** - * @param string - */ - public void setDelimiter(String string) { - delimiter = string; - } - -} diff --git a/hibernate/src/main/org/apache/maven/hibernate/beans/SchemaExportBean.java b/hibernate/src/main/org/apache/maven/hibernate/beans/SchemaExportBean.java deleted file mode 100644 index 94b1d097..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/beans/SchemaExportBean.java +++ /dev/null @@ -1,80 +0,0 @@ -package org.apache.maven.hibernate.beans; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.FileInputStream; -import java.util.Properties; - -import net.sf.hibernate.cfg.Configuration; -import net.sf.hibernate.tool.hbm2ddl.SchemaExport; - -/** - * - * The Bean which serves as Proxy To Hibernate API - *
- * - * @author Michal Maczka - * @version $Id$ - */ -public class SchemaExportBean extends SchemaBeanBase -{ - - private boolean drop = false; - - /** - * @return - */ - public boolean isDrop() - { - return drop; - } - - /** - * @param b - */ - public void setDrop(boolean b) - { - drop = b; - } - - protected void executeSchema(Configuration cfg) throws Exception { - SchemaExport schemaExport = null; - if (getProperties() == null) - { - schemaExport = new SchemaExport(cfg); - } - else - { - Properties properties = new Properties(); - properties.load(new FileInputStream(getProperties())); - schemaExport = new SchemaExport(cfg, properties); - } - LOG.debug("Output file:" + getOutputFile()); - schemaExport.setOutputFile(getOutputFile()); - schemaExport.setDelimiter(getDelimiter()); - if (isDrop()) - { - schemaExport.drop(!getQuiet(), !getText()); - } - else - { - schemaExport.create(!getQuiet(), !getText()); - } - } - -} diff --git a/hibernate/src/main/org/apache/maven/hibernate/beans/SchemaUpdateBean.java b/hibernate/src/main/org/apache/maven/hibernate/beans/SchemaUpdateBean.java deleted file mode 100644 index 9901664e..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/beans/SchemaUpdateBean.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.apache.maven.hibernate.beans; - -/* ==================================================================== - * Copyright 2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.FileInputStream; -import java.util.Properties; - -import net.sf.hibernate.cfg.Configuration; -import net.sf.hibernate.tool.hbm2ddl.SchemaUpdate; - -/** - * - * The Bean which serves as Proxy To Hibernate SchemaUpdate - *
- * - * @author Felipe Leme - * @version $Id$ - */ -public class SchemaUpdateBean extends SchemaBeanBase -{ - - protected void executeSchema(Configuration cfg) throws Exception { - SchemaUpdate schemaUpdate = null; - if (getProperties() == null) - { - schemaUpdate = new SchemaUpdate(cfg); - } - else - { - Properties properties = new Properties(); - properties.load(new FileInputStream(getProperties())); - schemaUpdate = new SchemaUpdate(cfg, properties); - } - schemaUpdate.execute( !getQuiet(), !getText() ); - } - -} diff --git a/hibernate/src/main/org/apache/maven/hibernate/jelly/AggregateMappingsTag.java b/hibernate/src/main/org/apache/maven/hibernate/jelly/AggregateMappingsTag.java deleted file mode 100644 index d0b73ffb..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/jelly/AggregateMappingsTag.java +++ /dev/null @@ -1,93 +0,0 @@ -package org.apache.maven.hibernate.jelly; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.apache.commons.jelly.*; -import org.apache.maven.hibernate.beans.MappingsAggregatorBean; - -public class AggregateMappingsTag extends TagSupport -{ - - private MappingsAggregatorBean bean = new MappingsAggregatorBean(); - - protected void execute() - throws JellyTagException - { - try - { - bean.execute(); - } - catch(Exception e) - { - String msg = " Mapping aggreagtion failed: " + e.getMessage(); - throw new JellyTagException(msg, e); - } - } - - public void doTag(XMLOutput arg0) - throws JellyTagException - { - execute(); - } - - public String toString() - { - return bean.toString(); - } - - public void setExcludes(String string) - { - bean.setExcludes(string); - } - - public void setIncludes(String string) - { - bean.setIncludes(string); - } - - public String getExcludes() - { - return bean.getExcludes(); - } - - public String getIncludes() - { - return bean.getIncludes(); - } - - public String getBasedir() - { - return bean.getBasedir(); - } - - public void setBasedir(String string) - { - bean.setBasedir(string); - } - - public String getAggregateOutputFile() - { - return bean.getAggregateOutputFile(); - } - - public void setAggregateOutputFile(String aggregateOutputFile) - { - bean.setAggregateOutputFile(aggregateOutputFile); - } - -} \ No newline at end of file diff --git a/hibernate/src/main/org/apache/maven/hibernate/jelly/CodeGenerationTag.java b/hibernate/src/main/org/apache/maven/hibernate/jelly/CodeGenerationTag.java deleted file mode 100644 index 840eb3ce..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/jelly/CodeGenerationTag.java +++ /dev/null @@ -1,99 +0,0 @@ -package org.apache.maven.hibernate.jelly; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.apache.commons.jelly.JellyTagException; -import org.apache.commons.jelly.MissingAttributeException; -import org.apache.commons.jelly.TagSupport; -import org.apache.commons.jelly.XMLOutput; -import org.apache.maven.hibernate.beans.CodeGenerationBean; - -/** - * @author Paul Kearney - * @version $Id$ - */ -public class CodeGenerationTag extends TagSupport { - - private CodeGenerationBean bean = new CodeGenerationBean(); - - /** - * @see org.apache.commons.jelly.Tag#doTag(org.apache.commons.jelly.XMLOutput) - */ - public void doTag(XMLOutput arg0) throws MissingAttributeException, JellyTagException { - - execute(); - } - - /** - * - */ - protected void execute() throws JellyTagException - { - try { - bean.execute(); - } catch (Exception e) { - String msg = "Code generation operation failed"; - throw new JellyTagException(msg, e); - } - } - - public String getBasedir() - { - return bean.getBasedir(); - } - - public String getExcludes() - { - return bean.getExcludes(); - } - - public String getIncludes() - { - return bean.getIncludes(); - } - - public String getOutputdir() - { - return bean.getOutputdir(); - } - - public void setBasedir(String string) - { - bean.setBasedir(string); - } - - public void setExcludes(String string) - { - bean.setExcludes(string); - } - - public void setIncludes(String string) - { - bean.setIncludes(string); - } - - public void setOutputdir(String dir) - { - bean.setOutputdir(dir); - } - - public String toString() - { - return bean.toString(); - } -} diff --git a/hibernate/src/main/org/apache/maven/hibernate/jelly/HibernateTagLibrary.java b/hibernate/src/main/org/apache/maven/hibernate/jelly/HibernateTagLibrary.java deleted file mode 100644 index cca66117..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/jelly/HibernateTagLibrary.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.apache.maven.hibernate.jelly; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.apache.commons.jelly.tags.core.CoreTagLibrary; - - -/** - * Hibernate tag library. - * - * @author Michal Maczka - * @version $Id$ - */ -public class HibernateTagLibrary extends CoreTagLibrary -{ - /** - * Create an instance of the {@link HibernateTagLibrary}, registering related - * tag libraries - */ - public HibernateTagLibrary() - { - registerTag( "schema-export", SchemaExportTag.class ); - registerTag( "schema-update", SchemaUpdateTag.class ); - registerTag( "aggregate-mappings", AggregateMappingsTag.class ); - registerTag( "code-generation", CodeGenerationTag.class ); - } -} diff --git a/hibernate/src/main/org/apache/maven/hibernate/jelly/SchemaExportTag.java b/hibernate/src/main/org/apache/maven/hibernate/jelly/SchemaExportTag.java deleted file mode 100644 index c6795a2d..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/jelly/SchemaExportTag.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.apache.maven.hibernate.jelly; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.apache.maven.hibernate.beans.SchemaExportBean; - -/** - * - * Jelly tag which delagates all calls to {@link SchemaExportBean} - * - * @author Michal Maczka - * @version $Id$ - */ -public class SchemaExportTag extends SchemaTagBase -{ - - public SchemaExportTag() { - super( new SchemaExportBean() ); - } - - public void setDrop(boolean b) - { - ((SchemaExportBean) bean).setDrop(b); - } - - public void setOutputFile(String string) - { - bean.setOutputFile(string); - } - - public void setDelimiter(String delimiter) - { - bean.setDelimiter(delimiter); - } - - public boolean isDrop() - { - return ((SchemaExportBean) bean).isDrop(); - } - - public String getOutputFile() - { - return bean.getOutputFile(); - } - - public String getDelimiter() - { - return bean.getDelimiter(); - } - -} diff --git a/hibernate/src/main/org/apache/maven/hibernate/jelly/SchemaTagBase.java b/hibernate/src/main/org/apache/maven/hibernate/jelly/SchemaTagBase.java deleted file mode 100644 index c546a484..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/jelly/SchemaTagBase.java +++ /dev/null @@ -1,199 +0,0 @@ -package org.apache.maven.hibernate.jelly; - -/* ==================================================================== - * Copyright 2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.apache.commons.jelly.JellyTagException; -import org.apache.commons.jelly.TagSupport; -import org.apache.commons.jelly.XMLOutput; -import org.apache.maven.hibernate.beans.SchemaBeanBase; - -/** - * - * Base class for Jelly tags that uses Hibernate's Schema classes - * - * @author Michal Maczka - * @author Felipe Leme - * @version $Id$ - */ -public abstract class SchemaTagBase extends TagSupport -{ - - protected final SchemaBeanBase bean; - - protected SchemaTagBase( SchemaBeanBase b ) { - bean = b; - } - - /** - * - */ - protected void execute() throws JellyTagException - { - try - { - bean.execute(); - } - catch (Exception e) - { - String msg = "Schema operation failed"; - throw new JellyTagException(msg, e); - } - - } - - /** - * @see org.apache.commons.jelly.Tag#doTag(org.apache.commons.jelly.XMLOutput) - */ - public void doTag(XMLOutput arg0) throws JellyTagException - { - execute(); - } - - /** - * @return - */ - public boolean getText() - { - return bean.getText(); - } - - /* (non-Javadoc) - * @see java.lang.Object#toString() - */ - public String toString() - { - return bean.toString(); - } - - /** - * @return - */ - public boolean getQuiet() - { - return bean.getQuiet(); - } - - /** - * @param string - */ - public void setExcludes(String string) - { - bean.setExcludes(string); - } - - /** - * @param string - */ - public void setIncludes(String string) - { - bean.setIncludes(string); - } - - /** - * @return - */ - public String getExcludes() - { - return bean.getExcludes(); - } - - /** - * @param string - */ - public void setConfig(String string) - { - bean.setConfig(string); - } - - /** - * @return - */ - public String getIncludes() - { - return bean.getIncludes(); - } - - /** - * @return - */ - public String getBasedir() - { - return bean.getBasedir(); - } - - /** - * @return - */ - public String getProperties() - { - return bean.getProperties(); - } - - /** - * @return - */ - public String getConfig() - { - return bean.getConfig(); - } - - /** - * @param b - */ - public void setText(boolean b) - { - bean.setText(b); - } - - /** - * @param string - */ - public void setBasedir(String string) - { - bean.setBasedir(string); - } - - /** - * @param b - */ - public void setQuiet(boolean b) - { - bean.setQuiet(b); - } - - /** - * @param string - */ - public void setProperties(String string) - { - bean.setProperties(string); - } - - - /** - */ - public String getSchemaOutputFile() { - return bean.getSchemaOutputFile(); - } - /** - */ - public void setSchemaOutputFile(String string) { - bean.setSchemaOutputFile(string); - } - -} diff --git a/hibernate/src/main/org/apache/maven/hibernate/jelly/SchemaUpdateTag.java b/hibernate/src/main/org/apache/maven/hibernate/jelly/SchemaUpdateTag.java deleted file mode 100644 index 82780234..00000000 --- a/hibernate/src/main/org/apache/maven/hibernate/jelly/SchemaUpdateTag.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.apache.maven.hibernate.jelly; - -/* ==================================================================== - * Copyright 2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.apache.maven.hibernate.beans.SchemaUpdateBean; - -/** - * - * Jelly tag which delagates all calls to {@link SchemaUpdateBean} - * - * @author Felipe Leme - * @version $Id$ - */ -public class SchemaUpdateTag extends SchemaTagBase -{ - - public SchemaUpdateTag() { - super( new SchemaUpdateBean() ); - } - -} diff --git a/hibernate/src/plugin-resources/hibernate-mapping-2.0.dtd b/hibernate/src/plugin-resources/hibernate-mapping-2.0.dtd deleted file mode 100644 index d6d398a6..00000000 --- a/hibernate/src/plugin-resources/hibernate-mapping-2.0.dtd +++ /dev/null @@ -1,536 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/hibernate/src/plugin-test/codeGenerationTest/maven.xml b/hibernate/src/plugin-test/codeGenerationTest/maven.xml deleted file mode 100644 index 9793e560..00000000 --- a/hibernate/src/plugin-test/codeGenerationTest/maven.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/hibernate/src/plugin-test/codeGenerationTest/project.properties b/hibernate/src/plugin-test/codeGenerationTest/project.properties deleted file mode 100644 index 947eece0..00000000 --- a/hibernate/src/plugin-test/codeGenerationTest/project.properties +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- -maven.hibernate.quiet=false -maven.hibernate.codeGeneration.input.dir=${maven.src.dir}/main -maven.hibernate.codeGeneration.output.dir=${maven.hibernate.codeGeneration.input.dir} - - diff --git a/hibernate/src/plugin-test/codeGenerationTest/project.xml b/hibernate/src/plugin-test/codeGenerationTest/project.xml deleted file mode 100644 index 6fe735eb..00000000 --- a/hibernate/src/plugin-test/codeGenerationTest/project.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - 3 - test-maven-hibernate-plugin-codeGenerationTest - Test Cases for Maven Hibernate Plugin's CodeGeneration Tag - maven - 1.0-SNAPSHOT - - Apache Software Foundation - http://www.apache.org/ - http://maven.apache.org/images/jakarta-logo-blue.gif - - 2005 - org.apache.maven - http://maven.apache.org/images/maven.jpg - Test for Maven Hibernate plugin - Test for Maven Hibernate plugin - http://maven.apache.org/maven-1.x/reference/plugins/hibernate/ - /www/maven.apache.org/maven-1.x/reference/plugins/hibernate/ - - scm:svn:http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk/hibernate/src/plugin-test - http://svn.apache.org/viewcvs.cgi/maven/maven-1/plugins/trunk/hibernate/src/plugin-test - - - - Felipe Leme - felipeal - maven@felipeal.net - Falcon Informatica - - Java Developer - - -3 - - - - - commons-jelly - commons-jelly-tags-xml - 1.1 - http://jakarta.apache.org/commons/jelly/libs/xml/ - - - hsqldb - hsqldb - 1.7.1 - jar - - - hibernate - hibernate - 2.1.3 - jar - - - cglib - cglib - 2.0.2 - jar - - - dom4j - dom4j - 1.4 - jar - - - commons-lang - commons-lang - 2.0 - jar - - - - src/main - - - src/main - - **/*.xml - - - - - diff --git a/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/ExcludeItem.hbm.xml b/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/ExcludeItem.hbm.xml deleted file mode 100644 index 9f502f7d..00000000 --- a/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/ExcludeItem.hbm.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - diff --git a/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/Item.hbm.xml b/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/Item.hbm.xml deleted file mode 100644 index 16054811..00000000 --- a/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/Item.hbm.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - diff --git a/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/Item.java b/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/Item.java deleted file mode 100644 index 02ae97aa..00000000 --- a/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/Item.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.apache.maven.hibernate; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -/** - * Class to use with testing the plugin. - * - * @author Eric Pugh - * - * @version $Id: Item.java 125453 2005-01-18 01:03:25Z felipeal $ - */ - -public class Item { - private int id; - private String name; - - /** - * @return Returns the id. - */ - public int getId() { - return id; - } - /** - * @param id The id to set. - */ - public void setId(int id) { - this.id = id; - } - /** - * @return Returns the name. - */ - public String getName() { - return name; - } - /** - * @param name The name to set. - */ - public void setName(String name) { - this.name = name; - } -} diff --git a/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/Message.hbm.xml b/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/Message.hbm.xml deleted file mode 100644 index 2a718467..00000000 --- a/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/Message.hbm.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - diff --git a/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/UserType.java b/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/UserType.java deleted file mode 100644 index b5ee40f7..00000000 --- a/hibernate/src/plugin-test/codeGenerationTest/src/main/org/apache/maven/hibernate/UserType.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.apache.maven.hibernate; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -/** - * Class to use with testing the plugin. - * - * @author Paul Kearney - * - * @version $Id$ - */ -public class UserType { - - private Long field; - - private Message message; - - - - public Long getField() { - return field; - } - public void setField(Long field) { - this.field = field; - } -} diff --git a/hibernate/src/plugin-test/maven.xml b/hibernate/src/plugin-test/maven.xml deleted file mode 100644 index 9add77de..00000000 --- a/hibernate/src/plugin-test/maven.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - diff --git a/hibernate/src/plugin-test/project.xml b/hibernate/src/plugin-test/project.xml deleted file mode 100644 index 6c7ee637..00000000 --- a/hibernate/src/plugin-test/project.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - 3 - Test project for Maven Hibernate Plugin - maven - 1.0 - - Apache Software Foundation - http://www.apache.org/ - http://maven.apache.org/images/apache-maven-project.png - - 2001 - org.apache.maven - http://maven.apache.org/images/maven.gif - Test for Maven Hibernate plugin - Test for Maven Hibernate plugin - http://maven.apache.org/maven-1.x/reference/plugins/hibernate/ - /www/maven.apache.org/maven-1.x/reference/plugins/hibernate/ - - scm:svn:http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk/hibernate/ - http://svn.apache.org/viewcvs.cgi/maven/maven-1/plugins/trunk/hibernate/ - - - - Felipe Leme - felipeal - maven@felipeal.net - Falcon Informatica - - Java Developer - - -3 - - - \ No newline at end of file diff --git a/hibernate/src/plugin-test/simpleTest/maven.xml b/hibernate/src/plugin-test/simpleTest/maven.xml deleted file mode 100644 index 31a579f7..00000000 --- a/hibernate/src/plugin-test/simpleTest/maven.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/hibernate/src/plugin-test/simpleTest/project.properties b/hibernate/src/plugin-test/simpleTest/project.properties deleted file mode 100644 index bda34cab..00000000 --- a/hibernate/src/plugin-test/simpleTest/project.properties +++ /dev/null @@ -1,17 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- -maven.hibernate.quiet=false - diff --git a/hibernate/src/plugin-test/simpleTest/project.xml b/hibernate/src/plugin-test/simpleTest/project.xml deleted file mode 100644 index 2da1e15c..00000000 --- a/hibernate/src/plugin-test/simpleTest/project.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - 3 - test-maven-hibernate-plugin-simpleTest - Simple Test Cases for Maven Hibernate - maven - 1.0-SNAPSHOT - - Apache Software Foundation - http://www.apache.org/ - http://maven.apache.org/images/jakarta-logo-blue.gif - - 2001 - org.apache.maven - http://maven.apache.org/images/maven.jpg - Test for Maven Hibernate plugin - Test for Maven Hibernate plugin - http://maven.apache.org/maven-1.x/reference/plugins/hibernate/ - /www/maven.apache.org/maven-1.x/reference/plugins/hibernate/ - - scm:svn:http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk/hibernate/src/plugin-test - http://svn.apache.org/viewcvs.cgi/maven/maven-1/plugins/trunk/hibernate/src/plugin-test - - - - Eric Pugh - epugh - epugh@opensourceconnections.com - OpenSource Connections - - Developer - - - - Felipe Leme - felipeal - maven@felipeal.net - Falcon Informatica - - Java Developer - - -3 - - - - - commons-jelly - commons-jelly-tags-xml - 1.1 - http://jakarta.apache.org/commons/jelly/libs/xml/ - - - hsqldb - hsqldb - 1.7.1 - jar - - - hibernate - hibernate - 2.1.3 - jar - - - cglib - cglib - 2.0.2 - jar - - - dom4j - dom4j - 1.4 - jar - - - - src/main - - - src/main - - **/*.xml - - - - - diff --git a/hibernate/src/plugin-test/simpleTest/src/etc/Component.hbm.xml b/hibernate/src/plugin-test/simpleTest/src/etc/Component.hbm.xml deleted file mode 100644 index fe8aba73..00000000 --- a/hibernate/src/plugin-test/simpleTest/src/etc/Component.hbm.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/hibernate/src/plugin-test/simpleTest/src/main/hibernate.cfg.xml b/hibernate/src/plugin-test/simpleTest/src/main/hibernate.cfg.xml deleted file mode 100644 index 9bd7ed30..00000000 --- a/hibernate/src/plugin-test/simpleTest/src/main/hibernate.cfg.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - org.hsqldb.jdbcDriver - jdbc:hsqldb:. - sa - - 0 - false - net.sf.hibernate.dialect.HSQLDialect - - - - - - diff --git a/hibernate/src/plugin-test/simpleTest/src/main/hibernate.properties b/hibernate/src/plugin-test/simpleTest/src/main/hibernate.properties deleted file mode 100644 index 14756d55..00000000 --- a/hibernate/src/plugin-test/simpleTest/src/main/hibernate.properties +++ /dev/null @@ -1,5 +0,0 @@ -hibernate.dialect net.sf.hibernate.dialect.HSQLDialect -hibernate.connection.driver_class org.hsqldb.jdbcDriver -hibernate.connection.username sa -hibernate.connection.password -hibernate.connection.url jdbc:hsqldb:. \ No newline at end of file diff --git a/hibernate/src/plugin-test/simpleTest/src/main/org/apache/maven/hibernate/Component.java b/hibernate/src/plugin-test/simpleTest/src/main/org/apache/maven/hibernate/Component.java deleted file mode 100644 index 7046ee95..00000000 --- a/hibernate/src/plugin-test/simpleTest/src/main/org/apache/maven/hibernate/Component.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.apache.maven.hibernate; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -/** - * Class to use with testing the plugin. - * - * @author Eric Pugh - * - * @version $Id$ - */ - -public class Component { - private int id; - private String name; - - /** - * @return Returns the id. - */ - public int getId() { - return id; - } - /** - * @param id The id to set. - */ - public void setId(int id) { - this.id = id; - } - /** - * @return Returns the name. - */ - public String getName() { - return name; - } - /** - * @param name The name to set. - */ - public void setName(String name) { - this.name = name; - } -} diff --git a/hibernate/src/plugin-test/simpleTest/src/main/org/apache/maven/hibernate/Item.hbm.xml b/hibernate/src/plugin-test/simpleTest/src/main/org/apache/maven/hibernate/Item.hbm.xml deleted file mode 100644 index c160535b..00000000 --- a/hibernate/src/plugin-test/simpleTest/src/main/org/apache/maven/hibernate/Item.hbm.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/hibernate/src/plugin-test/simpleTest/src/main/org/apache/maven/hibernate/Item.java b/hibernate/src/plugin-test/simpleTest/src/main/org/apache/maven/hibernate/Item.java deleted file mode 100644 index f9101969..00000000 --- a/hibernate/src/plugin-test/simpleTest/src/main/org/apache/maven/hibernate/Item.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.apache.maven.hibernate; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -/** - * Class to use with testing the plugin. - * - * @author Eric Pugh - * - * @version $Id$ - */ - -public class Item { - private int id; - private String name; - - /** - * @return Returns the id. - */ - public int getId() { - return id; - } - /** - * @param id The id to set. - */ - public void setId(int id) { - this.id = id; - } - /** - * @return Returns the name. - */ - public String getName() { - return name; - } - /** - * @param name The name to set. - */ - public void setName(String name) { - this.name = name; - } -} diff --git a/hibernate/src/test/org/apache/maven/hibernate/HibernateEntityResolverTest.java b/hibernate/src/test/org/apache/maven/hibernate/HibernateEntityResolverTest.java deleted file mode 100644 index a53c1c9f..00000000 --- a/hibernate/src/test/org/apache/maven/hibernate/HibernateEntityResolverTest.java +++ /dev/null @@ -1,80 +0,0 @@ -package org.apache.maven.hibernate; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import junit.framework.TestCase; - -/** - * Test cases for the {@link HibernateEntityResolver}. Based heavily - * on J2EEEntityResolver. - * - * @author Eric Pugh - * @version $Id$ - */ -public class HibernateEntityResolverTest extends TestCase -{ - - /** instance for unit testing */ - private HibernateEntityResolver instance; - /** - * Creates a new instance of J2EEEntityResolverTest - * @param testName the name of the test - */ - public HibernateEntityResolverTest(String testName) - { - super(testName); - } - - /** - * Initialize per test data - * @throws Exception when there is an unexpected problem - */ - public void setUp() throws Exception - { - instance = new HibernateEntityResolver(); - } - - /** - * Test that all public ids are available and being found - */ - public void testAllAvailable() - { - assertNotNull("id to resource map not available", instance.getIdToResource()); - int numDTDs = HibernateEntityResolver.HIBERNATE_DTDS.length; - assertEquals("wrong number of entries", numDTDs, instance.getIdToResource().size()); - for (int i = 0; i < numDTDs; i++) - { - assertNotNull("Can't find resource for publicId", - instance.getIdToResource().get(HibernateEntityResolver.HIBERNATE_DTDS[i])); - } - } - - /** - * Test that the resolver is getting resources locally - */ - public void testResolvingLocally() throws Exception - { - int numDTDs = HibernateEntityResolver.HIBERNATE_DTDS.length; - for (int i = 0; i < numDTDs; i++) - { - String publicId = HibernateEntityResolver.HIBERNATE_DTDS[i]; - assertNotNull("Can't find resource for publicId " + publicId, - instance.resolveEntity(publicId, null)); - } - } -} \ No newline at end of file diff --git a/hibernate/xdocs/changes.xml b/hibernate/xdocs/changes.xml deleted file mode 100644 index 72167036..00000000 --- a/hibernate/xdocs/changes.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - Changes - Michal Maczka - - - - Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : -
    -
  • ant v1.5.3-1 -> v1.6.5
  • -
  • commons-collections v2.1 -> v3.0
  • -
  • commons-jelly v1.0-beta-4 -> v1.0
  • -
  • commons-logging v1.0.3 -> v1.0.4
  • -
  • log4j v1.2.8 -> v1.2.12
  • -
  • xercesImpl v 2.4.0 -> v2.6.2
  • -
  • xml-apis v 1.0.b2 -> xmlParserAPIs v2.6.2
  • -
-
-
- - Added new goal - hibernate:code-generation. - - Added new goal - hibernate:schema-update. - - plugin:test fails without a network connection. - - - maven-hibernate ignores the "config" attribute - maven-hibernate needs cglib when sending SQL directly to the database - Unit tests only functioned from the /src/plugin-test directory. plugin:test fails - New aggregate-mappings goal to aggregate multiple .hbm files into one file. - Added multiple base directories for mapping files - Update to hibernate-2.1.3. - - - Fix class not found exception by using correct base class loader. - - - Update to hibernate-2.0.3. Add delimiter property to schema-export tag - update to commons-jelly-20030902.160215 - Upgrade to dom4j 1.4 - Upgrade to dom4j 1.4-dev-8 - Upgrade to commons-logging 1.0.3 - Initial plugin created - - -
diff --git a/hibernate/xdocs/goals.xml b/hibernate/xdocs/goals.xml deleted file mode 100644 index f5b4b749..00000000 --- a/hibernate/xdocs/goals.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - Hibernate Plugin Goals - Michal Maczka - - - -
- - - - - - - - - - - - - - - - - - - - - - -
GoalDescription
hibernate:schema-export - Creates SQL DDL file and generates the database schema from set of *.hbm.xml files -
hibernate:schema-update - Updates the database schema based on the set of *.hbm.xml files -
hibernate:aggregate-mappings - Aggregates multiple hibernate mappings into one -
hibernate:code-generation - Generates Java classes from set of *.hbm.xml files -
-
- -
diff --git a/hibernate/xdocs/index.xml b/hibernate/xdocs/index.xml deleted file mode 100644 index a2bfe0d9..00000000 --- a/hibernate/xdocs/index.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - Maven Hibernate Plug-in - Michal Maczka - - - -
-

- This plugin provides easy integration with - Hibernate 2.x for your project. -
- For the moment the functionality is very limited. -

-
- -
diff --git a/hibernate/xdocs/navigation.xml b/hibernate/xdocs/navigation.xml deleted file mode 100644 index a211af80..00000000 --- a/hibernate/xdocs/navigation.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - Maven Hibernate Plugin - - - - - - - - - - - - - - - - - - - diff --git a/hibernate/xdocs/properties.xml b/hibernate/xdocs/properties.xml deleted file mode 100644 index 098a2097..00000000 --- a/hibernate/xdocs/properties.xml +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - Hibernate Settings - Michal Maczka - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyOptional?Description
maven.hibernate.propertiesNo - The location of Hibernate configuration file - (Java properties file). This file is also set in the - runtime by Hibernate for configuring Hibernate Session, - so it's better to keep it separately from the project's - configuration files like - project.properties etc. -
- For description of the properties take a look - at Hibernate User Guide -
maven.hibernate.quietYes - Controls verbosity of the plugin. - Default is set to yes -
maven.hibernate.textYes - It defaults to no. If set to true, then the - generated SQL will be output only to the filesystem, not - inserted into the database. -
maven.hibernate.dropYes - Indicates whether to drop to generate just a drop table script. -
- It defaults to no -
maven.hibernate.delimiterYesString used to separate commands in SQL output.
maven.hibernate.output.dirYes - The location of the directory where DDL SQL schema will - be generated by schema-export goal. It defaults to - ${maven.build.dir}/schema -
maven.hibernate.output.fileYes - The name of the file which will be created by schema-export - goal. It defaults to - ${maven.hibernate.output.dir}/${maven.final.name}-schema.sql. -
maven.hibernate.input.dirYes - Comma-seperated list of base directories indicating where - mapping files are located. It defaults - to ${maven.build.dest}. -
maven.hibernate.input.includesYes - Comma-separated list of patterns of Hibernate mapping files, - which will be included during generation process. -
- Note: Files are relative to - ${maven.hibernate.input.dir}. -
- By defaults all files are included: - **/*.hbm.xml. -
maven.hibernate.input.excludesYes - Comma-separated list of patterns of Hibernate mapping files, - which will be excluded during generation process. -
- Note: Files are relative to - ${maven.hibernate.input.dir}. -
- By default no files are excluded. -
maven.hibernate.aggregate.output.fileYesWhen aggregate-mappings is run, this file will contain the aggregated mappings
maven.hibernate.codeGeneration.input.dirYesComma-separated list of directories that contains Hibernate mapping files which will be used to generated Java classes when the goal code-generation is used. - - It defaults to ${maven.src.dir}/hibernate. -
maven.hibernate.codeGeneration.input.includesYes - Comma-separated list of patterns of Hibernate mapping files, - which will be included during the code generation process (goal code-generation). -
- Note: Files are relative to ${maven.hibernate.codeGeneration.input.dir}. -
- Default value is ${maven.hibernate.input.includes}. -
maven.hibernate.codeGeneration.input.excludesYes - Comma-separated list of patterns of Hibernate mapping files, - which will be excluded during the code generation process (goal code-generation). -
- Note: Files are relative to - ${maven.hibernate.codeGeneration.input.dir}. -
- By default no files are excluded. -
maven.hibernate.codeGeneration.output.dirYesWhen code-generation is run, the generated Java files will be placed in - this directory. It defaults to ${maven.src.dir}/hibernate.
-
- -
diff --git a/j2ee/plugin.jelly b/j2ee/plugin.jelly deleted file mode 100644 index 9db56a97..00000000 --- a/j2ee/plugin.jelly +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/j2ee/project.properties b/j2ee/project.properties deleted file mode 100644 index 5b5b0731..00000000 --- a/j2ee/project.properties +++ /dev/null @@ -1,21 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- - - diff --git a/j2ee/project.xml b/j2ee/project.xml deleted file mode 100644 index 85267475..00000000 --- a/j2ee/project.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - ../plugins-parent/project.xml - 3 - maven-j2ee-plugin - Maven J2EE Plugin - 1.6-SNAPSHOT - - J2EE tools - http://jira.codehaus.org/browse/MPJEE - - - 1.4 - 1.4 - MAVEN_J2EE_1_4 - - - 1.5 - 1.5 - MAVEN_J2EE_1_5 - - - 1.5.1 - 1.5.1 - MAVEN_J2EE_1_5_1 - - - - - Peter Lynch - plynch - plynch@apache.org - - - Java Developer - - - - Bob McWhirter - werken - bob@werken.com - The Werken Company - - Java Developer - - - - Stéphane Mor - smor - stephanemor@yahoo.fr - Hasgard Systèmes et Réseaux - - Java Developer - - - - Jason van Zyl - jvanzyl - jason@zenplex.com - Zenplex - - Architect - Release Manager - - - - - - commons-jelly - commons-jelly-tags-log - 1.0 - - - commons-logging - commons-logging - 1.0.4 - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - dom4j - dom4j - 1.4 - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - xerces - xmlParserAPIs - 2.6.2 - http://xerces.apache.org/xerces2-j/ - - root - - - - junit - junit - 3.8.1 - - - diff --git a/j2ee/src/main/org/apache/maven/j2ee/J2EEEntityResolver.java b/j2ee/src/main/org/apache/maven/j2ee/J2EEEntityResolver.java deleted file mode 100644 index a6bf406f..00000000 --- a/j2ee/src/main/org/apache/maven/j2ee/J2EEEntityResolver.java +++ /dev/null @@ -1,115 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.IOException; -import java.io.InputStream; -import java.util.HashMap; -import java.util.Map; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.xml.sax.EntityResolver; -import org.xml.sax.InputSource; -import org.xml.sax.SAXException; - -/** - * A class to resolve external entity definitions for j2ee artifacts. - * - * @author dion - * @version $Id$ - */ -public class J2EEEntityResolver implements EntityResolver -{ - /** map of ids to resource names */ - private Map idToResource = new HashMap(); - - /** log for debug output */ - private static final Log LOG = LogFactory.getLog(J2EEEntityResolver.class); - - /** list of j2ee dtds that are being made available */ - public static final String[] J2EE_DTDS = new String[] { - "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.3//EN", - "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN", - "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN", - "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN", - "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN", - "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" - }; - public static final String[] J2EE_RESOURCES = new String[] { - "/plugin-resources/application-client_1_3.dtd", - "/plugin-resources/application_1_3.dtd", - "/plugin-resources/ejb-jar_2_0.dtd", - "/plugin-resources/web-app_2.2.dtd", - "/plugin-resources/web-app_2_3.dtd", - "/plugin-resources/web-jsptaglibrary_1_2.dtd" - }; - - /** Creates a new instance of EntityResolver */ - public J2EEEntityResolver() - { - for (int i = 0; i < J2EE_DTDS.length; i++) { - idToResource.put(J2EE_DTDS[i], J2EE_RESOURCES[i]); - } - } - - /** resolve the entity given by the provided Ids - * @param publicId the public id of the entity - * @param systemId the 'system location' (typically a URL) of the entity - * @return an {@link InputSource input source} for retrieval of the entity - * @throws IOException when an I/O error occurs retrieving the entity - * @throws SAXException if there are any problems - */ - public InputSource resolveEntity(String publicId, String systemId) throws - SAXException, IOException - { - LOG.debug("resolving entity with publicId='" + publicId + ", systemId='" + systemId + "'"); - if (publicId != null) - { - String resource = (String) idToResource.get(publicId); - LOG.debug("resource found in map ='" + resource + "'" ); - if (resource != null) - { - InputStream in = getClass().getResourceAsStream(resource); - LOG.debug("input stream ='" + in + "'" ); - if (in != null) - { - return new InputSource(in); - } - } - } - return null; - } - - /** Getter for publicId to resource name map. - * @return Value of property idToResource. - */ - protected Map getIdToResource() - { - return idToResource; - } - - /** Setter for publicId to resource name map. - * @param idToResource New value of property idToResource. - */ - protected void setIdToResource(Map idToResource) - { - this.idToResource = idToResource; - } - -} diff --git a/j2ee/src/main/org/apache/maven/j2ee/ValidationBroadcaster.java b/j2ee/src/main/org/apache/maven/j2ee/ValidationBroadcaster.java deleted file mode 100644 index 4ddaf08a..00000000 --- a/j2ee/src/main/org/apache/maven/j2ee/ValidationBroadcaster.java +++ /dev/null @@ -1,137 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -/** - * - * @version $Id$ - * @author dion - */ -public class ValidationBroadcaster -{ - - /** {@link ValidationListeners} handled by this broadcaster */ - private List listeners = new ArrayList(); - - /** Creates a new instance of ValidationBroadcaster */ - public ValidationBroadcaster() - { - } - - /** - * fire a {@link ValidationListener#validationStarted(ValidationEvent) - * started} event. - * @param event the event to broadcast - */ - public void fireStartedEvent(ValidationEvent event) - { - for (Iterator listeners = getListeners().iterator(); - listeners.hasNext();) - { - ((ValidationListener) listeners.next()).validationStarted(event); - } - } - - /** - * fire an {@link ValidationListener#validationEnded(ValidationEvent) - * ended} event. - * @param event the event to broadcast - */ - public void fireEndedEvent(ValidationEvent event) - { - for (Iterator listeners = getListeners().iterator(); - listeners.hasNext();) - { - ((ValidationListener) listeners.next()).validationEnded(event); - } - } - - /** - * fire an {@link ValidationListener#validationError(ValidationEvent) - * error} event. - * @param event the event to broadcast - */ - public void fireErrorEvent(ValidationEvent event) - { - for (Iterator listeners = getListeners().iterator(); - listeners.hasNext();) - { - ((ValidationListener) listeners.next()).validationError(event); - } - } - - /** - * fire a {@link ValidationListener#validationWarning(ValidationEvent) - * warning} event. - * @param event the event to broadcast - */ - public void fireWarningEvent(ValidationEvent event) - { - for (Iterator listeners = getListeners().iterator(); - listeners.hasNext();) - { - ((ValidationListener) listeners.next()).validationWarning(event); - } - } - - /** - * fire a {@link ValidationListener#validationInformation(ValidationEvent) - * information} event. - * @param event the event to broadcast - */ - public void fireInformationEvent(ValidationEvent event) - { - for (Iterator listeners = getListeners().iterator(); - listeners.hasNext();) - { - ((ValidationListener) listeners.next()).validationInformation( - event); - } - } - - /** Getter for property listeners. - * @return Value of property listeners. - */ - private List getListeners() - { - return listeners; - } - - /** - * add a listener to the list to be notified - * @param listener a {@link ValidationListener} - */ - public void addValidationListener(ValidationListener listener) - { - getListeners().add(listener); - } - - /** - * remove a listener from the list to be notified - * @param listener a {@link ValidationListener} - */ - public void removeValidationListener(ValidationListener listener) - { - getListeners().remove(listener); - } - -} diff --git a/j2ee/src/main/org/apache/maven/j2ee/ValidationEvent.java b/j2ee/src/main/org/apache/maven/j2ee/ValidationEvent.java deleted file mode 100644 index b9e8d3fa..00000000 --- a/j2ee/src/main/org/apache/maven/j2ee/ValidationEvent.java +++ /dev/null @@ -1,101 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.util.EventObject; - -/** - * A class that holds details about the validation - * - * @version $Id$ - * @author dion - */ -public class ValidationEvent extends EventObject -{ - - /** A message describing the validation event that occurred */ - private String message; - - /** The thing being validated that the event relates to, e.g a WAR file */ - private Object subject; - - /** - * Creates a new instance of ValidationEvent. - * - * @param source the source of the event, some validator. - */ - public ValidationEvent(Object source) - { - this(source, null, null); - } - - /** - * Creates a new instance of ValidationEvent. - * - * @param source the source of the event, some validator. - * @param subject the object being validated - * @param message the validation message - */ - public ValidationEvent(Object source, Object subject, String message) - { - super(source); - setSubject(subject); - setMessage(message); - } - - /** - * Getter for property message. - * - * @return Value of property message. - */ - public String getMessage() - { - return message; - } - - /** - * Setter for property message. - * - * @param message New value of property message. - */ - public void setMessage(String message) - { - this.message = message; - } - - /** - * Getter for property subject. - * - * @return Value of property subject. - */ - public Object getSubject() - { - return subject; - } - - /** - * Set the subject of the validation event. - * - * @param subject New value of property subject. - */ - public void setSubject(Object subject) - { - this.subject = subject; - } - -} diff --git a/j2ee/src/main/org/apache/maven/j2ee/ValidationFormatter.java b/j2ee/src/main/org/apache/maven/j2ee/ValidationFormatter.java deleted file mode 100644 index b374eecf..00000000 --- a/j2ee/src/main/org/apache/maven/j2ee/ValidationFormatter.java +++ /dev/null @@ -1,279 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.PrintStream; - -/** - * Base class for formatters of validation events. - * Handles plain and xml formats. - * - * @version $Id$ - * @author dion - */ -public class ValidationFormatter implements ValidationListener -{ - - /** Whether the formatter should write it's results to a file */ - private boolean usefile; - /** name of the file (if usefile is true) to send output to */ - private String file; - /** type of output: plain/xml */ - private String type = ValidationFormatter.PLAIN; - /** Plain format output */ - public static final String PLAIN = "plain"; - /** xml format output */ - public static final String XML = "xml"; - /** output destination */ - private PrintStream stream = null; - - // --- Constructors -------------------------------------------------------- - /** - * Creates a new instance of ValidationFormatter - */ - public ValidationFormatter() - { - stream = System.out; - } - - // --- Methods ------------------------------------------------------------- - - /** - * Test whether the formatter is in plain mode. - * - * @return true if {@link #type} is set to {@link PLAIN} - */ - private boolean isPlain() - { - return ValidationFormatter.PLAIN.equals(getType()); - } - - /** - * Print an event in xml format - * - * @param event the event to print - * @param eventName started/ended/error etc - */ - private void printEventAsXML(ValidationEvent event, String eventName) - { - getStream().println("\t<" + eventName + ">"); - getStream().println("\t\t"); - getStream().println("\t\t\t" + event.getSource()); - getStream().println("\t\t"); - getStream().println("\t\t"); - getStream().println("\t\t\t" + event.getSubject()); - getStream().println("\t\t"); - getStream().println("\t\t"); - getStream().println("\t\t\t" + event.getMessage()); - getStream().println("\t\t"); - getStream().println("\t"); - } - - /** - * Print an event in plain format - * - * @param event the {@link ValidationEvent event} to print - * @param type started, ended etc - */ - private void printEvent(String type, ValidationEvent event) - { - getStream().println(event.getSubject() + " " + type + ": " - + event.getMessage()); - } - - /** - * Called when validation ends - * - * @param event a {@link ValidationEvent} - */ - public void validationEnded(ValidationEvent event) - { - if (isPlain()) - { - printEvent("ended", event); - } - else - { - printEventAsXML(event, "ended"); - getStream().println(""); - } - } - - /** - * Called when a validation error occurs. That is, the subject being - * validated has a serious (fatal) problem - * - * @param event a {@link ValidationEvent} - */ - public void validationError(ValidationEvent event) - { - if (isPlain()) - { - printEvent("error", event); - } - else - { - printEventAsXML(event, "error"); - } - } - - /** - * Called when validation starts - * - * @param event a {@link ValidationEvent} - */ - public void validationStarted(ValidationEvent event) - { - if (isPlain()) - { - printEvent("started", event); - } - else - { - getStream().println(""); - getStream().println(""); - printEventAsXML(event, "started"); - } - } - - /** - * Called when a validation warning occurs. That is, the subject being - * validated has a problem which may not be fatal - * - * @param event a {@link ValidationEvent} - */ - public void validationWarning(ValidationEvent event) - { - if (isPlain()) - { - printEvent("warning", event); - } - else - { - printEventAsXML(event, "warning"); - } - } - - /** - * Called when validation information events are fired. - * - * @param event a {@link ValidationEvent} - */ - public void validationInformation(ValidationEvent event) - { - if (isPlain()) - { - printEvent("info", event); - } - else - { - printEventAsXML(event, "info"); - } - } - - /** - * Getter for property file. - * - * @return Value of property file. - */ - public String getFile() - { - return file; - } - - /** - * Setter for property file. - * - * @param file New value of property file. - * @throws FileNotFoundException if the named file doesn't exist - */ - public void setFile(String file) throws FileNotFoundException - { - this.file = file; - File theFile = new File(file); - File dir = theFile.getParentFile(); - if (dir != null) { - dir.mkdirs(); - } - FileOutputStream fos = new FileOutputStream(file); - stream = new PrintStream(fos); - } - - /** - * Getter for property usefile. - * - * @return Value of property usefile. - */ - public boolean isUsefile() - { - return usefile; - } - - /** - * Setter for property usefile. - * - * @param usefile New value of property usefile. - */ - public void setUsefile(boolean usefile) - { - this.usefile = usefile; - } - - /** - * Getter for property stream. - * - * @return Value of property stream. - */ - public PrintStream getStream() - { - return stream; - } - - /** - * Setter for property stream. - * - * @param stream New value of property stream. - */ - public void setStream(PrintStream stream) - { - this.stream = stream; - } - - /** - * Getter for property type. - * - * @return Value of property type. - */ - public String getType() - { - return type; - } - - /** - * Setter for property type. - * - * @param type New value of property type. - */ - public void setType(String type) - { - this.type = type; - } -} diff --git a/j2ee/src/main/org/apache/maven/j2ee/ValidationListener.java b/j2ee/src/main/org/apache/maven/j2ee/ValidationListener.java deleted file mode 100644 index 85696669..00000000 --- a/j2ee/src/main/org/apache/maven/j2ee/ValidationListener.java +++ /dev/null @@ -1,64 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.util.EventListener; - -/** - * An interface implemented by those who want to receive validation events - * from a J2EE Validator (WAR, EAR etc). - * - * @version $Id$ - * @author dion - */ -public interface ValidationListener extends EventListener -{ - - /** - * Called when validation starts - * @param event a {@link ValidationEvent} - */ - void validationStarted(ValidationEvent event); - - /** - * Called when a validation error occurs. That is, the subject being - * validated has a serious (fatal) problem - * @param event a {@link ValidationEvent} - */ - void validationError(ValidationEvent event); - - /** - * Called when a validation warning occurs. That is, the subject being - * validated has a problem which may not be fatal - * @param event a {@link ValidationEvent} - */ - void validationWarning(ValidationEvent event); - - /** - * Called when validation information is provided. This may be any - * information the validator feels is relevant. - * @param event a {@link ValidationEvent} - */ - void validationInformation(ValidationEvent event); - - /** - * Called when validation ends - * @param event a {@link ValidationEvent} - */ - void validationEnded(ValidationEvent event); -} diff --git a/j2ee/src/main/org/apache/maven/j2ee/ValidationStatusListener.java b/j2ee/src/main/org/apache/maven/j2ee/ValidationStatusListener.java deleted file mode 100644 index 7e9f5946..00000000 --- a/j2ee/src/main/org/apache/maven/j2ee/ValidationStatusListener.java +++ /dev/null @@ -1,205 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -/** - * A {@link ValidationListener} that tracks events and will provide a true/false - * response about the status of the validation. - * - * @author dIon Gillard - * @version - * $Id$ - */ -public class ValidationStatusListener implements ValidationListener -{ - /** Whether the validation has started */ - private boolean started = false; - /** Whether the validation has ended */ - private boolean ended = false; - /** Whether the validation has had 1 or more errors */ - private boolean error = false; - /** Whether the validation has had 1 or more warnings */ - private boolean warning = false; - /** Whether the validation has had 1 or more info messages */ - private boolean information = false; - - /** - * Creates a new instance of ValidationStatusListener - */ - public ValidationStatusListener() - { - } - - /** - * Called when a validation error occurs. That is, the subject being - * validated has a serious (fatal) problem. Sets the error - * property to true. - * - * @param event a {@link ValidationEvent} - */ - public void validationError(ValidationEvent event) - { - setError(true); - } - - /** - * Called when a validation warning occurs. That is, the subject being - * validated has a problem which may not be fatal. Sets the - * warning property to true. - * - * @param event a {@link ValidationEvent} - */ - public void validationWarning(ValidationEvent event) - { - setWarning(true); - } - - /** - * Called when validation info messages are issued. Sets the - * information property to true. - * - * @param event a {@link ValidationEvent} - */ - public void validationInformation(ValidationEvent event) - { - setInformation(true); - } - - /** - * Called when validation starts. Sets the started property to - * true - * - * @param event a {@link ValidationEvent} - */ - public void validationStarted(ValidationEvent event) - { - setStarted(true); - } - - /** - * Called when validation ends. Sets the ended property to - * true - * - * @param event a {@link ValidationEvent} - */ - public void validationEnded(ValidationEvent event) - { - setEnded(true); - } - - /** - * Has validation ended? - * - * @return Value of property ended. - */ - public boolean isEnded() - { - return ended; - } - - /** - * Sets whether validation has ended. - * - * @param ended New value of property ended. - */ - private void setEnded(boolean ended) - { - this.ended = ended; - } - - /** - * Has a validation error occurred? - * - * @return Value of property error. - */ - public boolean isError() - { - return error; - } - - /** - * Sets whether a validation error has occurred. - * - * @param error New value of property error. - */ - private void setError(boolean error) - { - this.error = error; - } - - /** - * Has validation started? - * - * @return Value of property started. - */ - public boolean isStarted() - { - return started; - } - - /** - * Sets whether validation has started - * - * @param started New value of property started. - */ - private void setStarted(boolean started) - { - this.started = started; - } - - /** - * Has a validation warning occurred? - * - * @return Value of property warning. - */ - public boolean isWarning() - { - return warning; - } - - /** - * Sets whether a validation warning has occurred. - * - * @param warning New value of property warning. - */ - private void setWarning(boolean warning) - { - this.warning = warning; - } - - /** - * Gets whether an info message has been issued. - * - * @return Value of property information. - */ - public boolean isInformation() - { - return information; - } - - /** - * Sets whether an info message has been issued. - * - * @param information New value of property information. - */ - public void setInformation(boolean information) - { - this.information = information; - } - -} diff --git a/j2ee/src/main/org/apache/maven/j2ee/WarClassLoader.java b/j2ee/src/main/org/apache/maven/j2ee/WarClassLoader.java deleted file mode 100644 index 7cadc454..00000000 --- a/j2ee/src/main/org/apache/maven/j2ee/WarClassLoader.java +++ /dev/null @@ -1,104 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.File; -import java.io.IOException; -import java.net.MalformedURLException; -import java.net.URL; -import java.net.URLClassLoader; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import java.util.Set; -import java.util.jar.JarEntry; - -/** - * A {@link ClassLoader} that loads classes from a {@link WarFile} - * - * @author dIon Gillard - * @version $Id$ - */ -public class WarClassLoader extends URLClassLoader -{ - /** temp files created by classloader */ - private List tempFiles = new ArrayList(); - /** war file to be used for class loading */ - private WarFile war; - - /** - * Creates a new instance of WarClassLoader - * - * @param war a {@link WarFile} - * @throws IOException when an I/O error occurs extracting the jars from the - * war - * @throws MalformedURLException if the jar: URL is not supported on the - * underlying platform - */ - public WarClassLoader(WarFile war) throws IOException, MalformedURLException - { - super (new URL[0]); - this.war = war; - addURLs(); - } - - /** - * Creates a new instance of WarClassLoader with the provided parent - * classloader as the one to delegate to if classes can't be found - * - * @param war a {@link WarFile} - * @param classloader a {@link ClassLoader} to delegate to. - * @throws IOException when an I/O error occurs extracting the jars from - * the war - * @throws MalformedURLException if the jar: URL is not supported on the - * underlying platform - */ - public WarClassLoader(WarFile war, ClassLoader classloader) throws - IOException, MalformedURLException - { - super(new URL[0], classloader); - this.war = war; - addURLs(); - } - - /** - * Add WEB-INF/classes and WEB-INF/lib/*.jar as extra classpath URLs - * - * @throws IOException when an I/O error occurs extracting the jars from - * the war - * @throws MalformedURLException if the jar: URL is not supported on the - * underlying platform - */ - private void addURLs() throws IOException, MalformedURLException - { - File warFile = new File(war.getName()); - URL webInfClasses = new URL("jar:" + warFile.toURL() + "!/" - + "WEB-INF/classes/"); - addURL(webInfClasses); - Set jars = war.getLibEntries(); - JarEntry entry = null; - for (Iterator jarEntries = jars.iterator(); jarEntries.hasNext();) - { - entry = (JarEntry) jarEntries.next(); - File jar = war.extract(entry); - tempFiles.add(jar); - jar.deleteOnExit(); - addURL(new URL("jar:" + jar.toURL() + "!/")); - } - } -} diff --git a/j2ee/src/main/org/apache/maven/j2ee/WarFile.java b/j2ee/src/main/org/apache/maven/j2ee/WarFile.java deleted file mode 100644 index aa770303..00000000 --- a/j2ee/src/main/org/apache/maven/j2ee/WarFile.java +++ /dev/null @@ -1,410 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.BufferedInputStream; -import java.io.BufferedOutputStream; -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.Enumeration; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.jar.JarEntry; -import java.util.jar.JarFile; - -import org.apache.maven.j2ee.war.FormLoginConfig; - -import org.dom4j.Document; -import org.dom4j.DocumentException; -import org.dom4j.Node; -import org.dom4j.io.SAXReader; - -/** - * Represents a J2EE War File - * - * @author dIon Gillard - * @version $Id$ - */ -public class WarFile extends JarFile -{ - - /** web.xml entry in the war */ - public static final String WEB_XML = "WEB-INF/web.xml"; - /** lib entry in the war for jar files */ - public static final String LIB = "WEB-INF/lib/"; - - /** - * Creates a new instance of WarFile - * - * @param name the {@link File file} name of a war file - * @throws IOException when an I/O error occurs - */ - public WarFile(String name) throws IOException - { - super(name); - } - - /** - * Creates a new instance of WarFile - * - * @param name the {@link File file} name of a war file - * @param verify whether or not to verify the war file if it is signed - * @throws IOException when an I/O error occurs - */ - public WarFile(String name, boolean verify) throws IOException - { - super(name, verify); - } - - /** - * Creates a new instance of WarFile - * - * @param warFile a J2EE .war {@link File file} - * @throws IOException when an I/O error occurs - */ - public WarFile(File warFile) throws IOException - { - super(warFile); - } - - /** - * Creates a new instance of WarFile - * - * @param warFile a J2EE .war {@link File file} - * @param verify whether or not to verify the war file if it is signed - * @throws IOException when an I/O error occurs - */ - public WarFile(File warFile, boolean verify) throws IOException - { - super(warFile, verify); - } - - /** - * Creates a new instance of WarFile - * - * @param warFile a J2EE .war {@link File file} - * @param verify whether or not to verify the war file if it is signed - * @param mode the mode in which the file is to be opened - * @throws IOException when an I/O error occurs - */ - public WarFile(File warFile, boolean verify, int mode) throws IOException - { - super(warFile, verify, mode); - } - - /** - * Retrieves the WEB-INF/web.xml entry if it exists. - * - * @return a {@link JarEntry} for web.xml - */ - public JarEntry getWebXmlEntry() - { - return getJarEntry(WarFile.WEB_XML); - } - - /** - * Get a map of servlet name -> servlet class. The map has a size of zero - * if there are no servlets or no web.xml in the war. - * - * @return a map of servlets held in the war. - * @throws IOException if there are problems reading from the war - */ - public Map getServlets() throws IOException - { - Map servlets = new HashMap(); - if (getWebXmlEntry() != null) - { - Document webXml = getWebXml(); - List servletNodes = webXml.selectNodes("//servlet"); - Node node = null; - for (Iterator nodes = servletNodes.iterator(); nodes.hasNext();) - { - node = (Node) nodes.next(); - String servletName = node.selectSingleNode("./servlet-name") - .getText(); - Node servletClass = node.selectSingleNode("./servlet-class"); - if (servletClass != null) - { - servlets.put(servletName, servletClass.getText()); - } - } - } - return servlets; - } - - /** - * Get a map of servlet name -> jsp file. The map has a size of zero - * if there are no jsp files defined or no web.xml in the war. - * - * @return a map of jsps defined using the <servlet> tag - * held in the war. - * @throws IOException if there are problems reading from the war - */ - public Map getJSPs() throws IOException - { - Map jsps = new HashMap(); - if (getWebXmlEntry() != null) - { - Document webXml = getWebXml(); - List servletNodes = webXml.selectNodes("//servlet"); - Node node = null; - for (Iterator nodes = servletNodes.iterator(); nodes.hasNext();) - { - node = (Node) nodes.next(); - String servletName = node.selectSingleNode("./servlet-name") - .getText(); - Node jspFile = node.selectSingleNode("./jsp-file"); - if (jspFile != null) - { - jsps.put(servletName, jspFile.getText()); - } - } - } - - return jsps; - } - - /** - * Get a map of taglib-uri -> taglib-location. The map has zero size - * if there are no taglibs defined or no web.xml in the war - * - * @return a map of uri to location - * @throws IOException when an I/O error occurs reading the war - */ - public Map getTaglibs() throws IOException - { - Map taglibs = new HashMap(); - if (getWebXmlEntry() != null) - { - Document webXml = getWebXml(); - List taglibNodes = webXml.selectNodes("//taglib"); - Node node = null; - for (Iterator nodes = taglibNodes.iterator(); nodes.hasNext();) - { - node = (Node) nodes.next(); - String taglibUri = node.selectSingleNode("./taglib-uri") - .getText(); - String taglibLocation = node.selectSingleNode( - "./taglib-location").getText(); - taglibs.put(taglibUri, taglibLocation); - } - } - return taglibs; - } - - /** - * Get the web.xml back as a dom4j Document, for easier processing - * - * @return a {@link Document} representing the web.xml - * @throws IOException if there are any issues reading the web.xml - * or producing the xml document - */ - protected Document getWebXml() throws IOException - { - if (getWebXmlEntry() == null) - { - throw new IOException("Attempted to get non-existent web.xml"); - } - try - { - SAXReader xmlReader = new SAXReader(false); - xmlReader.setEntityResolver(new J2EEEntityResolver()); - InputStream webXmlStream = getInputStream(getWebXmlEntry()); - Document webXml = xmlReader.read(webXmlStream); - return webXml; - } - catch (DocumentException de) - { - de.printStackTrace(); - throw new IOException(de.getMessage()); - } - } - - /** - * Provide a set of jar files as found in WEB-INF/lib - * - * @return a set of jar files as {@link JarEntry entries} from WEB-INF/lib - */ - public Set getLibEntries() - { - Set libs = new HashSet(); - Enumeration entries = entries(); - JarEntry entry = null; - while (entries.hasMoreElements()) - { - entry = (JarEntry) entries.nextElement(); - if (entry.getName().startsWith("WEB-INF/lib/") - && entry.getName().toLowerCase().endsWith(".jar")) - { - libs.add(entry); - } - } - return libs; - } - - /** - * Extract the given {@link JarEntry entry} to a temporary file - * - * @param entry a previously retrieved entry from the jar file - * @return the {@link File} created - * @throws IOException when an I/O error occurs reading the war - */ - public File extract(JarEntry entry) throws IOException - { - // expand to temp dir and add to list - File tempFile = File.createTempFile("maven", null); - // read from jar and write to the tempJar file - BufferedInputStream inStream = new BufferedInputStream(getInputStream( - entry)); - BufferedOutputStream outStream = new BufferedOutputStream( - new FileOutputStream(tempFile)); - int status = -1; - while ((status = inStream.read()) != -1) - { - outStream.write(status); - } - outStream.close(); - inStream.close(); - - return tempFile; - } - - /** - * Tests whether a 'file' exists in the war. A file in this case is - * a jar entry prefixed with a '/'. e.g. the file /WEB-INF/web.xml is - * the same as the jar entry WEB-INF/web.xml - * - * @param fileName an entry in the war to be searched for - * @return whether the entry exists - */ - public boolean hasFile(String fileName) - { - if (fileName == null) - { - throw new NullPointerException("fileName parameter can't be null"); - } - - String entryName = null; - if (fileName.startsWith("/")) - { - entryName = fileName.substring(1); - return getJarEntry(entryName) != null; - } - else - { - return false; - } - } - - /** - * Get a map of error pages to error locations. The key of the map is - * either the <error-code> or < - * exception-type>, the value is <location>. - * - * @return a map of error page to error location - * @throws IOException if there are problems reading from the war - */ - public Map getErrorPages() throws IOException - { - Map errorPages = new HashMap(); - if (getWebXmlEntry() != null) - { - Document webXml = getWebXml(); - List errorNodes = webXml.selectNodes("//error-page"); - Node node = null; - for (Iterator nodes = errorNodes.iterator(); nodes.hasNext();) - { - node = (Node) nodes.next(); - Node errorCodeNode = node.selectSingleNode("./error-code"); - Node exceptionTypeNode = node.selectSingleNode( - "./exception-type"); - String location = node.selectSingleNode("./location").getText(); - String key = null; - if (errorCodeNode == null) - { - key = exceptionTypeNode.getText(); - } - else - { - key = errorCodeNode.getText(); - } - errorPages.put(key, location); - } - } - return errorPages; - } - - /** - * Get the <form-login-config> details specified in the - * war file, or null if the element is not present - * - * @return a {@link FormLoginConfig} with the login and error pages - * @throws IOException if there are problems reading from the war - */ - public FormLoginConfig getFormLoginConfig() throws IOException - { - FormLoginConfig config = null; - if (getWebXmlEntry() != null) - { - Document webXml = getWebXml(); - Node formLoginConfigNode = webXml.selectSingleNode( - "//form-login-config"); - if (formLoginConfigNode != null) - { - String login = formLoginConfigNode.selectSingleNode( - "./form-login-page").getText(); - String error = formLoginConfigNode.selectSingleNode( - "./form-error-page").getText(); - config = new FormLoginConfig(login, error); - } - } - return config; - } - - /** - * Get a map of servlet name -> url pattern for all defined servlets - * - * @return a map as specified - * @throws IOException if there are problems reading from the war - */ - public Map getServletMappings() throws IOException - { - Map mappings = new HashMap(); - - if (getWebXmlEntry() != null) - { - Document webXml = getWebXml(); - List nodes = webXml.selectNodes("/web-app/servlet-mapping"); - Node node = null; - for (int nodeIndex = 0; nodeIndex < nodes.size(); nodeIndex++) - { - node = (Node) nodes.get(nodeIndex); - String servletName = node.valueOf("./servlet-name"); - String urlPattern = node.valueOf("./url-pattern"); - mappings.put(servletName, urlPattern); - } - } - return mappings; - } -} diff --git a/j2ee/src/main/org/apache/maven/j2ee/WarValidator.java b/j2ee/src/main/org/apache/maven/j2ee/WarValidator.java deleted file mode 100644 index 2530afb5..00000000 --- a/j2ee/src/main/org/apache/maven/j2ee/WarValidator.java +++ /dev/null @@ -1,503 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.File; -import java.io.IOException; -import java.util.Iterator; -import java.util.Map; - -import org.apache.maven.j2ee.war.FormLoginConfig; - -/** - * A task to validate a war file. The following is checked: - *
    - *
  1. The war file exists
  2. - *
  3. The war file is readable
  4. - *
  5. The war file has a web.xml (warning)
  6. - *
  7. Servlets defined by a <servlet> tag are loadable - * from the war file and not the classpath
  8. - *
  9. JSPs defined by a <servlet> tag exist in the war - *
  10. - *
  11. Taglibs defined by a <taglib> have a - * <taglib-location> that exists in the war
  12. - *
  13. Error pages specified by a <location> nested - * within an <error-page> element must exist in the - * war file
  14. - *
  15. Login and error pages specified in the <form-login-config - * > element must exist in the war file
  16. - *
- * @author dIon Gillard - * @version $Id$ - */ -public class WarValidator -{ - - /** name of the war file to be validated */ - private String warFileName; - /** broadcaster to help with events */ - private ValidationBroadcaster broadcaster = new ValidationBroadcaster(); - /** status listener to keep track of errors etc */ - private ValidationStatusListener status = new ValidationStatusListener(); - /** - * whether or not the build process should fail if a validation error occurs - */ - private boolean failOnError = true; - - - //--- Constructors --------------------------------------------------------- - /** - * Creates a new instance of WarValidator - */ - public WarValidator() - { - addValidationListener(getStatus()); - } - - //--- Methods -------------------------------------------------------------- - /** - * Provides access to the status listener that is automatically attached - * to the validation - * - * @return Value of property status. - */ - public ValidationStatusListener getStatus() - { - return status; - } - - /** - * Perform the validation. - * - * @throws IllegalStateException when any error occurs - */ - public void execute() - { - if (getWarFileName() == null) - { - throw new NullPointerException("war file name should not be null"); - } - validate(); - if (getStatus().isError() && isFailOnError()) - { - throw new IllegalStateException("Errors occurred during validation. " - + "Messages should have been provided"); - } - } - - /** - * validate the provided war file - */ - public void validate() - { - try - { - startValidation(); - validateFile(); - if (!getStatus().isError()) - { - validateWarContents(); - } - } - finally - { - endValidation(); - } - } - - /** - * Start validation - issue a started event, and check the war file is - * ok from a filesystem perspective - exists and is readable - */ - protected void startValidation() - { - getBroadcaster().fireStartedEvent(new ValidationEvent(this, - getWarFileName(), "war validation started")); - } - - /** - * Hook point for subclasses to add validations - */ - protected void validateWarContents() - { - validateWebXml(); - } - - /** - * End validation - fire an ended event - */ - protected void endValidation() - { - getBroadcaster().fireEndedEvent(new ValidationEvent(this, - getWarFileName(), "war validation ended")); - } - - /** - * validate the war file can be read and exists - */ - private void validateFile() - { - File warFile = new File(getWarFileName()); - - if (!warFile.exists()) - { - error("File does not exist"); - return; - } - if (!warFile.canRead()) - { - error("File can't be read"); - return; - } - } - - /** - * Validate the web.xml entry in the provided jar file. - */ - private void validateWebXml() - { - WarFile war = null; - try - { - war = new WarFile(getWarFileName()); - if (war.getWebXmlEntry() == null) - { - warning("web.xml entry not found"); - return; - } - validateServlets(war); - validateJSPs(war); - validateTaglibs(war); - validateErrorPages(war); - validateFormLoginConfig(war); - } - catch (IOException ioe) - { - error("Error opening war file for web.xml - possibly missing " - + "manifest"); - } - } - - /** - * Validate the servlets defined in the war file (as defined by a - * <servlet> tag in web.xml), making sure that their - * class defined can be loaded from the war and is not part of the - * external classpath - * - * @param war the war file to validate - * @throws IOException when there are any issues reading the war file - */ - private void validateServlets(WarFile war) throws IOException - { - Map servlets = war.getServlets(); - if (servlets.size() != 0) - { - ClassLoader classLoader = new WarClassLoader(war, getClass(). - getClassLoader()); - String className = null; - Map.Entry entry = null; - for (Iterator entries = servlets.entrySet().iterator(); - entries.hasNext();) - { - entry = (Map.Entry) entries.next(); - className = (String) entry.getValue(); - info("validating servlet name: " + entry.getKey() + " class: " - + className); - // check each servlet by loading the class - validateClass(className, classLoader); - } - } - } - - /** - * Validate the jsps defined in the war file (as defined by a - * <servlet> tag with a nested <jsp-file> - * in web.xml), making sure that the resource specifed by - * <jsp-file> exists in the war file - * - * @param war the war file to validate - * @throws IOException when there are any issues reading the war file - */ - private void validateJSPs(WarFile war) throws IOException - { - Map jsps = war.getJSPs(); - if (jsps.size() != 0) - { - Map.Entry entry = null; - for (Iterator entries = jsps.entrySet().iterator(); - entries.hasNext();) - { - entry = (Map.Entry) entries.next(); - String jspFile = (String) entry.getValue(); - info("validating servlet name: " + entry.getKey() - + " jsp file: " + jspFile); - - if (!war.hasFile(jspFile)) - { - error("JSP File: '" + jspFile + "' not found"); - } - } - } - } - - /** - * Validate that the given className can be loaded by the given - * {@link ClasssLoader} - * - * @param className the name of a class to attempt loading - * @param loader a {@link ClassLoader class loader} - */ - protected void validateClass(String className, ClassLoader loader) - { - try - { - Class clazz = loader.loadClass(className); - if (clazz.getClassLoader() != loader) - { - // loaded from classpath - a no no. - error("class (" + className + ") loaded from system classpath " - + "rather than war file"); - } - } - catch (ClassNotFoundException e) - { - error("class (" + className + ") not found "); - } - catch (NoClassDefFoundError error) - { - error("class (" + className + ") was found, but a referenced class " - + "was missing: " + error.getMessage()); - } - - } - - /** - * Validate the taglibs defined in the war file (as defined by a - * <taglib> tag in web.xml), making sure that the - * resource specifed by <taglib-location> exists in the - * war file - * - * @param war the war file to validate - * @throws IOException when there are any issues reading the war file - */ - private void validateTaglibs(WarFile war) throws IOException - { - Map taglibs = war.getTaglibs(); - if (taglibs.size() != 0) - { - Map.Entry entry = null; - for (Iterator entries = taglibs.entrySet().iterator(); - entries.hasNext();) - { - entry = (Map.Entry) entries.next(); - String uri = (String) entry.getKey(); - String location = (String) entry.getValue(); - info("validating taglib uri: " + uri); - if (!war.hasFile(location)) - { - error("Taglib location: '" + location + "' not found"); - } - } - } - } - - /** - * Validate the error pages defined in the war file (as defined by a - * <error-page> tag in web.xml), making sure that the - * location specifed by the nested <location> exists in - * the war file - * - * @param war the war file to validate - * @throws IOException when there are any issues reading the war file - */ - public void validateErrorPages(WarFile war) throws IOException - { - Map pages = war.getErrorPages(); - if (pages.size() != 0) - { - Map.Entry entry = null; - for (Iterator entries = pages.entrySet().iterator(); - entries.hasNext();) - { - entry = (Map.Entry) entries.next(); - String errorQualifier = (String) entry.getKey(); - String location = (String) entry.getValue(); - info("validating error page for: " + errorQualifier); - if (!war.hasFile(location)) - { - error("Error page location: '" + location + "' not found"); - } - } - } - } - - /** - * Validate that the <form-login-config> element, if it - * exists contains valid login and error pages - * - * @param war the war file to validate - * @throws IOException when there are any issues reading the war file - */ - public void validateFormLoginConfig(WarFile war) throws IOException - { - FormLoginConfig config = war.getFormLoginConfig(); - if (config != null) - { - if (!war.hasFile(config.getLoginPage())) - { - info(" login-page location: '" - + config.getLoginPage() + "' not found"); - } - if (!war.hasFile(config.getErrorPage())) - { - error(" error-page location: '" - + config.getErrorPage() + "' not found"); - } - } - } - - /** - * add a listener to the list to be notified - * - * @param listener a {@link ValidationListener} - */ - public void addValidationListener(ValidationListener listener) - { - getBroadcaster().addValidationListener(listener); - } - - /** - * remove a listener from the list to be notified - * - * @param listener a {@link ValidationListener} - */ - public void removeValidationListener(ValidationListener listener) - { - getBroadcaster().removeValidationListener(listener); - } - - /** - * Getter for property warFileName. - * - * @return Value of property warFileName. - */ - public String getWarFileName() - { - return warFileName; - } - - /** - * Setter for property warFileName. - * - * @param warFileName New value of property warFileName. - */ - public void setWarFileName(String warFileName) - { - this.warFileName = warFileName; - } - - /** - * Getter for property broadcaster. - * - * @return Value of property broadcaster. - */ - protected ValidationBroadcaster getBroadcaster() - { - return broadcaster; - } - - /** - * Add a formatter to pick up events and display the output. - * Used by ant when a nested formatter element is present. - * - * @param formatter a class to format validation events - */ - public void addFormatter(ValidationFormatter formatter) - { - addValidationListener((ValidationListener) formatter); - } - - /** - * Provide a string representation of the validator - * - * @return "WarValidator(file)" - */ - public String toString() - { - StringBuffer buffer = new StringBuffer("WarValidator"); - if (getWarFileName() != null) - { - buffer.append("(").append(getWarFileName()).append(")"); - } - return buffer.toString(); - } - - /** - * Whether the build process will fail if a validation error occurs. - * - * @return Value of property failOnError. - */ - public boolean isFailOnError() - { - return failOnError; - } - - /** - * Set whether the build process will fail if a validation error occurs. - * - * @param failOnError New value of property failOnError. - */ - public void setFailOnError(boolean failOnError) - { - this.failOnError = failOnError; - } - - /** - * Helper method to fire an information message using the broadcaster - * - * @param message to be fired - */ - protected void info(String message) - { - getBroadcaster().fireInformationEvent(new ValidationEvent(this, - getWarFileName(), message)); - } - - /** - * Helper method to fire an error message using the broadcaster - * - * @param message to be fired - */ - protected void error(String message) - { - getBroadcaster().fireErrorEvent(new ValidationEvent(this, - getWarFileName(), message)); - } - - /** - * Helper method to fire a warning message using the broadcaster - * - * @param message to be fired - */ - protected void warning(String message) - { - getBroadcaster().fireWarningEvent(new ValidationEvent(this, - getWarFileName(), message)); - } - -} diff --git a/j2ee/src/main/org/apache/maven/j2ee/war/FormLoginConfig.java b/j2ee/src/main/org/apache/maven/j2ee/war/FormLoginConfig.java deleted file mode 100644 index 7e1be1e7..00000000 --- a/j2ee/src/main/org/apache/maven/j2ee/war/FormLoginConfig.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.apache.maven.j2ee.war; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -/** - * A class to represent the <form-login-config> element of - * a war file - * - * @author dion - * @version $Id$ - */ -public class FormLoginConfig -{ - /** login page in the web app */ - private String loginPage; - /** error page in the web app to be displayed when login fails*/ - private String errorPage; - - /** Create an instance of the class with null values for all fields */ - public FormLoginConfig() - { - } - - /** Create an instance of the class with the given values for fields - * @param login initial value of loginPage property - * @param error initial value if errorPage property - */ - public FormLoginConfig(String login, String error) - { - setLoginPage(login); - setErrorPage(error); - } - - /** Getter for property errorPage. - * @return Value of property errorPage. - */ - public String getErrorPage() - { - return errorPage; - } - - /** Setter for property errorPage. - * @param errorPage New value of property errorPage. - */ - public void setErrorPage(String errorPage) - { - this.errorPage = errorPage; - } - - /** Getter for property loginPage. - * @return Value of property loginPage. - */ - public String getLoginPage() - { - return loginPage; - } - - /** Setter for property loginPage. - * @param loginPage New value of property loginPage. - */ - public void setLoginPage(String loginPage) - { - this.loginPage = loginPage; - } - -} \ No newline at end of file diff --git a/j2ee/src/plugin-resources/application-client_1_3.dtd b/j2ee/src/plugin-resources/application-client_1_3.dtd deleted file mode 100644 index f9d456d5..00000000 --- a/j2ee/src/plugin-resources/application-client_1_3.dtd +++ /dev/null @@ -1,506 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/j2ee/src/plugin-resources/application_1_3.dtd b/j2ee/src/plugin-resources/application_1_3.dtd deleted file mode 100644 index 22a49aca..00000000 --- a/j2ee/src/plugin-resources/application_1_3.dtd +++ /dev/null @@ -1,312 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/j2ee/src/plugin-resources/ejb-jar_2_0.dtd b/j2ee/src/plugin-resources/ejb-jar_2_0.dtd deleted file mode 100644 index 9a2cc7ce..00000000 --- a/j2ee/src/plugin-resources/ejb-jar_2_0.dtd +++ /dev/null @@ -1,1671 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/j2ee/src/plugin-resources/web-app_2.2.dtd b/j2ee/src/plugin-resources/web-app_2.2.dtd deleted file mode 100644 index 5f439f42..00000000 --- a/j2ee/src/plugin-resources/web-app_2.2.dtd +++ /dev/null @@ -1,639 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/j2ee/src/plugin-resources/web-app_2_3.dtd b/j2ee/src/plugin-resources/web-app_2_3.dtd deleted file mode 100644 index 5e3ab01c..00000000 --- a/j2ee/src/plugin-resources/web-app_2_3.dtd +++ /dev/null @@ -1,1063 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/j2ee/src/plugin-resources/web-jsptaglibrary_1_2.dtd b/j2ee/src/plugin-resources/web-jsptaglibrary_1_2.dtd deleted file mode 100644 index 369f41e6..00000000 --- a/j2ee/src/plugin-resources/web-jsptaglibrary_1_2.dtd +++ /dev/null @@ -1,462 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/j2ee/src/test-resources/j2ee/dummy-jsp.war b/j2ee/src/test-resources/j2ee/dummy-jsp.war deleted file mode 100644 index 71041b9c..00000000 Binary files a/j2ee/src/test-resources/j2ee/dummy-jsp.war and /dev/null differ diff --git a/j2ee/src/test-resources/j2ee/dummy-servlet.war b/j2ee/src/test-resources/j2ee/dummy-servlet.war deleted file mode 100644 index 64f2209c..00000000 Binary files a/j2ee/src/test-resources/j2ee/dummy-servlet.war and /dev/null differ diff --git a/j2ee/src/test-resources/j2ee/dummy-taglib.war b/j2ee/src/test-resources/j2ee/dummy-taglib.war deleted file mode 100644 index 7be88d2d..00000000 Binary files a/j2ee/src/test-resources/j2ee/dummy-taglib.war and /dev/null differ diff --git a/j2ee/src/test-resources/j2ee/empty.war b/j2ee/src/test-resources/j2ee/empty.war deleted file mode 100644 index e69de29b..00000000 diff --git a/j2ee/src/test-resources/j2ee/error-pages.war b/j2ee/src/test-resources/j2ee/error-pages.war deleted file mode 100644 index f4530e8b..00000000 Binary files a/j2ee/src/test-resources/j2ee/error-pages.war and /dev/null differ diff --git a/j2ee/src/test-resources/j2ee/login-pages.war b/j2ee/src/test-resources/j2ee/login-pages.war deleted file mode 100644 index a8a1005c..00000000 Binary files a/j2ee/src/test-resources/j2ee/login-pages.war and /dev/null differ diff --git a/j2ee/src/test-resources/j2ee/manifest-only.war b/j2ee/src/test-resources/j2ee/manifest-only.war deleted file mode 100644 index 14114dd3..00000000 Binary files a/j2ee/src/test-resources/j2ee/manifest-only.war and /dev/null differ diff --git a/j2ee/src/test-resources/j2ee/simple.war b/j2ee/src/test-resources/j2ee/simple.war deleted file mode 100644 index bbdc0a23..00000000 Binary files a/j2ee/src/test-resources/j2ee/simple.war and /dev/null differ diff --git a/j2ee/src/test-resources/log4j.properties b/j2ee/src/test-resources/log4j.properties deleted file mode 100644 index c67f90b9..00000000 --- a/j2ee/src/test-resources/log4j.properties +++ /dev/null @@ -1,28 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------------ -# L O G 4 J C O N F I G U R A T I O N -# ------------------------------------------------------------------------ - -# ------------------------------------------------------------------------ -# R O O T C A T E G O R Y -# ------------------------------------------------------------------------ -log4j.rootCategory = DEBUG, maven -log4j.appender.maven=org.apache.log4j.ConsoleAppender -log4j.appender.maven.layout=org.apache.log4j.PatternLayout -log4j.appender.maven.layout.conversionPattern = %d %-5p %c - %m%n - diff --git a/j2ee/src/test/org/apache/maven/TestConstants.java b/j2ee/src/test/org/apache/maven/TestConstants.java deleted file mode 100644 index 60a8b2b4..00000000 --- a/j2ee/src/test/org/apache/maven/TestConstants.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.apache.maven; - -/* ==================================================================== - * The Apache Software License, Version 1.1 - * - * Copyright (c) 2002 The Apache Software Foundation. All rights - * reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The end-user documentation included with the redistribution, - * if any, must include the following acknowledgment: - * "This product includes software developed by the - * Apache Software Foundation (http://www.apache.org/)." - * Alternately, this acknowledgment may appear in the software itself, - * if and wherever such third-party acknowledgments normally appear. - * - * 4. The names "Apache" and "Apache Software Foundation" and - * "Apache Maven" must not be used to endorse or promote products - * derived from this software without prior written permission. For - * written permission, please contact apache@apache.org. - * - * 5. Products derived from this software may not be called "Apache", - * "Apache Maven", nor may "Apache" appear in their name, without - * prior written permission of the Apache Software Foundation. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * ==================================================================== - * - * This software consists of voluntary contributions made by many - * individuals on behalf of the Apache Software Foundation. For more - * information on the Apache Software Foundation, please see - * . - * - * ==================================================================== - */ - -/** - * A class used to hold static commonly used data needed when running - * tests. - * - * @author . - */ - -import org.xml.sax.InputSource; - -import junit.framework.TestCase; - -/** - * Test cases for the {@link J2EEEntityResolver} - * - * @author dIon Gillard - * @version $Id$ - */ -public class J2EEEntityResolverTest extends TestCase -{ - - /** instance for unit testing */ - private J2EEEntityResolver instance; - /** - * Creates a new instance of J2EEEntityResolverTest - * @param testName the name of the test - */ - public J2EEEntityResolverTest(String testName) - { - super(testName); - } - - /** - * Initialize per test data - * @throws Exception when there is an unexpected problem - */ - public void setUp() throws Exception - { - instance = new J2EEEntityResolver(); - } - - /** - * Test that all public ids are available and being found - */ - public void testAllAvailable() - { - assertNotNull("id to resource map not available", instance.getIdToResource()); - int numDTDs = J2EEEntityResolver.J2EE_DTDS.length; - assertEquals("wrong number of entries", numDTDs, instance.getIdToResource().size()); - for (int i = 0; i < numDTDs; i++) - { - assertNotNull("Can't find resource for publicId", - instance.getIdToResource().get(J2EEEntityResolver.J2EE_DTDS[i])); - } - } - - /** - * Test that the resolver is getting resources locally - */ - public void testResolvingLocally() throws Exception - { - int numDTDs = J2EEEntityResolver.J2EE_DTDS.length; - for (int i = 0; i < numDTDs; i++) - { - String publicId = J2EEEntityResolver.J2EE_DTDS[i]; - assertNotNull("Can't find resource for publicId " + publicId, - instance.resolveEntity(publicId, null)); - } - } -} \ No newline at end of file diff --git a/j2ee/src/test/org/apache/maven/j2ee/ValidationBroadcasterTest.java b/j2ee/src/test/org/apache/maven/j2ee/ValidationBroadcasterTest.java deleted file mode 100644 index 83a2ea1b..00000000 --- a/j2ee/src/test/org/apache/maven/j2ee/ValidationBroadcasterTest.java +++ /dev/null @@ -1,189 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * The Apache Software License, Version 1.1 - * - * Copyright (c) 2002 The Apache Software Foundation. All rights - * reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The end-user documentation included with the redistribution, - * if any, must include the following acknowledgment: - * "This product includes software developed by the - * Apache Software Foundation (http://www.apache.org/)." - * Alternately, this acknowledgment may appear in the software itself, - * if and wherever such third-party acknowledgments normally appear. - * - * 4. The names "Apache" and "Apache Software Foundation" and - * "Apache Maven" must not be used to endorse or promote products - * derived from this software without prior written permission. For - * written permission, please contact apache@apache.org. - * - * 5. Products derived from this software may not be called "Apache", - * "Apache Maven", nor may "Apache" appear in their name, without - * prior written permission of the Apache Software Foundation. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * ==================================================================== - * - * This software consists of voluntary contributions made by many - * individuals on behalf of the Apache Software Foundation. For more - * information on the Apache Software Foundation, please see - * . - */ - -import junit.framework.TestCase; - -/** - * Test cases for the {@link ValidationBroadcaster} - * - * @author dIon Gillard - * @version $Id$ - */ -public class ValidationBroadcasterTest extends TestCase -{ - /** instance for unit testing */ - private ValidationBroadcaster instance; - /** listener used to check status/events firing */ - private ValidationStatusListener status; - - /** - * Creates a new instance of ValidationBroadcasterTest - * @param testName the name of the test - */ - public ValidationBroadcasterTest(String testName) - { - super(testName); - } - - /** - * Initialize per test data - * @throws Exception when there is an unexpected problem - */ - public void setUp() throws Exception - { - setInstance(new ValidationBroadcaster()); - setStatus(new ValidationStatusListener()); - getInstance().addValidationListener(getStatus()); - } - - /** - * test that the fireStartedEvent method works - * @throws Exception when there is an unexpected problem - */ - public void testStartedBroadcast() throws Exception - { - assertTrue("status was started before starting", - !getStatus().isStarted()); - getInstance().fireStartedEvent(new ValidationEvent(this)); - assertTrue("status was not started after broadcast", - getStatus().isStarted()); - } - - /** - * test that the fireErrorEvent method works - * @throws Exception when there is an unexpected problem - */ - public void testErrorBroadcast() throws Exception - { - assertTrue("status was error before starting", - !getStatus().isError()); - getInstance().fireErrorEvent(new ValidationEvent(this)); - assertTrue("status was not error after broadcast", - getStatus().isError()); - } - - /** - * test that the fireErrorEvent method works - * @throws Exception when there is an unexpected problem - */ - public void testWarningBroadcast() throws Exception - { - assertTrue("status was warning before starting", - !getStatus().isWarning()); - getInstance().fireWarningEvent(new ValidationEvent(this)); - assertTrue("status was not warning after broadcast", - getStatus().isWarning()); - } - - /** - * test that the fireEndedEvent method works - * @throws Exception when there is an unexpected problem - */ - public void testEndedBroadcast() throws Exception - { - assertTrue("status was ended before starting", - !getStatus().isEnded()); - getInstance().fireEndedEvent(new ValidationEvent(this)); - assertTrue("status was not ended after broadcast", - getStatus().isEnded()); - } - - /** - * test that the removeValidationListeners method works - * @throws Exception when there is an unexpected problem - */ - public void testRemoveListener() throws Exception - { - assertTrue("status was started before starting", - !getStatus().isStarted()); - getInstance().removeValidationListener(getStatus()); - getInstance().fireStartedEvent(new ValidationEvent(this)); - assertTrue("event received after removing", !getStatus().isStarted()); - } - - /** Getter for property instance. - * @return Value of property instance. - */ - private ValidationBroadcaster getInstance() - { - return instance; - } - - /** Setter for property instance. - * @param instance New value of property instance. - */ - private void setInstance(ValidationBroadcaster instance) - { - this.instance = instance; - } - - /** Getter for property status. - * @return Value of property status. - */ - private ValidationStatusListener getStatus() - { - return status; - } - - /** Setter for property status. - * @param status New value of property status. - */ - private void setStatus(ValidationStatusListener status) - { - this.status = status; - } - -} diff --git a/j2ee/src/test/org/apache/maven/j2ee/ValidationEventTest.java b/j2ee/src/test/org/apache/maven/j2ee/ValidationEventTest.java deleted file mode 100644 index 3cfe2959..00000000 --- a/j2ee/src/test/org/apache/maven/j2ee/ValidationEventTest.java +++ /dev/null @@ -1,125 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * The Apache Software License, Version 1.1 - * - * Copyright (c) 2002 The Apache Software Foundation. All rights - * reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The end-user documentation included with the redistribution, - * if any, must include the following acknowledgment: - * "This product includes software developed by the - * Apache Software Foundation (http://www.apache.org/)." - * Alternately, this acknowledgment may appear in the software itself, - * if and wherever such third-party acknowledgments normally appear. - * - * 4. The names "Apache" and "Apache Software Foundation" and - * "Apache Maven" must not be used to endorse or promote products - * derived from this software without prior written permission. For - * written permission, please contact apache@apache.org. - * - * 5. Products derived from this software may not be called "Apache", - * "Apache Maven", nor may "Apache" appear in their name, without - * prior written permission of the Apache Software Foundation. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * ==================================================================== - * - * This software consists of voluntary contributions made by many - * individuals on behalf of the Apache Software Foundation. For more - * information on the Apache Software Foundation, please see - * . - */ - -import junit.framework.TestCase; - -/** - * Unit test for ValidationEvent. - * - * @author dIon Gillard - * @version $Id$ - */ -public class ValidationEventTest extends TestCase -{ - /** instance to be used for testing */ - private ValidationEvent event; - - /** - * Creates a new instance of ValidationEventTest - * @param testName the name of the test - */ - public ValidationEventTest(String testName) - { - super(testName); - } - - /** Tests for the constructor, and as a by product, all get methods - * @throws Exception if any error occurs - */ - public void testConstructor() throws Exception - { - Object dummySource = this; - event = new ValidationEvent(this); - assertSame("Source returned is not the same as the one provided", - this, event.getSource()); - assertNull("Message is not null", event.getMessage()); - assertNull("Subject is not null", event.getSubject()); - String dummySubject = "dummySubject"; - String dummyMessage = "dummyMessage"; - event = new ValidationEvent(dummySource, dummySubject, dummyMessage); - assertSame("Source returned is not the same as the one provided", - this, event.getSource()); - assertSame("Subject returned is not the same as the one provided", - dummySubject, event.getSubject()); - assertSame("Message returned is not the same as the one provided", - dummyMessage, event.getMessage()); - } - - /** Tests for the setMessage - * @throws Exception if any error occurs - */ - public void testSetMessage() throws Exception - { - event = new ValidationEvent(this); - String dummyMessage = "message"; - event.setMessage(dummyMessage); - assertSame("Message set is not the same as the one from get", - dummyMessage, event.getMessage()); - } - - /** Tests for the setSubject - * @throws Exception if any error occurs - */ - public void testSetSubject() throws Exception - { - event = new ValidationEvent(this); - String dummySubject = "subject"; - event.setSubject(dummySubject); - assertSame("Subject set is not the same as the one from get", - dummySubject, event.getSubject()); - } - -} diff --git a/j2ee/src/test/org/apache/maven/j2ee/ValidationStatusListenerTest.java b/j2ee/src/test/org/apache/maven/j2ee/ValidationStatusListenerTest.java deleted file mode 100644 index 0f90a2ba..00000000 --- a/j2ee/src/test/org/apache/maven/j2ee/ValidationStatusListenerTest.java +++ /dev/null @@ -1,139 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * The Apache Software License, Version 1.1 - * - * Copyright (c) 2002 The Apache Software Foundation. All rights - * reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The end-user documentation included with the redistribution, - * if any, must include the following acknowledgment: - * "This product includes software developed by the - * Apache Software Foundation (http://www.apache.org/)." - * Alternately, this acknowledgment may appear in the software itself, - * if and wherever such third-party acknowledgments normally appear. - * - * 4. The names "Apache" and "Apache Software Foundation" and - * "Apache Maven" must not be used to endorse or promote products - * derived from this software without prior written permission. For - * written permission, please contact apache@apache.org. - * - * 5. Products derived from this software may not be called "Apache", - * "Apache Maven", nor may "Apache" appear in their name, without - * prior written permission of the Apache Software Foundation. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * ==================================================================== - * - * This software consists of voluntary contributions made by many - * individuals on behalf of the Apache Software Foundation. For more - * information on the Apache Software Foundation, please see - * . - */ - -import junit.framework.TestCase; - -/** - * Unit test for {@link ValidationStatusListener}. - * - * @author dIon Gillard - * @version $Id$ - */ -public class ValidationStatusListenerTest extends TestCase -{ - /** instance used for testing */ - private ValidationStatusListener instance; - - /** - * Creates a new instance of ValidationStatusListenerTest - * @param testName the name of the test - */ - public ValidationStatusListenerTest(String testName) - { - super(testName); - } - - /** - * test that the zero arg constructor works - * @throws Exception when there is an unexpected problem - */ - public void testDefaultConstructor() throws Exception - { - instance = new ValidationStatusListener(); - assertNotNull("Constructor hasn't returned a value", instance); - assertEquals("started property isn't false", false, - instance.isStarted()); - assertEquals("error property isn't false", false, instance.isError()); - assertEquals("warning property isn't false", false, - instance.isWarning()); - assertEquals("ended property isn't false", false, instance.isEnded()); - } - - /** - * test that the listener handles validation started events correctly - * @throws Exception when there is an unexpected problem - */ - public void testStarted() throws Exception - { - instance = new ValidationStatusListener(); - instance.validationStarted(new ValidationEvent(this)); - assertTrue("started property is not being set", instance.isStarted()); - } - - /** - * test that the listener handles validation error events correctly - * @throws Exception when there is an unexpected problem - */ - public void testError() throws Exception - { - testStarted(); - instance.validationError(new ValidationEvent(this)); - assertTrue("error property is not being set", instance.isError()); - } - - /** - * test that the listener handles validation warning events correctly - * @throws Exception when there is an unexpected problem - */ - public void testWarning() throws Exception - { - testStarted(); - instance.validationWarning(new ValidationEvent(this)); - assertTrue("warning property is not being set", instance.isWarning()); - } - - /** - * test that the listener handles validation ended events correctly - * @throws Exception when there is an unexpected problem - */ - public void testEnded() throws Exception - { - testStarted(); - instance.validationEnded(new ValidationEvent(this)); - assertTrue("ended property is not being set", instance.isEnded()); - } - -} diff --git a/j2ee/src/test/org/apache/maven/j2ee/WarFileTest.java b/j2ee/src/test/org/apache/maven/j2ee/WarFileTest.java deleted file mode 100644 index aee83517..00000000 --- a/j2ee/src/test/org/apache/maven/j2ee/WarFileTest.java +++ /dev/null @@ -1,302 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * The Apache Software License, Version 1.1 - * - * Copyright (c) 2002 The Apache Software Foundation. All rights - * reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The end-user documentation included with the redistribution, - * if any, must include the following acknowledgment: - * "This product includes software developed by the - * Apache Software Foundation (http://www.apache.org/)." - * Alternately, this acknowledgment may appear in the software itself, - * if and wherever such third-party acknowledgments normally appear. - * - * 4. The names "Apache" and "Apache Software Foundation" and - * "Apache Maven" must not be used to endorse or promote products - * derived from this software without prior written permission. For - * written permission, please contact apache@apache.org. - * - * 5. Products derived from this software may not be called "Apache", - * "Apache Maven", nor may "Apache" appear in their name, without - * prior written permission of the Apache Software Foundation. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * ==================================================================== - * - * This software consists of voluntary contributions made by many - * individuals on behalf of the Apache Software Foundation. For more - * information on the Apache Software Foundation, please see - * . - */ - -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Set; -import java.util.jar.JarEntry; - -import junit.framework.TestCase; - -import org.apache.maven.TestConstants; - -/** - * Unit test for {@link WarFile}. - * - * @author dIon Gillard - * @version $Id$ - */ -public class WarFileTest extends TestCase -{ - /** instance used for testing */ - private WarFile instance; - /** file name for the empty war used during testing */ - private String emptyWarFile; - /** file name for manifest-only war used during testing */ - private String manifestOnlyWarFile; - /** file name for simple war (manifest & web.xml) used during testing */ - private String simpleWarFile; - /** file name for dummy war (two dummy servlets) */ - private String dummyWarFile; - /** file name for dummy jsp war (dummy war + a jsp-file entry) */ - private String dummyJspWarFile; - /** file name for dummy taglib war (dummy war + 2 taglibs) */ - private String dummyTaglibWarFile; - /** file name for error pages war (dummy war + 2 error pages) */ - private String errorPagesWarFile; - /** file name for form login config war (dummy war + login config) */ - private String loginPagesWarFile; - - /** Creates a new instance of WarFileTest - * @param testName the name of the test - */ - public WarFileTest(String testName) - { - super(testName); - } - - /** - * Initialize per test data - * @throws Exception when there is an unexpected problem - */ - public void setUp() throws Exception - { - String baseDir = System.getProperty("basedir"); - assertNotNull("The system property basedir was not defined.", baseDir); - final String j2eeDir = baseDir + TestConstants.J2EE_DIR ; - emptyWarFile = j2eeDir + "empty.war"; - manifestOnlyWarFile = j2eeDir + "manifest-only.war"; - simpleWarFile = j2eeDir + "simple.war"; - dummyWarFile = j2eeDir + "dummy-servlet.war"; - dummyJspWarFile = j2eeDir + "dummy-jsp.war"; - dummyTaglibWarFile = j2eeDir + "dummy-taglib.war"; - errorPagesWarFile = j2eeDir + "error-pages.war"; - loginPagesWarFile = j2eeDir + "login-pages.war"; - } - - /** - * test that an empty war file produces an error - * @throws Exception when there is an unexpected problem - */ - public void testEmptyWar() throws Exception - { - try - { - instance = new WarFile(emptyWarFile); - fail("Empty war file (with no META-INF, or WEB-INF/web.xml) has" - + " succeeded"); - } - catch (IOException ioe) - { - // this is the expected behaviour - } - } - - /** test that a manifest only war (no web.xml) returns null for the web.xml! - * @throws Exception when there is an unexpected problem - */ - public void testManifestOnlyWar() throws Exception - { - instance = new WarFile(manifestOnlyWarFile); - assertNull("web.xml for manifest only war is not null", - instance.getWebXmlEntry()); - } - - /** test that a simple war (web.xml + manifest) returns an entry for web.xml - * test that a simple war returns zero servlets - * @throws Exception when there is an unexpected problem - */ - public void testSimpleWar() throws Exception - { - instance = new WarFile(simpleWarFile); - assertNotNull("web.xml for simple war is null", - instance.getWebXmlEntry()); - assertEquals("number of servlets for simple war is not zero", 0, - instance.getServlets().size()); - } - - /** test that the dummy war returns two servlets - * @throws Exception when there is an unexpected problem - */ - public void testDummyWarServlets() throws Exception - { - instance = new WarFile(dummyWarFile); - assertEquals("number of servlets for dummy war is not two", 2, - instance.getServlets().size()); - assertTrue("servlet list doesn't contain 'dummy servlet'", - instance.getServlets().keySet().contains("dummy servlet")); - assertTrue("servlet list doesn't contain 'dummy number 2'", - instance.getServlets().keySet().contains("dummy number 2")); - assertTrue("servlet list doesn't contain HttpServlet", - instance.getServlets().containsValue( - "javax.servlet.http.HttpServlet")); - assertTrue("servlet list doesn't contain Servlet", - instance.getServlets().containsValue( - "java.servlet.Servlet")); - } - - /** test the getLibEntries method - * @throws Exception when there is an unexpected problem - */ - public void testDummyWarLib() throws Exception - { - instance = new WarFile(dummyWarFile); - assertEquals("number of lib entries for dummy war is not two", 2, - instance.getLibEntries().size()); - JarEntry entry = null; - List list = new ArrayList(); - for (Iterator entries = instance.getLibEntries().iterator(); - entries.hasNext();) - { - entry = (JarEntry) entries.next(); - list.add(entry.getName()); - } - Collections.sort(list); - assertEquals("First entry is a.jar", "WEB-INF/lib/a.jar", - list.get(0)); - assertEquals("Second entry is b.jar", "WEB-INF/lib/b.jar", - list.get(1)); - } - - /** test the file extraction - * @throws Exception when there is an unexpected problem - */ - public void testDummyWarExtract() throws Exception - { - instance = new WarFile(dummyWarFile); - Set libs = instance.getLibEntries(); - File[] files = new File[libs.size()]; - JarEntry entry = null; - int i = 0; - for (Iterator entries = instance.getLibEntries().iterator(); - entries.hasNext();) - { - entry = (JarEntry) entries.next(); - files[i] = instance.extract(entry); - assertTrue("Extracted file " + files[i].getAbsolutePath() - + " doesn't exist", files[i].exists()); - i++; - } - } - - /** test that the dummy jsp war returns two servlets - * @throws Exception when there is an unexpected problem - */ - public void testDummyJspWar() throws Exception - { - instance = new WarFile(dummyJspWarFile); - assertEquals("Number of jsps is wrong", 1, - instance.getJSPs().size()); - assertTrue("List of jsps doesn't contain /a.jsp", - instance.getJSPs().values().contains("/a.jsp")); - assertEquals("Number of taglibs is wrong", 0, - instance.getTaglibs().size()); - } - - /** test that the dummy taglib war returns two taglibs - * @throws Exception when there is an unexpected problem - */ - public void testDummyTaglibWar() throws Exception - { - instance = new WarFile(dummyTaglibWarFile); - assertEquals("Number of taglibs is wrong", 2, - instance.getTaglibs().size()); - assertEquals("Number of error pages is wrong", 0, - instance.getErrorPages().size()); - assertNull("Form Login Config isn't null", - instance.getFormLoginConfig()); - assertTrue("List of taglibs doesn't contain /WEB-INF/a.tld", - instance.getTaglibs().values().contains("/WEB-INF/a.tld")); - assertTrue("List of taglibs doesn't contain /WEB-INF/b.tld", - instance.getTaglibs().values().contains("/WEB-INF/b.tld")); - } - - /** test the error pages war contains 2 error pages - * @throws Exception when there is an unexpected problem - */ - public void testErrorPagesWar() throws Exception - { - instance = new WarFile(errorPagesWarFile); - assertEquals("Number of error pages is wrong", 2, - instance.getErrorPages().size()); - assertTrue("Error page list doesn't contain error.jsp", - instance.getErrorPages().values().contains("/error.jsp")); - assertTrue("Error page list doesn't contain error404.jsp", - instance.getErrorPages().values().contains("/error404.jsp")); - } - - /** test the login pages war contains a form login config object with the - * login and error pages set - * @throws Exception when there is an unexpected problem - */ - public void testLoginPagesWar() throws Exception - { - instance = new WarFile(loginPagesWarFile); - assertNotNull("Form login config is null", - instance.getFormLoginConfig()); - assertEquals("Login page is not /login.html", - "/login.html", instance.getFormLoginConfig().getLoginPage()); - assertEquals("Error page is not /error.jsp", - "/error.jsp", instance.getFormLoginConfig().getErrorPage()); - } - - /** test the servlet mappings comes back with the correct entries - * @throws Exception when there is an unexpected problem - */ - public void testServletMappings() throws Exception - { - instance = new WarFile(dummyWarFile); - assertEquals("# of servlet mappings for dummy war file is wrong", 2, - instance.getServletMappings().size()); - instance = new WarFile(loginPagesWarFile); - assertEquals("# of servlet mappings in login pages war is wrong", 0, - instance.getServletMappings().size()); - } -} diff --git a/j2ee/src/test/org/apache/maven/j2ee/WarValidatorTest.java b/j2ee/src/test/org/apache/maven/j2ee/WarValidatorTest.java deleted file mode 100644 index 9417f7d2..00000000 --- a/j2ee/src/test/org/apache/maven/j2ee/WarValidatorTest.java +++ /dev/null @@ -1,241 +0,0 @@ -package org.apache.maven.j2ee; - -/* ==================================================================== - * The Apache Software License, Version 1.1 - * - * Copyright (c) 2002 The Apache Software Foundation. All rights - * reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The end-user documentation included with the redistribution, - * if any, must include the following acknowledgment: - * "This product includes software developed by the - * Apache Software Foundation (http://www.apache.org/)." - * Alternately, this acknowledgment may appear in the software itself, - * if and wherever such third-party acknowledgments normally appear. - * - * 4. The names "Apache" and "Apache Software Foundation" and - * "Apache Maven" must not be used to endorse or promote products - * derived from this software without prior written permission. For - * written permission, please contact apache@apache.org. - * - * 5. Products derived from this software may not be called "Apache", - * "Apache Maven", nor may "Apache" appear in their name, without - * prior written permission of the Apache Software Foundation. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * ==================================================================== - * - * This software consists of voluntary contributions made by many - * individuals on behalf of the Apache Software Foundation. For more - * information on the Apache Software Foundation, please see - * . - */ - -import junit.framework.TestCase; - -import org.apache.maven.TestConstants; - -/** - * Unit test for WarValidator. - * - * @author dIon Gillard - * @version $Id$ - */ -public class WarValidatorTest extends TestCase -{ - - /** the validator being tested */ - private WarValidator validator = null; - /** file name for the empty war*/ - private String emptyWarFile = null; - /** file name for manifest-only war */ - private String manifestOnlyWarFile = null; - /** file name for simple war (manifest & web.xml)*/ - private String simpleWarFile = null; - /** file name for dummy war */ - private String dummyWarFile = null; - /** file name for dummy jsp war (dummy war + a jsp-file entry) */ - private String dummyJspWarFile; - /** file name for dummy taglib war (dummy war + 2 taglibs) */ - private String dummyTaglibWarFile; - /** file name for error pages war (dummy war + 2 error pages) */ - private String errorPagesWarFile; - /** file name for form login config war (dummy war + login config) */ - private String loginPagesWarFile; - - /** - * Creates a new instance of WarValidatorTest - * @param testName the name of the test - */ - public WarValidatorTest(String testName) - { - super(testName); - } - - /** - * Initialize per test data - * @throws Exception when there is an unexpected problem - */ - public void setUp() throws Exception - { - validator = new WarValidator(); - String baseDir = System.getProperty("basedir"); - assertNotNull("The system property basedir was not defined.", baseDir); - String j2eeDir = baseDir + TestConstants.J2EE_DIR; - emptyWarFile = j2eeDir + "empty.war"; - manifestOnlyWarFile = j2eeDir + "manifest-only.war"; - simpleWarFile = j2eeDir + "simple.war"; - dummyWarFile = j2eeDir + "dummy-servlet.war"; - dummyJspWarFile = j2eeDir + "dummy-jsp.war"; - dummyTaglibWarFile = j2eeDir + "dummy-taglib.war"; - errorPagesWarFile = j2eeDir + "error-pages.war"; - loginPagesWarFile = j2eeDir + "login-pages.war"; - } - - /** - * test that the warFileName property is mandatory for validation - * @throws Exception when there is an unexpected problem - */ - public void testWarFileMandatory() throws Exception - { - try - { - validator.execute(); - fail("war validator executed without a war file"); - } - catch (NullPointerException e) - { - // this is the expected behaviour - } - } - - /** - * test that an empty war file produces an error - * @throws Exception when there is an unexpected problem - */ - public void testEmptyWar() throws Exception - { - try - { - validator.setFailOnError(true); - validator.setWarFileName(emptyWarFile); - validator.addFormatter(new ValidationFormatter()); - validator.execute(); - fail("Empty war file (with no META-INF, or WEB-INF/web.xml) has" - + " succeeded"); - } - catch (IllegalStateException e) - { - // this is the expected behaviour - } - } - - /** - * test that the failOnError property when set to false doesn't throw - * an exception. - * @throws Exception when there is an unexpected problem - */ - public void testFailOnError() throws Exception - { - try - { - validator.setFailOnError(false); - validator.setWarFileName(emptyWarFile); - validator.addFormatter(new ValidationFormatter()); - validator.execute(); - assertTrue("Error not fired for an empty war file " - + "(with no META-INF, or WEB-INF/web.xml)", - validator.getStatus().isError()); - } - catch (IllegalStateException e) - { - fail("Empty war file (with no META-INF, or WEB-INF/web.xml) failed" - + " the build process with failOnError=false"); - } - } - - /** - * test that a manifest only war file produces a warning - * @throws Exception when there is an unexpected problem - */ - public void testManifestOnlyWar() throws Exception - { - validator.setWarFileName(manifestOnlyWarFile); - validator.addFormatter(new ValidationFormatter()); - validator.execute(); - assertTrue("Manifest only war file (with no WEB-INF/web.xml) has" - + " succeeded without a warning", - validator.getStatus().isWarning()); - } - - /** - * test that a simple war (MANIFEST and web.xml) file produces no warning - * @throws Exception when there is an unexpected problem - */ - public void testSimpleWar() throws Exception - { - validator.setWarFileName(simpleWarFile); - validator.addFormatter(new ValidationFormatter()); - validator.execute(); - assertTrue("Simple war file has generated a warning", - !validator.getStatus().isWarning()); - assertTrue("Simple war file has generated an error", - !validator.getStatus().isError()); - } - - /** - * test that a dummy war file produces no warning and an error - * (as there is an intentionally bad class (java.servlet.Servlet) in - * web.xml) - * @throws Exception when there is an unexpected problem - */ - public void testDummyWar() throws Exception - { - validator.setWarFileName(dummyWarFile); - validator.addFormatter(new ValidationFormatter()); - validator.setFailOnError(false); - validator.execute(); - assertTrue("Dummy war file has generated a warning", - !validator.getStatus().isWarning()); - assertTrue("Dummy war file has not generated an error", - validator.getStatus().isError()); - } - - /** - * FIXME: Need to finish coding - * - * @throws Exception when there is an unexpected problem - */ - public void testDummyJspWar() throws Exception - { - validator.setWarFileName(dummyJspWarFile); - validator.addFormatter(new ValidationFormatter()); - validator.setFailOnError(false); - validator.execute(); - assertTrue("Dummy jsp war file has not generated an error", - validator.getStatus().isError()); - } -} diff --git a/j2ee/src/test/org/apache/maven/j2ee/war/FormLoginConfigTest.java b/j2ee/src/test/org/apache/maven/j2ee/war/FormLoginConfigTest.java deleted file mode 100644 index 0f200a4d..00000000 --- a/j2ee/src/test/org/apache/maven/j2ee/war/FormLoginConfigTest.java +++ /dev/null @@ -1,96 +0,0 @@ -package org.apache.maven.j2ee.war; - -/* ==================================================================== - * The Apache Software License, Version 1.1 - * - * Copyright (c) 2002 The Apache Software Foundation. All rights - * reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The end-user documentation included with the redistribution, - * if any, must include the following acknowledgment: - * "This product includes software developed by the - * Apache Software Foundation (http://www.apache.org/)." - * Alternately, this acknowledgment may appear in the software itself, - * if and wherever such third-party acknowledgments normally appear. - * - * 4. The names "Apache" and "Apache Software Foundation" and - * "Apache Maven" must not be used to endorse or promote products - * derived from this software without prior written permission. For - * written permission, please contact apache@apache.org. - * - * 5. Products derived from this software may not be called "Apache", - * "Apache Maven", nor may "Apache" appear in their name, without - * prior written permission of the Apache Software Foundation. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * ==================================================================== - * - * This software consists of voluntary contributions made by many - * individuals on behalf of the Apache Software Foundation. For more - * information on the Apache Software Foundation, please see - * . - */ - -import junit.framework.TestCase; - -/** - * Unit tests for {@link FormLoginConfig} - * - * @author dion - * @version $Id$ - */ -public class FormLoginConfigTest extends TestCase -{ - - /** Creates a new instance of FormLoginConfigTest - * @param testName the name of the test - */ - public FormLoginConfigTest(String testName) - { - super(testName); - } - - /** Test the constructor succeeds and that both properties are null */ - public void testDefaultConstructor() - { - FormLoginConfig instance = new FormLoginConfig(); - assertNull("loginPage is not null", instance.getLoginPage()); - assertNull("errorPage is not null", instance.getErrorPage()); - } - - /** Test the constructor succeeds and that both properties are set correctly - */ - public void testConstructor() - { - String loginPage = "lPage"; - String errorPage = "ePage"; - FormLoginConfig instance = new FormLoginConfig(loginPage, errorPage); - assertEquals("loginPage was not set", loginPage, - instance.getLoginPage()); - assertEquals("errorPage was not set", errorPage, - instance.getErrorPage()); - } -} diff --git a/j2ee/xdocs/appserver.xml b/j2ee/xdocs/appserver.xml deleted file mode 100644 index 5cf951c1..00000000 --- a/j2ee/xdocs/appserver.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - Maven J2EE Plug-in: Appserver Notes - Peter Lynch - - - -
-

- The Maven J2EE Plugin appserver control features have been migrated to a - standalone Maven appserver plugin. For more information see the appserver - plugin documentation. -

-
- -
diff --git a/j2ee/xdocs/changes.xml b/j2ee/xdocs/changes.xml deleted file mode 100644 index b9341ef0..00000000 --- a/j2ee/xdocs/changes.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - Changes - dIon Gillard - Peter Lynch - - - - Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : -
    -
  • commons-logging v1.0.3 -> v1.0.4
  • -
  • dom4j v1.4-dev-8 -> v1.4
  • -
-
-
- - Removed dependency on non-public goal - war:initand computed the name of the WAR file by using the - maven.war.final.nameproperty from the WAR plugin. - - Remove pom.getPluginContext code and replace with maven:get - - - Remove Ant dependency - Fix issues with DOM classes and jdk1.3 - - - Add tag to get a J2EE Entity Resolver for use in other plugins - - - Upgrade to dom4j 1.4 - Upgrade to dom4j 1.4-dev-8 - Upgrade to commons-logging 1.0.3 - - - Fixed class not found for war validator task - - - Updated docs so that they referred to the current release and not b5 - Fix for jars not being included in an EAR file - Added the new - changes report. - - Removed appserver plugin from the J2EE project workspace. The Maven appserver plugin is now a seperate project. - - -
diff --git a/j2ee/xdocs/dirlayout.xml b/j2ee/xdocs/dirlayout.xml deleted file mode 100644 index 2dfd5d0c..00000000 --- a/j2ee/xdocs/dirlayout.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - Maven J2EE Plug-in Directory Layout - dIon Gillard - - - - -
-

- Having a common directory layout would allow for users familiar - with one Maven project to immediately feel at home in another - Maven project. The advantages are analogous to adopting a - site-wide look-and-feel. Common Maven procedures strengthen the - Maven brand. -

-

- The next two sections document the directory layout expected by - Maven and the directory layout created by Maven. Please try to - conform to this structure as much as possible; however, if you - must these settings can be overridden via properties as - documented in the Integration document. -

-
-
- - - - - - - - - - - -
Directory or file nameContentComment
src/webappThe base directory under which web applications can be found. - This directory contains the web application to - be built. The web application name is passed to maven as the - property ${maven.j2ee.war.name} -
-
-
- - - - - - - - - - - -
Directory nameContentComment
target/Contains compiled WARs and EARs. - This directory is used by the J2EE Plug-in as the destination of the - built war and ear files -
-
- -
diff --git a/j2ee/xdocs/futures.xml b/j2ee/xdocs/futures.xml deleted file mode 100644 index f2f91542..00000000 --- a/j2ee/xdocs/futures.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - Futures for the J2EE Plug-in - dIon Gillard - Peter Lynch - - - -
-

- The following is a list of things that are being contemplated - for the Maven J2EE Plug-in. -

-
    -
  1. - We need to have Class-Path entries in generated J2EE EJB jars and - such. Quite tricky as it doesn't work the same for all application - servers (and across versions of them !). -
  2. -
  3. - Add HTML validation. -
  4. -
  5. - Add EAR validation. -
  6. -
  7. - Add validation of Tag libraries to the validate-war goal. -
  8. -
  9. - Add technology specific validators, e.g. JSP/Turbine/Velocity/Struts - etc -
  10. -
-
- -
diff --git a/j2ee/xdocs/goals.xml b/j2ee/xdocs/goals.xml deleted file mode 100644 index 8669ff52..00000000 --- a/j2ee/xdocs/goals.xml +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - - Maven J2EE Plug-in Goals - dIon Gillard - Kevin O'Neill - Peter Lynch - - - -
-

- This document describes the supplied goals - that are available when using the J2EE Plug-in with Maven. -

-

- Please refer to the - Integration document for - more information on how to integrate these goals into - your project. -

-

- The build file utilizes various properties for default and - user-configurable settings. All J2EE Plug-in properties are described - in the Properties document. - - The rest of this document assumes your project follows the standard - Directory Layout; however, it is - possible to override many of these defaults. -

-
-
- - - - - - - - - - - - - - -
GoalDescription
j2ee:validate-warValidate a WAR file.
j2ee:ejbCreates an EJBjar file.
j2ee:earCreates an EAR file.
-

- -

- The j2ee:validate-war target validates the newly - produced war file. -

-

- The validator checks the folowing: -

-
    -
  1. The war file exists
  2. -
  3. It is readable
  4. -
  5. The war file has a web.xml (it's only a warning if it - doesn't exist)
  6. -
  7. Servlets defined by a <servlet> tag are loadable - from the war file and not the classpath
  8. -
  9. JSPs defined by a <servlet> tag exist in the war -
  10. -
  11. Taglibs defined by a <taglib> have a - <taglib-location> that exists in the war
  12. -
  13. Error pages specified by a <location> nested - within an <error-page> element must exist in the - war file
  14. -
  15. Login and error pages specified in the <form-login-config - > element must exist in the war file
  16. -
- - -

- The j2ee:ejb target generates the ejb jar file - for the project. Optionally it can also create jars containing the local - and remote interfaces. The files are produced in the - ${maven.build.dir}/ejb - directory and have a name based on the - ${maven.j2ee.ejb.name} - property. -

-

The files generated are:

-
    -
  • ${maven.j2ee.ejb.name}.jar
  • -
  • ${maven.j2ee.ejb.name}-remote.jar (optional)
  • -
  • ${maven.j2ee.ejb.name}-local.jar (optional)
  • -
-

- Maven also includes the license file, LICENSE.txt, if it exists, in - the META-INF directory. -

-

- The contents of the ejb file include: -

- - - - - - - - - - - - - - -
ItemDescription
ejb-jar.xml - A J2EE enterprise bean deployment descriptor, which - is placed in the root of the resulting ear file. - The - ${maven.j2ee.ejb.conf.dir} and associated includes and - excludes properties defines the location of this file. -
Classes - The files in the ${maven.build.dest} - directory to be included is specified using the - ${maven.j2ee.ejb.includes} - and ${maven.j2ee.ejb.excludes} - properties. -
Meta-Inf - Files to be included the META-INF directory of the ejb - jar file may be specified using the - - ${maven.j2ee.ejb.conf.dir}, - - ${maven.j2ee.ejb.conf.includes} and - - ${maven.j2ee.ejb.conf.excludes} properties. -
-
- -

- The j2ee:ear target generates an ear file for the - project. The ear file is produced in the - ${maven.build.dir} - directory and has a name defined by the - ${maven.j2ee.ear.name} - property. -

-

- Maven also includes the license file, LICENSE.txt, if it exists, under - the directory META-INF. -

-

- The contents of the ear file include: -

- - - - - - - - - - -
ItemDescription
application.xml - A J2EE enterprise application deployment descriptor, which - is placed in the META-INF of the resulting ear file. - The ${maven.j2ee.ear.appxml} - property defines the location of this file. It defaults to - src/application.xml -
Other Content - Any dependencies specified in your project.xml - may be included by adding the ear.bundle.jar property to the - properties, e.g. - - CustomerEjb - 2.4 - - true - - - ]]> -
-
-
- -
diff --git a/j2ee/xdocs/index.xml b/j2ee/xdocs/index.xml deleted file mode 100644 index 4f1f5edc..00000000 --- a/j2ee/xdocs/index.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - Maen J2EE Plug-in - dIon Gillard - Peter Lynch - - - -
-

- This document provides an overview of the reference section - for the Maven J2EE Plug-in. - The documents presented here are references, if you are looking - for more verbose usage material, please refer to the Getting Started section. -

- - - - - - - - - - - - - - - - - - - -
DocumentDescription
Goals - This document provides detailed information on the various - goals that are available as part of the Maven J2EE Plug-in. -
Properties - The behavior of the Maven J2EE Plug-in can be altered via numerous - properties. This document describes each property - available as the default used. -
Directory Layout - The preferred directory layout structure is documented - here. This is a useful document if you are trying to - determine what a particular component of your directory - hierarchy is used for. -
Appserver Control -

- This page contains additional reference material regarding the application server ( - appserver ) control features of the Maven J2EE plugin. -

-
Futures - These are the current thoughts on additional items - that could or should be added to the plug-in. - They may or may not make it to an actual task list of a - developer. -
-
-
- -
diff --git a/j2ee/xdocs/navigation.xml b/j2ee/xdocs/navigation.xml deleted file mode 100644 index 3936c2e0..00000000 --- a/j2ee/xdocs/navigation.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - Maven J2EE plugin - - - - - - - - - - - - - - - - - - - - - diff --git a/j2ee/xdocs/properties.xml b/j2ee/xdocs/properties.xml deleted file mode 100644 index 4ccd1fc7..00000000 --- a/j2ee/xdocs/properties.xml +++ /dev/null @@ -1,302 +0,0 @@ - - - - - - - Maven J2EE Plug-in Properties Documentation - dIon Gillard - Kevin O'Neill - Peter Lynch - - - -
-

- The following is an overview of the various properties (and - default values) used by the Maven J2EE Plug-in goals. These properties - control various aspects of the J2EE build. Most of these - properties are optional and have defaults; however, there are - mandatory properties that must be set as described in this document. -

-

- These properties can be overridden to change the default behavior of - the Maven J2EE Plug-in. If you need to override any of these properties, - please refer to the - Integration - document for the preferred method of setting properties in your project. -

- - - - - - - - - - - - - - -
SectionDescription
War - These properties specify various settings that control the build - of a war file by the J2EE Plug-in. -
EJB - These properties specify various settings that control the build - of a ejb jar by the J2EE Plug-in. -
Ear - These properties specify various settings that control the build - of an ear file by the J2EE Plug-in. -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyOptional?Description
maven.j2ee.war.nameNo - Specifies the name of the web application to be built. -
maven.j2ee.war.srcYes - Specifies the directory in the local file system that is - used as the base directory for finding web applications. It defaults - to ${maven.src.dir}/webapps -
maven.j2ee.war.contentYes - Specifies the directory in the local file system that holds - web content to be placed in the war file. It defaults - to ${maven.j2ee.war.src}/${maven.j2ee.war.name} -
maven.j2ee.war.classes.includesYes - Specifies the pattern of files in the directory specified by - ${maven.build.dest} - to be included in the /WEB-INF/classes of the resulting - war file. It defaults to **, that is, all files. -
maven.j2ee.war.classes.excludesYes - Specifies the pattern of files in the directory specified by - ${maven.build.dest} - that are not to be included in the - /WEB-INF/classes of the resulting war file. - It defaults to **/package.html. -
maven.j2ee.war.lib.includesYes -

WARNING: This property is temporarily unused.

- Specifies the pattern of files in the - project dependencies - to be included in the /WEB-INF/lib of the resulting - war file. It defaults to *.jar, that is, all dependencies. -
maven.j2ee.war.lib.excludesYes -

WARNING: This property is temporarily unused.

- Specifies the pattern of files in the - project dependencies - not to be included in the /WEB-INF/lib of the resulting - war file. It defaults to blank, that is, no dependencies are excluded. -
maven.j2ee.war.webxmlYes - Specifies the deployment descriptor to be used when building the war - file. It will be placed in /WEB-INF/web.xml of the resulting - war file. It defaults to ${maven.conf.dir}/${maven.j2ee.war.name}-web.xml -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyOptional?Description
maven.j2ee.ejb.nameNo - Specifies the name of the ejb jar to be built. -
maven.j2ee.ejb.conf.dirNo - Specifies the directory to be used to find the deployment descriptor - and other files to be placed in META-INF directory of - the resulting ejb jar. It defaults to - ${maven.conf.dir}/${maven.j2ee.ejb.name} -
- maven.j2ee.ejb.conf.includes - - Yes - Specifies the a pattern of files to be included in the - META-INF directory of the resulting ejb jar, relative - to the ${maven.j2ee.ejb.conf.dir}. It defaults to - ejb-jar.xml. -
- maven.j2ee.ejb.conf.excludes - - Yes - Specifies the a pattern of files to be excluded from the - META-INF directory of the resulting ejb jar, relative - to the ${maven.j2ee.ejb.conf.dir}. It defaults to - blank. -
maven.j2ee.ejb.includesYes - Specifies the pattern of files in the - ${maven.build.dest} - directory to be included in the generated ejb jar. Defaults to **/*. -
maven.j2ee.ejb.excludesYes - Specifies the pattern of compiled class files to be excluded - from the generated ejb jar. Defaults to **/package.html. -
maven.j2ee.ejb.local.includesYes - If this property exists then a jar file with the name - ${maven.j2ee.ejb.name}-local.jar - containing the matching files will be generated in - ${maven.build.dir}/ejb. -
maven.j2ee.ejb.local.excludesYes - Files to be excluded from the - ${maven.j2ee.ejb.name}-local.jar -
maven.j2ee.ejb.remote.includesYes - If this property exists then a jar file with the name - ${maven.j2ee.ejb.name}-remote.jar - containing the matching files will be generated in - ${maven.build.dir}/ejb. -
maven.j2ee.ejb.remote.excludesYes - Files to be excluded from the - ${maven.j2ee.ejb.name}-remote.jar -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - -
PropertyOptional?Description
maven.j2ee.ear.nameNo - Specifies the name of the enterprise application to be built. -
maven.j2ee.ear.includesYes - Specifies the pattern of files in the - ${maven.build.dir} - directory to be included in the resulting ear file. It defaults to - *.jar, *.war, that is, all jar and war files. -
maven.j2ee.ear.excludesYes - Specifies the pattern of files in the - ${maven.build.dir} - directory that are not to be included in the resulting ear file. - It defaults to blank, that is, nothing is excluded. -
maven.j2ee.ear.appxmlYes - Specifies the deployment descriptor to be used when building the ear - file. It will be placed in /application.xml of the resulting - ear file. It defaults to ${maven.conf.dir}/${maven.j2ee.ear.name}-application.xml -
-
- -
diff --git a/jboss/plugin.jelly b/jboss/plugin.jelly deleted file mode 100644 index 7d402c92..00000000 --- a/jboss/plugin.jelly +++ /dev/null @@ -1,406 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - You need to set the maven.jboss.home property and make it point to a valid location. It currently points to [${maven.jboss.home}]. - - - Using JBoss from [${maven.jboss.home}] - Using JBoss ${maven.jboss.version} - - - - - - - - - - - - - - - - - - - - - - - The operating system is Windows - - - The operating system is Unix - - - - - - - - - - - - - - - - - - Bundling: (${dep.groupId}, ${dep.artifactId}, ${dep.type}) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Bundling: (${dep.groupId}, ${dep.artifactId}, ${dep.type}) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jboss/plugin.properties b/jboss/plugin.properties deleted file mode 100644 index ce93aee5..00000000 --- a/jboss/plugin.properties +++ /dev/null @@ -1,99 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# Location of JBoss home (i.e. where JBoss is installed on your local drive -# maven.jboss.home = C:/jboss-3.0.4 - -# (optional) Location of where the application-specific JBoss conf files are -# located -# maven.jboss.conf.dir = src/conf/jboss/conf - -# (optional) Location of where the application-specific JBoss deploy files are -# located -# maven.jboss.deploy.dir = src/conf/jboss/deploy - -# (optional) Location of application configuration files. These files will -# be copied to the JBoss conf/ server configuration directory (and will thus -# be in the server classpath). -# maven.jboss.appconf.dir = src/conf/application - -# Location of scripts to start/stop/etc the jboss container. A user who wants -# to provide his own script will override this property in his project -# project.properties/build.properties. -# Note: If you write your own script you have access to the following filters: -# @maven.jboss.home@ -# @jboss.server.home.dir@ -# @jboss.server.home.url@ -# @maven.jboss.conf.name@ -maven.jboss.script.dir = ${pom.getPluginContext('maven-jboss-plugin').getVariable('plugin.dir')}/plugin-resources - -# Name of the specific JBoss server configuration we are creating -maven.jboss.conf.name = ${pom.artifactId} - -# Location where the specific JBoss server configuration is created -maven.jboss.build.dir = ${maven.build.dir}/${pom.artifactId} - -# Location where to get the JBoss jars from -maven.jboss.default.lib.dir = ${maven.jboss.home}/server/default/lib - -# Jars to include/exclude during the copy from maven.jboss.lib.dir -# to our new server configuration -maven.jboss.default.lib.includes = **/*.jar -maven.jboss.default.lib.excludes = - -# Location where to get the JBoss default conf files from -maven.jboss.default.conf.dir = ${maven.jboss.home}/server/default/conf - -# Deploy files to include/exclude during the copy from maven.jboss.conf.dir -# to our new server configuration -maven.jboss.default.conf.includes = **/* -maven.jboss.default.conf.excludes = - -# Location where to get the JBoss default deploy files from -maven.jboss.default.deploy.dir = ${maven.jboss.home}/server/default/deploy - -# Deploy files to include/exclude during the copy from maven.jboss.deploy.dir -# to our new server configuration -maven.jboss.default.deploy.includes = **/* -maven.jboss.default.deploy.excludes = - -# Host name of the server where JBoss is running. -# Note: This is used to shut JBoss down. -maven.jboss.hostname = localhost - -# JBoss version -maven.jboss.version=3.2 - -# JBoss debug port -maven.jboss.debug.port=4142 - -# --------------------------------------------------------------------------- -# Note: The properties listed below are only needed for the deploy/undeploy -# goals -# --------------------------------------------------------------------------- - -# Port where JBoss is listening -maven.jboss.port = 8080 - -# URL which, when fed to , will cause a thing -# to be deployed -maven.jboss.jmx.url.deploy.3.0 = http://${maven.jboss.hostname}:${maven.jboss.port}/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.lang.String&arg= -maven.jboss.jmx.url.deploy.3.2 = http://${maven.jboss.hostname}:${maven.jboss.port}/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0= - -# URL which, when fed to , will cause a thing -# to be undeployed -maven.jboss.jmx.url.undeploy.3.0 = http://${maven.jboss.hostname}:${maven.jboss.port}/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=undeploy&argType=java.lang.String&arg= -maven.jboss.jmx.url.undeploy.3.2 = http://${maven.jboss.hostname}:${maven.jboss.port}/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=undeploy&argType=java.net.URL&arg0= diff --git a/jboss/project.properties b/jboss/project.properties deleted file mode 100644 index d66f96c3..00000000 --- a/jboss/project.properties +++ /dev/null @@ -1,19 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- diff --git a/jboss/project.xml b/jboss/project.xml deleted file mode 100644 index 6526b0d8..00000000 --- a/jboss/project.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - ../plugins-parent/project.xml - 3 - maven-jboss-plugin - Maven JBoss Plugin - 1.6-SNAPSHOT - Plugin for JBoss - JBoss plugin - - - 1.0 - 1.0 - MAVEN_JBOSS_1_0 - - - 1.1 - 1.1 - MAVEN_JBOSS_1_1 - - - 1.2 - 1.2 - MAVEN_JBOSS_1_2 - - - 1.3 - 1.3 - MAVEN_JBOSS_1_3 - - - 1.4 - 1.4 - MAVEN_JBOSS_1_4 - - - 1.5 - 1.5 - MAVEN_JBOSS_1_5 - - - - - Vincent Massol - vmassol - vmassol@pivolis.com - Pivolis - - Creator - Java Developer - Release Manager - - - - - - James CE Johnson - jcej@tragus.org - - - Willie Vu - willievu@yahoo.com - - - Archimedes Trajano - - - - diff --git a/jboss/sample/conf/development/application/test-application.properties b/jboss/sample/conf/development/application/test-application.properties deleted file mode 100644 index 337ed5e7..00000000 --- a/jboss/sample/conf/development/application/test-application.properties +++ /dev/null @@ -1,18 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -test file. To be verify that the jboss plugin will correctly copy it in -the generated JBoss server configuration. \ No newline at end of file diff --git a/jboss/sample/conf/development/jboss/conf/test-jboss-conf.properties b/jboss/sample/conf/development/jboss/conf/test-jboss-conf.properties deleted file mode 100644 index 337ed5e7..00000000 --- a/jboss/sample/conf/development/jboss/conf/test-jboss-conf.properties +++ /dev/null @@ -1,18 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -test file. To be verify that the jboss plugin will correctly copy it in -the generated JBoss server configuration. \ No newline at end of file diff --git a/jboss/sample/conf/development/jboss/deploy/test-jboss-deploy-service.xml b/jboss/sample/conf/development/jboss/deploy/test-jboss-deploy-service.xml deleted file mode 100644 index 09173869..00000000 --- a/jboss/sample/conf/development/jboss/deploy/test-jboss-deploy-service.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - diff --git a/jboss/sample/conf/production/application/test-application2.properties b/jboss/sample/conf/production/application/test-application2.properties deleted file mode 100644 index 337ed5e7..00000000 --- a/jboss/sample/conf/production/application/test-application2.properties +++ /dev/null @@ -1,18 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -test file. To be verify that the jboss plugin will correctly copy it in -the generated JBoss server configuration. \ No newline at end of file diff --git a/jboss/sample/conf/production/jboss/conf/test-jboss-conf2.properties b/jboss/sample/conf/production/jboss/conf/test-jboss-conf2.properties deleted file mode 100644 index 337ed5e7..00000000 --- a/jboss/sample/conf/production/jboss/conf/test-jboss-conf2.properties +++ /dev/null @@ -1,18 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -test file. To be verify that the jboss plugin will correctly copy it in -the generated JBoss server configuration. \ No newline at end of file diff --git a/jboss/sample/conf/production/jboss/deploy/test-jboss-deploy2-service.xml b/jboss/sample/conf/production/jboss/deploy/test-jboss-deploy2-service.xml deleted file mode 100644 index 09173869..00000000 --- a/jboss/sample/conf/production/jboss/deploy/test-jboss-deploy2-service.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - diff --git a/jboss/sample/maven.xml b/jboss/sample/maven.xml deleted file mode 100644 index 1835ec19..00000000 --- a/jboss/sample/maven.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/jboss/sample/project.properties b/jboss/sample/project.properties deleted file mode 100644 index 9e790dbb..00000000 --- a/jboss/sample/project.properties +++ /dev/null @@ -1,26 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -maven.jboss.conf.name = my -maven.jboss.appconf.dir = ${maven.build.dir}/appconf -maven.jboss.conf.dir = ${maven.build.dir}/jboss/conf -maven.jboss.deploy.dir = ${maven.build.dir}/jboss/deploy - -env.name = development - -# Note: Needs to define maven.jboss.home. -# Ex: maven.jboss.home = C:/Apps/jboss-3.0.4 -# The best place to define it is in a build.properties file diff --git a/jboss/sample/project.xml b/jboss/sample/project.xml deleted file mode 100644 index d490dbd2..00000000 --- a/jboss/sample/project.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - 3 - - - maven-jboss-sample - - - JBoss plugin Sample - - - 1.0 - - - - Apache Software Foundation - http://jakarta.apache.org/ - - - - 2002 - - - org.apache.maven.jboss.sample - - - A sample project using the Jboss plugin for Maven - - - http://maven.apache.org/ - - - - scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven - http://cvs.apache.org/viewcvs/maven/ - - - - - - - - - - - - - - src/java - - diff --git a/jboss/sample/src/application/META-INF/application.xml b/jboss/sample/src/application/META-INF/application.xml deleted file mode 100644 index 9cd2d60d..00000000 --- a/jboss/sample/src/application/META-INF/application.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - Sample - diff --git a/jboss/src/plugin-resources/debug b/jboss/src/plugin-resources/debug deleted file mode 100644 index 4247246c..00000000 --- a/jboss/src/plugin-resources/debug +++ /dev/null @@ -1,14 +0,0 @@ -#! /bin/sh -# ---------------------------------------------------------------------------- -# Default JBoss start up shell script in debug modes. It calls the default script found -# in JBOSS_HOME/bin. -# ---------------------------------------------------------------------------- -export JAVA_OPTS="-Djboss.server.home.dir=@jboss.server.home.dir@ -Djboss.server.home.url=@jboss.server.home.url@ -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=@jboss.server.debug.port@,suspend=n" - -#Xrunjdwp... == the info on how to connect to do remote debugging -#server=y == start in server mode (i.e. wait for connections, don't go out looking to connect -#transport=dt_socked == use sockets, this works (I think) only on unix (I'm on a mac), on Windows you have to use shared memory via the transport=dt_shmem argument instead. I'm fairly sure this works but its been a while since I tried it on Windows. YMMV. here is the official info on the connection arguments -#address=4142 == the port to connect to or the shared mem address to use -#suspend=n == don't wait for a debugger to tell you what to do, go ahead and launch - -@maven.jboss.home@/bin/run.sh -c @maven.jboss.conf.name@ diff --git a/jboss/src/plugin-resources/debug.bat b/jboss/src/plugin-resources/debug.bat deleted file mode 100644 index 31ae9819..00000000 --- a/jboss/src/plugin-resources/debug.bat +++ /dev/null @@ -1,32 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Copyright 2004 The Apache Software Foundation. -@REM -@REM Licensed under the Apache License, Version 2.0 (the "License"); -@REM you may not use this file except in compliance with the License. -@REM You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, software -@REM distributed under the License is distributed on an "AS IS" BASIS, -@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@REM See the License for the specific language governing permissions and -@REM limitations under the License. -@REM ---------------------------------------------------------------------------- -@REM - -@REM ---------------------------------------------------------------------------- -@REM Default JBoss start up batch script in debug mode. It calls the default script found -@REM in JBOSS_HOME/bin. -@REM ---------------------------------------------------------------------------- -@if "%OS%" == "Windows_NT" setlocal -@set NOPAUSE=true -@set JAVA_OPTS=-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=@maven.jboss.debug.port@,suspend=n -Djboss.server.home.dir=@jboss.server.home.dir@ -Djboss.server.home.url=@jboss.server.home.url@ - -@REM Xrunjdwp... == the info on how to connect to do remote debugging -@REM server=y == start in server mode (i.e. wait for connections, don't go out looking to connect -@REM transport=dt_socked == use sockets, this works (I think) only on unix (I'm on a mac), on Windows you have to use shared memory via the transport=dt_shmem argument instead. I'm fairly sure this works but its been a while since I tried it on Windows. YMMV. here is the official info on the connection arguments -@REM address=4142 == the port to connect to or the shared mem address to use -@REM suspend=n == don't wait for a debugger to tell you what to do, go ahead and launch - -@call @maven.jboss.home@\bin\run.bat -c @maven.jboss.conf.name@ diff --git a/jboss/src/plugin-resources/run b/jboss/src/plugin-resources/run deleted file mode 100755 index 1cad881d..00000000 --- a/jboss/src/plugin-resources/run +++ /dev/null @@ -1,7 +0,0 @@ -#! /bin/sh -# ---------------------------------------------------------------------------- -# Default JBoss start up shell script. It calls the default script found -# in JBOSS_HOME/bin. -# ---------------------------------------------------------------------------- -export JAVA_OPTS="-Djboss.server.home.dir=@jboss.server.home.dir@ -Djboss.server.home.url=@jboss.server.home.url@" -@maven.jboss.home@/bin/run.sh -c @maven.jboss.conf.name@ diff --git a/jboss/src/plugin-resources/run.bat b/jboss/src/plugin-resources/run.bat deleted file mode 100755 index 1f072c2e..00000000 --- a/jboss/src/plugin-resources/run.bat +++ /dev/null @@ -1,25 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Copyright 2002,2004 The Apache Software Foundation. -@REM -@REM Licensed under the Apache License, Version 2.0 (the "License"); -@REM you may not use this file except in compliance with the License. -@REM You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, software -@REM distributed under the License is distributed on an "AS IS" BASIS, -@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@REM See the License for the specific language governing permissions and -@REM limitations under the License. -@REM ---------------------------------------------------------------------------- -@REM - -@REM ---------------------------------------------------------------------------- -@REM Default JBoss start up batch script. It calls the default script found -@REM in JBOSS_HOME/bin. -@REM ---------------------------------------------------------------------------- -@if "%OS%" == "Windows_NT" setlocal -@set NOPAUSE=true -@set JAVA_OPTS="-Djboss.server.home.dir=@jboss.server.home.dir@" "-Djboss.server.home.url=@jboss.server.home.url@" -@call @maven.jboss.home@\bin\run.bat -c @maven.jboss.conf.name@ diff --git a/jboss/src/plugin-resources/shutdown.3.0 b/jboss/src/plugin-resources/shutdown.3.0 deleted file mode 100755 index 20e01144..00000000 --- a/jboss/src/plugin-resources/shutdown.3.0 +++ /dev/null @@ -1,6 +0,0 @@ -#! /bin/sh -# ---------------------------------------------------------------------------- -# Default JBoss shutdown shell script. It calls the default script found -# in JBOSS_HOME/bin. -# ---------------------------------------------------------------------------- -@maven.jboss.home@/bin/shutdown.sh @maven.jboss.hostname@ diff --git a/jboss/src/plugin-resources/shutdown.3.0.bat b/jboss/src/plugin-resources/shutdown.3.0.bat deleted file mode 100755 index aebe3637..00000000 --- a/jboss/src/plugin-resources/shutdown.3.0.bat +++ /dev/null @@ -1,26 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Copyright 2002,2004 The Apache Software Foundation. -@REM -@REM Licensed under the Apache License, Version 2.0 (the "License"); -@REM you may not use this file except in compliance with the License. -@REM You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, software -@REM distributed under the License is distributed on an "AS IS" BASIS, -@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@REM See the License for the specific language governing permissions and -@REM limitations under the License. -@REM ---------------------------------------------------------------------------- -@REM - -@echo off -REM ---------------------------------------------------------------------------- -REM Default JBoss shutdown batch script. It calls the default script found -REM in JBOSS_HOME/bin. -REM ---------------------------------------------------------------------------- -@if "%OS%" == "Windows_NT" setlocal -@set NOPAUSE=true -call @maven.jboss.home@\bin\shutdown.bat @maven.jboss.hostname@ - diff --git a/jboss/src/plugin-resources/shutdown.3.2 b/jboss/src/plugin-resources/shutdown.3.2 deleted file mode 100755 index 769a158a..00000000 --- a/jboss/src/plugin-resources/shutdown.3.2 +++ /dev/null @@ -1,6 +0,0 @@ -#! /bin/sh -# ---------------------------------------------------------------------------- -# Default JBoss shutdown shell script. It calls the default script found -# in JBOSS_HOME/bin. -# ---------------------------------------------------------------------------- -@maven.jboss.home@/bin/shutdown.sh -S diff --git a/jboss/src/plugin-resources/shutdown.3.2.bat b/jboss/src/plugin-resources/shutdown.3.2.bat deleted file mode 100755 index b568191d..00000000 --- a/jboss/src/plugin-resources/shutdown.3.2.bat +++ /dev/null @@ -1,25 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Copyright 2002,2004 The Apache Software Foundation. -@REM -@REM Licensed under the Apache License, Version 2.0 (the "License"); -@REM you may not use this file except in compliance with the License. -@REM You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, software -@REM distributed under the License is distributed on an "AS IS" BASIS, -@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@REM See the License for the specific language governing permissions and -@REM limitations under the License. -@REM ---------------------------------------------------------------------------- -@REM - -@echo off -REM ---------------------------------------------------------------------------- -REM Default JBoss shutdown batch script. It calls the default script found -REM in JBOSS_HOME/bin. -REM ---------------------------------------------------------------------------- -@if "%OS%" == "Windows_NT" setlocal -@set NOPAUSE=true -call @maven.jboss.home@\bin\shutdown.bat -S diff --git a/jboss/xdocs/changes.xml b/jboss/xdocs/changes.xml deleted file mode 100644 index 836314d0..00000000 --- a/jboss/xdocs/changes.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - Changes - Vincent Massol - - - - - Removed dependency on non-public goal war:init and migrated the - jboss:deploy-warfile and jboss:undeploy-warfile - goals to use the new maven:get tag to retrieve properties - from the WAR plugin. - - - Added new debug scripts that add the -Xdebug and other debugging - options to enable remote debugging of a JBoss server. - - - - Removed trailing white space in default values for the - maven.jboss.jmx.url.deploy.3.2and - maven.jboss.jmx.url.undeploy.3.2properties. - - - - Added feature to add custom lib jars to the JBoss configuration created when using the - jboss:configuregoal. - - Fixed deploy/undeploy URLs for JBoss 3.2. - Fix - jboss:shutdownand - jboss:starthanging on pause. - - - - Make the JBoss plugin work on unix (JBoss scripts have a sh extension which we were missing). - - - - Fixed bug when using JBoss 3.0.4/Tomcat 4.1.12 is used. When - jboss:startis executed, it causes a - NoClassDefFoundError. This was due to the working directory not being an absolute filename. - - Copy dependencies using artifact path to allow jar overrides to work - The plugin now supports JBoss 3.2.x by default. Support for JBoss 3.0.x is still available by setting the - maven.jboss.version=3.0property. - - Added default start/stop script that are packaged into the generated jboss zip. Custom scripts can also be provided by overriding the - maven.jboss.script.dirproperty. - - When generating the JBoss server configuration zip, exclude JBoss tmp and log directories from the zip. - Change strategy for bunding J2EE modules in the jboss server configuration. This is now achieved through dependencies in - project.xml. for any J2EE module you want to incude add a - jboss.bundleproperty in the said dependency definition. - - - - Application-specific JBoss configuration files now correctly overwrite the default JBoss configuration files. - Allowed deployments of EAR, WAR or EJB-JAR (only EAR was previously supported) by adding the - jboss:package-ear, - jboss:package-ejband - jboss:package-wargoals. The - jboss:packagegoal has been renamed - jboss:configureand now simply creates a custom JBoss server configuration (with nothing from the project deployed in it). - - Added deploy/undeploy targets for jar/war/ear using JBoss' jmx console. - Added new - maven.jboss.hostnameplugin property. It defaults to - localhostand gives the host name of the server to stop when calling - maven jboss:stop. - - JBoss failed to start on unix. This has been fixed. - - - Plugin creation. - - - diff --git a/jboss/xdocs/goals.xml b/jboss/xdocs/goals.xml deleted file mode 100644 index 7e0d5c8d..00000000 --- a/jboss/xdocs/goals.xml +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - Maven JBoss Plug-in Goals - Vincent Massol - - - - - jboss - - Default goal. Does the same as jboss:package. - - - - jboss:configure - - Creates a custom JBoss server configuration directory structure - (with no J2EE modules deployed in it). Custom lib jars can be - specified in the project.xml by taggin them with - the <jboss.lib.bundle>true</jboss.lib.bundle> - property. - - - - jboss:package - - Calls the jboss:configure goal and deploys all J2EE - modules marked with the - <jboss.bundle>true</jboss.bundle> - property in the project dependency definition. - - - - jboss:start - - Starts JBoss using our specific server configuration. - - - - jboss:stop - - Stops JBoss. - - - - jboss:deploy-exploded-warfile - - Invoke the war:webapp goal and deploy the result, - using JMX. Note that maven.war.webapp.dir *must* end - with .war for this to work correctly. - - - - jboss:undeploy-exploded-warfile - - Undeploy the result of the war:webapp goal, - using JMX. Note that maven.war.webapp.dir *must* end - with .war for this to work correctly. - - - - jboss:deploy-warfile - - Invoke the war:war goal and deploy the result, using - JMX. - - - - jboss:undeploy-warfile - - Undeploy the result of the war:war goal, using JMX. - - - - jboss:deploy-ejb - - Deploy ${maven.final.name}.jar, using JMX. - - - - jboss:undeploy-ejb - - Undeploy ${maven.final.name}.jar, using JMX. - - - - jboss:deploy-ear - - Deploy ${maven.final.name}.ear, using JMX. - - - - jboss:undeploy-ear - - Undeploy ${maven.final.name}.ear, using JMX. - - - - - \ No newline at end of file diff --git a/jboss/xdocs/index.xml b/jboss/xdocs/index.xml deleted file mode 100644 index 66c74e93..00000000 --- a/jboss/xdocs/index.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - Maven JBoss plugin - Vincent Massol - Jim Crossley - - - -
-

- This is a plugin for creating a packaged JBoss server - configuration zip. It supports static and dynamic - deployment of J2EE modules. The dynamic deployment is - implemented using JMX. -

-
-
-

- This plugin contains goals to help in quickly building and deploying a webapp into a running JBoss server - if you do not have IDE support for it. -

-

- To build your webapp into the correct directory structure, set the following property for your project: -

- maven.war.webapp.dir=${maven.build.dir}/exploded/${pom.artifactId}.war/ -

- To deploy your webapp after making changes to your java source code, run: -

- maven jboss:deploy-exploded-warfile -

- If only webapp content has changed (ie the webapp does not need to be reloaded), you can run: -

- maven war:webapp -

- To undeploy the webapp: -

- maven jboss:undeploy-exploded-warfile -

- The JBoss plugin takes advantage of the jmx-console webapp provided in the default configuration of JBoss. - It assumes you have JBoss running on localhost with its embedded web server (either Tomcat or Jetty) - listening on port 8080. To override these, please refer to the - JBoss Plugin Properties reference. -

-
- - -
diff --git a/jboss/xdocs/navigation.xml b/jboss/xdocs/navigation.xml deleted file mode 100644 index f5485e68..00000000 --- a/jboss/xdocs/navigation.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - Maven JBoss plugin - - - - - - - - - - - - - - - - - - - diff --git a/jboss/xdocs/properties.xml b/jboss/xdocs/properties.xml deleted file mode 100644 index 83678776..00000000 --- a/jboss/xdocs/properties.xml +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - - JBoss Properties - Vincent Massol - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyOptional?Description
maven.jboss.homeNo -

- Location of JBoss home (i.e. where JBoss is installed on your - local drive. Example: c:/jboss-3.2.2. -

-
maven.jboss.conf.dirYes -

- Location of where the application-specific JBoss conf files are - located. Example: conf/jboss/conf. -

-
maven.jboss.deploy.dirYes -

- Location of where the application-specific JBoss deploy files are - located. Example: conf/jboss/deploy. -

-
maven.jboss.appconf.dirYes -

- Location of application configuration files. These files will - be copied to the JBoss conf/ server configuration directory (and - will thus be in the server classpath). Example: - conf/application. -

-
maven.jboss.conf.nameYes -

- Name of the specific JBoss server configuration we are creating. - Default value is ${pom.artifactId}. -

-
maven.jboss.hostnameYes -

- Hostname on which JBoss is executing. Default value is - localhost -

-
maven.jboss.portYes -

- Port on which JBoss' jmx-console is available. Default value is - 8080. -

-
maven.jboss.jmx.url.deploy.${maven.jboss.version}Yes -

- URL at which an http get will deploy a target. -

-

- Default value for JBoss 3.0 is - http://${maven.jboss.hostname}:${maven.jboss.port}/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.lang.String&arg= -

-

- Default value for JBoss 3.2 is - http://${maven.jboss.hostname}:${maven.jboss.port}/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0= -

-
maven.jboss.jmx.url.undeploy.${maven.jboss.version}Yes -

- URL at which an http get will undeploy a target. -

-

- Default value for JBoss 3.0 is - http://${maven.jboss.hostname}:${maven.jboss.port}/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=undeploy&argType=java.lang.String&arg= -

-

- Default value for JBoss 3.2 is - http://${maven.jboss.hostname}:${maven.jboss.port}/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=undeploy&argType=java.net.URL&arg0= -

-
maven.jboss.script.dirYes -

- Location of scripts to start/stop/etc the jboss container. A - user who wants to provide his own script will override this - property in his project project.properties/ - build.properties. -

-

- If you write your own script you have access to the following - filters: -

-
    -
  • @maven.jboss.home@
  • -
  • @jboss.server.home.dir@
  • -
  • @jboss.server.home.url@
  • -
  • @maven.jboss.conf.name@
  • -
  • @maven.jboss.version@
  • -
  • @maven.jboss.hostname@
  • -
-
maven.jboss.versionYes -

- The plugin now supports JBoss 3.2.x by default. Support for - JBoss 3.0.x is still available by setting the - maven.jboss.version=3.0 property. This property - defaults to 3.2. -

-
maven.jboss.debug.portYes -

- The port to connect to or the shared mem address to use in - the debug scripts. This property - defaults to 4142. -

-
-
- -
\ No newline at end of file diff --git a/jbuilder/plugin.jelly b/jbuilder/plugin.jelly deleted file mode 100644 index ccc5b6e0..00000000 --- a/jbuilder/plugin.jelly +++ /dev/null @@ -1,566 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${jbuilderDirs} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Checking dependency ${libraryName} ... - - - - - - - - - - - - - - - unversioned library definition not found - - - - - - - - - - - - - - - - - - - - - - - creating dependent ${libraryFile} - - - Creating dependent ${libraryFile} ... - - - - - - - - - JBuilder Library Definition File - ${libraryName} - - - - - - - - - - dependency - - - - - - - - - - - - referencing artifact library ${unversionedLibraryFile} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Creating ${libraryFile} ... - - - JBuilder Library Definition File - ${libraryName} - - - - - - - - - - - - - project - - - - - - - - - - - - - - - - - - - - - - ${newSubDir} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +------------------------------------------------------------------ - | WARNING! - | - | A JBuilder installation could not be found. The project files - | being created will contain default values. - +------------------------------------------------------------------ - - - Reading default project ${jbDefaultProject} - - - - - - - - - - - - +------------------------------------------------------------------ - | WARNING! - | - | This project is being configured to use ${jdk}. This - | JDK has not been configured yet in your JBuilder installation. - | Go to Tools|Configure JDKs. - +------------------------------------------------------------------ - - - - - Creating ${basedir}/${pom.artifactId}.jpx ... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - maven.jbuilder.testDependencies must be replaced with - maven.jbuilder.testArtifacts, using artifacts instead of dependencies - - - - - - - - - - - - - - - - - - - - - - ${testPlugin.getDependency('junit')} - - - - - - - JBuilder XML Project - - - - - - - - - - - - - - - - - - - - - - - - - - - ${maven.jbuilder.additionalSources} - - - - - - - - - ${maven.jbuilder.application.classes} - - - - - - - ${maven.jbuilder.applets.classes} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+------------------------------------------------------------------ -| ERROR! -| -| A JBuilder installation could not be found. -+------------------------------------------------------------------ - - - - - - - - - - - diff --git a/jbuilder/plugin.properties b/jbuilder/plugin.properties deleted file mode 100644 index 9277cd39..00000000 --- a/jbuilder/plugin.properties +++ /dev/null @@ -1,48 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# Default JBuilder properties -# ------------------------------------------------------------------- -maven.jbuilder.userHome = ${user.home} -maven.jbuilder.outpath = ${maven.build.dest} -maven.jbuilder.application.runner = com.borland.jbuilder.runtime.ApplicationRunner -maven.jbuilder.applet.runner = com.borland.jbuilder.runtime.AppletRunner -maven.jbuilder.verbose=false -maven.jbuilder.bakpath = ${maven.build.dir}/bak - -# List of additional files that should be added to the JBuilder project if -# they exist. The default is the standard Maven project files. -maven.jbuilder.additionalSources = project.xml,maven.xml,project.properties - -# Optional documentation path. If not defined, the path defined by the javadoc -# plugin will be used. -#maven.jbuilder.docpath = ${maven.build.dir}/jbuilder-doc - -# Optional list of test artifacts. The list must be an instance of -# java.util.List and each element of the list must be an instance of -# org.apache.maven.repository.Artifact. Therefore, this variable technically -# cannot be initialized in a properties file, it must be initialized via jelly -# code. It is listed here for documentation purposes. In general, the test -# dependencies will be project specific and should be initialized in a pre-goal. -#maven.jbuilder.testArtifacts = - -# Optional source paths for libraries that refer to versioned jars in the local -# repository. In general, these will be user specific and should go in -# $HOME/build.properties. -#maven.jbuilder.junit-3.8.1.librarySource = [C:/JUnit/src.jar] -#maven.jbuilder.ant-1.5.2.librarySource = C:/apache-ant-1.5.2/src/main -#maven.jbuilder.jnlp-1.2.librarySource = C:/jnlp/src diff --git a/jbuilder/project.properties b/jbuilder/project.properties deleted file mode 100644 index d66f96c3..00000000 --- a/jbuilder/project.properties +++ /dev/null @@ -1,19 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- diff --git a/jbuilder/project.xml b/jbuilder/project.xml deleted file mode 100644 index 2c630e1c..00000000 --- a/jbuilder/project.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - ../plugins-parent/project.xml - 3 - maven-jbuilder-plugin - Maven JBuilder Plugin - 1.6-SNAPSHOT - - JBuilder Plugin for Maven - - - 1.4 - 1.4 - MAVEN_JBUILDER_1_4 - - - 1.5 - 1.5 - MAVEN_JBUILDER_1_5 - - - - - Emmanuel Venisse - evenisse - emmanuel@venisse.net - - - Java Developer - - - - - - David Zeleznik - dzeleznik@ilog.com - - - - - commons-jelly - commons-jelly-tags-xml - 1.1 - http://jakarta.apache.org/commons/jelly/libs/xml/ - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - diff --git a/jbuilder/xdocs/changes.xml b/jbuilder/xdocs/changes.xml deleted file mode 100644 index 2483c737..00000000 --- a/jbuilder/xdocs/changes.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - Changes - Emmanuel Venisse - - - - Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : -
    -
  • commons-jelly-tags-xml v1.0 -> v1.1
  • -
-
- Add support for jbuilder 2005. - Remove use of pom.getPluginContext and replace with maven:set/get. -
- - Add maven.jbuilder.bakpath property. - Add xdocs and subdir into jbuilder folder(s). - Fix crash with Maven RC2. - - - Generate relative path for OutPath, DefaultPath, DocPath, SourcePath, and TestPath tag in jbuilder project. - Apply MAVEN-987 - Add support to JBuilderX. - - - Fix MAVEN-781. - Fix MAVEN-668. - The plugin attempts to find JBuilder's "HOME" directory where it will read the user's default project properties file. The JBuilder "HOME" directory is also where library files are generated. - When you generate a JBuilder project file, the plugin iterates through its dependencies. For each dependency, a library definition file is generated for the dependency jar in the local repo. This dependent library file is generated if, and only if, the library file does not already exist or the library file was previously generated the same way (as a dependency on a jar in the local repo). - The previous point means that when you generate a jbuilder library definition file directly from a Maven project (using the jbuilder:generate-library goal) you will replace any previous definition of the library that was generated as a jar-only dependency with a library definition that references both the source and class files. - For library definitions that remain jar-only references to the local repo, you can specify a path to the corresponding source code via properties. - Support has been added for generating JBuilder application and applet runtime configurations from properties. - Any resources are added to the JBuilder project source path. - Using an optional property, you can specify a list of explicit files that will be included in the JBuilder project if they exist. The default list are project.xml, project.properties, and maven.xml. - Added support for JBuilder 9 - Added maven.jbuilder.verbose property - Library files that are automatically generated from versioned (not snapshot) artifact dependencies are now versioned themselves. This is also true for snapshot dependencies where an unversioned library file has not been created yet from the corresponding artifact. As before, if an unversioned library file has already been created for a snapshot dependency, the unversioned library will be referenced. - - - Write company, description and title properties in jbuilder project. - Added new - maven.juilder-docpathplugin property. - - Added new - maven.juilder-outpathplugin property. - - - - Add resources to library file. - Corrected generation of library file. - - -
diff --git a/jbuilder/xdocs/goals.xml b/jbuilder/xdocs/goals.xml deleted file mode 100644 index 8fd5660a..00000000 --- a/jbuilder/xdocs/goals.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - Maven jbuilder Plug-in Goals - dIon Gillard - - - - - jbuilder - Generate JBuilder project files - - - jbuilder:generate-library - Generate JBuilder [id_project].library file - - - jbuilder:generate-project - Generate JBuilder [id_project].jpx file - - - - \ No newline at end of file diff --git a/jbuilder/xdocs/index.xml b/jbuilder/xdocs/index.xml deleted file mode 100644 index 799ac0ec..00000000 --- a/jbuilder/xdocs/index.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - Maven JBuilder Plugin - Emmanuel Venisse - - - -
-

- This plug-in provides the ability to generate Jbuilder project files - ([project_id].library file). -

-
- -
diff --git a/jbuilder/xdocs/navigation.xml b/jbuilder/xdocs/navigation.xml deleted file mode 100644 index 8b674670..00000000 --- a/jbuilder/xdocs/navigation.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - Maven JBuilder Plugin - - - - - - - - - - - - - - - - - - - diff --git a/jbuilder/xdocs/properties.xml b/jbuilder/xdocs/properties.xml deleted file mode 100644 index cdde5722..00000000 --- a/jbuilder/xdocs/properties.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - JBuilder Properties - Emmanuel Venisse - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyOptional?Description
maven.jbuilder.userHomeYes -

- the JBuilder user home directory. - Default : ${user.home} -

-
maven.jbuilder.outpathYes -

- Location of output directory used by JBuilder for classes. - Default : ${maven.build.dest} -

-
maven.jbuilder.additionalSourcesYes -

- List of additional files that should be added to the JBuilder project if - they exist. The default is the standard Maven project files. All values are - separated by a comma. - Default : project.xml,maven.xml,project.properties -

-
maven.jbuilder.bakpathYes -

- Location of JBuilder backup directory. Default: ${maven.build.dir}/bak -

-
maven.jbuilder.docpathYes -

- Optional documentation path. If not defined, the path defined by the javadoc - plugin will be used. -

-
maven.jbuilder.testDependenciesYes -

- Optional list of test dependencies. The list must be an instance of - java.util.List and each element of the list must be an instance of - org.apache.maven.project.Dependency. Therefore, this variable technically - cannot be initialized in a properties file, it must be initialized via jelly - code. It is listed here for documentation purposes. In general, the test - dependencies will be project specific and should be initialized in a pre-goal. -

-
maven.jbuilder.verboseYes -

- The verbose mode for generating the dependency library. - Default : false -

-
-
- -
diff --git a/jcoverage/plugin.jelly b/jcoverage/plugin.jelly deleted file mode 100644 index e2dc0077..00000000 --- a/jcoverage/plugin.jelly +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - instrumenting the class-files... - - - - - ${maven.jcoverage.instrumentation.excludes} - - - - - - - - - - - - - - - - - - - - - - - - - - - ${ex} - - - - - - - - - - - - - - - - - - - - ${sourceDir} - - - Copying ${size(sourceDirList)} source directories into one for jcoverage - - - - - - - - - - - - - - - - - - jcoverage reports have been generated. - The HTML report is ${maven.build.coverage.dir}/index.html - - - - - - - - - - - - - - - - - - - - - ${ex} - - - - - No tests to run JCoverage on. - - - - - - - - - - - - ${maven.jcoverage.merge.instrumentedFiles} - - - - - - - - - - diff --git a/jcoverage/plugin.properties b/jcoverage/plugin.properties deleted file mode 100644 index dcf2ee53..00000000 --- a/jcoverage/plugin.properties +++ /dev/null @@ -1,24 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -maven.jcoverage.dir=${maven.build.dir}/jcoverage -maven.jcoverage.instrumentation=${maven.jcoverage.dir}/classes -maven.jcoverage.database.dir=${maven.jcoverage.dir}/database -maven.jcoverage.junit.fork=yes -maven.jcoverage.report.template=maven -maven.jcoverage.report.stylesheet=${plugin.resources}/style.css -maven.jcoverage.instrumentation.includes=**/*.class -maven.jcoverage.instrumentation.excludes=NOT_DEFINED diff --git a/jcoverage/project.properties b/jcoverage/project.properties deleted file mode 100644 index d66f96c3..00000000 --- a/jcoverage/project.properties +++ /dev/null @@ -1,19 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- diff --git a/jcoverage/project.xml b/jcoverage/project.xml deleted file mode 100644 index 34811c3f..00000000 --- a/jcoverage/project.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - - ../plugins-parent/project.xml - 3 - maven-jcoverage-plugin - Maven JCoverage Plugin - 1.1-SNAPSHOT - org.apache.maven.jcoveragereport - This plugin provides coverage analysis of your source-code based on the open-source jcoverage tool. - This plugin provides coverage analysis of your source-code based on the open-source jcoverage tool. - - - 1.0.2 - 1.0.2 - MAVEN_JCOVERAGE_1_0_2 - - - 1.0.3 - 1.0.3 - MAVEN_JCOVERAGE_1_0_3 - - - 1.0.4 - 1.0.4 - MAVEN_JCOVERAGE_1_0_4 - - - 1.0.5 - 1.0.5 - MAVEN_JCOVERAGE_1_0_5 - - - 1.0.6 - 1.0.6 - MAVEN_JCOVERAGE_1_0_6 - - - 1.0.7 - 1.0.7 - MAVEN_JCOVERAGE_1_0_7 - - - 1.0.8 - 1.0.8 - MAVEN_JCOVERAGE_1_0_8 - - - 1.0.9 - 1.0.9 - MAVEN_JCOVERAGE_1_0_9 - - - - - Dominik Dahlem - dahlemd - Dominik.Dahlem@cs.tcd.ie - Trinity College Dublin, Computer Science Department, Distributed Systems Group - - Build Engineer, Java Developer - - - - Emmanuel Venisse - evenisse - emmanuel@venisse.net - - - Java Developer - - +1 - - - Brett Porter - brett - brett@apache.org - f2 network - - Developer - - +10 - - - - - jcoverage - jcoverage - 1.0.5 - http://www.jcoverage.com - - - velocity - velocity - 1.4 - http://jakarta.apache.org/velocity/ - - - log4j - log4j - 1.2.12 - http://jakarta.apache.org/log4j/ - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - bcel - bcel - 5.1 - http://jakarta.apache.org/bcel/ - - - urbanophile - java-getopt - 1.0.9 - http://www.urbanophile.com/arenn/hacking/download.html - - - junit - junit - 3.8.1 - http://www.junit.org - - - oro - oro - 2.0.8 - http://jakarta.apache.org/oro/ - - - xpp3 - xpp3 - 1.1.2a - http://www.extreme.indiana.edu/xgws/xsoap/xpp/ - - - xerces - xmlParserAPIs - 2.6.2 - http://xerces.apache.org/xerces2-j/ - - - xerces - xercesImpl - 2.6.2 - http://xerces.apache.org/xerces2-j/ - - - commons-jelly - commons-jelly-tags-log - 1.0 - - - diff --git a/jcoverage/src/main/org/apache/maven/jcoveragereport/Clazz.java b/jcoverage/src/main/org/apache/maven/jcoveragereport/Clazz.java deleted file mode 100644 index b434ab6e..00000000 --- a/jcoverage/src/main/org/apache/maven/jcoveragereport/Clazz.java +++ /dev/null @@ -1,143 +0,0 @@ -package org.apache.maven.jcoveragereport; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.util.Collection; -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map; - -/** - * @author Emmanuel Venisse - * @version $Id: Clazz.java,v 1.4 2004/03/02 15:07:06 evenisse Exp $ - */ -public class Clazz -{ - private String packageName = ""; - private String name; - private String file; - private String lineRate; - private String branchRate; - private Map lines; - - public Clazz() - { - lines = new HashMap(); - } - - public Clazz(String longName) - { - this(); - int pos = longName.lastIndexOf("."); - if (pos > 0) - { - packageName = longName.substring(0, pos); - name = longName.substring(pos + 1); - } - else - { - name = longName; - } - } - - public void setPackageName(String packageName) - { - this.packageName = packageName; - } - - public String getPackageName() - { - return packageName; - } - - public void setName(String name) - { - this.name = name; - } - - public String getName() - { - return name; - } - - public void setFile(String file) - { - this.file = file; - } - - public String getFile() - { - return file; - } - - public void setLineRate(String lineRate) - { - this.lineRate = lineRate; - } - - public String getLineRate() - { - return lineRate; - } - - public void setBranchRate(String branchRate) - { - this.branchRate = branchRate; - } - - public String getBranchRate() - { - try - { - if (new Double(lineRate).doubleValue() == 0.0d) - { - return new String("0.0"); - } - } catch (NumberFormatException nfe) - { - // could happen if the coverage.xml format changes. - return new String("0"); - } - - return branchRate; - } - - public void setLines(Collection lines) - { - for (Iterator iter = lines.iterator(); iter.hasNext(); ) - { - Line line = (Line) iter.next(); - this.lines.put(new Integer(line.getNumLine()), line); - } - } - - public Collection getLines() - { - return lines.values(); - } - - public void addLine(Line line) - { - lines.put(new Integer(line.getNumLine()), line); - } - - public Map getLinesMap() - { - return lines; - } -} diff --git a/jcoverage/src/main/org/apache/maven/jcoveragereport/ClazzComparator.java b/jcoverage/src/main/org/apache/maven/jcoveragereport/ClazzComparator.java deleted file mode 100644 index ed20e0e3..00000000 --- a/jcoverage/src/main/org/apache/maven/jcoveragereport/ClazzComparator.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.apache.maven.jcoveragereport; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.util.Comparator; - -/** - * @author Emmanuel Venisse - * @version $Id$ - */ -public class ClazzComparator implements Comparator -{ - public int compare(Object class1, Object class2) - { - if (class1 instanceof Clazz && class2 instanceof Clazz) - { - Clazz c1 = (Clazz) class1; - Clazz c2 = (Clazz) class2; - String lower1 = c1.getName().toLowerCase(); - String lower2 = c2.getName().toLowerCase(); - return lower1.compareTo(lower2); - } - else - { - return -1; - } - } -} diff --git a/jcoverage/src/main/org/apache/maven/jcoveragereport/Coverage.java b/jcoverage/src/main/org/apache/maven/jcoveragereport/Coverage.java deleted file mode 100644 index a0473891..00000000 --- a/jcoverage/src/main/org/apache/maven/jcoveragereport/Coverage.java +++ /dev/null @@ -1,178 +0,0 @@ -package org.apache.maven.jcoveragereport; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.HashMap; - -/** - * @author Emmanuel Venisse - * @version $Id$ - */ -public class Coverage -{ - private List classes; - private String srcDirectory; - private Map packageMap; - - public Coverage() - { - classes = new ArrayList(); - packageMap = new HashMap(); - } - - public void setClasses(List classes) - { - this.classes = classes; - } - - public void addClass(Clazz theClass) - { - classes.add(theClass); - Package pkg; - String packageName = theClass.getPackageName(); - if (!packageMap.containsKey(packageName)) - { - pkg = new Package(packageName); - } - else - { - pkg = (Package) packageMap.get(packageName); - } - if (!pkg.contains(theClass)) - { - pkg.setDirectory(theClass.getFile().substring(0, theClass.getFile().lastIndexOf("/"))); - pkg.addClass(theClass); - packageMap.put(packageName, pkg); - } - } - - public List getClasses() - { - return classes; - } - - public List getClassesSortedByName() - { - ClazzComparator comp = new ClazzComparator(); - Collections.sort(classes, comp); - return classes; - } - - public void setSrcDirectory(String srcDirectory) - { - this.srcDirectory = srcDirectory; - } - - public String getSrcDirectory() - { - return srcDirectory; - } - - public List getPackages() - { - return new ArrayList(packageMap.values()); - } - - public List getPackagesSortedByName() - { - PackageComparator comp = new PackageComparator(); - List packages = getPackages(); - Collections.sort(packages, comp); - return packages; - } - - public List getSubPackage(Package thePackage) - { - ArrayList subPkgList = new ArrayList(); - for (Iterator iter = getPackagesSortedByName().iterator(); iter.hasNext(); ) - { - Package pkg = (Package) iter.next(); - if (pkg.getName().startsWith(thePackage.getName()) - && !pkg.getName().equals(thePackage.getName())) - { - subPkgList.add(pkg); - } - } - return subPkgList; - } - - public String getCoveredPercentLine() - { - return String.valueOf(getLineCoverage()); - } - - public String getCoveredPercentBranch() - { - double totalLines = 0.00d; - double total = 0.00d; - - if (getLineCoverage() > 0.00d) - { - for (Iterator iter = getClasses().iterator(); iter.hasNext(); ) - { - Clazz theClass = (Clazz) iter.next(); - int classLines = theClass.getLines().size(); - double rate = 0; - try - { - rate = new Double(theClass.getBranchRate()).floatValue(); - } - catch(NumberFormatException e) - { - rate = 0; - } - total += (rate*classLines); - totalLines += classLines; - } - - total /= totalLines; - } - - return String.valueOf(total); - } - - private double getLineCoverage() - { - double totalLines = 0.00d; - double totalTestedLines = 0.00d; - for (Iterator iter = getClasses().iterator(); iter.hasNext(); ) - { - Clazz theClass = (Clazz) iter.next(); - int classLines = theClass.getLines().size(); - double rate = 0; - try - { - rate = new Double(theClass.getLineRate()).floatValue(); - } - catch(NumberFormatException e) - { - rate = 0; - } - totalTestedLines += (rate * classLines); - totalLines += classLines; - } - - return (totalTestedLines / totalLines); - - } -} diff --git a/jcoverage/src/main/org/apache/maven/jcoveragereport/CoverageReport.java b/jcoverage/src/main/org/apache/maven/jcoveragereport/CoverageReport.java deleted file mode 100644 index e58f7560..00000000 --- a/jcoverage/src/main/org/apache/maven/jcoveragereport/CoverageReport.java +++ /dev/null @@ -1,549 +0,0 @@ -package org.apache.maven.jcoveragereport; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.BufferedReader; -import java.io.BufferedWriter; -import java.io.File; -import java.io.FileReader; -import java.io.FileWriter; -import java.io.IOException; -import java.io.PrintWriter; -import java.text.NumberFormat; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.apache.oro.text.perl.Perl5Util; - -/** - * @author Emmanuel Venisse - * @version $Id$ - */ -public class CoverageReport -{ - /** coverage data */ - private Coverage coverage; - - /** - * Create a coverage report - * @param coverage coverage data - */ - public CoverageReport(Coverage coverage) - { - this.coverage = coverage; - } - - public void generate(String dir) throws IOException - { - File directory = new File(dir); - directory.mkdirs(); - - generateSourceFiles(directory); - generateFrameset(directory); - generatePackageList(directory); - generateClassList(directory); - generateOverview(directory); - } - - private void generateFrameset(File dir) throws IOException - { - File fsFile = new File(dir, "index.html"); - PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(fsFile))); - pw.println(""); - pw.println(""); - pw.println("unit tests coverage report"); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println("This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client."); - pw.println("<BR>"); - pw.println("Link to<A HREF=\"overview-summary.html\">Non-frame version.</A>"); - pw.println(""); - pw.println(""); - pw.println(""); - pw.close(); - } - - private void generatePackageList(File dir) throws IOException - { - File fsFile = new File(dir, "overview-frame.html"); - PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(fsFile))); - pw.println(""); - pw.println(""); - pw.println("unit tests coverage report"); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println("Coverage report"); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println("
"); - pw.println("Overview
"); - pw.println("All classes"); - pw.println("
"); - pw.println("

"); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println("
All packages
"); - - for (Iterator iter = coverage.getPackagesSortedByName().iterator(); iter.hasNext(); ) - { - Package pkg = (Package) iter.next(); - String url = pkg.getDirectory() + "/package-frame.html"; - pw.println("" + pkg.getName() + "
"); - } - - pw.println("
"); - pw.println(""); - pw.println(""); - pw.close(); - - for (Iterator iter = coverage.getPackagesSortedByName().iterator(); iter.hasNext(); ) - { - Package pkg = (Package) iter.next(); - generateClassList(dir, pkg); - generateOverview(dir, pkg); - } - } - - private void generateClassList(File dir) throws IOException - { - generateClassList(dir, null); - } - - private void generateClassList(File dir, Package pkg) throws IOException - { - String filename; - String rootRef; - List classes; - String urlDirectory = ""; - if (pkg == null) - { - rootRef = ""; - filename = "allclasses-frame.html"; - classes = coverage.getClassesSortedByName(); - } - else - { - rootRef = getRelativePath(pkg.getName() + "/"); - filename = pkg.getDirectory() + "/package-frame.html"; - classes = pkg.getClassesSortedByName(); - urlDirectory = "."; - } - File fsFile = new File(dir, filename); - PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(fsFile))); - pw.println(""); - pw.println(""); - pw.println("unit tests coverage report"); - pw.println(""); - pw.println(""); - pw.println(""); - if (pkg != null) - { - pw.println("" + pkg.getName() + "
"); - pw.println("

"); - } - pw.println("All classes"); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println("
"); - - for (Iterator iter = classes.iterator(); iter.hasNext(); ) - { - Clazz theClass = (Clazz) iter.next(); - if (pkg == null) - { - urlDirectory = theClass.getFile().substring(0, theClass.getFile().lastIndexOf("/")); - } - String classFilename = theClass.getName() + ".html"; - if (theClass.getFile().endsWith("/" + theClass.getName() + ".java")) - { - pw.println("" + theClass.getName() + " (" + getPercentValue(theClass.getLineRate()) + ")
"); - } - } - - pw.println("
"); - pw.println(""); - pw.println(""); - pw.close(); - } - - private void generateOverview(File dir) throws IOException - { - generateOverview(dir, null); - } - - private void generateOverview(File dir, Package thePackage) throws IOException - { - String filename = "overview-summary.html"; - String rootRef; - if (thePackage != null) - { - filename = thePackage.getDirectory() + "/package-summary.html"; - rootRef = getRelativePath(thePackage.getName() + "/"); - } - else - { - rootRef = ""; - } - File fsFile = new File(dir, filename); - PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(fsFile))); - pw.println(""); - pw.println(""); - pw.println("unit tests coverage report"); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println("Coverage report"); - pw.println("

"); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - if (thePackage != null) - { - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - } - else - { - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - } - pw.println(""); - List pkgList = null; - if (thePackage != null) - { - pkgList = coverage.getSubPackage(thePackage); - if (pkgList.size() > 0) - { - pw.println(""); - pw.println(""); - pw.println(""); - for (Iterator iter = pkgList.iterator(); iter.hasNext(); ) - { - Package pkg = (Package) iter.next(); - pw.println(""); - String subPkgDir = pkg.getDirectory().substring(thePackage.getDirectory().length() + 1); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - } - } - if (thePackage.getClasses().size() > 0) - { - pw.println(""); - pw.println(""); - pw.println(""); - for (Iterator it = thePackage.getClassesSortedByName().iterator(); it.hasNext(); ) - { - Clazz cl = (Clazz) it.next(); - if (cl.getFile().indexOf("[Unknown]")<0) - { - String classFilename = getShortFilename(cl); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - } - } - } - } - else - { - pkgList = coverage.getPackages(); - if (pkgList.size() > 0) - { - pw.println(""); - pw.println(""); - pw.println(""); - for (Iterator iter = coverage.getPackagesSortedByName().iterator(); iter.hasNext(); ) - { - Package pkg = (Package) iter.next(); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - } - } - if (coverage.getClasses().size() > 0) - { - List classesList = new ArrayList(); - for (Iterator iter = coverage.getClassesSortedByName().iterator(); iter.hasNext(); ) - { - Clazz cl = (Clazz) iter.next(); - if (cl.getPackageName() == null - || cl.getPackageName().equals("")) - { - classesList.add(cl); - } - } - if (classesList.size() > 0) - { - pw.println(""); - pw.println(""); - pw.println(""); - for (Iterator iter = classesList.iterator(); iter.hasNext(); ) - { - Clazz cl = (Clazz) iter.next(); - if (cl.getFile().indexOf("[Unknown]")<0) - { - String classFilename = getShortFilename(cl); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println(""); - } - } - } - } - } - pw.println("
 Files%line%branch
" + thePackage.getName() + "" + thePackage.getClasses().size() + "" + generatePercentResult(getPercentValue(thePackage.getCoveredPercentLine())) + "" + generatePercentResult(getPercentValue(thePackage.getCoveredPercentBranch())) + "Project" + coverage.getClasses().size() + "" + generatePercentResult(getPercentValue(coverage.getCoveredPercentLine())) + "" + generatePercentResult(getPercentValue(coverage.getCoveredPercentBranch())) + "
Packages
" + pkg.getName() + "" + pkg.getClasses().size() + "" + generatePercentResult(getPercentValue(pkg.getCoveredPercentLine())) + "" + generatePercentResult(getPercentValue(pkg.getCoveredPercentBranch())) + "
Classes
" + cl.getName() + "" + generatePercentResult(getPercentValue(cl.getLineRate())) + "" + generatePercentResult(getPercentValue(cl.getBranchRate())) + "
Packages
" + pkg.getName() + "" + pkg.getClasses().size() + "" + generatePercentResult(getPercentValue(pkg.getCoveredPercentLine())) + "" + generatePercentResult(getPercentValue(pkg.getCoveredPercentBranch())) + "
Classes
" + cl.getName() + "" + generatePercentResult(getPercentValue(cl.getLineRate())) + "" + generatePercentResult(getPercentValue(cl.getBranchRate())) + "
"); - pw.println(generateFooter()); - pw.println(""); - pw.println(""); - pw.close(); - } - - /** - * Gets the name to output the file to. - * - * @param cl the class to get the filename for - * @return the filename - */ - private String getShortFilename(Clazz cl) { - String name = cl.getFile().substring(cl.getFile().lastIndexOf("/")+1, cl.getFile().lastIndexOf(".")); - if (cl.getName().indexOf('$') >= 0) { - name = name + "_" + cl.getName().substring(cl.getName().indexOf('$') + 1); - } - return name + ".html"; - } - - /** - * Gets the name to output the file to. - * - * @param cl the class to get the filename for - * @return the filename - */ - private String getFullFilename(Clazz cl) { - String name = cl.getFile().substring(0, cl.getFile().lastIndexOf(".")); - if (cl.getName().indexOf('$') >= 0) { - name = name + "_" + cl.getName().substring(cl.getName().indexOf('$') + 1); - } - return name + ".html"; - } - - private void generateSourceFiles(File dir) throws IOException - { - for (Iterator iter = coverage.getClasses().iterator(); iter.hasNext(); ) - { - Clazz theClass = (Clazz) iter.next(); - File file = new File(coverage.getSrcDirectory(), theClass.getFile()); - if (file.exists()) - { - generateSourceFile(dir, theClass); - } - } - } - - private void generateSourceFile(File directory, Clazz theClass) throws IOException - { - String srcOutputFilename = getFullFilename(theClass); - File srcOutputFile = new File(directory, srcOutputFilename); - File dirOutputFile = srcOutputFile.getParentFile(); - if (dirOutputFile != null) - { - dirOutputFile.mkdirs(); - } - - PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(srcOutputFile))); - pw.println(""); - pw.println(""); - pw.println("unit tests coverage"); - String rootRef = getRelativePath(theClass.getPackageName()); - pw.println(""); - pw.println(""); - pw.println(""); - pw.println("Coverage report"); - pw.println("

"); - pw.println(" "); - pw.println(" "); - pw.println(" "); - pw.println(" "); - pw.println(" "); - pw.println(" "); - pw.println(" "); - pw.println(" "); - pw.println(" "); - pw.println(" "); - pw.println(" "); - pw.println("
 %line%branch
" + theClass.getPackageName() + "." + theClass.getName() + "" + generatePercentResult(getPercentValue(theClass.getLineRate())) + "" + generatePercentResult(getPercentValue(theClass.getBranchRate())) + "
"); - pw.println("

"); - pw.println(" "); - - BufferedReader br = new BufferedReader(new FileReader(new File(coverage.getSrcDirectory(), theClass.getFile()))); - String lineStr; - int numLigne = 1; - while ((lineStr = br.readLine()) != null) - { - Line theLine = (Line) theClass.getLinesMap().get(new Integer(numLigne)); - int nbHits = 0; - if (theLine != null) - { - nbHits = theLine.getNbHits(); - } - pw.println(" "); - if (theLine != null) - { - pw.println(" "); - if (nbHits > 0) - { - pw.println(" "); - pw.println(" "); - } - else - { - pw.println(" "); - pw.println(" "); - } - } - else - { - pw.println(" "); - pw.println(" "); - pw.println(" "); - } - pw.println(" "); - numLigne++; - } - pw.println("
 " + numLigne + " " + theLine.getNbHits() + "
 " + JavaToHtml.syntaxHighlight(lineStr) + "
 " + theLine.getNbHits() + "
 "+ JavaToHtml.syntaxHighlight(lineStr) + "
 " + numLigne + " 
 " +  JavaToHtml.syntaxHighlight(lineStr) + "
"); - pw.println(generateFooter()); - pw.println(""); - pw.println(""); - br.close(); - pw.close(); - } - - private String generateFooter() - { - StringBuffer sb = new StringBuffer(); - sb.append("

"); - sb.append(""); - sb.append(" "); - sb.append(" "); - sb.append(" "); - sb.append("
"); - sb.append(" This report is generated by jcoverage, Maven and Maven JCoverage Plugin."); - sb.append("
"); - return sb.toString(); - } - - private String generatePercentResult(String percentValue) - { - if (percentValue.endsWith("%")) - { - percentValue = percentValue.substring(0, percentValue.length() - 1); - } - double rest = 0; - try - { - rest = 100d - new Double(percentValue).doubleValue(); - } - catch(NumberFormatException e) - { - rest = 0; - } - StringBuffer sb = new StringBuffer(); - sb.append(""); - sb.append(""); - sb.append(""); - sb.append(""); - sb.append(""); - sb.append("
" + percentValue + "% "); - sb.append(""); - sb.append(""); - sb.append(""); - sb.append(""); - sb.append(""); - sb.append("
"); - sb.append("
"); - return sb.toString(); - } - - private String getRelativePath(String path) - { - if (path != null && !path.equals("")) - { - return new Perl5Util().substitute("s/[^\\.]*(\\.|$)/..\\//g", path); - } - else - { - return ""; - } - } - - private String getPercentValue(String value) - { - if (value.endsWith("%")) - { - value = value.substring(0, value.length() - 1); - } - double percent = 0; - try - { - percent = new Double(value).doubleValue(); - } - catch(NumberFormatException e) - { - percent = 0; - } - NumberFormat percentFormatter; - - percentFormatter = NumberFormat.getPercentInstance(); - return percentFormatter.format(percent); - } -} \ No newline at end of file diff --git a/jcoverage/src/main/org/apache/maven/jcoveragereport/CoverageReportGenerator.java b/jcoverage/src/main/org/apache/maven/jcoveragereport/CoverageReportGenerator.java deleted file mode 100644 index 323a96d1..00000000 --- a/jcoverage/src/main/org/apache/maven/jcoveragereport/CoverageReportGenerator.java +++ /dev/null @@ -1,118 +0,0 @@ -package org.apache.maven.jcoveragereport; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.BufferedReader; -import java.io.File; -import java.io.FileOutputStream; -import java.io.FileReader; -import java.io.PrintWriter; - -/** - * @author Emmanuel Venisse - * @version $Id$ - */ -public class CoverageReportGenerator -{ - private String dataFile; - private String outputDir; - - public void setDataFile(String dataFile) - { - this.dataFile = dataFile; - } - - public String getDataFile() - { - return dataFile; - } - - public void setOutputDir(String dir) - { - this.outputDir = dir; - } - - public String getOutputDir() - { - return outputDir; - } - - public void execute() throws Exception - { - System.out.println("Generate report for " + dataFile + " file."); - System.out.println("OutputDir = " + outputDir); - FileReader fr = null; - try - { - prepareFile(); - fr = new FileReader(dataFile); - CoverageUnmarshaller cum = new CoverageUnmarshaller(); - Coverage coverage = cum.parse(fr); - - CoverageReport cr = new CoverageReport(coverage); - cr.generate(outputDir); - } - catch (Exception e) - { - e.printStackTrace(); - } - finally - { - if (fr != null) - { - fr.close(); - } - } - } - - /* - * Rewrite all lines of coverage.xml file for obtain a xml well formed - */ - private void prepareFile() throws Exception - { - BufferedReader br = new BufferedReader(new FileReader(dataFile)); - PrintWriter pw = new PrintWriter(new FileOutputStream(dataFile + ".new")); - String line; - while ((line = br.readLine()) != null) - { - line = replace(line, "", "<init>", 0); - line = replace(line, "", "<clinit>", 0); - line = replace(line, "", "[Unknown]", 0); - pw.println(line); - } - pw.close(); - br.close(); - File fSrc = new File(dataFile); - File fNew = new File(dataFile + ".new"); - fSrc.delete(); - fNew.renameTo(fSrc); - } - - private String replace( String line, String oldString, String newString, int startAt ) - { - int i = startAt; - while ((i = line.indexOf(oldString, i)) >= 0) - { - line = (new StringBuffer().append(line.substring(0, i)) - .append(newString) - .append(line.substring(i + oldString.length()))).toString(); - i += newString.length(); - } - return line; - } -} diff --git a/jcoverage/src/main/org/apache/maven/jcoveragereport/CoverageUnmarshaller.java b/jcoverage/src/main/org/apache/maven/jcoveragereport/CoverageUnmarshaller.java deleted file mode 100644 index 3125cfe7..00000000 --- a/jcoverage/src/main/org/apache/maven/jcoveragereport/CoverageUnmarshaller.java +++ /dev/null @@ -1,120 +0,0 @@ -package org.apache.maven.jcoveragereport; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.Reader; - -import org.xmlpull.v1.XmlPullParser; -import org.xmlpull.v1.XmlPullParserFactory; - -/** - * @author Emmanuel Venisse - * @version $Id$ - */ -public class CoverageUnmarshaller -{ - public Coverage parse(Reader reader) throws Exception - { - Coverage coverage = new Coverage(); - - XmlPullParserFactory factory = XmlPullParserFactory.newInstance(); - XmlPullParser parser = factory.newPullParser(); - parser.setInput(reader); - - int eventType = parser.getEventType(); - - while (eventType != XmlPullParser.END_DOCUMENT) - { - if (eventType == XmlPullParser.START_TAG) - { - if (parser.getName().equals("coverage")) - { - coverage.setSrcDirectory(parser.getAttributeValue("", "src")); - } - if (parser.getName().equals("class")) - { - Clazz theClass = new Clazz(parser.getAttributeValue("", "name")); - while (parser.nextTag() == XmlPullParser.START_TAG) - { - if (parser.getName().equals("file")) - { - String fileName = parser.getAttributeValue("", "name"); - theClass.setFile(fileName); - } - else if (parser.getName().equals("line") - && parser.getAttributeCount() == 1) - { - theClass.setLineRate( - parser.getAttributeValue("", "rate")); - } - else if (parser.getName().equals("line") - && parser.getAttributeCount() == 2) - { - Line line = new Line(); - line.setNumLine( - Integer.valueOf( - parser.getAttributeValue("", "number") - ).intValue()); - line.setNbHits( - Integer.valueOf( - parser.getAttributeValue("", "hits") - ).intValue()); - theClass.addLine(line); - } - else if (parser.getName().equals("branch")) - { - theClass.setBranchRate( - parser.getAttributeValue("", "rate")); - } - if (parser.getName().equals("methods")) - { - while (parser.nextTag() == XmlPullParser.START_TAG) - { - if (parser.getName().equals("method")) - { - while (parser.nextTag() == XmlPullParser.START_TAG) - { - if (parser.getName().equals("line")) - { - //nothing - } - else if (parser.getName().equals("branch")) - { - //nothing - } - parser.next(); - } - } - parser.next(); - } - } - else - { - parser.next(); - } - } - coverage.addClass(theClass); - } - } - - eventType = parser.next(); - } - - return coverage; - } -} diff --git a/jcoverage/src/main/org/apache/maven/jcoveragereport/JavaToHtml.java b/jcoverage/src/main/org/apache/maven/jcoveragereport/JavaToHtml.java deleted file mode 100644 index 48c6e861..00000000 --- a/jcoverage/src/main/org/apache/maven/jcoveragereport/JavaToHtml.java +++ /dev/null @@ -1,395 +0,0 @@ -package org.apache.maven.jcoveragereport; - -/** - * CodeViewer.java - * - * Bill Lynch & Matt Tucker - * CoolServlets.com, October 1999 - * - * Please visit CoolServlets.com for high quality, open source Java servlets. - * - * Copyright (C) 1999 CoolServlets.com - * - * Any errors or suggested improvements to this class can be reported - * as instructed on Coolservlets.com. We hope you enjoy - * this program... your comments will encourage further development! - * - * This software is distributed under the terms of The BSD License. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * Neither name of CoolServlets.com nor the names of its contributors may be - * used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY COOLSERVLETS.COM AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL COOLSERVLETS.COM OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -import java.util.HashMap; - -public class JavaToHtml -{ - private static HashMap reservedWords = new HashMap(); - private static boolean inMultiLineComment = false; - private static String commentStart = ""; - private static String commentEnd = ""; - private static String stringStart = ""; - private static String stringEnd = ""; - private static String reservedWordStart = ""; - private static String reservedWordEnd = ""; - - static - { - loadHash(); - } - - /** - * Passes off each line to the first filter. - * @param line The line of Java code to be highlighted. - * @return Highlighted line. - */ - public static String syntaxHighlight( String line ) - { - return htmlFilter(line); - } - - /* - * Filter html tags into more benign text. - */ - private static String htmlFilter(String line) - { - if (line == null || line.equals("")) - { - return ""; - } - - // replace ampersands with HTML escape sequence for ampersand; - line = replace(line, "&", "&"); - - // replace the \\ with HTML escape sequences. fixes a problem when - // backslashes preceed quotes. - line = replace(line, "\\\\", "\\" ); - - // replace \" sequences with HTML escape sequences; - line = replace(line, "" + (char) 92 + (char) 34, "\""); - - // replace less-than signs which might be confused - // by HTML as tag angle-brackets; - line = replace(line, "<", "<"); - // replace greater-than signs which might be confused - // by HTML as tag angle-brackets; - line = replace(line, ">", ">"); - - return multiLineCommentFilter(line); - } - - /* - * Filter out multiLine comments. State is kept with a private boolean - * variable. - */ - private static String multiLineCommentFilter(String line) - { - if (line == null || line.equals("")) - { - return ""; - } - StringBuffer buf = new StringBuffer(); - int index; - //First, check for the end of a multi-line comment. - if (inMultiLineComment && (index = line.indexOf("*/")) > -1 && !isInsideString(line, index)) - { - inMultiLineComment = false; - buf.append(commentStart); - buf.append(line.substring(0, index)); - buf.append("*/").append(commentEnd); - if (line.length() > index + 2) - { - buf.append(inlineCommentFilter(line.substring(index + 2))); - } - return buf.toString(); - } - //If there was no end detected and we're currently in a multi-line - //comment, we don't want to do anymore work, so return line. - else if (inMultiLineComment) - { - buf.append(commentStart); - buf.append(line); - buf.append(commentEnd); - return buf.toString(); - } - //We're not currently in a comment, so check to see if the start - //of a multi-line comment is in this line. - else if ((index = line.indexOf("/*")) > -1 && !isInsideString(line, index)) - { - inMultiLineComment = true; - //Return result of other filters + everything after the start - //of the multiline comment. We need to pass the through the - //to the multiLineComment filter again in case the comment ends - //on the same line. - buf.append(inlineCommentFilter(line.substring(0, index))); - buf.append(commentStart).append("/*"); - buf.append(multiLineCommentFilter(line.substring(index + 2))); - buf.append(commentEnd); - return buf.toString(); - } - //Otherwise, no useful multi-line comment information was found so - //pass the line down to the next filter for processesing. - else - { - return inlineCommentFilter(line); - } - } - - /* - * Filter inline comments from a line and formats them properly. - */ - private static String inlineCommentFilter(String line) - { - if (line == null || line.equals("")) - { - return ""; - } - StringBuffer buf = new StringBuffer(); - int index; - if ((index = line.indexOf("//")) > -1 && !isInsideString(line, index)) - { - buf.append(stringFilter(line.substring(0, index))); - buf.append(commentStart); - buf.append(line.substring(index)); - buf.append(commentEnd); - } - else - { - buf.append(stringFilter(line)); - } - return buf.toString(); - } - - /* - * Filters strings from a line of text and formats them properly. - */ - private static String stringFilter(String line) - { - if (line == null || line.equals("")) - { - return ""; - } - StringBuffer buf = new StringBuffer(); - if (line.indexOf("\"") <= -1) - { - return keywordFilter(line); - } - int start = 0; - int startStringIndex = -1; - int endStringIndex = -1; - int tempIndex; - //Keep moving through String characters until we want to stop... - while ((tempIndex = line.indexOf("\"")) > -1) - { - //We found the beginning of a string - if (startStringIndex == -1) - { - startStringIndex = 0; - buf.append(stringFilter(line.substring(start, tempIndex))); - buf.append(stringStart).append("\""); - line = line.substring(tempIndex + 1); - } - //Must be at the end - else - { - startStringIndex = -1; - endStringIndex = tempIndex; - buf.append(line.substring(0, endStringIndex + 1)); - buf.append(stringEnd); - line = line.substring(endStringIndex + 1); - } - } - - buf.append(keywordFilter(line)); - - return buf.toString(); - } - - /* - * Filters keywords from a line of text and formats them properly. - */ - private static String keywordFilter( String line ) - { - if (line == null || line.equals("")) - { - return ""; - } - StringBuffer buf = new StringBuffer(); - HashMap usedReservedWords = new HashMap(); // >= Java2 only (not thread-safe) - //Hashtable usedReservedWords = new Hashtable(); // < Java2 (thread-safe) - int i = 0, startAt = 0; - char ch; - StringBuffer temp = new StringBuffer(); - while (i < line.length()) - { - temp.setLength(0); - ch = line.charAt(i); - startAt = i; - // 65-90, uppercase letters - // 97-122, lowercase letters - while (i < line.length() && ((ch >= 65 && ch <= 90 ) - || (ch >= 97 && ch <= 122))) - { - temp.append(ch); - i++; - if (i < line.length()) - { - ch = line.charAt(i); - } - } - String tempString = temp.toString(); - if (reservedWords.containsKey(tempString) && !usedReservedWords.containsKey(tempString)) - { - usedReservedWords.put(tempString, tempString); - line = replace(line, tempString, (reservedWordStart + tempString + reservedWordEnd), startAt); - i += (reservedWordStart.length() + reservedWordEnd.length()); - } - else - { - i++; - } - } - buf.append(line); - return buf.toString(); - } - - /* - * All important replace method. Replaces all occurences of oldString in - * line with newString. - */ - private static String replace( String line, String oldString, String newString ) - { - return replace(line, oldString, newString, 0); - } - - /* - * All important replace method. Replaces all occurences of oldString in - * line with newString. - */ - private static String replace( String line, String oldString, String newString, int startAt ) - { - int i = startAt; - while ((i = line.indexOf(oldString, i)) >= 0) - { - line = (new StringBuffer().append(line.substring(0, i)) - .append(newString) - .append(line.substring(i + oldString.length()))).toString(); - i += newString.length(); - } - return line; - } - - /* - * Checks to see if some position in a line is between String start and - * ending characters. Not yet used in code or fully working :) - */ - private static boolean isInsideString(String line, int position) - { - if (line.indexOf("\"") < 0) - { - return false; - } - int index; - String left = line.substring(0, position); - String right = line.substring(position); - int leftCount = 0; - int rightCount = 0; - while ((index = left.indexOf("\"")) > -1) - { - leftCount++; - left = left.substring(index + 1); - } - while ((index = right.indexOf("\"")) > -1) - { - rightCount++; - right = right.substring(index + 1); - } - if (rightCount % 2 != 0 && leftCount % 2 != 0) - { - return true; - } - else - { - return false; - } - } - - /* - * Load Hashtable (or HashMap) with Java reserved words. - */ - private static void loadHash() - { - reservedWords.put( "abstract", "abstract" ); - reservedWords.put( "do", "do" ); - reservedWords.put( "inner", "inner" ); - reservedWords.put( "public", "public" ); - reservedWords.put( "var", "var" ); - reservedWords.put( "boolean", "boolean" ); - reservedWords.put( "continue", "continue" ); - reservedWords.put( "int", "int" ); - reservedWords.put( "return", "return" ); - reservedWords.put( "void", "void" ); - reservedWords.put( "break", "break" ); - reservedWords.put( "else", "else" ); - reservedWords.put( "interface", "interface" ); - reservedWords.put( "short", "short" ); - reservedWords.put( "volatile", "volatile" ); - reservedWords.put( "byvalue", "byvalue" ); - reservedWords.put( "extends", "extends" ); - reservedWords.put( "long", "long" ); - reservedWords.put( "static", "static" ); - reservedWords.put( "while", "while" ); - reservedWords.put( "case", "case" ); - reservedWords.put( "final", "final" ); - reservedWords.put( "native", "native" ); - reservedWords.put( "super", "super" ); - reservedWords.put( "transient", "transient" ); - reservedWords.put( "cast", "cast" ); - reservedWords.put( "float", "float" ); - reservedWords.put( "new", "new" ); - reservedWords.put( "rest", "rest" ); - reservedWords.put( "catch", "catch" ); - reservedWords.put( "for", "for" ); - reservedWords.put( "null", "null" ); - reservedWords.put( "synchronized", "synchronized" ); - reservedWords.put( "char", "char" ); - reservedWords.put( "finally", "finally" ); - reservedWords.put( "operator", "operator" ); - reservedWords.put( "this", "this" ); - reservedWords.put( "class", "class" ); - reservedWords.put( "generic", "generic" ); - reservedWords.put( "outer", "outer" ); - reservedWords.put( "switch", "switch" ); - reservedWords.put( "const", "const" ); - reservedWords.put( "goto", "goto" ); - reservedWords.put( "package", "package" ); - reservedWords.put( "throw", "throw" ); - reservedWords.put( "double", "double" ); - reservedWords.put( "if", "if" ); - reservedWords.put( "private", "private" ); - reservedWords.put( "true", "true" ); - reservedWords.put( "default", "default" ); - reservedWords.put( "import", "import" ); - reservedWords.put( "protected", "protected" ); - reservedWords.put( "try", "try" ); - } -} diff --git a/jcoverage/src/main/org/apache/maven/jcoveragereport/Line.java b/jcoverage/src/main/org/apache/maven/jcoveragereport/Line.java deleted file mode 100644 index 2276d022..00000000 --- a/jcoverage/src/main/org/apache/maven/jcoveragereport/Line.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.apache.maven.jcoveragereport; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -/** - * @author Emmanuel Venisse - * @version $Id$ - */ -public class Line -{ - private int numLine; - private int nbHits; - - public void setNumLine(int num) - { - this.numLine = num; - } - - public int getNumLine() - { - return numLine; - } - - public void setNbHits(int nb) - { - this.nbHits = nb; - } - - public int getNbHits() - { - return nbHits; - } -} diff --git a/jcoverage/src/main/org/apache/maven/jcoveragereport/Main.java b/jcoverage/src/main/org/apache/maven/jcoveragereport/Main.java deleted file mode 100644 index 65ecc927..00000000 --- a/jcoverage/src/main/org/apache/maven/jcoveragereport/Main.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.apache.maven.jcoveragereport; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -/** - * @author Emmanuel Venisse - * @version $Id$ - */ -public class Main -{ - public static void main(String[] args) throws Exception - { - CoverageReportGenerator generator = new CoverageReportGenerator(); - generator.setDataFile(args[0]); - generator.setOutputDir(args[1]); - generator.execute(); - } -} diff --git a/jcoverage/src/main/org/apache/maven/jcoveragereport/Package.java b/jcoverage/src/main/org/apache/maven/jcoveragereport/Package.java deleted file mode 100644 index dfbdeaba..00000000 --- a/jcoverage/src/main/org/apache/maven/jcoveragereport/Package.java +++ /dev/null @@ -1,145 +0,0 @@ -package org.apache.maven.jcoveragereport; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; - -/** - * @author Emmanuel Venisse - * @version $Id$ - */ -public class Package -{ - private List classes; - private String name = ""; - private String directory; - - public Package(String name) - { - this.name = name; - classes = new ArrayList(); - } - - public void setName(String name) - { - if (name == null) - { - System.out.println("Package == null"); - } - this.name = name; - } - - public String getName() - { - return name; - } - - public void setDirectory(String directory) - { - this.directory = directory; - } - - public String getDirectory() - { - return directory; - } - - public boolean contains(Clazz theClass) - { - return classes.contains(theClass); - } - - public void addClass(Clazz theClass) - { - classes.add(theClass); - } - - public List getClasses() - { - return classes; - } - - public List getClassesSortedByName() - { - ClazzComparator comp = new ClazzComparator(); - Collections.sort(classes, comp); - return classes; - } - - public String getCoveredPercentLine() - { - return String.valueOf(getLineCoverage()); - } - - public String getCoveredPercentBranch() - { - double pckgLines = 0.00d; - double total = 0.00d; - - if (getLineCoverage() > 0.00d) - { - for (Iterator iter = getClasses().iterator(); iter.hasNext(); ) - { - Clazz theClass = (Clazz) iter.next(); - int classLines = theClass.getLines().size(); - double rate = 0; - try - { - rate = new Double(theClass.getBranchRate()).floatValue(); - } - catch(NumberFormatException e) - { - rate = 0; - } - total += (rate*classLines); - pckgLines += classLines; - } - - total /= pckgLines; - } - - return String.valueOf(total); - } - - private double getLineCoverage() - { - double pckgLines = 0.00d; - double pckgTestedLines = 0.00d; - for (Iterator iter = getClasses().iterator(); iter.hasNext(); ) - { - Clazz theClass = (Clazz) iter.next(); - int classLines = theClass.getLines().size(); - double rate = 0; - try - { - rate = new Double(theClass.getLineRate()).floatValue(); - } - catch(NumberFormatException e) - { - rate = 0; - } - pckgTestedLines += (rate * classLines); - pckgLines += classLines; - } - - return (pckgTestedLines / pckgLines); - } -} diff --git a/jcoverage/src/main/org/apache/maven/jcoveragereport/PackageComparator.java b/jcoverage/src/main/org/apache/maven/jcoveragereport/PackageComparator.java deleted file mode 100644 index 6b9d22a3..00000000 --- a/jcoverage/src/main/org/apache/maven/jcoveragereport/PackageComparator.java +++ /dev/null @@ -1,57 +0,0 @@ -package org.apache.maven.jcoveragereport; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.util.Comparator; - -/** - * @author Emmanuel Venisse - * @version $Id$ - */ -public class PackageComparator implements Comparator -{ - public int compare(Object package1, Object package2) - { - if (package1 instanceof Package && package2 instanceof Package) - { - Package p1 = (Package) package1; - Package p2 = (Package) package2; - if (p1.getName() != null && p2.getName() != null) - { - String lower1 = p1.getName().toLowerCase(); - String lower2 = p2.getName().toLowerCase(); - return lower1.compareTo(lower2); - } - else - { - if (p1.getName() == null && p2.getName() == null) - { - return 0; - } - else - { - return -1; - } - } - } - else - { - return -1; - } - } -} diff --git a/jcoverage/src/plugin-resources/style.css b/jcoverage/src/plugin-resources/style.css deleted file mode 100644 index 0a8cc271..00000000 --- a/jcoverage/src/plugin-resources/style.css +++ /dev/null @@ -1,148 +0,0 @@ -body { - font-family: verdana, arial, sans-serif - font-size: 12px; -} - -a { - font-size: 12px; -} - -table.src { - font-size: 12px; - border-left: #dcdcdc 1px solid; - border-right: #dcdcdc 1px solid; - border-bottom: #dcdcdc 1px solid; - border-top: #dcdcdc 1px solid; -} - -table.report { - font-size: 12px !important; - border-collapse: collapse; - width: 100%; -} - -tr.report { - border: #dcdcdc 1px solid; -} - -table.percentGraph { - height: 10px; -} - -th.report { - background: #F0F0F0; - font-size: inherit !important; - font-weight: bold; - border: #dcdcdc 1px solid; -} - -td.reportText { - font-size: inherit !important; - border: #dcdcdc 1px solid; -} - -td.reportValue { - font-size: inherit !important; - border: #dcdcdc 1px solid; - text-align: right; -} - -td.spacer { - border-left: #FF0000 0px none; - border-right: #FF0000 0px none; - height: 30px; - padding-top: 15px; -} - -td.percentCovered { - background: #00FF00; - empty-cells: show; -} - -td.percentUnCovered { - background: #FF0000; - empty-cells: show; -} - -td.numLine { - background: #F0F0F0; - border-right: #dcdcdc 1px solid; - padding-right: 3px; - text-align: right; -} - -td.numLineCover { - background: #80ff80; - border-right: #dcdcdc 1px solid; - padding-right: 3px; - text-align: right; -} - -td.nbHits { - background: #F0F0F0; - border-right: #dcdcdc 1px solid; - padding-right: 3px; - text-align: right; -} - -td.nbHitsCovered { - background: #80ff80; - border-right: #dcdcdc 1px solid; - padding-right: 3px; - text-align: right; -} - -td.nbHitsUncovered { - background: #FF8040; - border-right: #dcdcdc 1px solid; - padding-right: 3px; - text-align: right; -} - -td.src { - width: 100%; -} - -pre.src { - background: #ffffff; - margin-top: 0px; - margin-bottom: 0px; -} - -span.srcUncovered { - background: #FF8040; - border-right: #dcdcdc 1px solid; - padding-right: 3px; - text-align: right; -} - -span.keyword { - color: #0000ff; -} - -span.comment { - color: #008080; - font-style: italic; -} - -span.string { - color: #000000; -} - -span.title { - font-weight: bold; - font-size: 16px; -} - -span.title2 { - font-weight: bold; - font-size: 14px; -} -span.text { - font-size: 12px; -} - -span.text_italic { - font-size: 12px; - font-style: italic; -} diff --git a/jcoverage/xdocs/changes.xml b/jcoverage/xdocs/changes.xml deleted file mode 100644 index 44987466..00000000 --- a/jcoverage/xdocs/changes.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - Changes - Emmanuel Venisse - - - - Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : -

    -
  • log4j v1.2.8 -> v1.2.12
  • -
  • oro v2.0.7 -> v2.0.8
  • -
  • velocity v1.3 -> v1.4
  • -
  • xercesImpl v 2.4.0 -> v2.6.2
  • -
  • xmlParserAPIs v 2.2.1 -> v2.6.2
  • -
- - Open report in a new window. - Allow comma separeted values for maven.jcoverage.instrumentation.excludes. - Fix tests failures when user use maven.jcoverage.instrumentation.excludes - Fix report for Inner/anonymous classes. - - - Fix incorrect usage of maven:addPath tag - Fixed leaking file handles. - - - Fixed overview and packages rates. - Add the possibility to set multiple includes and excludes files for instrumentation. - - - Fixed tests execution when artifact contains properties. - Remove deprecated APIs. - - - Fixed path to stylesheet. - Remove postGoal on clean to avoid introducing all these dependencies on a simple clean. - - - Fixed report generation fails when no java source present. - Handle multiple source directories correctly - Copy all of maven.build.dest, excluding the class files, into the instrumentation directory, as some people hook into the resources copying themselves without adding them to the POM - - - Custom stylesheet for jcoverage plugin. - Fix the report generation after a rmic generation. - - - Apply MPJCOVERAGE-3. - - - Apply MAVEN-967. - - - Apply MAVEN-846. JCoverage report displays wrong branch indicators for classes/packages which don't have any coverage. - Fix bug when classes have no package. - Fix overview page for inner classes. - Add a postGoal to clean:clean for suppress jcoverage.ser file. - - - First release - - - diff --git a/jcoverage/xdocs/goals.xml b/jcoverage/xdocs/goals.xml deleted file mode 100644 index 630bf0c6..00000000 --- a/jcoverage/xdocs/goals.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - Maven JCoverage plugin Goals - Dominik Dahlem - - - - - jcoverage - Generate HTML test coverage reports with JCoverage - - - jcoverage:html-report - Generate HTML test coverage reports with JCoverage - - - jcoverage:merge - Merge two or more instrumentation files into one - - - jcoverage:on - perform the coverage analysis - - - maven-jcoverage-plugin:deregister - Deregister the jcoverage plugin - - - maven-jcoverage-plugin:register - Register the maven-jcoverage-plugin. - - - maven-jcoverage-plugin:report - Run the default report (html). - - - - \ No newline at end of file diff --git a/jcoverage/xdocs/index.xml b/jcoverage/xdocs/index.xml deleted file mode 100644 index 57d12cfb..00000000 --- a/jcoverage/xdocs/index.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - JCoverage Plugin - Dominik Dahlem - - -
-

- The JCoverage tool is a free and easy to use source code coverage analyser. - It helps you to discover where your source-code lacks in test coverage. -

-

- For more information regarding jcoverage check out the - - project homepage. -

-
- -
diff --git a/jcoverage/xdocs/navigation.xml b/jcoverage/xdocs/navigation.xml deleted file mode 100644 index 479ac9d0..00000000 --- a/jcoverage/xdocs/navigation.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - JCoverage Plugin - - - - - - - - - - - - - - - - - - - - - - diff --git a/jcoverage/xdocs/properties.xml b/jcoverage/xdocs/properties.xml deleted file mode 100644 index dd9134d5..00000000 --- a/jcoverage/xdocs/properties.xml +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - JCoverage Plugin Properties - Dominik Dahlem - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyDefaultOptional?Description
maven.jcoverage.dir${maven.build.dir}/jcoverageYes - Specifies the root directory for jcoverage output files. -
maven.jcoverage.report.stylesheet${plugin.resources}/style.cssYes - Specifies css file for jcoverage output files. -
maven.jcoverage.instrumentation${maven.jcoverage.dir}/classesYes - Specifies the build directory for the instrumented classes. -
maven.jcoverage.instrumentation.includes**/*.classYes - Specifies the pattern for the included classes of instrumentation. -
maven.jcoverage.instrumentation.excludesNot definedYes - Specifies the pattern for the excluded classes of instrumentation. It's a comma separated property. -
maven.jcoverage.junit.forkyesYes - Specifies the fork attribute for the JUnit test for the coverage analysis. -
maven.jcoverage.merge.instrumentedFilesYes - Specifies the instrumented files list to be merge. Values are separated with commas. -
maven.jcoverage.merge.outputDirYes - Specifies the directory where the resulting jcoverage.ser will be output to. -
-
- -
diff --git a/jetty/plugin.jelly b/jetty/plugin.jelly deleted file mode 100644 index 31b03c5b..00000000 --- a/jetty/plugin.jelly +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${maven.jetty.port} - - - - - - - - - - ${context} - - ${artifact} - - - - - - - - - - - - - - - ${context} - ${lib.path} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jetty/plugin.properties b/jetty/plugin.properties deleted file mode 100644 index 8396cf54..00000000 --- a/jetty/plugin.properties +++ /dev/null @@ -1,23 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# Port on which Jetty will be started. -maven.jetty.port = 8080 - -# (optional) Specify a custom Jetty XML config file. If this property -# is not defined the config file will be generated automatically by -# the plugin -# ex: maven.jetty.config.xml = conf/jetty.xml diff --git a/jetty/project.properties b/jetty/project.properties deleted file mode 100644 index 0e903219..00000000 --- a/jetty/project.properties +++ /dev/null @@ -1,19 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- diff --git a/jetty/project.xml b/jetty/project.xml deleted file mode 100644 index 66bc8a67..00000000 --- a/jetty/project.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - ../plugins-parent/project.xml - 3 - maven-jetty-plugin - Maven Jetty Plugin - 1.2-SNAPSHOT - Run Jetty - - - 1.0 - 1.0 - MAVEN_JETTY_1_0 - - - 1.1 - 1.1 - MAVEN_JETTY_1_1 - - - - - Vincent Massol - vmassol - vmassol@pivolis.com - Pivolis - - Creator - Java Developer - - - - - - jetty - org.mortbay.jetty - 4.2.20 - - - servletapi - servletapi - 2.3 - - - tomcat - jasper-compiler - 4.1.30 - - - tomcat - jasper-runtime - 4.1.30 - - - commons-jelly - commons-jelly-tags-xml - 1.1 - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - ant - ant - 1.6.5 - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - diff --git a/jetty/xdocs/changes.xml b/jetty/xdocs/changes.xml deleted file mode 100644 index 67efaba4..00000000 --- a/jetty/xdocs/changes.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - Jetty plugin changes - Vincent Massol - - - - Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : -
    -
  • commons-jelly-tags-xml v1.0 -> v1.1
  • -
-
- - Added tools.jar to the Jetty execution classpath to support JSP compilation. - - - Upgraded dependency to Jasper Compiler and Runtime 4.1.30. - - - Upgraded dependency to Jetty 4.2.20. - - - Added a FAQ - -
- - Added dependency on - commons-jelly-tags-xml. It seems this is required for some configurations of Maven. - - - - Plugin creation. Currently only supports WAR deployments in Jetty. - - -
diff --git a/jetty/xdocs/faq.fml b/jetty/xdocs/faq.fml deleted file mode 100644 index c022f6cd..00000000 --- a/jetty/xdocs/faq.fml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - General - - - How do I start Jetty without blocking the build? - - - - - - - -]]> - - - - - - - diff --git a/jetty/xdocs/goals.xml b/jetty/xdocs/goals.xml deleted file mode 100644 index fa88e633..00000000 --- a/jetty/xdocs/goals.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - Maven Jetty plugin goals - Vincent Massol - - - -
- - - - - - - - - - - - - - - - - - -
GoalDescription
jetty - Run Jetty. -
jetty:run - Run Jetty. -
jetty:run-war - Run Jetty, adding the current WAR project to the contexts. -
jetty:config - Generate a Jetty XML configuration file. -
-
- -
diff --git a/jetty/xdocs/index.xml b/jetty/xdocs/index.xml deleted file mode 100644 index a444aa46..00000000 --- a/jetty/xdocs/index.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - Maven Jetty plugin - Vincent Massol - - - -
-

- This plugin starts Jetty on the J2EE modules specified as - dependencies. -

-
-
-

- Define the WARs to deploy in Jetty as project dependencies. - For example: -

- - groupId - artifactId - version - war - - true - - -]]> -

- Note: If you run the jetty:run-war goal, your - current project will also be considered as a WAR and it will - be also deployed in Jetty. -

-
- - -
diff --git a/jetty/xdocs/navigation.xml b/jetty/xdocs/navigation.xml deleted file mode 100644 index a257a46e..00000000 --- a/jetty/xdocs/navigation.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - Maven Jetty plugin - - - - - - - - - - - - - - - - - - diff --git a/jetty/xdocs/properties.xml b/jetty/xdocs/properties.xml deleted file mode 100644 index eff571c8..00000000 --- a/jetty/xdocs/properties.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - Jetty plugin properties - Vincent Massol - - - -
- - - - - - - - - - - - - - -
PropertyOptional?DescriptionDefault
maven.jetty.portYes - Port on which Jetty will be started. - - 8080 -
maven.jetty.config.xmlYes - Custom Jetty XML configuration file. - - No default. By default this file is generated by the plugin. -
-
- - -
diff --git a/jnlp/plugin.jelly b/jnlp/plugin.jelly deleted file mode 100644 index 9c991a61..00000000 --- a/jnlp/plugin.jelly +++ /dev/null @@ -1,441 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - Creating ${maven.jnlp.dir}/${pom.artifactId}.jnlp ... - - - - - - - - - - - - - - - - - Appending Certificate Version: ${certVer} - - - - ${maven.jnlp.title} - - ${maven.jnlp.vendor} - - - - - - - - - - - - ${maven.jnlp.description} - - - ${maven.jnlp.description.one-line} - - - ${maven.jnlp.description.short} - - - ${maven.jnlp.description.tooltip} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${maven.jnlp.properties} - - ${someProperty} - - ${someProperty} - - - - - - - - - ${maven.jnlp.mainclass.arguments} - - ${someArgument} - - - - - - - - - - - - ${maven.jnlp.mainclass.arguments} - - ${someArgument} - - - - - - - - - - Creating ${maven.jnlp.dir}/version.xml ... - - - - - - - - - - - - ${lib.file.name} - - - - - ${depVer} - - ${lib.file.name} - - - - - - - ${final.jar.name} - - - - - ${depVer} - - ${final.jar.name} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Found a store...signing jars - - Signing jar files ... - - - - - - Not Using JarDiff ... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jnlp/plugin.properties b/jnlp/plugin.properties deleted file mode 100644 index cdb11c6e..00000000 --- a/jnlp/plugin.properties +++ /dev/null @@ -1,55 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P L U G I N P R O P E R T I E S -# ------------------------------------------------------------------- -maven.jnlp.dir=${maven.build.dir}/jnlp -maven.jnlp.tmpdir=${maven.build.dir}/jnlp_temp -maven.jnlp.spec=1.0+ - -## maven.jnlp.http.codebase=${pom.url} -## maven.jnlp.title=${pom.name} -maven.jnlp.vendor=${pom.organization.name} -maven.jnlp.homepage=index.html -##maven.jnlp.icon -## maven.jnlp.description=${pom.description} -## maven.jnlp.description.short=${pom.shortDescription} -##maven.jnlp.offline.allowed=true -##maven.jnlp.permission=all or j2ee -##maven.jnlp.jardiff=true - -maven.jnlp.j2se.version=1.4 -maven.jnlp.j2se.heapsize.initial=32m -maven.jnlp.j2se.heapsize.max=128m - -##maven.jnlp.isapplet -##maven.jnlp.applet.name -##maven.jnlp.isinstaller -##maven.jnlp.mainclass -##maven.jnlp.iscomponent - -##maven.jnlp.signjar.store -##maven.jnlp.signjar.storepass -## maven.jnlp.signjar.alias=${pom.artifactId} -maven.jnlp.signjar.storetype=jks -maven.jnlp.signjar.validity=720 -##maven.jnlp.signjar.dname.cn //Common name -##maven.jnlp.signjar.dname.ou //Organization unit -## maven.jnlp.signjar.dname.o=${pom.organization.name} -##maven.jnlp.signjar.dname.l //Locality -##maven.jnlp.signjar.dname.s //Street -##maven.jnlp.signjar.dname.c //Country diff --git a/jnlp/project.properties b/jnlp/project.properties deleted file mode 100644 index d66f96c3..00000000 --- a/jnlp/project.properties +++ /dev/null @@ -1,19 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- diff --git a/jnlp/project.xml b/jnlp/project.xml deleted file mode 100644 index abeb8670..00000000 --- a/jnlp/project.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - ../plugins-parent/project.xml - 3 - maven-jnlp-plugin - Maven JNLP Plugin - 1.5-SNAPSHOT - JNLP Plugin for Maven - - - Emmanuel Venisse - evenisse - emmanuel@venisse.net - - - Java Developer - - - - James Birchfield - moatas - jim@bnainc.net - Birchfield &amp; Associates, Inc. - - Java Developer - - - - - - Martin Skopp - skopp@riege.de - Riege Software International - +1 - - - - - - 1.3 - 1.3 - MAVEN_JNLP_1_3 - - - 1.4 - 1.4 - MAVEN_JNLP_1_4 - - - 1.4.1 - 1.4.1 - MAVEN_JNLP_1_4_1 - - - diff --git a/jnlp/src/main/org/apache/maven/jnlp/UpdateManifest.java b/jnlp/src/main/org/apache/maven/jnlp/UpdateManifest.java deleted file mode 100644 index 64e54794..00000000 --- a/jnlp/src/main/org/apache/maven/jnlp/UpdateManifest.java +++ /dev/null @@ -1,108 +0,0 @@ -package org.apache.maven.jnlp; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.InputStream; -import java.util.Enumeration; -import java.util.jar.JarEntry; -import java.util.jar.JarFile; -import java.util.jar.JarOutputStream; - -/** - * Updates manifest for correcting java webstart bug - * - * @author Emmanuel Venisse - * @version $Id$ - */ -public class UpdateManifest -{ - private File inputJar; - private File manifest; - private File outputDir; - - public void process() throws Exception - { - System.out.println("Update Manifest in " + inputJar.getName()); - JarFile jarFile = new JarFile(inputJar); - Enumeration entries = jarFile.entries(); - File outputJar = new File(outputDir, inputJar.getName()); - FileOutputStream fos = new FileOutputStream(outputJar); - JarOutputStream jos = new JarOutputStream(fos); - while (entries.hasMoreElements()) { - process(jarFile, jos, (JarEntry)entries.nextElement()); - } - jos.close(); - jarFile.close(); - outputJar.setLastModified(inputJar.lastModified()); - } - - private void process(JarFile jarFile, JarOutputStream jos, JarEntry entry) - throws Exception - { - InputStream is = jarFile.getInputStream(entry); - JarEntry je = entry; - if (entry.getName().equalsIgnoreCase("META-INF/MANIFEST.MF")) - { - je = new JarEntry("META-INF/MANIFEST.MF"); - is = new FileInputStream(manifest); - } - JarEntry destEntry = new JarEntry (je.getName()); - jos.putNextEntry(destEntry); - - byte[] buffer = new byte[2048]; - int read = 0; - while((read = is.read(buffer)) > 0) - { - jos.write(buffer, 0, read); - } - jos.closeEntry(); - } - - public void setInputJar(File input) - { - this.inputJar = input; - } - - public File getInputJar() - { - return inputJar; - } - - public void setManifest(File manifest) - { - this.manifest = manifest; - } - - public File getManifest() - { - return manifest; - } - - public void setOutputDir(File outputDir) - { - this.outputDir = outputDir; - } - - public File getOutputDir() - { - return outputDir; - } -} \ No newline at end of file diff --git a/jnlp/src/plugin-resources/jnlp.manifest b/jnlp/src/plugin-resources/jnlp.manifest deleted file mode 100644 index ae169151..00000000 --- a/jnlp/src/plugin-resources/jnlp.manifest +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -Created-By: Apache Maven - diff --git a/jnlp/src/plugin-test/maven.xml b/jnlp/src/plugin-test/maven.xml deleted file mode 100644 index 6ed2cf02..00000000 --- a/jnlp/src/plugin-test/maven.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/jnlp/src/plugin-test/project.xml b/jnlp/src/plugin-test/project.xml deleted file mode 100644 index fad66430..00000000 --- a/jnlp/src/plugin-test/project.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - 3 - test-maven-jnlp-plugin - Test project for Maven JNLP Plugin - maven - 1.0-SNAPSHOT - - Apache Software Foundation - http://www.apache.org/ - http://maven.apache.org/images/jakarta-logo-blue.gif - - 2001 - org.apache.maven - http://maven.apache.org/images/maven.jpg - Test for Maven jnlp plugin - Test for Maven JNLP plugin - http://maven.apache.org/maven-1.x/reference/plugins/jnlp/ - /www/maven.apache.org/maven-1.x/reference/plugins/jnlp/ - - scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/jnlp/ - http://cvs.apache.org/viewcvs/maven/src/plugins-build/jnlp/ - - - - dIon Gillard - dion - dion@multitask.com.au - Multitask Consulting - - Documentation - - - - - - src/main - - diff --git a/jnlp/src/plugin-test/src/main/org/apache/maven/Dummy.java b/jnlp/src/plugin-test/src/main/org/apache/maven/Dummy.java deleted file mode 100644 index b966b0c8..00000000 --- a/jnlp/src/plugin-test/src/main/org/apache/maven/Dummy.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.apache.maven; - -public class Dummy -{ - public String badChecky = "error"; -} \ No newline at end of file diff --git a/jnlp/xdocs/changes.xml b/jnlp/xdocs/changes.xml deleted file mode 100644 index 2c28cc12..00000000 --- a/jnlp/xdocs/changes.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - Changes - dIon Gillard - Emmanuel Venisse - - - - Add a default value for maven.jnlp.vendor property. - Fix extension for external site. - - - Add extension support. - Fix bad signed jar name - - - Add initial attempt at test project - Initialize correctly jnlp:generate-keystore goal. - Added Support for JarDiff. - Added maven.jnlp.signjar.storetype property. - Documented the maven.jnlp.properties and made it work correctly - Created By is now set to Apache Maven instead of Apache Jakarta Maven - - - Added extra property maven.jnlp.cert.version to support certificate renewals. - Updated jarversions support to take SNAPSHOT jars into account. - - Add support for jar versions. - Remove the need for ${pom} interpolation in properties. The use of the maven:property tag is now used to glean a default property. - - - Fixes for MAVEN-518. Artifact processing in the plugin was slightly changed and now it supports jar overriding mechanism - Fix Maven-343. Support large jar files. - Fix generated jnlp file. We use now argument tag instead of sysproperty tag. - - - Add the possibility to choose the main jar. - - - diff --git a/jnlp/xdocs/goals.xml b/jnlp/xdocs/goals.xml deleted file mode 100644 index d99e32db..00000000 --- a/jnlp/xdocs/goals.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - Maven JNLP Plug-in Goals - Emmanuel Venisse - - - -
- - - - - - - - - - - - - - -
GoalDescription
jnlp - Default goal - see jnlp:generate-jnlp -
jnlp:generate-jnlp - Generate the .jnlp file and sign all jars. -
jnlp:generate-keystore - Generate a keystore file for signing your jars. -
-
- -
diff --git a/jnlp/xdocs/index.xml b/jnlp/xdocs/index.xml deleted file mode 100644 index eba69e2b..00000000 --- a/jnlp/xdocs/index.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - Maven JNLP Plug-in - Emmanuel Venisse - - - -
-

- This plug-in provides your basic jnlp facilities. -

-

- For more information on the functionality provided by this plugin, - please see the Goals document. -

-

- For more information on how to customise the functionality provided - by this plugin, please see the properties - document. -

-
- -
diff --git a/jnlp/xdocs/navigation.xml b/jnlp/xdocs/navigation.xml deleted file mode 100644 index 7e0374f8..00000000 --- a/jnlp/xdocs/navigation.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - Maven JNLP Plug-in - - - - - - - - - - - - - - - - - - - - diff --git a/jnlp/xdocs/properties.xml b/jnlp/xdocs/properties.xml deleted file mode 100644 index d1fd1269..00000000 --- a/jnlp/xdocs/properties.xml +++ /dev/null @@ -1,500 +0,0 @@ - - - - - - - Properties - Emmanuel Venisse - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyOptional?DescriptionDefault
maven.jnlp.dirYes - Root of generated .jnlp file and signing jars. - - ${maven.build.dir}/jnlp -
maven.jnlp.specYes - The versions of the specification that this JNLP file required. - - 1.0+ -
maven.jnlp.http.codebaseYes - The jnlp root element on web server. - - ${pom.url} -
maven.jnlp.titleYes - The name of the application. - - ${pom.name} -
maven.jnlp.vendorYes - The name of the vendor of the application. - ${pom.organization.name}
maven.jnlp.homepageYes - URL locating the home page for the application. It can be used - by the JNLP Client to point the user to a Web page where they - can find more information about the application. - - index.html -
maven.jnlp.iconYes - URL locating the icon of the application. - The icon can be used by a JNLP Client to identify the application to the user. -
maven.jnlp.icon.splashYes - URL locating the splash screen icon of the application . - The icon can be used by a JNLP Client to customise a splash screen to the user. -
maven.jnlp.descriptionYes - The default description of the application. - All descriptions contains plain text. No formatting, such as, e.g., - HTML tags are supported. - - ${pom.description} -
maven.jnlp.description.one-lineYes - If a reference to the application is going to appear in one row - in a list or a table, this description will be used. -
maven.jnlp.description.shortYes - The short description of the application. - If a reference to the application is going to be displayed in a - situation where there is room for a paragraph, this description is used. - - ${pom.shortDescription} -
maven.jnlp.description.tooltipYes - A description of the application intended to be used as a tooltip. -
maven.jnlp.offline.allowedYes - The optional offline-allowed element indicates if the application can work - while the client system is disconnected from the network. The default is - that an application only works if the client system is online. - - false -
maven.jnlp.permissionYes - Possible values : all or j2ee. - The specification specifies two trusted environments, the all-permissions - environment and an environment that meets the security specifications of - the J2EE Application Client environment. Both of these environments provide - unrestricted access to the network and local disk. Thus, an application can - intentionally or unintentionally harm the local system. An application must - only be launched if it is trusted. -
maven.jnlp.j2se.versionYes - Describes supported version of the JRE. - - 1.4 -
maven.jnlp.j2se.heapsize.initialYes - Indicates the initial size of the Java heap. The modifiers m and k can be used - for megabytes and kilobytes, respectively. For example, "128m" will be the same - as specifying "134217728" (128*1024*1024). The modifiers are not case-sensitive. - - 32m -
maven.jnlp.j2se.heapsize.maxYes - Indicates the maximum size of the Java heap. The modifiers m and k can be - used for megabytes and kilobytes, respectively. For example, "128m" will - be the same as specifying "134217728" (128*1024*1024). The modifiers are - not case-sensitive. - - 128m -
maven.jnlp.propertiesYes - The arguments passed to the jvm. The arguments are seperated by a - space. The argument itself is in the format name=value. This - mechanism doesn't allow for spaces in any of the arguments itself. - -
maven.jnlp.isappletYes - Defines if JNLP file describes an applet. - - false -
maven.jnlp.applet.nameYes - The applet name. -
maven.jnlp.isinstallerYes - Defines if JNLP file describes an installer. - - false -
maven.jnlp.iscomponentYes - Defines if JNLP file describes a component. - - false -
maven.jnlp.mainclassYes - The main class for the application or the applet. - If this is not specified, then the Main-Class manifest entry for the main - JAR file is used. If neither is specified, then the launch must be aborted. -
maven.jnlp.mainclass.argumentsYes - The argument list for the main class. All arguments are separated by a space. -
maven.jnlp.usejarversionsYes - Generate jar references in jnlp file with their associated version numbers. - Generate a version.xml file to map these version numbers to the actual jar files. - false
maven.jnlp.cert.versionYes - A version string to be appended to each dependency version when generating - version.xml. (This is only useful if maven.jnlp.usejarversions is set to true). - This comes in handy, when your code signing certificate expires and is renewed. - Java Web Start requires that ALL jars be signed with the same certificate. When - renewing a certificate you must change all of the version numbers of all jars, so - that the JWS client will re-download the jars that haven't changed, but have only - been re-signed by the new key. With this property, when you get a renewed key, - all you have to do, is update the maven.jnlp.cert.version string to a new value, - and the new version.xml will have all new version strings for ALL jars. - false
maven.jnlp.jardiffYes - Use the jar diff option for the Sun's JNLP Download Servlet. - false
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyOptional?DescriptionDefault
maven.jnlp.signjar.storeYes - The keystore location. It's necessary if you want sign your jars. -
maven.jnlp.signjar.storepassYes - The password for keystore integrity. Must be at least 6 characters long. -
maven.jnlp.signjar.storetypeYes - The keystore type. - jks
maven.jnlp.signjar.aliasYes - The alias for the keystore. - - ${pom.artifactId} -
maven.jnlp.signjar.validityYes - Indicates how many days certificate is valid. - - 720 -
maven.jnlp.signjar.dname.cnYes - The common name of distinguished name. -
maven.jnlp.signjar.dname.ouYes - The organization unit of distinguished name. -
maven.jnlp.signjar.dname.oYes - The organization of distinguished name. - - ${pom.organization.name} -
maven.jnlp.signjar.dname.lYes - The locality of distinguished name. -
maven.jnlp.signjar.dname.sYes - The street of distinguished name. -
maven.jnlp.signjar.dname.cYes - The country of distinguished name. -
-
-
-

- You must tell Maven what jars you want included in the jnlp distribution. - This is achieved by specifying meta-information in the POM, using the - following syntax for jar files : -

- - - jarid - jarversion - - true - - - ]]> - -

- Or for native jar files : -

- - - jarid - jarversion - - true - - - ]]> - -

- Or for using JNLP extension mechanism : -

- - - jarid - jarversion - - hostname - directory - jnlp-filename - - - ]]> - -

- The JNLP extension mechanism is useful e.g. as a workaround when - JAR files signed by different certificates are used, see - Java Webstart FAQ, How do I use JAR files that are signed by different certificates?). -

-

- When using JNLP extension feature, jnlp.extension.site - must not contain URL prefix - "http://" is the only protocol - supported now. - Property jnlp.extension.site is a optional, if omited - a relative URL is constructed from jnlp.extension.dir - and jnlp.extension.jnlp. If JNLP file is stored in - the same directory as the generated JNLP file and one likes - to avoid absolute pathnames, one should use "." as value for - jnlp.extension.dir. -

- -
-
-

- When you define the main class of your application, you must define the jar - that contains the main class. This is achieved by specifying meta-information - in the pom, using the following syntax for jar files : -

- - - jarid - jarversion - - true - true - - - ]]> - -

- If no jars contains this tag (jnlp.main.jar), it's the project jar which will be used. -

-
- -
diff --git a/release/NOTES.txt b/release/NOTES.txt deleted file mode 100644 index cde4c02a..00000000 --- a/release/NOTES.txt +++ /dev/null @@ -1,18 +0,0 @@ -o There are N snapshot dependencies, would you like to update them - to use timestamped version? - -o Foreach snapshot dependency: - -> display current dependency information - -> show what the updated information would be - -> prompt user to allow update - -o Would you like the update POM to be written out for the release? - ---- - -o Add whatever hooks that would allow this in a UI environment. The - POM transformer can be used for anything really. When Jaxen beans - walks we can align inheritance. Console/GUI. -o backing up the old POM -o do we allow it to be flipped back to snapshots? - diff --git a/release/plugin.jelly b/release/plugin.jelly deleted file mode 100644 index 38194357..00000000 --- a/release/plugin.jelly +++ /dev/null @@ -1,352 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Updating POM with version ${version}; tag ${tag} - - - - - ${transformer.transformNodes()} - ${transformer.write(encoding)} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${transformation.transform()}"/> - - - - - - - - - - - - - - ${transformer.write(encoding)} - - - - - - - - - - ${transformer.transformNodes()} - - - - - ${transformer.write(encoding)} - - - - - - ${transformer.transformNodes()} - - - - - ${transformer.write(encoding)} - - - - - - - - - - - - - - - - The following dependencies have SNAPSHOT identifiers: - - - ${dependency.artifactId} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${maven.release.distribution.categories} - - ${category} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/release/project.properties b/release/project.properties deleted file mode 100644 index 33f8877d..00000000 --- a/release/project.properties +++ /dev/null @@ -1,24 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- -# Dependencies locally overrode can't be resolved in the generated POM -# This setting must be kept in the plugin -# Versions overriding are resolved thus they are defined in the parent project -maven.jar.override=on -maven.jar.maven = ${maven.home}/lib/maven.jar diff --git a/release/project.xml b/release/project.xml deleted file mode 100644 index 55093c91..00000000 --- a/release/project.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - - ../plugins-parent/project.xml - 3 - maven-release-plugin - Maven Release Plugin - 1.5-SNAPSHOT - Produce project release - Produce project release - - - Jason van Zyl - jvanzyl - jason@zenplex.com - Zenplex - - Architect - Release Manager - - - - - - maven - maven - 1.0.2 - - - commons-io - commons-io - 1.0 - - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - - dom4j - dom4j - 1.4 - http://www.dom4j.org/ - - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - - jaxen - jaxen - 1.0-FCS-full - - - commons-jelly - commons-jelly - 1.0 - - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - - saxpath - saxpath - 1.0-FCS - - - xerces - xmlParserAPIs - 2.6.2 - http://xerces.apache.org/xerces2-j/ - - - commons-jelly - commons-jelly-tags-interaction - 1.0 - - - - - - - src/test-data - false - - - - - - - 1.2 - 1.2 - MAVEN_RELEASE_1_2 - - - 1.3 - 1.3 - MAVEN_RELEASE_1_3 - - - 1.4 - 1.4 - MAVEN_RELEASE_1_4 - - - 1.4.1 - 1.4.1 - MAVEN_RELEASE_1_4_1 - - - diff --git a/release/releaseplan.xml b/release/releaseplan.xml deleted file mode 100644 index 0f96f667..00000000 --- a/release/releaseplan.xml +++ /dev/null @@ -1,213 +0,0 @@ - - - - - - betty - 1.0 - open|closed - - someblogurl... - dev@maven.apache.org,user@maven.apache.org - dev@maven.apache.org - - - 1.0/src - 1.0/bin - - - - - - Bug fixes - - World Domination - Beat Betty - - Moderate testing by the community. All component teams fixing serious defects. - No changes are to be released without prior approval and associated bug report. - None - - - RELEASE_MAVEN_1.0_BETA_1 - This was a quiet release as there was a quite an overhaul in the core of Maven. The core was slimmed down and a lot of code was moved into the plugins. In lieu of a set of detailed changes we are trying to get the documentation up to scratch as fast as possible. But here are some of the more notable changes: - betty - - Goal caching for much faster start-up times - Start of general artifact support - Unsatisfied dependency exception - Maven jar override support for version number - Offline support for snapshots - i18n support - - - - commons-collections - 2.1 - - - - excalibur-event - SNAPSHOT - - - - junit - 3.8 - - - - - logkit - 1.0.1 - - - - concurrent - 1.3.1 - - - - - - - - - - - - Bug fixes - - World Domination - Beat Betty - - Moderate testing by the community. All component teams fixing serious defects. - No changes are to be released without prior approval and associated bug report. - None - - - 2002-03-15 - RELEASE_MAVEN_1.0_BETA_1 - This was a quiet release as there was a quite an overhaul in the core of Maven. The core was slimmed down and a lot of code was moved into the plugins. In lieu of a set of detailed changes we are trying to get the documentation up to scratch as fast as possible. But here are some of the more notable changes: - - Goal caching for much faster start-up times - Start of general artifact support - Unsatisfied dependency exception - Maven jar override support for version number - Offline support for snapshots - i18n support - - - - - - Bug fixes - - World Domination - Beat Betty - - Moderate testing by the community. All component teams fixing serious defects. - No changes are to be released without prior approval and associated bug report. - None - - - 2002-03-15 - RELEASE_MAVEN_1.0_BETA_1 - This was a quiet release as there was a quite an overhaul in the core of Maven. The core was slimmed down and a lot of code was moved into the plugins. In lieu of a set of detailed changes we are trying to get the documentation up to scratch as fast as possible. But here are some of the more notable changes: - - Goal caching for much faster start-up times - Start of general artifact support - Unsatisfied dependency exception - Maven jar override support for version number - Offline support for snapshots - i18n support - - - - - - Bug fixes - - World Domination - Beat Betty - - Moderate testing by the community. All component teams fixing serious defects. - No changes are to be released without prior approval and associated bug report. - None - - - 2002-03-15 - RELEASE_MAVEN_1.0_BETA_1 - This was a quiet release as there was a quite an overhaul in the core of Maven. The core was slimmed down and a lot of code was moved into the plugins. In lieu of a set of detailed changes we are trying to get the documentation up to scratch as fast as possible. But here are some of the more notable changes: - - Goal caching for much faster start-up times - Start of general artifact support - Unsatisfied dependency exception - Maven jar override support for version number - Offline support for snapshots - i18n support - - - - - - Bug fixes - - World Domination - Beat Betty - - Moderate testing by the community. All component teams fixing serious defects. - No changes are to be released without prior approval and associated bug report. - None - - - 2002-03-15 - RELEASE_MAVEN_1.0_BETA_1 - This was a quiet release as there was a quite an overhaul in the core of Maven. The core was slimmed down and a lot of code was moved into the plugins. In lieu of a set of detailed changes we are trying to get the documentation up to scratch as fast as possible. But here are some of the more notable changes: - - Goal caching for much faster start-up times - Start of general artifact support - Unsatisfied dependency exception - Maven jar override support for version number - Offline support for snapshots - i18n support - - - - - diff --git a/release/src/main/org/apache/maven/release/AbstractPomTransformer.java b/release/src/main/org/apache/maven/release/AbstractPomTransformer.java deleted file mode 100644 index d3427715..00000000 --- a/release/src/main/org/apache/maven/release/AbstractPomTransformer.java +++ /dev/null @@ -1,353 +0,0 @@ -package org.apache.maven.release; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.File; -import java.io.FileOutputStream; -import java.io.OutputStream; -import java.io.PrintStream; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import org.apache.commons.io.FileUtils; -import org.dom4j.Document; -import org.dom4j.Namespace; -import org.dom4j.Node; -import org.dom4j.io.OutputFormat; -import org.dom4j.io.SAXReader; -import org.dom4j.io.XMLWriter; -import org.jaxen.XPath; -import org.jaxen.dom4j.Dom4jXPath; -import org.xml.sax.Attributes; -import org.xml.sax.SAXException; -import org.xml.sax.helpers.XMLFilterImpl; - -/** - * This is the base class for any tool that attempts to transform fields - * in the POM. Currently we are using the XML form of the POM and using Jaxen - * but eventually we will be able to perform the same transformations on - * POM beans. Jaxen needs to be modified and some serious cleanup needs to - * go on in Maven internally, but this will serve as a start. An attempt is - * made to make this tool GUI friendly. - * - * @author Jason van Zyl - * - * @version $Id$ - */ -public abstract class AbstractPomTransformer - implements PomTransformer -{ - /** POM document */ - private File project; - - /** Dom4j document. */ - private Document document; - - /** Output file. */ - private File outputFile; - - /** Properties used in transformNode */ - private Map variables; - - /** Nodes selected for transformation using xpath. */ - private List selectedNodes; - - private List transformations; - - // ------------------------------------------------------------------------- - // Accessors - // ------------------------------------------------------------------------- - - /** - * - * @return - */ - public Map getVariables() - { - return variables; - } - - /** - * - * @param variables - */ - public void setVariables( Map variables ) - { - this.variables = variables; - } - - /** - * - * @param project - */ - public void setProject( File project ) - { - this.project = project; - } - - /** - * - * @return - */ - public File getProject() - { - return project; - } - - /** - * - * @return - */ - public Document getDocument() - { - return document; - } - - /** - * - * @param document - */ - public void setDocument( Document document ) - { - this.document = document; - } - - /** - * - * @return - */ - public File getOutputFile() - { - return outputFile; - } - - /** - * - * @param outputFile - */ - public void setOutputFile( File outputFile ) - { - this.outputFile = outputFile; - } - - /** - * - * @return - */ - public List getSelectedNodes() - { - if ( selectedNodes == null ) - { - try - { - selectNodes(); - } - catch ( Exception e ) - { - // do nothing. - } - } - return selectedNodes; - } - - /** - * - * @param selectedNodes - */ - public void setSelectedNodes( List selectedNodes ) - { - this.selectedNodes = selectedNodes; - } - - /** - * - * @return - */ - public int getSelectedNodeCount() - { - return getSelectedNodes().size(); - } - - /** - * - * @return - */ - public List getTransformations() - { - if ( transformations == null ) - { - createTransformations(); - } - - return transformations; - } - - /** - * - */ - public void createTransformations() - { - transformations = new ArrayList(); - - for ( Iterator i = getSelectedNodes().iterator(); i.hasNext(); ) - { - Object o = i.next(); - - if ( o instanceof Node ) - { - Transformation transformation = new Transformation( this ); - transformation.setNode( (Node) o ); - transformations.add( transformation ); - } - } - } - - /** - * This is the automated way of transforming the nodes if there is - * no user interaction involved. - * - * @throws Exception If an error occurs while transforming the nodes. - */ - public void transformNodes() - throws Exception - { - for ( Iterator i = getSelectedNodes().iterator(); i.hasNext(); ) - { - Object o = i.next(); - - if ( o instanceof Node ) - { - transformNode( (Node) o ); - } - } - } - - // ---------------------------------------------------------------------- - // Implementation - // ---------------------------------------------------------------------- - - /** - * - * @return - */ - public abstract String selectNodesXPathExpression(); - - /** - * - * @param node - * @throws Exception - */ - public abstract void transformNode( Node node ) - throws Exception; - - /** - * Update the snapshot version identifiers with actual timestamp versions - * and write out the POM in its updated form. - * - * @throws Exception - */ - public void selectNodes() - throws Exception - { - SAXReader reader = new SAXReader(); - - // make xpath expressions worh with poms with or without namespace - reader.setXMLFilter( new XMLFilterImpl() - { - - public void endElement( String uri, String localName, String qName ) - throws SAXException - { - super.endElement( "", localName, "" ); - } - - public void startElement( String uri, String localName, String qName, Attributes atts ) - throws SAXException - { - super.startElement( "", localName, "", atts ); - } - - } ); - setDocument( reader.read( getProject() ) ); - - // The selecting nodes with the xpath expression will give us a list - // of dependencies elements where the version element is equal to 'SNAPSHOT'. - // So we can get any information we need, and alter anything we need to before writing - // the dom4j document back out. - XPath xpath = new Dom4jXPath( selectNodesXPathExpression() ); - setSelectedNodes( xpath.selectNodes( getDocument() ) ); - } - - /** - * - * @throws Exception - */ - public void write() - throws Exception - { - write( null ); - } - - /** - * - * @throws Exception - */ - public void write( String encoding ) - throws Exception - { - OutputStream os = null; - - if ( getOutputFile() != null ) - { - // Backup the original first. - FileUtils.copyFile( getOutputFile(), new File( getOutputFile() + ".backup" ) ); - - // Now hand of the os. - os = new FileOutputStream( getOutputFile() ); - } - else - { - os = new PrintStream( System.out ); - } - - OutputFormat format = new OutputFormat(); - format.setIndentSize( 2 ); - format.setNewlines( true ); - format.setTrimText( true ); - if ( encoding != null ) - { - format.setEncoding( encoding ); - } - - XMLWriter writer = new XMLWriter( format ) - { - protected boolean isNamespaceDeclaration( Namespace ns ) - { - // this will filter out empty namespaces, only the correct POM ns is allowed - return "http://maven.apache.org/POM/3.0.0".equals( ns.getURI() ); - } - }; - - writer.setOutputStream( os ); - writer.write( getDocument() ); - writer.flush(); - writer.close(); - } -} diff --git a/release/src/main/org/apache/maven/release/PomNodeSelector.java b/release/src/main/org/apache/maven/release/PomNodeSelector.java deleted file mode 100644 index bc6942a2..00000000 --- a/release/src/main/org/apache/maven/release/PomNodeSelector.java +++ /dev/null @@ -1,121 +0,0 @@ -package org.apache.maven.release; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.dom4j.Document; -import org.dom4j.io.SAXReader; -import org.jaxen.XPath; -import org.jaxen.dom4j.Dom4jXPath; - -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -/** - * This is a simple POM manipulator that doesn't take into account any sort of - * POM inheritance. When the interpolation and inheritance is cleaned up in the - * Maven we will be able to serialize a POM directly with greater ease. But we - * may stick with this Jaxen solution anyway because it's so easy. Just turn the - * POM in memory into a Dom4j document and perform the same operation as we are - * here. - */ -public class PomNodeSelector -{ - /** - * POM document - */ - private File pom; - - /** - * Xpath expression. - */ - private String xpathExpression; - - /** - * Snapshot dependencies found. - */ - private List nodes; - - /** - * Constructor. - */ - public PomNodeSelector() - { - nodes = new ArrayList(); - } - - // ------------------------------------------------------------------------- - // Accessors - // ------------------------------------------------------------------------- - - public void setXpathExpression( String xpathExpression ) - { - this.xpathExpression = xpathExpression; - } - - public String getXpathExpression() - { - return xpathExpression; - } - - /** - * Sets the nodes attribute of the PomManipulator object - */ - public void setNodes( List nodes ) - { - this.nodes = nodes; - } - - /** - * Gets the nodes attribute of the PomManipulator object - */ - public List getNodes() - { - return nodes; - } - - public void setPom( File pom ) - { - this.pom = pom; - } - - public File getPom() - { - return pom; - } - - /** - * Update the snapshot version identifiers with actual timestamp versions - * and write out the POM in its updated form. - * - * @throws Exception - */ - public void execute() - throws Exception - { - SAXReader reader = new SAXReader(); - Document doc = reader.read( getPom() ); - - // The selecting nodes with the xpath expression will give us a list - // of dependencies elements where the version element is equal to 'SNAPSHOT'. - // So we can get any information we need, and alter anything we need to before writing - // the dom4j document back out. - XPath xpath = new Dom4jXPath( getXpathExpression() ); - setNodes( xpath.selectNodes( doc ) ); - } -} diff --git a/release/src/main/org/apache/maven/release/PomTransformer.java b/release/src/main/org/apache/maven/release/PomTransformer.java deleted file mode 100644 index cdd0fc82..00000000 --- a/release/src/main/org/apache/maven/release/PomTransformer.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.apache.maven.release; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.dom4j.Node; - -/** - * - * - * @author Jason van Zyl - * - * @version $Id$ - */ -public interface PomTransformer -{ - public void transformNode( Node node ) - throws Exception; - - public Node getTransformedNode( Node node ) - throws Exception; -} diff --git a/release/src/main/org/apache/maven/release/SnapshotResolver.java b/release/src/main/org/apache/maven/release/SnapshotResolver.java deleted file mode 100644 index 4a3fa640..00000000 --- a/release/src/main/org/apache/maven/release/SnapshotResolver.java +++ /dev/null @@ -1,142 +0,0 @@ -package org.apache.maven.release; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.apache.commons.io.FileUtils; -import org.apache.maven.MavenConstants; -import org.apache.maven.project.Project; -import org.apache.maven.util.HttpUtils; -import org.dom4j.Node; - -import java.io.File; -import java.util.Iterator; - -/** - * - * - * @author Jason van Zyl - * - * @version $Id$ - */ -public class SnapshotResolver - extends AbstractPomTransformer -{ - // ------------------------------------------------------------------------- - // Accessors - // ------------------------------------------------------------------------- - - public String selectNodesXPathExpression() - { - return "/project/dependencies/dependency[version='SNAPSHOT']"; - } - - public String selectNodeXPath() - { - return "version"; - } - - public String getNodeContent( Node node ) - throws Exception - { - String timestampVersion = "SNAPSHOT"; - - Node idNode = node.selectSingleNode( "id" ); - - String groupId; - String artifactId; - String artifactType = "jar"; - - if ( idNode != null ) - { - groupId = idNode.getText(); - artifactId = groupId; - } - else - { - Node artifactIdNode = node.selectSingleNode( "artifactId" ); - Node groupIdNode = node.selectSingleNode( "groupId" ); - - groupId = groupIdNode.getText(); - artifactId = artifactIdNode.getText(); - } - - Node typeIdNode = node.selectSingleNode( "type" ); - - if ( typeIdNode != null ) - { - artifactType = typeIdNode.getText(); - } - - // Now we need to attempt to find the the actual timestamp - // version for this dependency. - - // Variables are being stored as ConstantExpressions ... - - Project project = (Project) getVariables().get( MavenConstants.MAVEN_POM ); - File snapshotVersionFile = new File( getProject().getParentFile(), artifactId + "-snapshot-version" ); - - for ( Iterator i = project.getContext().getMavenRepoRemote().iterator(); i.hasNext(); ) - { - String remoteRepo = (String) i.next(); - String url = remoteRepo + "/" + groupId + "/" + artifactType + "s/" + artifactId + "-snapshot-version"; - - try - { - HttpUtils.getFile( url, - snapshotVersionFile, - true, // ignore errors - false, // use timestamps - (String) getVariables().get( MavenConstants.PROXY_HOST ), // proxy host - (String) getVariables().get( MavenConstants.PROXY_PORT ), // proxy port - (String) getVariables().get( MavenConstants.PROXY_USERNAME ), // proxy user name - (String) getVariables().get( MavenConstants.PROXY_PASSWORD ) // proxy password - ); - } - catch ( Exception e ) - { - // Either doesn't exist, or we have a network problem. In - // either event we can't update the version field. - System.out.println( "Can't retrieve snapshot version file: " + e.getLocalizedMessage() ); - } - - if ( snapshotVersionFile.exists() ) - { - timestampVersion = FileUtils.readFileToString( snapshotVersionFile, null ); - } - } - - return timestampVersion; - } - - public void transformNode( Node node ) - throws Exception - { - Node version = node.selectSingleNode( selectNodeXPath() ); - version.setText( getNodeContent( node ) ); - } - - public Node getTransformedNode( Node node ) - throws Exception - { - Node transformedNode = (Node) node.clone(); - Node version = transformedNode.selectSingleNode( selectNodeXPath() ); - version.setText( getNodeContent( transformedNode ) ); - - return transformedNode; - } -} diff --git a/release/src/main/org/apache/maven/release/SnapshotVersionTransformer.java b/release/src/main/org/apache/maven/release/SnapshotVersionTransformer.java deleted file mode 100644 index 409e00c0..00000000 --- a/release/src/main/org/apache/maven/release/SnapshotVersionTransformer.java +++ /dev/null @@ -1,76 +0,0 @@ -package org.apache.maven.release; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.dom4j.Node; - -/** - * - * - * @author Jason van Zyl - * - * @version $Id$ - */ -public class SnapshotVersionTransformer - extends AbstractPomTransformer -{ - // ------------------------------------------------------------------------- - // Accessors - // ------------------------------------------------------------------------- - - public String selectNodesXPathExpression() - { - return "/project"; - } - - public String selectNodeXPath() - { - return "currentVersion"; - } - - public String getNodeContent( Node node ) - throws Exception - { - String currentVersion = node.selectSingleNode( selectNodeXPath() ).getText(); - - int i = currentVersion.indexOf( "-SNAPSHOT" ); - if ( i > 0 ) - { - currentVersion = currentVersion.substring( 0, i ); - } - - return currentVersion; - } - - public void transformNode( Node node ) - throws Exception - { - Node currentVersion = node.selectSingleNode( selectNodeXPath() ); - currentVersion.setText( getNodeContent( node ) ); - } - - public Node getTransformedNode( Node node ) - throws Exception - { - Node transformedNode = (Node) node.clone(); - Node currentVersion = transformedNode.selectSingleNode( selectNodeXPath() ); - currentVersion.setText( getNodeContent( transformedNode ) ); - - return transformedNode; - } -} diff --git a/release/src/main/org/apache/maven/release/Transformation.java b/release/src/main/org/apache/maven/release/Transformation.java deleted file mode 100644 index 2d8ac694..00000000 --- a/release/src/main/org/apache/maven/release/Transformation.java +++ /dev/null @@ -1,95 +0,0 @@ -package org.apache.maven.release; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.dom4j.Node; - -/** - * - * - * @author Jason van Zyl - * - * @version $Id$ - */ -public class Transformation -{ - /** Pom Transformer associated with this transformation. */ - private PomTransformer pomTransformer; - - /** Node to transform. */ - private Node node; - - public Transformation( PomTransformer pomTransformer ) - { - this.pomTransformer = pomTransformer; - } - - // ---------------------------------------------------------------------- - // Accessors - // ---------------------------------------------------------------------- - - /** - * - * @return - */ - public Node getNode() - { - return node; - } - - /** - * - * @param node - */ - public void setNode( Node node ) - { - this.node = node; - } - - /** - * - * @throws Exception - */ - public void transform() - throws Exception - { - pomTransformer.transformNode( node ); - } - - /** - * - * @return - * @throws Exception - */ - public String getBeforeTransformation() - throws Exception - { - return getNode().asXML(); - } - - /** - * - * @return - * @throws Exception - */ - public String getAfterTransformation() - throws Exception - { - return pomTransformer.getTransformedNode( getNode() ).asXML(); - } -} diff --git a/release/src/main/org/apache/maven/release/VersionTransformer.java b/release/src/main/org/apache/maven/release/VersionTransformer.java deleted file mode 100644 index f9719ab2..00000000 --- a/release/src/main/org/apache/maven/release/VersionTransformer.java +++ /dev/null @@ -1,129 +0,0 @@ -package org.apache.maven.release; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.dom4j.Element; -import org.dom4j.Node; - -/** - * - * - * @author Brett Porter - * - * @version $Id$ - */ -public class VersionTransformer - extends AbstractPomTransformer -{ - private String version; - private String tag; - - public VersionTransformer( String version, String tag ) - { - this.version = version; - this.tag = tag; - } - - // ------------------------------------------------------------------------- - // Accessors - // ------------------------------------------------------------------------- - - public String selectNodesXPathExpression() - { - return "/project"; - } - - public void transformNode( Node node ) - throws Exception - { - Element project = ( Element ) node; - - Node currentVersion = node.selectSingleNode( "currentVersion" ); - if ( currentVersion != null ) - { - currentVersion.setText( version ); - } - else - { - project.addElement( "currentVersion" ).addText( version ); - } - - Element version = ( Element ) node.selectSingleNode( "versions/version[tag='" + tag + "']" ); - if ( version != null ) - { - // tag exists - overwrite - Node id = version.selectSingleNode( "id" ); - if ( id != null ) - { - id.setText( this.version ); - } - else - { - version.addElement( "id" ).addText( this.version ); - } - Node name = version.selectSingleNode( "name" ); - if ( name != null ) - { - name.setText( this.version ); - } - else - { - version.addElement( "name" ).addText( this.version ); - } - } - else - { - // tag doesn't exist - add - Element versions = ( Element ) project.selectSingleNode( "versions" ); - if ( versions == null ) - { - versions = project.addElement( "versions" ); - } - Element v = versions.addElement( "version" ); - v.addElement( "id" ).addText( this.version ); - v.addElement( "name" ).addText( this.version ); - v.addElement( "tag" ).addText( tag ); - } - } - - public Node getTransformedNode( Node node ) - throws Exception - { - throw new UnsupportedOperationException( "getTransformedNode not implemented" ); - } - - public boolean transformRequired() - { - Node node = ( Node ) getSelectedNodes().get( 0 ); - if ( node == null ) - { - return true; - } - - Node currentVersion = node.selectSingleNode( "currentVersion" ); - if ( currentVersion == null || !currentVersion.getText().equals( version )) - { - return true; - } - - - Node v = node.selectSingleNode( "versions/version[tag='" + tag + "' and id='" + version + "' and name='" + version + "']" ); - return ( v == null ); - } -} - diff --git a/release/src/main/org/apache/maven/release/jelly/AbstractTransformerTag.java b/release/src/main/org/apache/maven/release/jelly/AbstractTransformerTag.java deleted file mode 100644 index 0a5e2ed3..00000000 --- a/release/src/main/org/apache/maven/release/jelly/AbstractTransformerTag.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.apache.maven.release.jelly; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.apache.commons.jelly.JellyTagException; -import org.apache.commons.jelly.TagSupport; -import org.apache.commons.jelly.XMLOutput; - -public abstract class AbstractTransformerTag - extends TagSupport -{ - private String transformer; - - private String transformations; - - public void setTransformations( String transformations ) - { - this.transformations = transformations; - } - - public String getTransformations() - { - return transformations; - } - - public void setTransformer( String transformer ) - { - this.transformer = transformer; - } - - public String getTransformer() - { - return transformer; - } - - public abstract void doTag( XMLOutput output ) - throws JellyTagException; -} diff --git a/release/src/main/org/apache/maven/release/jelly/ReleaseTagLibrary.java b/release/src/main/org/apache/maven/release/jelly/ReleaseTagLibrary.java deleted file mode 100644 index a2cbe909..00000000 --- a/release/src/main/org/apache/maven/release/jelly/ReleaseTagLibrary.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.apache.maven.release.jelly; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.apache.commons.jelly.tags.core.CoreTagLibrary; - -/** - * Release tag library. - * - * @author Jason van Zyl - * @version $Id$ - */ -public class ReleaseTagLibrary - extends CoreTagLibrary -{ - /** - * Create an instance of the {@link ReleaseTagLibrary}, registering related - * tag libraries - */ - public ReleaseTagLibrary() - { - registerTag( "resolve-snapshots", ResolveSnapshotsTag.class ); - registerTag( "increment-snapshot-version", SnapshotVersionTransformerTag.class ); - registerTag( "release-version", VersionTransformerTag.class ); - } -} diff --git a/release/src/main/org/apache/maven/release/jelly/ResolveSnapshotsTag.java b/release/src/main/org/apache/maven/release/jelly/ResolveSnapshotsTag.java deleted file mode 100644 index 0c96d20e..00000000 --- a/release/src/main/org/apache/maven/release/jelly/ResolveSnapshotsTag.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.apache.maven.release.jelly; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.apache.commons.jelly.JellyTagException; -import org.apache.commons.jelly.XMLOutput; -import org.apache.maven.MavenConstants; -import org.apache.maven.project.Project; -import org.apache.maven.release.SnapshotResolver; - -public class ResolveSnapshotsTag - extends AbstractTransformerTag -{ - private SnapshotResolver snapshotResolver; - - public void doTag( XMLOutput output ) - throws JellyTagException - { - Project project = (Project) context.getVariable( MavenConstants.MAVEN_POM ); - - snapshotResolver = new SnapshotResolver(); - snapshotResolver.setProject( project.getFile() ); - snapshotResolver.setVariables( project.getContext().getVariables() ); - snapshotResolver.setOutputFile( project.getFile() ); - - context.setVariable( getTransformer(), snapshotResolver ); - context.setVariable( getTransformations(), snapshotResolver.getTransformations() ); - } -} diff --git a/release/src/main/org/apache/maven/release/jelly/SnapshotVersionTransformerTag.java b/release/src/main/org/apache/maven/release/jelly/SnapshotVersionTransformerTag.java deleted file mode 100644 index b31f44f2..00000000 --- a/release/src/main/org/apache/maven/release/jelly/SnapshotVersionTransformerTag.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.apache.maven.release.jelly; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.apache.commons.jelly.JellyTagException; -import org.apache.commons.jelly.XMLOutput; -import org.apache.maven.MavenConstants; -import org.apache.maven.project.Project; -import org.apache.maven.release.SnapshotVersionTransformer; - -public class SnapshotVersionTransformerTag - extends AbstractTransformerTag -{ - private SnapshotVersionTransformer transformer; - - public void doTag( XMLOutput output ) - throws JellyTagException - { - Project project = (Project) context.getVariable( MavenConstants.MAVEN_POM ); - - transformer = new SnapshotVersionTransformer(); - transformer.setProject( project.getFile() ); - transformer.setVariables( project.getContext().getVariables() ); - transformer.setOutputFile( project.getFile() ); - - context.setVariable( getTransformer(), transformer ); - context.setVariable( getTransformations(), transformer.getTransformations() ); - } -} diff --git a/release/src/main/org/apache/maven/release/jelly/VersionTransformerTag.java b/release/src/main/org/apache/maven/release/jelly/VersionTransformerTag.java deleted file mode 100644 index cf5a7285..00000000 --- a/release/src/main/org/apache/maven/release/jelly/VersionTransformerTag.java +++ /dev/null @@ -1,68 +0,0 @@ -package org.apache.maven.release.jelly; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.apache.commons.jelly.JellyTagException; -import org.apache.commons.jelly.XMLOutput; -import org.apache.maven.MavenConstants; -import org.apache.maven.project.Project; -import org.apache.maven.release.VersionTransformer; - -public class VersionTransformerTag - extends AbstractTransformerTag -{ - private VersionTransformer transformer; - - private String version; - - private String tag; - - public String getVersion() - { - return this.version; - } - - public void setVersion( String version ) - { - this.version = version; - } - - public String getTag() - { - return this.tag; - } - - public void setTag( String tag ) - { - this.tag = tag; - } - - public void doTag( XMLOutput output ) - throws JellyTagException - { - Project project = (Project) context.getVariable( MavenConstants.MAVEN_POM ); - - transformer = new VersionTransformer( version, tag ); - transformer.setProject( project.getFile() ); - transformer.setVariables( project.getContext().getVariables() ); - transformer.setOutputFile( project.getFile() ); - - context.setVariable( getTransformer(), transformer ); - context.setVariable( getTransformations(), transformer.getTransformations() ); - } -} diff --git a/release/src/test-data/test-pom-no-versions.xml b/release/src/test-data/test-pom-no-versions.xml deleted file mode 100644 index 950b1430..00000000 --- a/release/src/test-data/test-pom-no-versions.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - 1.2-SNAPSHOT - - diff --git a/release/src/test-data/test-pom-versions-correct.xml b/release/src/test-data/test-pom-versions-correct.xml deleted file mode 100644 index bd07029f..00000000 --- a/release/src/test-data/test-pom-versions-correct.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - 1.2 - - - - 1.0 - 1.0 - TEST_1_0 - - - 1.2 - 1.2 - TEST_1_2 - - - - diff --git a/release/src/test-data/test-pom-versions-multiple.xml b/release/src/test-data/test-pom-versions-multiple.xml deleted file mode 100644 index da7cf46b..00000000 --- a/release/src/test-data/test-pom-versions-multiple.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - 1.2-SNAPSHOT - - - - 1.0 - 1.0 - TEST_1_0 - - - 1.1 - 1.1 - TEST_1_1 - - - - diff --git a/release/src/test-data/test-pom-versions-overwrite.xml b/release/src/test-data/test-pom-versions-overwrite.xml deleted file mode 100644 index 551c1d7d..00000000 --- a/release/src/test-data/test-pom-versions-overwrite.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - 1.2-SNAPSHOT - - - - 1.0 - 1.0 - TEST_1_0 - - - 1.2 - 1.2 - TEST_1_2 - - - - diff --git a/release/src/test-data/test-pom-versions-tag-match-only.xml b/release/src/test-data/test-pom-versions-tag-match-only.xml deleted file mode 100644 index 91dfbee2..00000000 --- a/release/src/test-data/test-pom-versions-tag-match-only.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - 1.2-SNAPSHOT - - - - 1.2-SNAPSHOT - 1.2-SNAPSHOT - TEST_1_2 - - - - diff --git a/release/src/test-data/test-pom-versions-wrong-order.xml b/release/src/test-data/test-pom-versions-wrong-order.xml deleted file mode 100644 index 33d51671..00000000 --- a/release/src/test-data/test-pom-versions-wrong-order.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - 1.2-SNAPSHOT - - - - 1.1 - 1.1 - TEST_1_1 - - - 1.0 - 1.0 - TEST_1_0 - - - - diff --git a/release/src/test-data/test-pom-versions.xml b/release/src/test-data/test-pom-versions.xml deleted file mode 100644 index d79818f9..00000000 --- a/release/src/test-data/test-pom-versions.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - 1.2-SNAPSHOT - - - - 1.1 - 1.1 - TEST_1_1 - - - - diff --git a/release/src/test-data/test-pom.xml b/release/src/test-data/test-pom.xml deleted file mode 100644 index 92070b8a..00000000 --- a/release/src/test-data/test-pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - A - SNAPSHOT - - - B - SNAPSHOT - - - C - SNAPSHOT - - - - diff --git a/release/src/test/org/apache/maven/release/DummySnapshotResolver.java b/release/src/test/org/apache/maven/release/DummySnapshotResolver.java deleted file mode 100644 index 76db1a08..00000000 --- a/release/src/test/org/apache/maven/release/DummySnapshotResolver.java +++ /dev/null @@ -1,74 +0,0 @@ -package org.apache.maven.release; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import org.dom4j.Node; - -/** - * This is a simple POM manipulator that doesn't take into account any sort of - * POM inheritance. When the interpolation and inheritance is cleaned up in the - * Maven we will be able to serialize a POM directly with greater ease. But we - * may stick with this Jaxen solution anyway because it's so easy. Just turn the - * POM in memory into a Dom4j document and perform the same operation as we are - * here. - */ -public class DummySnapshotResolver - extends AbstractPomTransformer -{ - // ------------------------------------------------------------------------- - // Accessors - // ------------------------------------------------------------------------- - - public String selectNodesXPathExpression() - { - return "/project/dependencies/dependency[version='SNAPSHOT']"; - } - - public String selectNodeXPath() - { - return "version"; - } - - public String getNodeContent( Node node ) - throws Exception - { - return "NON-SNAPSHOT"; - } - - public void transformNode( Node node ) - throws Exception - { - // Now with our xpath expression we have the whole - // element and we want to alter the element. - Node version = node.selectSingleNode( selectNodeXPath() ); - version.setText( getNodeContent( node ) ); - } - - public Node getTransformedNode( Node node ) - throws Exception - { - // Now with our xpath expression we have the whole - // element and we want to alter the element. - Node version = node.selectSingleNode( selectNodeXPath() ); - Node transformedNode = (Node) version.clone(); - transformedNode.setText( getNodeContent( node ) ); - - return transformedNode; - } - -} diff --git a/release/src/test/org/apache/maven/release/SnapshotResolverTest.java b/release/src/test/org/apache/maven/release/SnapshotResolverTest.java deleted file mode 100644 index bd963e29..00000000 --- a/release/src/test/org/apache/maven/release/SnapshotResolverTest.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.apache.maven.release; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import java.io.File; -import java.util.List; - -import junit.framework.TestCase; - -import org.dom4j.Node; - -/** - */ -public class SnapshotResolverTest - extends TestCase -{ - - /** - * Constructor. - * - * @param name Name of the test. - */ - public SnapshotResolverTest( String name ) - { - super( name ); - } - - public void testBasic() - throws Exception - { - DummySnapshotResolver sr = new DummySnapshotResolver(); - sr.setProject( new File( getClass().getResource( "/test-pom.xml" ).getFile() ) ); - sr.transformNodes(); - sr.write(); - - List nodes = sr.getDocument().selectNodes( "/project/dependencies/dependency" ); - - assertEquals( 3, nodes.size() ); - - assertEquals( "NON-SNAPSHOT", ( (Node) nodes.get( 0 ) ).selectSingleNode( "version" ).getText() ); - assertEquals( "NON-SNAPSHOT", ( (Node) nodes.get( 1 ) ).selectSingleNode( "version" ).getText() ); - assertEquals( "NON-SNAPSHOT", ( (Node) nodes.get( 2 ) ).selectSingleNode( "version" ).getText() ); - } -} diff --git a/release/src/test/org/apache/maven/release/VersionTransformerTest.java b/release/src/test/org/apache/maven/release/VersionTransformerTest.java deleted file mode 100644 index fc089dd3..00000000 --- a/release/src/test/org/apache/maven/release/VersionTransformerTest.java +++ /dev/null @@ -1,300 +0,0 @@ -package org.apache.maven.release; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * 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. - * ==================================================================== - */ - -import junit.framework.TestCase; - -import java.io.File; - -import java.util.List; - -import org.dom4j.Node; - -/** - */ -public class VersionTransformerTest - extends TestCase -{ - /** - * Constructor. - * - * @param name Name of the test. - */ - public VersionTransformerTest( String name ) - { - super( name ); - } - - public void testNoVersions() - throws Exception - { - VersionTransformer vt = new VersionTransformer( "1.2", "TEST_1_2" ); - vt.setProject( getTestFile( "test-pom-no-versions.xml" ) ); - - assertTrue( "check transform required", vt.transformRequired() ); - - vt.transformNodes(); - vt.write(); - - List nodes = vt.getDocument().selectNodes( "/project" ); - - assertEquals( 1, nodes.size() ); - - Node project = (Node) nodes.get( 0 ); - - assertEquals( "Check currentVersion is 1.2", "1.2", project.selectSingleNode( "currentVersion" ).getText() ); - - List versionNodes = project.selectNodes( "versions/version" ); - - assertEquals( "Check # versions is 1", 1, versionNodes.size() ); - - Node version = (Node) versionNodes.get( 0 ); - - assertEquals( "Check version id is 1.2", "1.2", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.2", "1.2", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_2", "TEST_1_2", version.selectSingleNode( "tag" ).getText() ); - } - - public void testOneVersion() - throws Exception - { - VersionTransformer vt = new VersionTransformer( "1.2", "TEST_1_2" ); - vt.setProject( getTestFile( "test-pom-versions.xml" ) ); - - assertTrue( "check transform required", vt.transformRequired() ); - - vt.transformNodes(); - vt.write(); - - List nodes = vt.getDocument().selectNodes( "/project" ); - - assertEquals( 1, nodes.size() ); - - Node project = (Node) nodes.get( 0 ); - - assertEquals( "Check currentVersion is 1.2", "1.2", project.selectSingleNode( "currentVersion" ).getText() ); - - List versionNodes = project.selectNodes( "versions/version" ); - - assertEquals( "Check # versions is 2", 2, versionNodes.size() ); - - Node version = (Node) versionNodes.get( 0 ); - - assertEquals( "Check version id is 1.1", "1.1", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.1", "1.1", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_1", "TEST_1_1", version.selectSingleNode( "tag" ).getText() ); - - version = (Node) versionNodes.get( 1 ); - - assertEquals( "Check version id is 1.2", "1.2", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.2", "1.2", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_2", "TEST_1_2", version.selectSingleNode( "tag" ).getText() ); - } - - public void testMultipleVersions() - throws Exception - { - VersionTransformer vt = new VersionTransformer( "1.2", "TEST_1_2" ); - vt.setProject( getTestFile( "test-pom-versions-multiple.xml" ) ); - - assertTrue( "check transform required", vt.transformRequired() ); - - vt.transformNodes(); - vt.write(); - - List nodes = vt.getDocument().selectNodes( "/project" ); - - assertEquals( 1, nodes.size() ); - - Node project = (Node) nodes.get( 0 ); - - assertEquals( "Check currentVersion is 1.2", "1.2", project.selectSingleNode( "currentVersion" ).getText() ); - - List versionNodes = project.selectNodes( "versions/version" ); - - assertEquals( "Check # versions is 3", 3, versionNodes.size() ); - - Node version = (Node) versionNodes.get( 0 ); - - assertEquals( "Check version id is 1.0", "1.0", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.0", "1.0", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_0", "TEST_1_0", version.selectSingleNode( "tag" ).getText() ); - - version = (Node) versionNodes.get( 1 ); - - assertEquals( "Check version id is 1.1", "1.1", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.1", "1.1", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_1", "TEST_1_1", version.selectSingleNode( "tag" ).getText() ); - - version = (Node) versionNodes.get( 2 ); - - assertEquals( "Check version id is 1.2", "1.2", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.2", "1.2", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_2", "TEST_1_2", version.selectSingleNode( "tag" ).getText() ); - } - - public void testMultipleVersionsWrongOrder() - throws Exception - { - VersionTransformer vt = new VersionTransformer( "1.2", "TEST_1_2" ); - vt.setProject( getTestFile( "test-pom-versions-wrong-order.xml" ) ); - - assertTrue( "check transform required", vt.transformRequired() ); - - vt.transformNodes(); - vt.write(); - - List nodes = vt.getDocument().selectNodes( "/project" ); - - assertEquals( 1, nodes.size() ); - - Node project = (Node) nodes.get( 0 ); - - assertEquals( "Check currentVersion is 1.2", "1.2", project.selectSingleNode( "currentVersion" ).getText() ); - - List versionNodes = project.selectNodes( "versions/version" ); - - assertEquals( "Check # versions is 3", 3, versionNodes.size() ); - - Node version = (Node) versionNodes.get( 0 ); - - assertEquals( "Check version id is 1.1", "1.1", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.1", "1.1", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_1", "TEST_1_1", version.selectSingleNode( "tag" ).getText() ); - - version = (Node) versionNodes.get( 1 ); - - assertEquals( "Check version id is 1.0", "1.0", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.0", "1.0", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_0", "TEST_1_0", version.selectSingleNode( "tag" ).getText() ); - - version = (Node) versionNodes.get( 2 ); - - assertEquals( "Check version id is 1.2", "1.2", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.2", "1.2", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_2", "TEST_1_2", version.selectSingleNode( "tag" ).getText() ); - } - - public void testVersionsOverwrite() - throws Exception - { - VersionTransformer vt = new VersionTransformer( "1.2", "TEST_1_2" ); - vt.setProject( getTestFile( "test-pom-versions-overwrite.xml" ) ); - - assertTrue( "check transform required", vt.transformRequired() ); - - vt.transformNodes(); - vt.write(); - - List nodes = vt.getDocument().selectNodes( "/project" ); - - assertEquals( 1, nodes.size() ); - - Node project = (Node) nodes.get( 0 ); - - assertEquals( "Check currentVersion is 1.2", "1.2", project.selectSingleNode( "currentVersion" ).getText() ); - - List versionNodes = project.selectNodes( "versions/version" ); - - assertEquals( "Check # versions is 2", 2, versionNodes.size() ); - - Node version = (Node) versionNodes.get( 0 ); - - assertEquals( "Check version id is 1.0", "1.0", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.0", "1.0", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_0", "TEST_1_0", version.selectSingleNode( "tag" ).getText() ); - - version = (Node) versionNodes.get( 1 ); - - assertEquals( "Check version id is 1.2", "1.2", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.2", "1.2", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_2", "TEST_1_2", version.selectSingleNode( "tag" ).getText() ); - } - - public void testVersionsCorrect() - throws Exception - { - VersionTransformer vt = new VersionTransformer( "1.2", "TEST_1_2" ); - vt.setProject( getTestFile( "test-pom-versions-correct.xml" ) ); - - assertFalse( "check transform not required", vt.transformRequired() ); - - vt.transformNodes(); - vt.write(); - - List nodes = vt.getDocument().selectNodes( "/project" ); - - assertEquals( 1, nodes.size() ); - - Node project = (Node) nodes.get( 0 ); - - assertEquals( "Check currentVersion is 1.2", "1.2", project.selectSingleNode( "currentVersion" ).getText() ); - - List versionNodes = project.selectNodes( "versions/version" ); - - assertEquals( "Check # versions is 2", 2, versionNodes.size() ); - - Node version = (Node) versionNodes.get( 0 ); - - assertEquals( "Check version id is 1.0", "1.0", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.0", "1.0", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_0", "TEST_1_0", version.selectSingleNode( "tag" ).getText() ); - - version = (Node) versionNodes.get( 1 ); - - assertEquals( "Check version id is 1.2", "1.2", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.2", "1.2", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_2", "TEST_1_2", version.selectSingleNode( "tag" ).getText() ); - } - - public void testVersionsTagMatchOnly() - throws Exception - { - VersionTransformer vt = new VersionTransformer( "1.2", "TEST_1_2" ); - vt.setProject( getTestFile( "test-pom-versions-tag-match-only.xml" ) ); - - assertTrue( "check transform required", vt.transformRequired() ); - - vt.transformNodes(); - vt.write(); - - List nodes = vt.getDocument().selectNodes( "/project" ); - - assertEquals( 1, nodes.size() ); - - Node project = (Node) nodes.get( 0 ); - - assertEquals( "Check currentVersion is 1.2", "1.2", project.selectSingleNode( "currentVersion" ).getText() ); - - List versionNodes = project.selectNodes( "versions/version" ); - - assertEquals( "Check # versions is 1", 1, versionNodes.size() ); - - Node version = (Node) versionNodes.get( 0 ); - - assertEquals( "Check version id is 1.2", "1.2", version.selectSingleNode( "id" ).getText() ); - assertEquals( "Check version name is 1.2", "1.2", version.selectSingleNode( "name" ).getText() ); - assertEquals( "Check version tag is TEST_1_2", "TEST_1_2", version.selectSingleNode( "tag" ).getText() ); - } - - private File getTestFile( String filename ) - { - return new File( getClass().getResource( "/" + filename ).getFile() ); - } - -} diff --git a/release/xdocs/changes.xml b/release/xdocs/changes.xml deleted file mode 100644 index 2fd079c1..00000000 --- a/release/xdocs/changes.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - Changes - Jason van Zyl - dIon Gillard - - - - The encoding of the project.xml file is not preserved after doing release:transform. - handle non-jar dependencies - Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : -
    -
  • maven v1.0-rc2 -> v1.0.2
  • -
  • dom4j v1.4-dev-8 -> v1.4
  • -
  • commons-jelly v1.0-beta-4 -> v1.0
  • -
  • xml-apis v 1.0.b2 -> xmlParserAPIs v2.6.2
  • -
-
- Handle poms with a namespace -
- - Close output file in AbstractPomTransformer.write() - - - Build and run plugin against the installed version of Maven - Code cleanup - remove unused imports - - - Fix issues with DOM classes and jdk1.3 - Change deploy:pom goal to pom:deploy goal - - - Add POM transformer that updates currentVersion and the <versions/> element with a specified version and tag. - Applied patch. - - - update to commons-jelly-20030902.160215 - Upgrade to dom4j 1.4, maven 1.0-beta-10 - - -
diff --git a/release/xdocs/goals.xml b/release/xdocs/goals.xml deleted file mode 100644 index c5265888..00000000 --- a/release/xdocs/goals.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - Maven Release Plug-in Goals - - - - - convert-snapshots - - - - - convert-snapshots-auto - - - - - increment-snapshot-version - - - - - release - - - - - release:build-distribution-bin - - Builds binary distribution. Uses maven.release.distribution.categories property - to separated dependencies in categories and corresponding distribution directories. - Users can postGoal release:setup-distribution-bin with custom additional - distribution content. - - - - release:build-distribution-src - - Builds source distribution from source control using SCM plugin. - - - - release:deploy-distribution-bin - - Deploys binary distribution built via release:build-distribution-bin - - - - release:deploy-distribution-src - - Deploys source distribution built via release:build-distribution-src - - - - validate-pom-for-release - - - - - - \ No newline at end of file diff --git a/release/xdocs/index.xml b/release/xdocs/index.xml deleted file mode 100644 index 777f3a8a..00000000 --- a/release/xdocs/index.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - Maven Release Plug-in - Jason van Zyl - - - -
-

This plugin is deprecated.

-

- This plug-in provides some basic help with releases. -

-
- -
diff --git a/release/xdocs/navigation.xml b/release/xdocs/navigation.xml deleted file mode 100644 index 3b1fea1f..00000000 --- a/release/xdocs/navigation.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - Maven Release Plug-in - - - - - - - - - - - - - - - - - - - - diff --git a/release/xdocs/properties.xml b/release/xdocs/properties.xml deleted file mode 100644 index 9abcb72d..00000000 --- a/release/xdocs/properties.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - Maven Release Plug-in Properties - - -
- - - - - - - - - - - - - - - - - - - - - -
PropertyOptional?Description
maven.release.name.binYesThe name of the binary release file. - Defaults to ${pom.artifactId}-${pom.currentVersion}-bin
maven.release.name.srcYesThe name of the source release file. - Defaults to ${pom.artifactId}-${pom.currentVersion}-src
maven.release.distribution.categoriesYesThe categories and relative paths of the dependencies to - be included in the release. A list of category:path - pairs, eg shared:lib,tools:tools/lib, where the - category is set via dependency properties: - - [groupId] - [artifactId] - [version] - - shared - - - - [anotherGroupId] - [anotherArtifactId] - [anotherVersion] - - tools - - -]]> -
-
- -
\ No newline at end of file diff --git a/repository/plugin.jelly b/repository/plugin.jelly deleted file mode 100644 index 9996b54a..00000000 --- a/repository/plugin.jelly +++ /dev/null @@ -1,463 +0,0 @@ - - - - - - - - - - - - - - - Executing '${command}' remotely - - - - - - - - - - - - - - - - - Copying '${fromFile.canonicalFile.name}' in '${fromFile.canonicalFile.parent}' to directory '${toFileOrDir}' - - - - - - - - - - - ${systemScope['java.io.tmpdir']}${fileName} - - - - - - - - - - - - Setting permissions and group ownership in ${directory}' - - cd ${directory}; - rm ${groupId}.license; - ln -s ${fileName} ${groupId}.license; - chmod -R g+w,a+r ${fileName}; - chgrp -R ${group} *; - - - - - - - - DEPRECATED: please use maven.remote.group instead of maven.repository.group - - - - - - - ${url} - ${preQuery[0]} - ${preHash[0]} - - - - - - - ${file} - ${jarDotBits[size(jarDotBits)-1]} - - - - - - - - - - - - - - - - - - - - - - - - - ${context.getAntProject().getReferences().get('maven.compile.src.set')} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Processing project ${group.text} - - - - - - - Ensuring directory '${directory}' exists - - - - - - - - - - - - - - - - - - - Processing project ${group} - - - - - - - - - - - - - - - - - - - - - - - - - - Processing project ${group} - - - - - - - - - - - - cd ${directory}; - ln -s ${fileName} ${group}.license; - - - - - - - - - - - - - - - - - Copying license for ${group} - - - - - - - - - - - - - - - - - - - - - - Creating pom for ${group} - - - - - - - - - - - - - - - - - - Creating pom for ${group} - - - - - - - - - - - - - - - - - - cd ${maven.repo.central.directory}; - mkdir ${groupId}; - chgrp ${group} ${groupId}; - chmod g+s ${groupId}; - mkdir ${groupId}/distributions; - mkdir ${groupId}/jars; - mkdir ${groupId}/licenses; - mkdir ${groupId}/poms; - chmod g+ws ${groupId}; - chmod -R g+w,a+r ${groupId}; - - - - - - - - - - cd ${maven.repo.central.directory}; - rm -rf ${groupId}; - - - - - - - - - - - ${groupId} - - - - snapshotVersion = '${snapshotVersion}' - - - - - - - ${artifactFile.canonicalFile.name} - - Setting up SNAPSHOT entries - - - cd ${directory}; - ln -sf ${artifactName} ${artifactId}-SNAPSHOT.jar; - ln -sf ${artifactName}.md5 ${artifactId}-SNAPSHOT.jar.md5; - echo ${snapshotVersion} | tee ${artifactId}-snapshot-version; - chgrp ${group} ${artifactId}-SNAPSHOT.jar*; - chmod g+w,a+r ${artifactId}-SNAPSHOT.jar*; - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${artifactFile.canonicalFile.name} - - - cd ${directory}; - md5sum ${artifactName} | sed 's/ .*$//' | tee ${artifactName}.md5; - chgrp ${group} *; - chmod g+w,a+r *; - - - - diff --git a/repository/project.properties b/repository/project.properties deleted file mode 100644 index d66f96c3..00000000 --- a/repository/project.properties +++ /dev/null @@ -1,19 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- diff --git a/repository/project.xml b/repository/project.xml deleted file mode 100644 index d1b21857..00000000 --- a/repository/project.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - ../plugins-parent/project.xml - 3 - maven-repository-plugin - Maven Repository Plugin - 1.3-SNAPSHOT - Tools to work with the central repo - http://jira.codehaus.org/browse/MPREPO - - - dIon Gillard - dion - dion@apache.org - Apache Software Foundation - - Java Developer - - - - - - - - commons-jelly - commons-jelly-tags-util - 1.1.1 - http://jakarta.apache.org/commons/jelly/libs/util/ - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - commons-jelly - commons-jelly-tags-xml - 1.1 - http://jakarta.apache.org/commons/jelly/libs/xml/ - - This library is already loaded by maven's core. Be careful to use the same version number as in the core. - - - - - - 1.1 - 1.1 - MAVEN_REPOSITORY_1_1 - - - 1.2 - 1.2 - MAVEN_REPOSITORY_1_2 - - - diff --git a/repository/src/plugin-resources/pom-template.jelly b/repository/src/plugin-resources/pom-template.jelly deleted file mode 100644 index ec7bef9f..00000000 --- a/repository/src/plugin-resources/pom-template.jelly +++ /dev/null @@ -1,37 +0,0 @@ - - - - 3 - ${groupId} - ${groupId} - - - - - - ${url} - - - - ${xfile} - ${comments} - - - - \ No newline at end of file diff --git a/repository/src/plugin-resources/repository-audit.xml b/repository/src/plugin-resources/repository-audit.xml deleted file mode 100644 index 3c178c1c..00000000 --- a/repository/src/plugin-resources/repository-audit.xml +++ /dev/null @@ -1,1756 +0,0 @@ - - - - - - - - aelfred - http://users.iclway.co.uk/mhkay/saxon/saxon6.4/conditions.html - - - Can't find file. - AElfred is free for both commercial and non-commercial use and - redistribution, provide that Microstar's copyright and disclaimer - are retained intact. You are free to modify AElfred for your own use and - to redistribute AElfred with your modifications, provider that the - modifications are clearly documented. - - - - - andromda - http://sourceforge.net/projects/andromda - http://cvs.sourceforge.net/viewcvs.py/*checkout*/andromda/andromda/LICENSE - BSD - - - - ant-contrib - http://sourceforge.net/projects/ant-contrib - http://ant-contrib.sourceforge.net/ant-contrib/manual/LICENSE.txt - - - - - ant - http://ant.apache.org - http://cvs.apache.org/viewcvs.cgi/*checkout*/ant/LICENSE - - - - - antlr - http://www.antlr.org/ - - public domain - - - - anttex - http://ls10-www.informatik.uni-dortmund.de/~alfert/ant-extension/ - - listed as free on theiweb site - - - - aptconvert - http://www.xmlmind.com/aptconvert.html - http://www.xmlmind.com/aptconvert/distrib/LGPL.txt - LGPL license - - - - aspectj - http://www.eclipse.org/aspectj/index.html - http://eclipse.org/legal/cpl-v10.html - Use to be Mozilla public license - - - - avalon-apps - http://avalon.apache.org - http://avalon.apache.org/license.html - - - - - avalon-cornerstone - http://avalon.apache.org - http://avalon.apache.org/license.html - - - - - avalon-framework - http://avalon.apache.org - http://avalon.apache.org/license.html - - - - - avalon-phoenix - http://avalon.apache.org - http://avalon.apache.org/license.html - - - - - axion - http://axion.tigris.org/ - http://axion.tigris.org/unbranded-source/browse/~checkout~/axion/LICENSE.txt - ASL-style - - - - axis - http://ws.apache.org/axis/ - http://cvs.apache.org/viewcvs/*checkout*/xml-axis/LICENSE - - - - - batik - http://xml.apache.org/batik/ - http://xml.apache.org/batik/license.html - - - - - bcel - http://jakarta.apache.org/bcel/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-bcel/LICENSE.txt - - - - - blissed - http://blissed.werken.com - http://cvs.werken.com/viewcvs.cgi/*checkout*/blissed/LICENSE.txt?cvsroot=blissed - ASL-style. Most werken jars contain the LICENSE.txt file - - - - bouncycastle - http://www.bouncycastle.org/ - http://www.bouncycastle.org/license.html - Must reproduce copyright - - - - bsf - http://jakarta.apache.org/bsf/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-bsf/src/bsf-2.3/license.txt - - - - - bsh - http://www.beanshell.org/ - http://www.beanshell.org/license.html - LGPL or Sun Public License, - see see http://www.sun.com/developers/spl.html. - - - - - cactus - http://jakarta.apache.org/cactus/ - http://jakarta.apache.org/cactus/license.html - - - - - castor - http://castor.exolab.org/ - http://castor.exolab.org/license.txt - asl-style - - - - checkstyle - http://sourceforge.net/projects/checkstyle/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/checkstyle/checkstyle/LICENSE - LGPL v2 - - - - classworlds - http://classworlds.werken.com/ - - in the jar jar://!META-INF/LICENSE.txt - - - - clover - http://www.thecortex.net/clover/ - - custom, specially done for maven - - - - commons-beanutils - http://jakarta.apache.org/commons/beanutils.html - http://jakarta.apache.org/commons/license.html - - - - - commons-betwixt - http://jakarta.apache.org/commons/betwixt/ - http://jakarta.apache.org/commons/license.html - - - - - commons-cli - http://jakarta.apache.org/commons/cli/ - http://jakarta.apache.org/commons/license.html - - - - - commons-codec - http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/codec/ - http://jakarta.apache.org/commons/license.html - - - - - commons-collections - http://jakarta.apache.org/commons/collections.html - http://jakarta.apache.org/commons/license.html - - - - - commons-configuration - http://jakarta.apache.org/commons/sandbox/configuration/ - http://jakarta.apache.org/commons/license.html - - - - - commons-daemon - http://jakarta.apache.org/commons/sandbox/daemon/ - http://jakarta.apache.org/commons/license.html - - - - - commons-dbcp - http://jakarta.apache.org/commons/dbcp.html - http://jakarta.apache.org/commons/license.html - - - - - commons-digester - http://jakarta.apache.org/commons/digester.html - http://jakarta.apache.org/commons/license.html - - - - - commons-discovery - http://jakarta.apache.org/commons/discovery.html - http://jakarta.apache.org/commons/license.html - - - - - commons-email - http://jakarta.apache.org/commons/sandbox/email/ - http://jakarta.apache.org/commons/license.html - - - - - commons-fileupload - http://jakarta.apache.org/commons/fileupload/ - http://jakarta.apache.org/commons/license.html - - - - - commons-grant - http://jakarta.apache.org/commons/sandbox/grant/ - http://jakarta.apache.org/commons/license.html - - - - - commons-graph - http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/graph2/ - http://jakarta.apache.org/commons/license.html - - - - - commons-http - http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/http/ - http://jakarta.apache.org/commons/license.html - - - - - commons-http - http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/http/ - http://jakarta.apache.org/commons/license.html - - - - - commons-httpclient - http://jakarta.apache.org/commons/httpclient/ - http://jakarta.apache.org/commons/license.html - - - - - commons-io - http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/io/ - http://jakarta.apache.org/commons/license.html - - - - - commons-jdbc2pool - http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/jdbc2pool/ - http://jakarta.apache.org/commons/license.html - project has been deleted - - - - commons-jelly - http://jakarta.apache.org/commons/jelly/ - http://jakarta.apache.org/commons/license.html - - - - - commons-jexl - http://jakarta.apache.org/commons/jexl.html - http://jakarta.apache.org/commons/license.html - - - - - commons-jux - http://cvs.apache.org/viewcvs.cgi/jakarta-commons-sandbox/jux/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-commons-sandbox/jux/LICENSE.txt - - - - - commons-jxpath - http://jakarta.apache.org/commons/jxpath/ - http://jakarta.apache.org/commons/license.html - - - - - commons-lang - http://jakarta.apache.org/commons/lang.html - http://jakarta.apache.org/commons/license.html - - - - - commons-latka - http://jakarta.apache.org/commons/latka/ - http://jakarta.apache.org/commons/license.html - - - - - commons-logging - http://jakarta.apache.org/commons/logging.html - http://jakarta.apache.org/commons/license.html - - - - - commons-messenger - http://jakarta.apache.org/commons/sandbox/messenger/ - http://jakarta.apache.org/commons/license.html - - - - - commons-modeler - http://jakarta.apache.org/commons/modeler.html - http://jakarta.apache.org/commons/license.html - - - - - commons-net - http://jakarta.apache.org/commons/sandbox/net/ - http://jakarta.apache.org/commons/license.html - url will change as move out of sandbox is due - - - - commons-pool - http://jakarta.apache.org/commons/pool.html - http://jakarta.apache.org/commons/license.html - url will change as move out of sandbox is due - - - - commons-resources - http://jakarta.apache.org/commons/sandbox/resources/ - http://jakarta.apache.org/commons/license.html - url will change as move out of sandbox is due - - - - commons-sql - http://jakarta.apache.org/commons/sandbox/sql/ - http://jakarta.apache.org/commons/license.html - Moving to db.apache.org? - - - - commons-threadpool - http://jakarta.apache.org/commons/sandbox/threadpool/ - http://jakarta.apache.org/commons/license.html - Moving to db.apache.org? - - - - commons-util - http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/util/ - http://jakarta.apache.org/commons/license.html - closed project as of early feb - - - - commons-validator - http://jakarta.apache.org/commons/validator/ - http://jakarta.apache.org/commons/license.html - - - - - commons-validator - http://jakarta.apache.org/commons/validator/ - http://jakarta.apache.org/commons/license.html - - - - - commons-xo - http://jakarta.apache.org/commons/sandbox/xo/ - http://jakarta.apache.org/commons/license.html - - - - - concurrent - http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html - - Public domain - - - - crimson - http://xml.apache.org/crimson/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-crimson/LICENSE - - - - - crossdb - http://sourceforge.net/projects/crossdb/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/crossdb/crossdb/LICENSE.txt - ASL style - - - - cryptix - http://www.cryptix.org/index.html - http://www.cryptix.org/docs/license.html - Berkeley License - - - - dbunit - http://dbunit.sourceforge.net/ - http://www.gnu.org/licenses/lgpl.txt - LGPL as specified by http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/dbunit/dbunit/dbunit-license.txt - - - - dnsjava - http://sourceforge.net/projects/dnsjava/ - http://www.gnu.org/licenses/lgpl.txt - LGPL - - - - dom4j - http://www.dom4j.org/ - http://www.dom4j.org/license.html - bsd style - - - - drools - http://drools.werken.com/ - http://drools.werken.com/license.html - license in jar - - - - dtdparser - http://www.wutka.com/dtdparser.html - http://www.gnu.org/licenses/lgpl.txt - http://www.wutka.com/dtdparserlicense.html describes the license - - - - easymock - http://www.easymock.org/ - http://www.easymock.org/License.html - MIT - - - - eclipse - http://www.eclipse.org/ - http://www.eclipse.org/legal/cpl-v10.html - IBM CPL - - - - ecs - http://jakarta.apache.org/ecs/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-ecs/COPYING - - - - - edtftp - http://www.enterprisedt.com/downloads/ftp.html - http://www.enterprisedt.com/downloads/ftp.html - LGPL - The download contains the license in doc/LICENSE.TXT - - - - excalibur-altrmi - http://jakarta.apache.org/avalon/excalibur/altrmi/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-collections - http://jakarta.apache.org/avalon/excalibur/collections/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-component - http://cvs.apache.org/viewcvs.cgi/avalon-excalibur/component/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - No home page! - - - - excalibur-concurrent - http://jakarta.apache.org/avalon/excalibur/concurrent/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-configuration - http://jakarta.apache.org/avalon/excalibur/configuration/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-containerkit - http://cvs.apache.org/viewcvs.cgi/avalon-excalibur/containerkit/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - No home page. Deleted project by the looks - - - - excalibur-datasource - http://cvs.apache.org/viewcvs.cgi/avalon-excalibur/datasource/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - No home page. - - - - excalibur-event - http://cvs.apache.org/viewcvs.cgi/avalon-excalibur/event/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - No home page. - - - - excalibur-fortress - http://jakarta.apache.org/avalon/excalibur/fortress/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-i18n - http://jakarta.apache.org/avalon/excalibur/i18n/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-instrument-manager-interfaces - http://jakarta.apache.org/avalon/excalibur/instrument/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-instrument-manager - http://jakarta.apache.org/avalon/excalibur/instrument/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-instrument - http://jakarta.apache.org/avalon/excalibur/instrument/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-io - http://jakarta.apache.org/avalon/excalibur/io/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-logger - http://jakarta.apache.org/avalon/excalibur/logger/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-monitor - http://jakarta.apache.org/avalon/excalibur/monitor/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-pool - http://jakarta.apache.org/avalon/excalibur/pool/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-sourceresolve - http://jakarta.apache.org/avalon/excalibur/sourceresolve/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-thread - http://jakarta.apache.org/avalon/excalibur/thread/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - excalibur-util - http://jakarta.apache.org/avalon/excalibur/util/index.html - http://cvs.apache.org/viewcvs.cgi/*checkout*/avalon-excalibur/LICENSE.txt - - - - - exml - http://www.themindelectric.com/exml/ - http://www.themindelectric.com/exml/licensing.html - Custom license - - - - fesi - http://home.worldcom.ch/~jmlugrin/fesi/ - http://www.gnu.org/licenses/lgpl.txt - LGPL and supposedly in the distrib - - - - findbugs - http://www.cs.umd.edu/~pugh/java/bugs/ - http://www.gnu.org/licenses/lgpl.txt - LGPL - - - - flux - http://cvs.apache.org/viewcvs/jakarta-turbine-flux/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-turbine-3/LICENSE.txt - Seems dead? - - - - fop - http://xml.apache.org/fop/ - http://xml.apache.org/fop/license.html - - - - - forehead - http://forehead.werken.com/ - http://cvs.werken.com/viewcvs.cgi/*checkout*/forehead/LICENSE.txt?cvsroot=forehead - - - - - foxtrot - http://foxtrot.sourceforge.net/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/foxtrot/foxtrot/src/etc/LICENSE - bsd style - - - - freebxml - http://www.freebxml.org/ - http://www.opensource.org/licenses/afl-1.2.txt - Academic Free License - - - - freemarker - http://freemarker.org/index.html - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/freemarker/freemarker/LICENSE.txt - BSD Style - - - - fulcrum - http://jakarta.apache.org/turbine/fulcrum/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-turbine-fulcrum/LICENSE.txt - - - - - genjar - http://sourceforge.net/projects/genjar/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/genjar/genjar/docs/License - ASL style - - - - gnu-regexp - http://www.cacas.org/java/gnu/regexp/ - http://www.gnu.org/licenses/lgpl.txt - - - - - graphlayout - http://sourceforge.net/projects/touchgraph/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/touchgraph/src/TG-APACHE-LICENSE.txt - asl style - - - - hibernate - http://hibernate.sourceforge.net/ - http://www.gnu.org/licenses/lgpl.txt - - - - - hsqldb - http://hsqldb.sourceforge.net/ - http://hsqldb.sourceforge.net/web/hsqlLicense.html - BSD Style - - - - httpunit - http://httpunit.sourceforge.net/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/httpunit/httpunit/doc/license.html - License in the CVS repository. MIT style license. - - - - isorelax - http://iso-relax.sourceforge.net/ - - License in the jar file - - - - itext - http://www.lowagie.com/iText/ - http://www.lowagie.com/iText/lgpl.txt - License in the jar file - - - - jalopy - http://jalopy.sourceforge.net/ - http://jalopy.sourceforge.net/license-bsd.html - BSD style - - - - java2html - http://www.java2html.com/ - http://www.vaegar.f9.co.uk/java2html.html#License - - - - - javacc - http://www.webgain.com/products/java_cc - http://www.webgain.com/java_cc_web_sla.html - Free - - - - javagroups - http://www.javagroups.com - http://www.javagroups.com/javagroupsnew/docs/license.html - LGPL - - - - javahelp - http://java.sun.com/products/javahelp/ - - Sun BCL - - - - jaxen - http://jaxen.sourceforge.net/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/jaxen/jaxen/LICENSE.txt - ASL Style - - - - jaxm - http://java.sun.com/xml/jaxm/index.html - - - No standalone download. Sun BCL as part of the web services - developer pack - - - - - jaxp - http://java.sun.com/xml/jaxp/index.html - - - No standalone download. Sun BCL as part of the web services - developer pack - - - - - jaxrpc - http://java.sun.com/xml/jaxrpc/index.html - - - No standalone download. Sun BCL as part of the web services - developer pack - - - - - jboss - http://www.jboss.org/ - http://www.gnu.org/licenses/lgpl.txt - - LGPL, however javassist is MPL licensed too, see - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/jboss/javassist/License.html?rev=HEAD&content-type=text/html - - - - - jca - http://java.sun.com/j2ee/connector/ - - Sun BCL - - - - jce - http://java.sun.com/products/jce/ - - Sun BCL - - - - jcifs - http://www.norbert.hranitzky.com/jcifs/jcifs.htm - http://www.gnu.org/copyleft/lesser.txt - - - - - jcommon - http://www.object-refinery.com/jcommon/index.html - http://www.object-refinery.com/lgpl.html - - - - - jcoverage - http://www.jcoverage.com/products/jcoverage/readme.html - http://www.jcoverage.com/products/jcoverage/gpl.html - GPL - - - - - jcs-javagroups - http://jakarta.apache.org/turbine/jcs/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-turbine-jcs/LICENSE.txt - - - - - jcs - http://jakarta.apache.org/turbine/jcs/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-turbine-jcs/LICENSE.txt - ASL - - - - jcvsii - http://www.gjt.org/pkgdoc/com/ice/jcvsii/ - http://www.gnu.org/copyleft/gpl.txt - - - - - jdbc - http://java.sun.com/products/jdbc/ - - Sun BCL - - - - jdbm - http://jdbm.sourceforge.net/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/jdbm/jdbm/LICENSE.txt - BSD style - - - - jdepend - http://www.clarkware.com/software/JDepend.html - http://www.clarkware.com/software/license.txt - BSD style - - - - jdiff - http://javadiff.sourceforge.net/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/javadiff/jdiff/LICENSE.txt - LGPL - - - - jdo - http://java.sun.com/products/jdo/ - - SCSL - - - - jdom - http://www.jdom.org/ - - - ASL. Was here http://cvs.jdom.org/cgi-bin/viewcvs.cgi/jdom/LICENSE.txt - Now missing. Checked out from cvs and deployed - - - - - jdring - http://webtools.dyade.fr/jdring/ - http://www.gnu.org/copyleft/lesser.txt - L/GPL - - - - jetty - http://jetty.mortbay.org/jetty/index.html - http://jetty.mortbay.org/jetty/LICENSE.html - based on artistic license - - - - jfreechart - http://www.object-refinery.com/jfreechart/index.html - http://www.object-refinery.com/lgpl.html - LGPL - - - - jgen - http://www.flashgap.com/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/jgen/jgen/LICENSE - BSD style - - - - jgraph - http://jgraph.sourceforge.net/jgraph.html - http://jgraph.sourceforge.net/jgraphlicense.html - LGPL - - - - jisp - http://www.coyotegulch.com/algorithm/jisp/ - http://www.coyotegulch.com/algorithm/jisp/ - Scott's Very Free License, based on license of libpng - - - - jms - http://java.sun.com/products/jms/ - - Sun BCL - - - - jndi - http://java.sun.com/products/jndi/ - - Sun BCL - - - - jpox - http://jpox.sourceforge.net/ - http://www.gnu.org/licenses/lgpl.txt - - - - - jsch - http://www.jcraft.com/jsch/ - http://www.jcraft.com/jsch/LICENSE.txt - BSD Style - - - - - - jsse - http://java.sun.com/products/jsse/ - - Sun BCL - - - - jstl - http://java.sun.com/products/jsp/jstl/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-taglibs/LICENSE - This is the Jakarta Taglibs implementation - - - - jta - http://java.sun.com/products/jta/ - - Sun BCL - - - - jtidy - http://lempinen.net/sami/jtidy/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/jtidy/jtidy/LICENSE - Custom - - - - junit-doclet - http://www.junitdoclet.org/ - http://www.gnu.org/licenses/lgpl.txt - LGPL - - - - junit - http://www.junit.org/ - http://www.opensource.org/licenses/ibmpl.php - IBM PL - - - - junitperf - http://www.clarkware.com/software/JUnitPerf.html - http://www.clarkware.com/software/license.txt - BSD Style - - - - jython - http://www.jython.org/ - http://www.jython.org/license.html - Custom - copyright display - - - - ldapsdk - http://www.mozilla.org/directory/javasdk.html - http://www.mozilla.org/NPL/NPL-1.0.txt - - - - - log4j - http://jakarta.apache.org/log4j/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-log4j/LICENSE.txt - - - - - logkit - http://avalon.apache.org/logkit/ - http://avalon.apache.org/license.html - ASL - - - - lucene - http://jakarta.apache.org/lucene/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-lucene/LICENSE.txt - - - - - maven - http://maven.apache.org/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/maven/LICENSE.txt - ASL - - - - maven-plugins - http://maven-plugins.sourceforge.net/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/maven-plugins/maven-plugins/LICENSE.txt - ASL - even though it's on sourceforge - - - - mckoi - http://www.mckoi.com/database/ - http://www.mckoi.com/database/LICENSE.txt - GPL - - - - mm.mysql - http://www.mysql.com/products/connector-j/index.html - http://www.gnu.org/licenses/lgpl.txt - 2.x is LGPL, 3.x is GPL - - - - mockobjects - http://mockobjects.sourceforge.net/ - http://mockobjects.sourceforge.net/license.html - Copyright ASF - bad - - - - msv - http://www.sun.com/software/xml/developers/multischema/ - - ASL style - - - - mule - http://mule.sourceforge.net/ - http://www.gnu.org/licenses/gpl.txt - GPL - - - - mx4j - http://mx4j.sourceforge.net/ - http://mx4j.sourceforge.net/license.txt - ASL style - - - - - mysql - http://www.mysql.com/products/connector-j/index.html - http://www.gnu.org/licenses/lgpl.txt - 2.x is LGPL, 3.x is GPL - - - - nekohtml - http://www.apache.org/~andyc/neko/doc/index.html - http://www.apache.org/~andyc/neko/LICENSE - ASL Style - - - - nsuml - http://nsuml.sourceforge.net/ - http://nsuml.sourceforge.net/copyleft.txt - LGPL - - - - odmg - http://www.odmg.org/ - - Can't find a license - - - - ognl - http://sourceforge.net/projects/ognl/ - http://www.gnu.org/copyleft/gpl.txt - - - - - ojb - http://db.apache.org/ojb/ - http://www.apache.org/LICENSE - - - - - oro - http://jakarta.apache.org/oro/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-oro/LICENSE - - - - - p6spy - http://www.p6spy.com/ - http://www.p6spy.com/documentation/license.htm#license - ASL Style - - - - patterntesting - http://patterntesting.sourceforge.net/ - http://patterntesting.sourceforge.net/license.html - ASL Style - - - - petridish - http://petridish.werken.com/ - http://petridish.werken.com/license.html - ASL Style - - - - piccolo - http://piccolo.sourceforge.net/ - http://www.gnu.org/licenses/lgpl.txt - LGPL - - - - plexus - http://cvs.werken.com/viewcvs.cgi/plexus-container/?cvsroot=plexus - http://cvs.werken.com/viewcvs.cgi/*checkout*/plexus-container/LICENSE.txt?cvsroot=plexus - ASL - - - - pmd - http://pmd.sourceforge.net - http://www.cougaar.org/documents/license.html - - - - - poi - http://jakarta.apache.org/poi/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-poi/legal/LICENSE - - - - - poolman - http://sourceforge.net/projects/poolman/ - http://www.fsf.org/licenses/lgpl.txt - - - - - postgresql - http://www.postgresql.org/ - http://developer.postgresql.org/docs/pgsql/COPYRIGHT - BSD style - - - - pull-parser - http://www.extreme.indiana.edu/xgws/xsoap/xpp/ - http://www.extreme.indiana.edu/xgws/xsoap/xpp/download/PullParser2/LICENSE.txt - ASL style - - - - qdox - http://qdox.sourceforge.net/index.html - http://qdox.sourceforge.net/license.html - ASL style - - - - quartz - http://www.part.net/quartz.html - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/quartz/Quartz/license.txt - ASL style - - - - redhill - http://www.redhillconsulting.com.au/products/simian/ - http://www.redhillconsulting.com.au/products/simian/LICENSE.txt - - - - - regexp - http://jakarta.apache.org/regexp/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-regexp/LICENSE.txt - - - - - relaxngDatatype - http://sourceforge.net/projects/relaxng/ - - BSD. Deployed license from 1.0 distribution - - - - rhino - http://www.mozilla.org/rhino/ - http://www.mozilla.org/MPL/NPL-1.1.html - NPL 1.1 (similar to LGPL it appears) - - - - saaj - http://java.sun.com/xml/saaj/index.html - - - No standalone download. Sun BCL as part of the web services - developer pack - - - - - sax - http://sax.sourceforge.net/ - http://www.megginson.com/SAX/copying.html - Public domain - - - - saxpath - http://sourceforge.net/projects/saxpath/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/saxpath/saxpath/LICENSE - BSD style - - - - servletapi - http://jakarta.apache.org/tomcat/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-servletapi/LICENSE - - - - - skinlf - http://www.l2fprod.com/ - http://www.l2fprod.com/software/skinlf/license.php - ASL Style - - - - springframework - http://www.springframework.org/ - http://cvs.sourceforge.net/viewcvs.py/*checkout*/springframework/spring/license.txt - ASL 1.1 - - - - soap - http://ws.apache.org/soap/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-soap/LICENSE - - - - - statcvs - http://statcvs.sourceforge.net/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/statcvs/statcvs/license.txt - - - - - stratum - http://jakarta.apache.org/turbine/stratum/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-turbine-stratum/LICENSE.txt - - - - - struts - http://jakarta.apache.org/struts/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-struts/LICENSE - - - - - struts-menu - http://sourceforge.net/projects/struts-menu/ - - Can't find license in cvs or on sf - - - - strutstestcase - http://strutstestcase.sourceforge.net/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/strutstestcase/strutstestcase/LICENSE.TXT - - - - - swt - http://www.eclipse.org/ - http://www.eclipse.org/legal/cpl-v10.html - IBM CPL - - - - tablelayout - http://www.clearthought.info/software/TableLayout/ - http://www.clearthought.info/software/TableLayout/ - Custom, in Welcome section of home page - - - - taglibs - http://jakarta.apache.org/taglibs/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-taglibs/LICENSE - - - - - tapestry - http://jakarta.apache.org/proposals/tapestry/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-tapestry/LICENSE.txt - - - - - thaiopensource - http://thaiopensource.com/relaxng/jing.html - http://thaiopensource.com/relaxng/copying.html - - - - - tjdo - http://tjdo.sourceforge.net/ - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/tjdo/tjdo/docs/LICENSE.txt - ASF Style - - - - tomcat-util - http://jakarta.apache.org/tomcat/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-tomcat-4.0/LICENSE - - - - - tomcat - http://jakarta.apache.org/tomcat/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-tomcat-4.0/LICENSE - - - - - torque - http://db.apache.org/torque/ - http://cvs.apache.org/viewcvs/*checkout*/db-torque/LICENSE.txt - - - - - touchstone - http://maven.apache.org/ - http://cvs.apache.org/viewcvs/*checkout*/maven/LICENSE.txt - ASL - - - - turbine - http://jakarta.apache.org/turbine/ - http://cvs.apache.org/viewcvs/*checkout*/jakarta-turbine-2/LICENSE.txt - ASL - - - - tyrex - http://tyrex.exolab.org/ - http://tyrex.exolab.org/license.html - BSD Style - - - - urbanophile - http://www.urbanophile.com/arenn/hacking/download.html - http://www.gnu.org/licenses/lgpl.txt - LGPL - - - - vdoclet - http://vdoclet.sourceforge.net/ - http://vdoclet.sourceforge.net/license.html - ASL Style - - - - velocity-dvsl - http://jakarta.apache.org/velocity/dvsl/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-velocity-dvsl/docs/license.html - ASL - - - - velocity - http://jakarta.apache.org/velocity/ - http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-velocity/LICENSE.txt - ASL - - - - village - http://share.whichever.com/index.php?SCREEN=village - http://share.whichever.com/viewcvs.cgi/*checkout*/village/docs/LICENSE.txt - ASL Style - - - - webmacro - http://sourceforge.net/projects/webmacro/ - http://www.webmacro.org/WebMacroLicense - Dual licensing : Apache Style and GPL - - - - webtest - http://webtest.canoo.com/webtest/manual/WebTestHome.html - http://webtest.canoo.com/webtest/manual/license.html - BSD / Apache license (so it seems) - - - - webwork - http://sourceforge.net/projects/opensymphony - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/opensymphony/webwork/src/docs/manual/license.txt - BSD - - - - werken-xpath - http://werken-xpath.sourceforge.net - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/werken-xpath/werken.xpath-jdom/LICENSE - BSD License - - - - werkflow - http://werkflow.werken.com/ - http://werkflow.werken.com/license.html - Apache Style license - - - - werkz - http://werkz.werken.com/ - http://cvs.werken.com/viewcvs.cgi/*checkout*/werkz/LICENSE.txt?cvsroot=werkz - Apache Style license - - - - which - http://xml.apache.org/commons/ - http://xml.apache.org/LICENSE - - Apache license - doesn't seem to be downloadable in this form though.. - - - - - wrapper - http://sourceforge.net/projects/wrapper/ - http://sourceforge.net/projects/wrapper/ - MIT License - The download contains the license in doc/license.txt - - - - wsdl4j - http://www-124.ibm.com/developerworks/projects/wsdl4j/ - http://oss.software.ibm.com/developerworks/opensource/CPLv1.0.htm - CPL (common public license) 1.0 - - - - xalan - http://xml.apache.org/xalan-j/ - http://xml.apache.org/LICENSE - Apache license - - - - xdoclet - http://xdoclet.sourceforge.net - http://xdoclet.sourceforge.net/licenses/xdoclet-license.html - BSD License - - - - xerces - http://xml.apache.org/xerces2-j/ - http://xml.apache.org/LICENSE - Apache license - - - - xercesjarv - http://www.kohsuke.org/jarv/xerces/ - http://www.opensource.org/licenses/mit-license.html - MIT license - - - - xml-apis - http://xml.apache.org/commons - http://xml.apache.org/LICENSE - - There are a couple of licenses used here : - Public Domain for SAX - For Dom : - w3c software license (http://www.w3c.org/Consortium/Legal/copyrightsoftware-1 - 9980720) - For the rest : Apache license - - - - - xml-security - http://xml.apache.org/security - http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-security/LICENSE.txt - Apache Softare License 1.1 - - - - xmlenc - http://xmlenc.sourceforge.net - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/xmlenc/xmlenc/COPYRIGHT - BSD license - - - - xmlrpc - http://ws.apache.org/xmlrpc - http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-rpc/LICENSE.txt - Apache License - - - - xmlrpc-helma - http://ws.apache.org/xmlrpc - http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-rpc/LICENSE.txt - Apache License (now has moved to apache..) - - - - xmlunit - http://xmlunit.sourceforge.net - http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/xmlunit/xmlunit/LICENSE.txt - BSD license - - - - xpp3 - http://www.extreme.indiana.edu/xgws/xsoap/xpp/ - http://www.extreme.indiana.edu/xgws/xsoap/xpp/download/xpp3/LICENSE.txt - Indiana University Extreme! Lab Software License - BSDish - - - - xsdlib - http://www.sun.com/software/xml/developers/xsdlib/ - - Sun's open license (similar to ASL) - - - diff --git a/repository/xdocs/changes.xml b/repository/xdocs/changes.xml deleted file mode 100644 index a3b3d9e9..00000000 --- a/repository/xdocs/changes.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - Changes - dIon Gillard - - - - Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : -
    -
  • commons-jelly-tags-util v1.1 -> v1.1.1
  • -
  • commons-jelly-tags-xml v1.0 -> v1.1
  • -
-
- Fixed typo in docs - create-upload-bundle now also adds a jar with java sources -
- - Deprecate maven.repository.group, use maven.remote.group instead - - - - Added repository:copy-jar - Removed hard coded group name - now a property - Renamed repository:deploy-snapshot-jar to repository:copy-snapshot-jar - Fixed URLs for Jelly dependencies - Created - - -
diff --git a/repository/xdocs/goals.xml b/repository/xdocs/goals.xml deleted file mode 100644 index 75b8997f..00000000 --- a/repository/xdocs/goals.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - Maven Repository Plug-in Goals - - - - - repository:audit-copy-license - copy the license for the specified groupId to the repository - - - repository:audit-copy-licenses - copy all licenses in the audit file to the repository - - - repository:audit-create-directory - create the directory, specified by directoryName, for all groups in the audit file - - - repository:audit-create-licenses - create the license directories, for all groups in the audit file, in the repository - - - repository:audit-generate-pom - generate a pom for the groupId provided, based on the audit file - - - repository:audit-generate-poms - generate a pom for all the groupId's in the audit file - - - repository:audit-rename-licenses - rename/link all licenses from their original name to ${groupId}.license - - - repository:copy-artifact - copy an artifact, specified by groupId, artifact and type, to the repository - - - repository:copy-jar - copy a jar, specified by groupId and artifact, to the repository - - - repository:copy-snapshot-jar - copy a snapshot jar, specified by groupId and artifact, to the repository - - - repository:create-project - create a project, specified by groupId, in the repository - - - repository:delete-project - delete a project, specified by groupId, in the repository - - - - \ No newline at end of file diff --git a/repository/xdocs/index.xml b/repository/xdocs/index.xml deleted file mode 100644 index ba590853..00000000 --- a/repository/xdocs/index.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - Maven Repository Plug-in - dIon Gillard - - - -
-

- This plug-in provides ways of working with maven central repositories. -

-
- -
diff --git a/repository/xdocs/navigation.xml b/repository/xdocs/navigation.xml deleted file mode 100644 index dad7d2ee..00000000 --- a/repository/xdocs/navigation.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - Maven Repository Plug-in - - - - - - - - - - - - - - - - - - - - - - - diff --git a/repository/xdocs/properties.xml b/repository/xdocs/properties.xml deleted file mode 100644 index 74d7442c..00000000 --- a/repository/xdocs/properties.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - Maven Repository Plug-in Properties - dIon Gillard - - -
- - - - - - -
PropertyOptional?Description
-
- -
\ No newline at end of file diff --git a/repository/xdocs/tasks.xml b/repository/xdocs/tasks.xml deleted file mode 100644 index 2acba4f6..00000000 --- a/repository/xdocs/tasks.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - Tasks - dIon Gillard - - - -
- -
    -
  1. upload poms for all artifacts -
      -
    • Up to ant-contrib in alphabetical order
    • -
    -
  2. -
  3. Find the following projects: -
      -
    • excalibur-mpool - asl
    • -
    • jstyle - used to be http://www.redrival.com/greenrd/java/jstyle
    • -
    • struts-menu - no license on file. Have contacted authors
    • -
    • textarea - looks like it used to be on sf.net?
    • -
    -
  4. -
  5. download msv licenses and place on repo
  6. -
  7. Remove javadoc directory once agreement reached
  8. -
  9. deploy source code to ibiblio for all GPL licensed projects
  10. -
-
- - -
    -
  1. - jsr94 - Download found @ http://jcp.org/aboutJava/communityprocess/review/jsr094/index.html - as part of the spec. License is not conducive to distribution -
  2. -
  3. set up pom directories for all hosted groups
  4. -
  5. Remove violations if any still exist (xsdlib* is the only one)
  6. -
  7. Create license directories on ibiblio via jelly
  8. -
  9. Upload licenses available via http via jelly
  10. -
  11. Ensure all versions on ibiblio are covered by licenses
  12. -
-
-
- - -
diff --git a/uberjar/plugin.jelly b/uberjar/plugin.jelly deleted file mode 100644 index c64b6858..00000000 --- a/uberjar/plugin.jelly +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -The maven.uberjar.main property has not been set. This value should -be set to the value of the class that contains the main method -to be invoked. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/uberjar/project.xml b/uberjar/project.xml deleted file mode 100644 index 50396158..00000000 --- a/uberjar/project.xml +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - ../plugins-parent/project.xml - - - 3 - - - maven-uberjar-plugin - - - Maven Uberjar Plugin - - - 1.3-SNAPSHOT - - - Uberjar packages your project as well as its dependencies into a single jar file. In addition, bootstrap code is added that enables a main class to be invoked by simply typing: java -jar your.jar - - - - - 1.1 - 1.1 - MAVEN_UBERJAR_1_1 - - - 1.2 - 1.2 - MAVEN_UBERJAR_1_2 - - - - - - - Jason van Zyl - jvanzyl - jason@zenplex.com - Zenplex - - Architect - Release Manager - - - - Bob McWhirter - werken - bob@werken.com - The Werken Company - - Java Developer - - - - Pete Kazmier - kaz - pete-apache-dev@kazmier.com - - - Documentation - Java Developer - - - - - - - - velocity - velocity - 1.4 - http://jakarta.apache.org/velocity/ - - - commons-jelly - commons-jelly-tags-velocity - 1.0 - - - classworlds - classworlds - 1.1-alpha-2 - http://classworlds.codehaus.org - - - diff --git a/uberjar/src/plugin-resources/conf/classworlds.conf b/uberjar/src/plugin-resources/conf/classworlds.conf deleted file mode 100644 index eed8f2ed..00000000 --- a/uberjar/src/plugin-resources/conf/classworlds.conf +++ /dev/null @@ -1,7 +0,0 @@ -main is $ubermain from app - -[app] - #foreach ( $dep in $pom.dependencies )#if (!$dep.getProperty('uberjar.bundle') || $dep.getProperty('uberjar.bundle') == 'true') - load ${classworlds.lib}/$dep.artifact -#end#end - load ${classworlds.lib}/${self}.jar diff --git a/uberjar/xdocs/changes.xml b/uberjar/xdocs/changes.xml deleted file mode 100644 index 6bff0a23..00000000 --- a/uberjar/xdocs/changes.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - Changes - Pete Kazmier - - - - Upgrade to classworlds 1.1 alpha 2 to unify with scm plugin. - Excluded dependencies not bundled from the classworlds configuration - Fix path if <jar> is specified for a dependency - - - Upgrade to classworlds RC2 - Add uberjar.bundle property to dependencies to allow exclusion of certain JAR files - - - Maven-655. Fix classworlds url. - update to velocity 1.4-dev - Changed copy of dependencies to use artifacts, so that jar overrides would work - - - The two properties, maven.uberjar.main and maven.uberjar.classworlds.conf, can now be specified via a project's properties file. Previously, these were specified via the command line. - Created uberjar plugin based on the cool bootstrapping code that Jason and Bob worked out! - Added install, install-snapshot, deploy, deploy-snapshot goals - - - diff --git a/uberjar/xdocs/goals.xml b/uberjar/xdocs/goals.xml deleted file mode 100644 index 59c6d6ca..00000000 --- a/uberjar/xdocs/goals.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - Maven UberJar Plug-in Goals - Pete Kazmier - - - - - uberjar - - Generate a single JAR that contains all of the project's - dependencies as well as the project's classes. In addition, - the JAR contains bootstrapable code such that the JAR may be - invoked as: java -jar uber.jar. - - - - - - diff --git a/uberjar/xdocs/index.xml b/uberjar/xdocs/index.xml deleted file mode 100644 index 334252a8..00000000 --- a/uberjar/xdocs/index.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - Maven UberJar Plug-in - Pete Kazmier - - - -
-

- UberJar packages your project as well as its dependencies into a - single JAR file. In addition, bootstrap code is added to the - archive that enables a main class to be invoked by simply - typing: java -jar uber.jar. This enables you to - easily package up a command line utility into a single JAR - without worrying about the distribution of your dependencies or - shell scripts to invoke your main class. UberJar takes care of - this for you. -

-

- UberJar utilizes the - Classworlds package for the bootstrap code that loads your - dependencies and executes your main method. It also - enables your dependent JARs to be inserted into the classpath, - and best of all, the JARs are located with the UberJar. JARs - within JARs are supported by the Classworlds class loaders. - However, you do not need to know anything about Classworlds to - build your UberJar. For those that want more information, see - the - Classworlds uberjar page . -

-

- To create the UberJar, be sure to define the - maven.uberjar.main property in your project's - properties file. Alternatively, if you already have a custom Classworlds - configuration file, specify the - maven.uberjar.classworlds.conf property instead. To - create the UberJar, type: -

- - maven uberjar - -

- Upon success, the UberJar will be located in your target directory - with a -uber appended for identification. To invoke - your application, type: -

- - java -jar your_uber_jar_here.jar - -
- -
diff --git a/uberjar/xdocs/navigation.xml b/uberjar/xdocs/navigation.xml deleted file mode 100644 index 226a1e1a..00000000 --- a/uberjar/xdocs/navigation.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - Maven UberJar Plugin - - - - - - - - - - - - - - - - - - - diff --git a/uberjar/xdocs/properties.xml b/uberjar/xdocs/properties.xml deleted file mode 100644 index 57cc4eb3..00000000 --- a/uberjar/xdocs/properties.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - Properties - Pete Kazmier - - - -
- - - - - - - - - - - - - - -
PropertyOptional?DescriptionDefault
maven.uberjar.mainNo - UberJar will automatically create a Classworlds - configuration file for your application; however, you must - specify which class contains the main method for - your application. This is the class that will be invoked - when a user types: java -jar uber.jar. - None
maven.uberjar.classworlds.confYes - Specifies that the plugin should not automatically create a - Classworlds configuration file because your application - already has its own. This property should be set to your - appropriate configuration. If this property is specified, - maven.uberjar.main is ignored. - None
-
- -
diff --git a/uberjar/xdocs/tasks.xml b/uberjar/xdocs/tasks.xml deleted file mode 100644 index 2f96bed3..00000000 --- a/uberjar/xdocs/tasks.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - Tasks - Pete Kazmier - - - -
-
  • -
-
- -