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:
-
-
-
- Ability to start the Abbot Costello editor using either jars
- defined in the POM or the jars from an already installed
- WebStart application.
-
-
- Ability to execute Abbot XML scripts through the Ant <junit>
- task
-
-
- Ability to execute Abbot XML scripts on an already installed
- WebStart application (end-to-end functional testing)
-
- Using the abbot:test goal. You would call this goal
- from inside your application project. This project needs to
- define all your application required dependencies in its
- project.xml.
-
-
- Using the abbot:test-webstart goal. You would call
- this goal if you wish to test a WebStart application that is
- already installed on some server. In this mode your project does
- not require to define any dependency.
-
-
-
-
-
-
-
- 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
-
-
-
-
-
- The behavior of the Maven Castor Plug-in can be altered via
- several properties. This document describes each property
- available, and the default used.
-
- 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 name
-
Description
-
Optional?
-
-
-
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
-
- 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 Name
Description
Optional?
-
-
-
schema
-
The path to the XML schema
-
No
-
-
-
package
-
The package for the generated source
-
Yes
-
-
-
types
-
Sets 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
-
-
-
-
-
-
Goal
Description
-
-
-
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
-
- 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.quiet
-
Yes
-
- Controls verbosity of the plugin.
- Default is set to yes
-
-
-
-
maven.hibernate.text
-
Yes
-
- 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.drop
-
Yes
-
- Indicates whether to drop to generate just a drop table script.
-
- It defaults to no
-
-
-
-
maven.hibernate.delimiter
-
Yes
-
String used to separate commands in SQL output.
-
-
-
maven.hibernate.output.dir
-
Yes
-
- 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.file
-
Yes
-
- 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.dir
-
Yes
-
- Comma-seperated list of base directories indicating where
- mapping files are located. It defaults
- to ${maven.build.dest}.
-
-
-
-
maven.hibernate.input.includes
-
Yes
-
- 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.excludes
-
Yes
-
- 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.file
-
Yes
-
When aggregate-mappings is run, this file will contain the aggregated mappings
-
-
-
maven.hibernate.codeGeneration.input.dir
-
Yes
-
Comma-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.includes
-
Yes
-
- 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.excludes
-
Yes
-
- 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.dir
-
Yes
-
When code-generation is run, the generated Java files will be placed in
- this directory. It defaults to ${maven.src.dir}/hibernate.
Servlets defined by a <servlet> tag are loadable
- * from the war file and not the classpath
- *
JSPs defined by a <servlet> tag exist in the war
- *
- *
Taglibs defined by a <taglib> have a
- * <taglib-location> that exists in the war
- *
Error pages specified by a <location> nested
- * within an <error-page> element must exist in the
- * war file
- *
Login and error pages specified in the <form-login-config
- * > element must exist in the war file
- *
- * @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 name
-
Content
-
Comment
-
-
-
src/webapp
-
The 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 name
-
Content
-
Comment
-
-
-
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.
-
-
-
- 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 !).
-
-
- Add HTML validation.
-
-
- Add EAR validation.
-
-
- Add validation of Tag libraries to the validate-war goal.
-
-
- Add technology specific validators, e.g. JSP/Turbine/Velocity/Struts
- etc
-
- 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.
-
- The j2ee:validate-war target validates the newly
- produced war file.
-
-
- The validator checks the folowing:
-
-
-
The war file exists
-
It is readable
-
The war file has a web.xml (it's only a warning if it
- doesn't exist)
-
Servlets defined by a <servlet> tag are loadable
- from the war file and not the classpath
-
JSPs defined by a <servlet> tag exist in the war
-
-
Taglibs defined by a <taglib> have a
- <taglib-location> that exists in the war
-
Error pages specified by a <location> nested
- within an <error-page> element must exist in the
- war file
-
Login and error pages specified in the <form-login-config
- > element must exist in the war file
-
-
-
-
- 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:
-
-
-
Item
Description
-
-
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.
-
- 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:
-
-
-
Item
Description
-
-
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
-
-
- ]]>
-
- 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.
-
- The behavior of the Maven J2EE Plug-in can be altered via numerous
- properties. This document describes each property
- available as the default used.
-
- 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.
-
- 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.
-
- 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.
-
- 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
-
- 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}
-
- 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.
-
- 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.
-
- 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.
-
- 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.
-
- 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
-
- 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}
-
- 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.
-
- 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.
-
- 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.
-
- 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.
-
- 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.
-
- 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.
-
- 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:
-
- 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.
-
- Location of JBoss home (i.e. where JBoss is installed on your
- local drive. Example: c:/jboss-3.2.2.
-
-
-
-
-
maven.jboss.conf.dir
-
Yes
-
-
- Location of where the application-specific JBoss conf files are
- located. Example: conf/jboss/conf.
-
-
-
-
-
maven.jboss.deploy.dir
-
Yes
-
-
- Location of where the application-specific JBoss deploy files are
- located. Example: conf/jboss/deploy.
-
-
-
-
-
maven.jboss.appconf.dir
-
Yes
-
-
- 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.name
-
Yes
-
-
- Name of the specific JBoss server configuration we are creating.
- Default value is ${pom.artifactId}.
-
-
-
-
-
maven.jboss.hostname
-
Yes
-
-
- Hostname on which JBoss is executing. Default value is
- localhost
-
-
-
-
-
maven.jboss.port
-
Yes
-
-
- 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=
-
- 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.dir
-
Yes
-
-
- 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.version
-
Yes
-
-
- 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.port
-
Yes
-
-
- 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).
-
- the JBuilder user home directory.
- Default : ${user.home}
-
-
-
-
-
maven.jbuilder.outpath
-
Yes
-
-
- Location of output directory used by JBuilder for classes.
- Default : ${maven.build.dest}
-
-
-
-
-
maven.jbuilder.additionalSources
-
Yes
-
-
- 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.bakpath
-
Yes
-
-
- Location of JBuilder backup directory. Default: ${maven.build.dir}/bak
-
-
-
-
-
maven.jbuilder.docpath
-
Yes
-
-
- Optional documentation path. If not defined, the path defined by the javadoc
- plugin will be used.
-
-
-
-
-
maven.jbuilder.testDependencies
-
Yes
-
-
- 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.verbose
-
Yes
-
-
- 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.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("
");
- 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.
-
- Specifies the root directory for jcoverage output files.
-
-
-
-
maven.jcoverage.report.stylesheet
-
${plugin.resources}/style.css
-
Yes
-
- Specifies css file for jcoverage output files.
-
-
-
-
maven.jcoverage.instrumentation
-
${maven.jcoverage.dir}/classes
-
Yes
-
- Specifies the build directory for the instrumented classes.
-
-
-
-
maven.jcoverage.instrumentation.includes
-
**/*.class
-
Yes
-
- Specifies the pattern for the included classes of instrumentation.
-
-
-
-
maven.jcoverage.instrumentation.excludes
-
Not defined
-
Yes
-
- Specifies the pattern for the excluded classes of instrumentation. It's a comma separated property.
-
-
-
-
-
maven.jcoverage.junit.fork
-
yes
-
Yes
-
- Specifies the fork attribute for the JUnit test for the coverage analysis.
-
-
-
-
-
maven.jcoverage.merge.instrumentedFiles
-
-
Yes
-
- Specifies the instrumented files list to be merge. Values are separated with commas.
-
-
-
-
maven.jcoverage.merge.outputDir
-
-
Yes
-
- 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
-
-
-
-
-
-
Goal
Description
-
-
jetty
-
- Run Jetty.
-
-
-
-
jetty:run
-
- Run Jetty.
-
-
-
-
jetty:run-war
-
- Run Jetty, adding the current WAR project to the contexts.
-
- Root of generated .jnlp file and signing jars.
-
-
- ${maven.build.dir}/jnlp
-
-
-
-
maven.jnlp.spec
-
Yes
-
- The versions of the specification that this JNLP file required.
-
-
- 1.0+
-
-
-
-
maven.jnlp.http.codebase
-
Yes
-
- The jnlp root element on web server.
-
-
- ${pom.url}
-
-
-
-
maven.jnlp.title
-
Yes
-
- The name of the application.
-
-
- ${pom.name}
-
-
-
-
maven.jnlp.vendor
-
Yes
-
- The name of the vendor of the application.
-
-
${pom.organization.name}
-
-
-
maven.jnlp.homepage
-
Yes
-
- 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.icon
-
Yes
-
- 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.splash
-
Yes
-
- 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.description
-
Yes
-
- 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-line
-
Yes
-
- 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.short
-
Yes
-
- 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.tooltip
-
Yes
-
- A description of the application intended to be used as a tooltip.
-
-
-
-
-
maven.jnlp.offline.allowed
-
Yes
-
- 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.permission
-
Yes
-
- 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.version
-
Yes
-
- Describes supported version of the JRE.
-
-
- 1.4
-
-
-
-
maven.jnlp.j2se.heapsize.initial
-
Yes
-
- 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.max
-
Yes
-
- 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.properties
-
Yes
-
- 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.isapplet
-
Yes
-
- Defines if JNLP file describes an applet.
-
-
- false
-
-
-
-
maven.jnlp.applet.name
-
Yes
-
- The applet name.
-
-
-
-
-
maven.jnlp.isinstaller
-
Yes
-
- Defines if JNLP file describes an installer.
-
-
- false
-
-
-
-
maven.jnlp.iscomponent
-
Yes
-
- Defines if JNLP file describes a component.
-
-
- false
-
-
-
-
maven.jnlp.mainclass
-
Yes
-
- 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.arguments
-
Yes
-
- The argument list for the main class. All arguments are separated by a space.
-
-
-
-
-
maven.jnlp.usejarversions
-
Yes
-
- 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.version
-
Yes
-
- 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.jardiff
-
Yes
-
- Use the jar diff option for the Sun's JNLP Download Servlet.
-
-
false
-
-
-
-
-
-
Property
Optional?
Description
Default
-
-
maven.jnlp.signjar.store
-
Yes
-
- The keystore location. It's necessary if you want sign your jars.
-
-
-
-
-
maven.jnlp.signjar.storepass
-
Yes
-
- The password for keystore integrity. Must be at least 6 characters long.
-
-
-
-
-
maven.jnlp.signjar.storetype
-
Yes
-
- The keystore type.
-
-
jks
-
-
-
maven.jnlp.signjar.alias
-
Yes
-
- The alias for the keystore.
-
-
- ${pom.artifactId}
-
-
-
-
maven.jnlp.signjar.validity
-
Yes
-
- Indicates how many days certificate is valid.
-
-
- 720
-
-
-
-
maven.jnlp.signjar.dname.cn
-
Yes
-
- The common name of distinguished name.
-
-
-
-
-
maven.jnlp.signjar.dname.ou
-
Yes
-
- The organization unit of distinguished name.
-
-
-
-
-
maven.jnlp.signjar.dname.o
-
Yes
-
- The organization of distinguished name.
-
-
- ${pom.organization.name}
-
-
-
-
maven.jnlp.signjar.dname.l
-
Yes
-
- The locality of distinguished name.
-
-
-
-
-
maven.jnlp.signjar.dname.s
-
Yes
-
- The street of distinguished name.
-
-
-
-
-
maven.jnlp.signjar.dname.c
-
Yes
-
- 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 :
-
- 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 :
-
- 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.
-
The name of the binary release file.
- Defaults to ${pom.artifactId}-${pom.currentVersion}-bin
-
-
-
maven.release.name.src
-
Yes
-
The name of the source release file.
- Defaults to ${pom.artifactId}-${pom.currentVersion}-src
-
-
-
maven.release.distribution.categories
-
Yes
-
The 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
-
-
-]]>
-
-
- 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.
-
-
-
-
\ 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
-
-
-
-
-
-
-
upload poms for all artifacts
-
-
Up to ant-contrib in alphabetical order
-
-
-
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?
-
-
-
download msv licenses and place on repo
-
Remove javadoc directory once agreement reached
-
deploy source code to ibiblio for all GPL licensed projects
-
-
-
-
-
-
- jsr94 - Download found @ http://jcp.org/aboutJava/communityprocess/review/jsr094/index.html
- as part of the spec. License is not conducive to distribution
-
-
set up pom directories for all hosted groups
-
Remove violations if any still exist (xsdlib* is the only one)
-
Create license directories on ibiblio via jelly
-
Upload licenses available via http via jelly
-
Ensure all versions on ibiblio are covered by licenses
-
-
-
-
-
-
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:
-
- 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.conf
-
Yes
-
- 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.
-